@wavv/ui 1.9.15 → 1.9.16
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/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Button/Button.d.ts +3 -3
- package/build/cjs/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/cjs/types/components/ChartHelpers.d.ts +2 -2
- package/build/cjs/types/components/Dropdown/Dropdown.d.ts +1 -1
- package/build/cjs/types/components/Dropdown/DropdownUtils.d.ts +3 -0
- package/build/cjs/types/components/Form.d.ts +12 -19
- package/build/cjs/types/components/MessageHr.d.ts +2 -2
- package/build/cjs/types/components/Options.d.ts +3 -1
- package/build/cjs/types/hooks/useSelect.d.ts +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Button/Button.d.ts +3 -3
- package/build/esm/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/esm/types/components/ChartHelpers.d.ts +2 -2
- package/build/esm/types/components/Dropdown/Dropdown.d.ts +1 -1
- package/build/esm/types/components/Dropdown/DropdownUtils.d.ts +3 -0
- package/build/esm/types/components/Form.d.ts +12 -19
- package/build/esm/types/components/MessageHr.d.ts +2 -2
- package/build/esm/types/components/Options.d.ts +3 -1
- package/build/esm/types/hooks/useSelect.d.ts +1 -1
- package/build/index.d.ts +81 -80
- package/build/types/components/Button/Button.d.ts +3 -3
- package/build/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/types/components/ChartHelpers.d.ts +2 -2
- package/build/types/components/Dropdown/Dropdown.d.ts +1 -1
- package/build/types/components/Dropdown/DropdownUtils.d.ts +3 -0
- package/build/types/components/Form.d.ts +12 -19
- package/build/types/components/MessageHr.d.ts +2 -2
- package/build/types/components/Options.d.ts +3 -1
- package/build/types/hooks/useSelect.d.ts +1 -1
- package/package.json +13 -13
package/build/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/"production"===process.env.NODE_ENV?Ns.exports=function(){if(Rs)return Bs;Rs=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Bs.ContextConsumer=s,Bs.ContextProvider=a,Bs.Element=t,Bs.ForwardRef=l,Bs.Fragment=r,Bs.Lazy=p,Bs.Memo=d,Bs.Portal=n,Bs.Profiler=i,Bs.StrictMode=o,Bs.Suspense=u,Bs.SuspenseList=f,Bs.isAsyncMode=function(){return!1},Bs.isConcurrentMode=function(){return!1},Bs.isContextConsumer=function(e){return g(e)===s},Bs.isContextProvider=function(e){return g(e)===a},Bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bs.isForwardRef=function(e){return g(e)===l},Bs.isFragment=function(e){return g(e)===r},Bs.isLazy=function(e){return g(e)===p},Bs.isMemo=function(e){return g(e)===d},Bs.isPortal=function(e){return g(e)===n},Bs.isProfiler=function(e){return g(e)===i},Bs.isStrictMode=function(e){return g(e)===o},Bs.isSuspense=function(e){return g(e)===u},Bs.isSuspenseList=function(e){return g(e)===f},Bs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Bs.typeOf=g,Bs}():Ns.exports=(Fs||(Fs=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;zs.ContextConsumer=v,zs.ContextProvider=y,zs.Element=m,zs.ForwardRef=b,zs.Fragment=w,zs.Lazy=x,zs.Memo=C,zs.Portal=S,zs.Profiler=_,zs.StrictMode=O,zs.Suspense=k,zs.SuspenseList=E,zs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g}()),zs);var Hs=Ns.exports;function Vs(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Hs.isFragment(o)?e.push.apply(e,Vs(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Ks=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx($s,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};Ks.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u}=t,f=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(Us,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},f,{children:n}))};const $s=W.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Us=W.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Ws=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Zs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Gs,{children:n.header}),e.jsx(Ys,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),qs=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ws(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Ks.Item,{id:t.id,onClick:o,children:Zs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Vs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Vs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Gs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Ys=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Xs=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},Js=(e,t)=>!t.includes(e),Qs=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(ks,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(Es,{asChild:!0,children:e.jsx(uc,Object.assign({},b,{children:a}))}),e.jsx(js,{container:p,children:e.jsxs(rc,{id:o,maxHeight:d,width:f,zIndex:h,side:Xs(i).side,align:Xs(i).align,sideOffset:l,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>e.jsx(ec,Object.assign({},t,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Zs(t)}),t.id))),n,u&&e.jsx(Ps,{className:"menu-arrow"})]})})]})},ec=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(sc,Object.assign({id:null==r?void 0:r.toString(),disabled:o,onSelect:i},a,{children:n}))};Qs.Item=ec,Qs.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Ds,{children:[e.jsxs(cc,{disabled:a,children:[o,e.jsx(fc,{children:e.jsx(dc,{children:e.jsx(fn,{name:"chevron-right",size:"small",inheritColor:a})})})]}),e.jsx(js,{container:s,children:e.jsx(oc,Object.assign({sideOffset:2,alignOffset:-5,zIndex:i,id:r},l,{children:n}))})]})},Qs.Separator=()=>e.jsx(lc,{});const tc=({theme:e,width:t,maxHeight:n,zIndex:r})=>({fontFamily:null==e?void 0:e.font.family.default,fontSize:null==e?void 0:e.font.size.md,width:t||"max-content",maxHeight:n,backgroundColor:null==e?void 0:e.options.background,borderRadius:4,boxShadow:null==e?void 0:e.elevation3,zIndex:r,boxSizing:"border-box",overflowY:"auto"}),nc={shouldForwardProp:e=>Js(e,["maxHeight","zIndex"])},rc=W(As,nc)(tc,(({theme:{options:e}})=>({"& > span > .menu-arrow":{fill:e.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}))),oc=W(Is,nc)(tc),ic=({theme:e,color:t,accented:n,disabled:r,contentPosition:o})=>{const i="start"===o||"end"===o?`flex-${o}`:o,a=n?null==e?void 0:e.optionItem.color.accent:null==e?void 0:e.optionItem.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",justifyContent:i,color:t||a,cursor:r?"inherit":"pointer",backgroundColor:null==e?void 0:e.optionItem.background.inactive,"&[data-highlighted]":{backgroundColor:null==e?void 0:e.optionItem.background.active},"&[data-disabled]":{color:null==e?void 0:e.scale4},"&:focus":{outline:"none",backgroundColor:null==e?void 0:e.optionItem.background.active}}},ac={shouldForwardProp:e=>Js(e,["selected","noSelect","contentPosition","color","accented"])},sc=W(Ts,ac)(ic),cc=W(Ls,ac)(ic),lc=W(Ms)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),uc=W.div({display:"inline-flex"}),fc=W.div({marginLeft:"auto",width:16,height:16}),dc=W.div({position:"absolute",right:8}),pc=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(hc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(vc,{children:e.jsx(fn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},hc=W.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),cn,ln),gc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),vc=W.div({animation:`${gc} 1s linear infinite`,width:"max-content",height:"max-content"}),yc=({size:t})=>e.jsx(mc,{className:"button-loader",children:e.jsx(pc,{size:t})}),mc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),bc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(wc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},wc=W.div((({width:e})=>({display:"inline-flex",width:e})),cn),xc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(Sc,Object.assign({options:i},a,{children:s})):e.jsx(Cc,Object.assign({},a,{children:s}))};xc.Group=bc;const Cc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(_c,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(fn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(yc,{size:k})]}))},Sc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(Oc,{children:e.jsxs(bc,{width:_?void 0:O,children:[e.jsx(Cc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(kc,{children:r})})),e.jsx(Qs,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(Cc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},_c=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?ir:sr,i="dark"===e?sr:ir;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),cn),Oc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),kc=W.div({marginRight:8}),Ec=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Ac,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},jc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Ac=W.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":jc(e,o||i),"&::-moz-range-thumb":jc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),cn),Tc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(Mc,Object.assign({width:a},b,{children:[e.jsx(xc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Pc,{alignDataTop:"top"===s,children:[!B&&e.jsx(Ec,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(Dc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Lc,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Lc,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),Mc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),cn),Pc=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Dc=W.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Lc=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Ic={},Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.defaultOptions=void 0,Rc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.getLocales=Nc.getFractionDigits=Nc.roundTo=Nc.parseValue=void 0,Nc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Nc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Nc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Nc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.millify=void 0;const Bc=Rc,Fc=Nc,zc=1e3;function*Hc(e){let t=zc;for(;;){const n=e/t;if(n<1)return;yield n,t*=zc}}function Vc(e,t){var n,r;const o=t?{...Bc.defaultOptions,...t}:Bc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Fc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Hc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Fc.roundTo(i,o.precision);for(const e of Hc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Fc.getLocales(),{minimumFractionDigits:Fc.getFractionDigits(c)})}${f}${u}`}Ic.millify=Vc;var Kc=Ic.default=Vc;function $c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Uc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$c(e))&&(r&&(r+=" "),r+=t);return r}var Wc=Array.isArray,Zc="object"==typeof st&&st&&st.Object===Object&&st,qc=Zc,Gc="object"==typeof self&&self&&self.Object===Object&&self,Yc=qc||Gc||Function("return this")(),Xc=Yc.Symbol,Jc=Xc,Qc=Object.prototype,el=Qc.hasOwnProperty,tl=Qc.toString,nl=Jc?Jc.toStringTag:void 0;var rl=function(e){var t=el.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch(e){}var o=tl.call(e);return r&&(t?e[nl]=n:delete e[nl]),o},ol=Object.prototype.toString;var il=rl,al=function(e){return ol.call(e)},sl=Xc?Xc.toStringTag:void 0;var cl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sl&&sl in Object(e)?il(e):al(e)};var ll=function(e){return null!=e&&"object"==typeof e},ul=cl,fl=ll;var dl=function(e){return"symbol"==typeof e||fl(e)&&"[object Symbol]"==ul(e)},pl=Wc,hl=dl,gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;var yl=function(e,t){if(pl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hl(e))||(vl.test(e)||!gl.test(e)||null!=t&&e in Object(t))};var ml=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},bl=ct(ml),wl=cl,xl=ml;var Cl,Sl=function(e){if(!xl(e))return!1;var t=wl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_l=ct(Sl),Ol=Yc["__core-js_shared__"],kl=(Cl=/[^.]+$/.exec(Ol&&Ol.keys&&Ol.keys.IE_PROTO||""))?"Symbol(src)_1."+Cl:"";var El=function(e){return!!kl&&kl in e},jl=Function.prototype.toString;var Al=function(e){if(null!=e){try{return jl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tl=Sl,Ml=El,Pl=ml,Dl=Al,Ll=/^\[object .+?Constructor\]$/,Il=Function.prototype,Rl=Object.prototype,Nl=Il.toString,Bl=Rl.hasOwnProperty,Fl=RegExp("^"+Nl.call(Bl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zl=function(e,t){return null==e?void 0:e[t]},Hl=function(e){return!(!Pl(e)||Ml(e))&&(Tl(e)?Fl:Ll).test(Dl(e))},Vl=zl;var Kl=function(e,t){var n=Vl(e,t);return Hl(n)?n:void 0},$l=Kl(Object,"create"),Ul=$l;var Wl=function(){this.__data__=Ul?Ul(null):{},this.size=0};var Zl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ql=$l,Gl=Object.prototype.hasOwnProperty;var Yl=function(e){var t=this.__data__;if(ql){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gl.call(t,e)?t[e]:void 0},Xl=$l,Jl=Object.prototype.hasOwnProperty;var Ql=$l;var eu=Wl,tu=Zl,nu=Yl,ru=function(e){var t=this.__data__;return Xl?void 0!==t[e]:Jl.call(t,e)},ou=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ql&&void 0===t?"__lodash_hash_undefined__":t,this};function iu(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])}}iu.prototype.clear=eu,iu.prototype.delete=tu,iu.prototype.get=nu,iu.prototype.has=ru,iu.prototype.set=ou;var au=iu;var su=function(){this.__data__=[],this.size=0};var cu=function(e,t){return e===t||e!=e&&t!=t},lu=cu;var uu=function(e,t){for(var n=e.length;n--;)if(lu(e[n][0],t))return n;return-1},fu=uu,du=Array.prototype.splice;var pu=function(e){var t=this.__data__,n=fu(t,e);return!(n<0)&&(n==t.length-1?t.pop():du.call(t,n,1),--this.size,!0)},hu=uu;var gu=function(e){var t=this.__data__,n=hu(t,e);return n<0?void 0:t[n][1]},vu=uu;var yu=uu;var mu=function(e,t){var n=this.__data__,r=yu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},bu=su,wu=pu,xu=gu,Cu=function(e){return vu(this.__data__,e)>-1},Su=mu;function _u(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])}}_u.prototype.clear=bu,_u.prototype.delete=wu,_u.prototype.get=xu,_u.prototype.has=Cu,_u.prototype.set=Su;var Ou=_u,ku=Kl(Yc,"Map"),Eu=au,ju=Ou,Au=ku;var Tu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mu=function(e,t){var n=e.__data__;return Tu(t)?n["string"==typeof t?"string":"hash"]:n.map},Pu=Mu;var Du=Mu;var Lu=Mu;var Iu=Mu;var Ru=function(e,t){var n=Iu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nu=function(){this.size=0,this.__data__={hash:new Eu,map:new(Au||ju),string:new Eu}},Bu=function(e){var t=Pu(this,e).delete(e);return this.size-=t?1:0,t},Fu=function(e){return Du(this,e).get(e)},zu=function(e){return Lu(this,e).has(e)},Hu=Ru;function Vu(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])}}Vu.prototype.clear=Nu,Vu.prototype.delete=Bu,Vu.prototype.get=Fu,Vu.prototype.has=zu,Vu.prototype.set=Hu;var Ku=Vu,$u=Ku;function Uu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Uu.Cache||$u),n}Uu.Cache=$u;var Wu=Uu,Zu=ct(Wu),qu=Wu;var Gu=function(e){var t=qu(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/\\(\\)?/g,Ju=Gu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yu,(function(e,n,r,o){t.push(r?o.replace(Xu,"$1"):n||e)})),t})),Qu=Ju;var ef=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},tf=ef,nf=Wc,rf=dl,of=Xc?Xc.prototype:void 0,af=of?of.toString:void 0;var sf=function e(t){if("string"==typeof t)return t;if(nf(t))return tf(t,e)+"";if(rf(t))return af?af.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},cf=sf;var lf=function(e){return null==e?"":cf(e)},uf=Wc,ff=yl,df=Qu,pf=lf;var hf=function(e,t){return uf(e)?e:ff(e,t)?[e]:df(pf(e))},gf=dl;var vf=function(e){if("string"==typeof e||gf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},yf=hf,mf=vf;var bf=function(e,t){for(var n=0,r=(t=yf(t,e)).length;null!=e&&n<r;)e=e[mf(t[n++])];return n&&n==r?e:void 0},wf=bf;var xf=function(e,t,n){var r=null==e?void 0:wf(e,t);return void 0===r?n:r},Cf=ct(xf);var Sf=ct((function(e){return null==e})),_f=cl,Of=Wc,kf=ll;var Ef,jf=ct((function(e){return"string"==typeof e||!Of(e)&&kf(e)&&"[object String]"==_f(e)})),Af={exports:{}},Tf={};var Mf,Pf={};
|
|
18
|
+
*/"production"===process.env.NODE_ENV?Ns.exports=function(){if(Rs)return Bs;Rs=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Bs.ContextConsumer=s,Bs.ContextProvider=a,Bs.Element=t,Bs.ForwardRef=l,Bs.Fragment=r,Bs.Lazy=p,Bs.Memo=d,Bs.Portal=n,Bs.Profiler=i,Bs.StrictMode=o,Bs.Suspense=u,Bs.SuspenseList=f,Bs.isAsyncMode=function(){return!1},Bs.isConcurrentMode=function(){return!1},Bs.isContextConsumer=function(e){return g(e)===s},Bs.isContextProvider=function(e){return g(e)===a},Bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bs.isForwardRef=function(e){return g(e)===l},Bs.isFragment=function(e){return g(e)===r},Bs.isLazy=function(e){return g(e)===p},Bs.isMemo=function(e){return g(e)===d},Bs.isPortal=function(e){return g(e)===n},Bs.isProfiler=function(e){return g(e)===i},Bs.isStrictMode=function(e){return g(e)===o},Bs.isSuspense=function(e){return g(e)===u},Bs.isSuspenseList=function(e){return g(e)===f},Bs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Bs.typeOf=g,Bs}():Ns.exports=(Fs||(Fs=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;zs.ContextConsumer=v,zs.ContextProvider=y,zs.Element=m,zs.ForwardRef=b,zs.Fragment=w,zs.Lazy=x,zs.Memo=C,zs.Portal=S,zs.Profiler=_,zs.StrictMode=O,zs.Suspense=k,zs.SuspenseList=E,zs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g}()),zs);var Hs=Ns.exports;function Vs(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Hs.isFragment(o)?e.push.apply(e,Vs(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Ks=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx($s,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};Ks.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,section:f}=t,d=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(Us,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:f,noSelect:f||a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},d,{children:n}))};const $s=W.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Us=W.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Ws=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Zs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Gs,{children:n.header}),e.jsx(Ys,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),qs=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ws(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Ks.Item,{id:t.id,onClick:o,section:"section"===t.type,children:Zs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Vs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Vs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Gs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Ys=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Xs=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},Js=(e,t)=>!t.includes(e),Qs=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(ks,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(Es,{asChild:!0,children:e.jsx(uc,Object.assign({},b,{children:a}))}),e.jsx(js,{container:p,children:e.jsxs(rc,{id:o,maxHeight:d,width:f,zIndex:h,side:Xs(i).side,align:Xs(i).align,sideOffset:l,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>e.jsx(ec,Object.assign({},t,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Zs(t)}),t.id))),n,u&&e.jsx(Ps,{className:"menu-arrow"})]})})]})},ec=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(sc,Object.assign({id:null==r?void 0:r.toString(),disabled:o,onSelect:i},a,{children:n}))};Qs.Item=ec,Qs.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Ds,{children:[e.jsxs(cc,{disabled:a,children:[o,e.jsx(fc,{children:e.jsx(dc,{children:e.jsx(fn,{name:"chevron-right",size:"small",inheritColor:a})})})]}),e.jsx(js,{container:s,children:e.jsx(oc,Object.assign({sideOffset:2,alignOffset:-5,zIndex:i,id:r},l,{children:n}))})]})},Qs.Separator=()=>e.jsx(lc,{});const tc=({theme:e,width:t,maxHeight:n,zIndex:r})=>({fontFamily:null==e?void 0:e.font.family.default,fontSize:null==e?void 0:e.font.size.md,width:t||"max-content",maxHeight:n,backgroundColor:null==e?void 0:e.options.background,borderRadius:4,boxShadow:null==e?void 0:e.elevation3,zIndex:r,boxSizing:"border-box",overflowY:"auto"}),nc={shouldForwardProp:e=>Js(e,["maxHeight","zIndex"])},rc=W(As,nc)(tc,(({theme:{options:e}})=>({"& > span > .menu-arrow":{fill:e.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}))),oc=W(Is,nc)(tc),ic=({theme:e,color:t,accented:n,disabled:r,contentPosition:o})=>{const i="start"===o||"end"===o?`flex-${o}`:o,a=n?null==e?void 0:e.optionItem.color.accent:null==e?void 0:e.optionItem.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",justifyContent:i,color:t||a,cursor:r?"inherit":"pointer",backgroundColor:null==e?void 0:e.optionItem.background.inactive,"&[data-highlighted]":{backgroundColor:null==e?void 0:e.optionItem.background.active},"&[data-disabled]":{color:null==e?void 0:e.scale4},"&:focus":{outline:"none",backgroundColor:null==e?void 0:e.optionItem.background.active}}},ac={shouldForwardProp:e=>Js(e,["selected","noSelect","contentPosition","color","accented"])},sc=W(Ts,ac)(ic),cc=W(Ls,ac)(ic),lc=W(Ms)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),uc=W.div({display:"inline-flex"}),fc=W.div({marginLeft:"auto",width:16,height:16}),dc=W.div({position:"absolute",right:8}),pc=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(hc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(vc,{children:e.jsx(fn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},hc=W.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),cn,ln),gc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),vc=W.div({animation:`${gc} 1s linear infinite`,width:"max-content",height:"max-content"}),yc=({size:t})=>e.jsx(mc,{className:"button-loader",children:e.jsx(pc,{size:t})}),mc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),bc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(wc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},wc=W.div((({width:e})=>({display:"inline-flex",width:e})),cn),xc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(Sc,Object.assign({options:i},a,{children:s})):e.jsx(Cc,Object.assign({},a,{children:s}))};xc.Group=bc;const Cc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(_c,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(fn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(yc,{size:k})]}))},Sc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(Oc,{children:e.jsxs(bc,{width:_?void 0:O,children:[e.jsx(Cc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(kc,{children:r})})),e.jsx(Qs,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(Cc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},_c=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?ir:sr,i="dark"===e?sr:ir;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),cn),Oc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),kc=W.div({marginRight:8}),Ec=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Ac,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},jc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Ac=W.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":jc(e,o||i),"&::-moz-range-thumb":jc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),cn),Tc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(Mc,Object.assign({width:a},b,{children:[e.jsx(xc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Pc,{alignDataTop:"top"===s,children:[!B&&e.jsx(Ec,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(Dc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Lc,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Lc,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),Mc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),cn),Pc=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Dc=W.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Lc=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Ic={},Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.defaultOptions=void 0,Rc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.getLocales=Nc.getFractionDigits=Nc.roundTo=Nc.parseValue=void 0,Nc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Nc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Nc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Nc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.millify=void 0;const Bc=Rc,Fc=Nc,zc=1e3;function*Hc(e){let t=zc;for(;;){const n=e/t;if(n<1)return;yield n,t*=zc}}function Vc(e,t){var n,r;const o=t?{...Bc.defaultOptions,...t}:Bc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Fc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Hc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Fc.roundTo(i,o.precision);for(const e of Hc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Fc.getLocales(),{minimumFractionDigits:Fc.getFractionDigits(c)})}${f}${u}`}Ic.millify=Vc;var Kc=Ic.default=Vc;function $c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Uc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$c(e))&&(r&&(r+=" "),r+=t);return r}var Wc=Array.isArray,Zc="object"==typeof st&&st&&st.Object===Object&&st,qc=Zc,Gc="object"==typeof self&&self&&self.Object===Object&&self,Yc=qc||Gc||Function("return this")(),Xc=Yc.Symbol,Jc=Xc,Qc=Object.prototype,el=Qc.hasOwnProperty,tl=Qc.toString,nl=Jc?Jc.toStringTag:void 0;var rl=function(e){var t=el.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch(e){}var o=tl.call(e);return r&&(t?e[nl]=n:delete e[nl]),o},ol=Object.prototype.toString;var il=rl,al=function(e){return ol.call(e)},sl=Xc?Xc.toStringTag:void 0;var cl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sl&&sl in Object(e)?il(e):al(e)};var ll=function(e){return null!=e&&"object"==typeof e},ul=cl,fl=ll;var dl=function(e){return"symbol"==typeof e||fl(e)&&"[object Symbol]"==ul(e)},pl=Wc,hl=dl,gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;var yl=function(e,t){if(pl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hl(e))||(vl.test(e)||!gl.test(e)||null!=t&&e in Object(t))};var ml=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},bl=ct(ml),wl=cl,xl=ml;var Cl,Sl=function(e){if(!xl(e))return!1;var t=wl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_l=ct(Sl),Ol=Yc["__core-js_shared__"],kl=(Cl=/[^.]+$/.exec(Ol&&Ol.keys&&Ol.keys.IE_PROTO||""))?"Symbol(src)_1."+Cl:"";var El=function(e){return!!kl&&kl in e},jl=Function.prototype.toString;var Al=function(e){if(null!=e){try{return jl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tl=Sl,Ml=El,Pl=ml,Dl=Al,Ll=/^\[object .+?Constructor\]$/,Il=Function.prototype,Rl=Object.prototype,Nl=Il.toString,Bl=Rl.hasOwnProperty,Fl=RegExp("^"+Nl.call(Bl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zl=function(e,t){return null==e?void 0:e[t]},Hl=function(e){return!(!Pl(e)||Ml(e))&&(Tl(e)?Fl:Ll).test(Dl(e))},Vl=zl;var Kl=function(e,t){var n=Vl(e,t);return Hl(n)?n:void 0},$l=Kl(Object,"create"),Ul=$l;var Wl=function(){this.__data__=Ul?Ul(null):{},this.size=0};var Zl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ql=$l,Gl=Object.prototype.hasOwnProperty;var Yl=function(e){var t=this.__data__;if(ql){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gl.call(t,e)?t[e]:void 0},Xl=$l,Jl=Object.prototype.hasOwnProperty;var Ql=$l;var eu=Wl,tu=Zl,nu=Yl,ru=function(e){var t=this.__data__;return Xl?void 0!==t[e]:Jl.call(t,e)},ou=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ql&&void 0===t?"__lodash_hash_undefined__":t,this};function iu(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])}}iu.prototype.clear=eu,iu.prototype.delete=tu,iu.prototype.get=nu,iu.prototype.has=ru,iu.prototype.set=ou;var au=iu;var su=function(){this.__data__=[],this.size=0};var cu=function(e,t){return e===t||e!=e&&t!=t},lu=cu;var uu=function(e,t){for(var n=e.length;n--;)if(lu(e[n][0],t))return n;return-1},fu=uu,du=Array.prototype.splice;var pu=function(e){var t=this.__data__,n=fu(t,e);return!(n<0)&&(n==t.length-1?t.pop():du.call(t,n,1),--this.size,!0)},hu=uu;var gu=function(e){var t=this.__data__,n=hu(t,e);return n<0?void 0:t[n][1]},vu=uu;var yu=uu;var mu=function(e,t){var n=this.__data__,r=yu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},bu=su,wu=pu,xu=gu,Cu=function(e){return vu(this.__data__,e)>-1},Su=mu;function _u(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])}}_u.prototype.clear=bu,_u.prototype.delete=wu,_u.prototype.get=xu,_u.prototype.has=Cu,_u.prototype.set=Su;var Ou=_u,ku=Kl(Yc,"Map"),Eu=au,ju=Ou,Au=ku;var Tu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mu=function(e,t){var n=e.__data__;return Tu(t)?n["string"==typeof t?"string":"hash"]:n.map},Pu=Mu;var Du=Mu;var Lu=Mu;var Iu=Mu;var Ru=function(e,t){var n=Iu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nu=function(){this.size=0,this.__data__={hash:new Eu,map:new(Au||ju),string:new Eu}},Bu=function(e){var t=Pu(this,e).delete(e);return this.size-=t?1:0,t},Fu=function(e){return Du(this,e).get(e)},zu=function(e){return Lu(this,e).has(e)},Hu=Ru;function Vu(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])}}Vu.prototype.clear=Nu,Vu.prototype.delete=Bu,Vu.prototype.get=Fu,Vu.prototype.has=zu,Vu.prototype.set=Hu;var Ku=Vu,$u=Ku;function Uu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Uu.Cache||$u),n}Uu.Cache=$u;var Wu=Uu,Zu=ct(Wu),qu=Wu;var Gu=function(e){var t=qu(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/\\(\\)?/g,Ju=Gu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yu,(function(e,n,r,o){t.push(r?o.replace(Xu,"$1"):n||e)})),t})),Qu=Ju;var ef=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},tf=ef,nf=Wc,rf=dl,of=Xc?Xc.prototype:void 0,af=of?of.toString:void 0;var sf=function e(t){if("string"==typeof t)return t;if(nf(t))return tf(t,e)+"";if(rf(t))return af?af.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},cf=sf;var lf=function(e){return null==e?"":cf(e)},uf=Wc,ff=yl,df=Qu,pf=lf;var hf=function(e,t){return uf(e)?e:ff(e,t)?[e]:df(pf(e))},gf=dl;var vf=function(e){if("string"==typeof e||gf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},yf=hf,mf=vf;var bf=function(e,t){for(var n=0,r=(t=yf(t,e)).length;null!=e&&n<r;)e=e[mf(t[n++])];return n&&n==r?e:void 0},wf=bf;var xf=function(e,t,n){var r=null==e?void 0:wf(e,t);return void 0===r?n:r},Cf=ct(xf);var Sf=ct((function(e){return null==e})),_f=cl,Of=Wc,kf=ll;var Ef,jf=ct((function(e){return"string"==typeof e||!Of(e)&&kf(e)&&"[object String]"==_f(e)})),Af={exports:{}},Tf={};var Mf,Pf={};
|
|
19
19
|
/** @license React v16.13.1
|
|
20
20
|
* react-is.development.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/"production"===process.env.NODE_ENV?Af.exports=function(){if(Ef)return Tf;Ef=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return Tf.AsyncMode=c,Tf.ConcurrentMode=l,Tf.ContextConsumer=s,Tf.ContextProvider=a,Tf.Element=t,Tf.ForwardRef=u,Tf.Fragment=r,Tf.Lazy=h,Tf.Memo=p,Tf.Portal=n,Tf.Profiler=i,Tf.StrictMode=o,Tf.Suspense=f,Tf.isAsyncMode=function(e){return w(e)||b(e)===c},Tf.isConcurrentMode=w,Tf.isContextConsumer=function(e){return b(e)===s},Tf.isContextProvider=function(e){return b(e)===a},Tf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tf.isForwardRef=function(e){return b(e)===u},Tf.isFragment=function(e){return b(e)===r},Tf.isLazy=function(e){return b(e)===h},Tf.isMemo=function(e){return b(e)===p},Tf.isPortal=function(e){return b(e)===n},Tf.isProfiler=function(e){return b(e)===i},Tf.isStrictMode=function(e){return b(e)===o},Tf.isSuspense=function(e){return b(e)===f},Tf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Tf.typeOf=b,Tf}():Af.exports=(Mf||(Mf=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case c:case l:case r:case i:case o:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case u:case h:case p:case a:return v;default:return d}}case n:return d}}}var w=c,x=l,C=s,S=a,_=t,O=u,k=r,E=h,j=p,A=n,T=i,M=o,P=f,D=!1;function L(e){return b(e)===l}Pf.AsyncMode=w,Pf.ConcurrentMode=x,Pf.ContextConsumer=C,Pf.ContextProvider=S,Pf.Element=_,Pf.ForwardRef=O,Pf.Fragment=k,Pf.Lazy=E,Pf.Memo=j,Pf.Portal=A,Pf.Profiler=T,Pf.StrictMode=M,Pf.Suspense=P,Pf.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===c},Pf.isConcurrentMode=L,Pf.isContextConsumer=function(e){return b(e)===s},Pf.isContextProvider=function(e){return b(e)===a},Pf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pf.isForwardRef=function(e){return b(e)===u},Pf.isFragment=function(e){return b(e)===r},Pf.isLazy=function(e){return b(e)===h},Pf.isMemo=function(e){return b(e)===p},Pf.isPortal=function(e){return b(e)===n},Pf.isProfiler=function(e){return b(e)===i},Pf.isStrictMode=function(e){return b(e)===o},Pf.isSuspense=function(e){return b(e)===f},Pf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Pf.typeOf=b}()),Pf);var Df=Af.exports,Lf=cl,If=ll;var Rf=function(e){return"number"==typeof e||If(e)&&"[object Number]"==Lf(e)},Nf=ct(Rf),Bf=Rf;var Ff=ct((function(e){return Bf(e)&&e!=+e})),zf=function(e){return 0===e?0:e>0?1:-1},Hf=function(e){return jf(e)&&e.indexOf("%")===e.length-1},Vf=function(e){return Nf(e)&&!Ff(e)},Kf=function(e){return Vf(e)||jf(e)},$f=0,Uf=function(e){var t=++$f;return"".concat(e||"").concat(t)},Wf=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Vf(e)&&!jf(e))return r;if(Hf(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Ff(n)&&(n=r),o&&n>t&&(n=t),n},Zf=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},qf=function(e,t){return Vf(e)&&Vf(t)?function(n){return e+n*(t-e)}:function(){return t}};function Gf(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Cf(e,t))===n})):null}function Yf(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Xf(e){return Xf="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},Xf(e)}var Jf=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Qf=["points","pathLength"],ed={svg:["viewBox","children"],polygon:Qf,polyline:Qf},td=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],nd=function(e,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(t.isValidElement(e)&&(r=e.props),!bl(r))return null;var o={};return Object.keys(r).forEach((function(e){td.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},rd=function(e,t,n){if(!bl(e)||"object"!==Xf(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];td.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},od=["children"],id=["children"];function ad(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sd(e){return sd="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},sd(e)}var cd={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ld=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},ud=null,fd=null,dd=function e(n){if(n===ud&&Array.isArray(fd))return fd;var r=[];return t.Children.forEach(n,(function(t){Sf(t)||(Df.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),fd=r,ud=n,r};function pd(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return ld(e)})):[ld(t)],dd(e).forEach((function(e){var t=Cf(e,"type.displayName")||Cf(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function hd(e,t){var n=pd(e,t);return n&&n[0]}var gd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Vf(n)||n<=0||!Vf(r)||r<=0)},vd=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],yd=function(e,n,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(t.isValidElement(e)&&(o=e.props),!bl(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,n,r){var o,i=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!_l(e)&&(r&&i.includes(t)||Jf.includes(t))||n&&td.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,n,r)&&(i[e]=o[e])})),i},md=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return bd(Array.isArray(n)?n[0]:n,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!bd(a,s))return!1}return!0},bd=function(e,t){if(Sf(e)&&Sf(t))return!0;if(!Sf(e)&&!Sf(t)){var n=e.props||{},r=n.children,o=ad(n,od),i=t.props||{},a=i.children,s=ad(i,id);return r&&a?Yf(o,s)&&md(r,a):!r&&!a&&Yf(o,s)}return!1},wd=function(e,t){var n=[],r={};return dd(e).forEach((function(e,o){if(function(e){return e&&e.type&&jf(e.type)&&vd.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=ld(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(e,i,o);n.push(l),r[i]=!0}}})),n},xd=["children","width","height","viewBox","className","style","title","desc"];function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cd.apply(this,arguments)}function Sd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _d(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,s=e.style,c=e.title,l=e.desc,u=Sd(e,xd),f=i||{width:r,height:o,x:0,y:0},d=Uc("recharts-surface",a);return t.createElement("svg",Cd({},yd(u,!0,"svg"),{className:d,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,c),t.createElement("desc",null,l),n)}var Od=["children","className"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function Ed(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jd=t.forwardRef((function(e,n){var r=e.children,o=e.className,i=Ed(e,Od),a=Uc("recharts-layer",o);return t.createElement("g",kd({className:a},yd(i,!0),{ref:n}),r)})),Ad="production"!==process.env.NODE_ENV,Td=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(Ad&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var Md=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},Pd=Md;var Dd=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Pd(e,t,n)},Ld=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Id=function(e){return Ld.test(e)};var Rd=function(e){return e.split("")},Nd="\\ud800-\\udfff",Bd="["+Nd+"]",Fd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",zd="\\ud83c[\\udffb-\\udfff]",Hd="[^"+Nd+"]",Vd="(?:\\ud83c[\\udde6-\\uddff]){2}",Kd="[\\ud800-\\udbff][\\udc00-\\udfff]",$d="(?:"+Fd+"|"+zd+")"+"?",Ud="[\\ufe0e\\ufe0f]?",Wd=Ud+$d+("(?:\\u200d(?:"+[Hd,Vd,Kd].join("|")+")"+Ud+$d+")*"),Zd="(?:"+[Hd+Fd+"?",Fd,Vd,Kd,Bd].join("|")+")",qd=RegExp(zd+"(?="+zd+")|"+Zd+Wd,"g");var Gd=function(e){return e.match(qd)||[]},Yd=Rd,Xd=Id,Jd=Gd;var Qd=function(e){return Xd(e)?Jd(e):Yd(e)},ep=Dd,tp=Id,np=Qd,rp=lf;var op=function(e){return function(t){t=rp(t);var n=tp(t)?np(t):void 0,r=n?n[0]:t.charAt(0),o=n?ep(n,1).join(""):t.slice(1);return r[e]()+o}},ip=ct(op("toUpperCase"));function ap(e){return function(){return e}}const sp=Math.cos,cp=Math.sin,lp=Math.sqrt,up=Math.PI,fp=2*up,dp=Math.PI,pp=2*dp,hp=1e-6,gp=pp-hp;function vp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class yp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?vp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vp;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,c=r-t,l=i-e,u=a-t,f=l*l+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>hp)if(Math.abs(u*s-c*l)>hp&&o){let d=n-i,p=r-a,h=s*s+c*c,g=d*d+p*p,v=Math.sqrt(h),y=Math.sqrt(f),m=o*Math.tan((dp-Math.acos((h+f-g)/(2*v*y)))/2),b=m/y,w=m/v;Math.abs(b-1)>hp&&this._append`L${e+b*l},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*d>l*p)},${this._x1=e+w*s},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),c=e+a,l=t+s,u=1^i,f=i?r-o:o-r;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>hp||Math.abs(this._y1-l)>hp)&&this._append`L${c},${l}`,n&&(f<0&&(f=f%pp+pp),f>gp?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:f>hp&&this._append`A${n},${n},0,${+(f>=dp)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function mp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new yp(t)}function bp(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function wp(e){this._context=e}function xp(e){return new wp(e)}function Cp(e){return e[0]}function Sp(e){return e[1]}function _p(e,t){var n=ap(!0),r=null,o=xp,i=null,a=mp(s);function s(s){var c,l,u,f=(s=bp(s)).length,d=!1;for(null==r&&(i=o(u=a())),c=0;c<=f;++c)!(c<f&&n(l=s[c],c,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,s),+t(l,c,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Cp:ap(e),t="function"==typeof t?t:void 0===t?Sp:ap(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:ap(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function Op(e,t,n){var r=null,o=ap(!0),i=null,a=xp,s=null,c=mp(l);function l(l){var u,f,d,p,h,g=(l=bp(l)).length,v=!1,y=new Array(g),m=new Array(g);for(null==i&&(s=a(h=c())),u=0;u<=g;++u){if(!(u<g&&o(p=l[u],u,l))===v)if(v=!v)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(y[d],m[d]);s.lineEnd(),s.areaEnd()}v&&(y[u]=+e(p,u,l),m[u]=+t(p,u,l),s.point(r?+r(p,u,l):y[u],n?+n(p,u,l):m[u]))}if(h)return s=null,h+""||null}function u(){return _p().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Cp:ap(+e),t="function"==typeof t?t:ap(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Sp:ap(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ap(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ap(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:ap(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class kp{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var Ep={draw(e,t){const n=lp(t/up);e.moveTo(n,0),e.arc(0,0,n,0,fp)}},jp={draw(e,t){const n=lp(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const Ap=lp(1/3),Tp=2*Ap;var Mp={draw(e,t){const n=lp(t/Tp),r=n*Ap;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Pp={draw(e,t){const n=lp(t),r=-n/2;e.rect(r,r,n,n)}};const Dp=cp(up/10)/cp(7*up/10),Lp=cp(fp/10)*Dp,Ip=-sp(fp/10)*Dp;var Rp={draw(e,t){const n=lp(.8908130915292852*t),r=Lp*n,o=Ip*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=fp*t/5,a=sp(i),s=cp(i);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()}};const Np=lp(3);var Bp={draw(e,t){const n=-lp(t/(3*Np));e.moveTo(0,2*n),e.lineTo(-Np*n,-n),e.lineTo(Np*n,-n),e.closePath()}};const Fp=-.5,zp=lp(3)/2,Hp=1/lp(12),Vp=3*(Hp/2+1);var Kp={draw(e,t){const n=lp(t/Vp),r=n/2,o=n*Hp,i=r,a=n*Hp+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(Fp*r-zp*o,zp*r+Fp*o),e.lineTo(Fp*i-zp*a,zp*i+Fp*a),e.lineTo(Fp*s-zp*c,zp*s+Fp*c),e.lineTo(Fp*r+zp*o,Fp*o-zp*r),e.lineTo(Fp*i+zp*a,Fp*a-zp*i),e.lineTo(Fp*s+zp*c,Fp*c-zp*s),e.closePath()}};function $p(){}function Up(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Wp(e){this._context=e}function Zp(e){this._context=e}function qp(e){this._context=e}function Gp(e){this._context=e}function Yp(e){return e<0?-1:1}function Xp(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Yp(i)+Yp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Jp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qp(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function eh(e){this._context=e}function th(e){this._context=new nh(e)}function nh(e){this._context=e}function rh(e){this._context=e}function oh(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function ih(e,t){this._context=e,this._t=t}function ah(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function sh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ch(e,t){return e[t]}function lh(e){const t=[];return t.key=e,t}function uh(e){return uh="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},uh(e)}Wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Up(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Zp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Gp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qp(this,this._t0,Jp(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qp(this,Jp(this,n=Xp(this,e,t)),n);break;default:Qp(this,this._t0,n=Xp(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(th.prototype=Object.create(eh.prototype)).point=function(e,t){eh.prototype.point.call(this,t,e)},nh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=oh(e),o=oh(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},ih.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var fh=["type","size","sizeType"];function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(this,arguments)}function ph(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){gh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gh(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uh(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yh={symbolCircle:Ep,symbolCross:jp,symbolDiamond:Mp,symbolSquare:Pp,symbolStar:Rp,symbolTriangle:Bp,symbolWye:Kp},mh=Math.PI/180,bh=function(e){var n,r,o=e.type,i=void 0===o?"circle":o,a=e.size,s=void 0===a?64:a,c=e.sizeType,l=void 0===c?"area":c,u=hh(hh({},vh(e,fh)),{},{type:i,size:s,sizeType:l}),f=u.className,d=u.cx,p=u.cy,h=yd(u,!0);return d===+d&&p===+p&&s===+s?t.createElement("path",dh({},h,{className:Uc("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:(n=function(e){var t="symbol".concat(ip(e));return yh[t]||Ep}(i),r=function(e,t){let n=null,r=mp(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ap(e||Ep),t="function"==typeof t?t:ap(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ap(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(n).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*mh;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(s,l,i)),r())})):null};function wh(e){return wh="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},wh(e)}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}function Ch(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 Sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ah(r.key),r)}}function _h(e,t,n){return t=kh(t),function(e,t){if(t&&("object"===wh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}function jh(e,t,n){return(t=Ah(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e){var t=function(e,t){if("object"!=wh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wh(t)?t:String(t)}bh.registerSymbol=function(e,t){yh["symbol".concat(ip(e))]=t};var Th=32,Mh=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),_h(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eh(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=Th/6,i=Th/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Th,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Th,"M").concat(2*i,",").concat(r,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Th,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.legendIcon,t.cloneElement(e.legendIcon,s)}return t.createElement(bh,{fill:a,cx:r,cy:r,size:Th,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,s=n.inactiveColor,c={x:0,y:0,width:Th,height:Th},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i=n.formatter||a,f=Uc(jh(jh({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",n.inactive));if("none"===n.type)return null;var d=_l(n.value)?null:n.value;Td(!_l(n.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=n.inactive?s:n.color;return t.createElement("li",xh({className:f,style:l,key:"legend-item-".concat(r)},rd(e.props,n,r)),t.createElement(_d,{width:o,height:o,viewBox:c,style:u},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(d,n,r):d))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Sh(r.prototype,o),i&&Sh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();jh(Mh,"displayName","Legend"),jh(Mh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ph=Ou;var Dh=Ou,Lh=ku,Ih=Ku;var Rh=Ou,Nh=function(){this.__data__=new Ph,this.size=0},Bh=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Fh=function(e){return this.__data__.get(e)},zh=function(e){return this.__data__.has(e)},Hh=function(e,t){var n=this.__data__;if(n instanceof Dh){var r=n.__data__;if(!Lh||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ih(r)}return n.set(e,t),this.size=n.size,this};function Vh(e){var t=this.__data__=new Rh(e);this.size=t.size}Vh.prototype.clear=Nh,Vh.prototype.delete=Bh,Vh.prototype.get=Fh,Vh.prototype.has=zh,Vh.prototype.set=Hh;var Kh=Vh;var $h=Ku,Uh=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Wh=function(e){return this.__data__.has(e)};function Zh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $h;++t<n;)this.add(e[t])}Zh.prototype.add=Zh.prototype.push=Uh,Zh.prototype.has=Wh;var qh=Zh;var Gh=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Yh=function(e,t){return e.has(t)},Xh=qh,Jh=Gh,Qh=Yh;var eg=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new Xh:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var v=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Jh(t,(function(e,t){if(!Qh(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var tg=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var ng=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rg=Yc.Uint8Array,og=cu,ig=eg,ag=tg,sg=ng,cg=Xc?Xc.prototype:void 0,lg=cg?cg.valueOf:void 0;var ug=function(e,t,n,r,o,i,a){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 rg(e),new rg(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return og(+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 s=ag;case"[object Set]":var c=1&r;if(s||(s=sg),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=ig(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(lg)return lg.call(e)==lg.call(t)}return!1};var fg=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},dg=fg,pg=Wc;var hg=function(e,t,n){var r=t(e);return pg(e)?r:dg(r,n(e))};var gg=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var vg=gg,yg=function(){return[]},mg=Object.prototype.propertyIsEnumerable,bg=Object.getOwnPropertySymbols,wg=bg?function(e){return null==e?[]:(e=Object(e),vg(bg(e),(function(t){return mg.call(e,t)})))}:yg,xg=wg;var Cg=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Sg=cl,_g=ll;var Og=function(e){return _g(e)&&"[object Arguments]"==Sg(e)},kg=ll,Eg=Object.prototype,jg=Eg.hasOwnProperty,Ag=Eg.propertyIsEnumerable,Tg=Og(function(){return arguments}())?Og:function(e){return kg(e)&&jg.call(e,"callee")&&!Ag.call(e,"callee")},Mg={exports:{}};var Pg=function(){return!1};!function(e,t){var n=Yc,r=Pg,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Mg,Mg.exports);var Dg=Mg.exports,Lg=/^(?:0|[1-9]\d*)$/;var Ig=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Lg.test(e))&&e>-1&&e%1==0&&e<t};var Rg=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ng=cl,Bg=Rg,Fg=ll,zg={};zg["[object Float32Array]"]=zg["[object Float64Array]"]=zg["[object Int8Array]"]=zg["[object Int16Array]"]=zg["[object Int32Array]"]=zg["[object Uint8Array]"]=zg["[object Uint8ClampedArray]"]=zg["[object Uint16Array]"]=zg["[object Uint32Array]"]=!0,zg["[object Arguments]"]=zg["[object Array]"]=zg["[object ArrayBuffer]"]=zg["[object Boolean]"]=zg["[object DataView]"]=zg["[object Date]"]=zg["[object Error]"]=zg["[object Function]"]=zg["[object Map]"]=zg["[object Number]"]=zg["[object Object]"]=zg["[object RegExp]"]=zg["[object Set]"]=zg["[object String]"]=zg["[object WeakMap]"]=!1;var Hg=function(e){return Fg(e)&&Bg(e.length)&&!!zg[Ng(e)]};var Vg=function(e){return function(t){return e(t)}},Kg={exports:{}};!function(e,t){var n=Zc,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Kg,Kg.exports);var $g=Kg.exports,Ug=Hg,Wg=Vg,Zg=$g&&$g.isTypedArray,qg=Zg?Wg(Zg):Ug,Gg=Cg,Yg=Tg,Xg=Wc,Jg=Dg,Qg=Ig,ev=qg,tv=Object.prototype.hasOwnProperty;var nv=function(e,t){var n=Xg(e),r=!n&&Yg(e),o=!n&&!r&&Jg(e),i=!n&&!r&&!o&&ev(e),a=n||r||o||i,s=a?Gg(e.length,String):[],c=s.length;for(var l in e)!t&&!tv.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Qg(l,c))||s.push(l);return s},rv=Object.prototype;var ov=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rv)};var iv=function(e,t){return function(n){return e(t(n))}},av=iv(Object.keys,Object),sv=ov,cv=av,lv=Object.prototype.hasOwnProperty;var uv=function(e){if(!sv(e))return cv(e);var t=[];for(var n in Object(e))lv.call(e,n)&&"constructor"!=n&&t.push(n);return t},fv=Sl,dv=Rg;var pv=function(e){return null!=e&&dv(e.length)&&!fv(e)},hv=nv,gv=uv,vv=pv;var yv=function(e){return vv(e)?hv(e):gv(e)},mv=hg,bv=xg,wv=yv;var xv=function(e){return mv(e,wv,bv)},Cv=xv,Sv=Object.prototype.hasOwnProperty;var _v=function(e,t,n,r,o,i){var a=1&n,s=Cv(e),c=s.length;if(c!=Cv(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:Sv.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<c;){var g=e[u=s[l]],v=t[u];if(r)var y=a?r(v,g,u,t,e,i):r(g,v,u,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},Ov=Kl(Yc,"DataView"),kv=Kl(Yc,"Promise"),Ev=Kl(Yc,"Set"),jv=Ov,Av=ku,Tv=kv,Mv=Ev,Pv=Kl(Yc,"WeakMap"),Dv=cl,Lv=Al,Iv="[object Map]",Rv="[object Promise]",Nv="[object Set]",Bv="[object WeakMap]",Fv="[object DataView]",zv=Lv(jv),Hv=Lv(Av),Vv=Lv(Tv),Kv=Lv(Mv),$v=Lv(Pv),Uv=Dv;(jv&&Uv(new jv(new ArrayBuffer(1)))!=Fv||Av&&Uv(new Av)!=Iv||Tv&&Uv(Tv.resolve())!=Rv||Mv&&Uv(new Mv)!=Nv||Pv&&Uv(new Pv)!=Bv)&&(Uv=function(e){var t=Dv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Lv(n):"";if(r)switch(r){case zv:return Fv;case Hv:return Iv;case Vv:return Rv;case Kv:return Nv;case $v:return Bv}return t});var Wv=Kh,Zv=eg,qv=ug,Gv=_v,Yv=Uv,Xv=Wc,Jv=Dg,Qv=qg,ey="[object Arguments]",ty="[object Array]",ny="[object Object]",ry=Object.prototype.hasOwnProperty;var oy=function(e,t,n,r,o,i){var a=Xv(e),s=Xv(t),c=a?ty:Yv(e),l=s?ty:Yv(t),u=(c=c==ey?ny:c)==ny,f=(l=l==ey?ny:l)==ny,d=c==l;if(d&&Jv(e)){if(!Jv(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new Wv),a||Qv(e)?Zv(e,t,n,r,o,i):qv(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&ry.call(e,"__wrapped__"),h=f&&ry.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Wv),o(g,v,n,r,i)}}return!!d&&(i||(i=new Wv),Gv(e,t,n,r,o,i))},iy=oy,ay=ll;var sy=function e(t,n,r,o,i){return t===n||(null==t||null==n||!ay(t)&&!ay(n)?t!=t&&n!=n:iy(t,n,r,o,e,i))},cy=Kh,ly=sy;var uy=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var f=new cy;if(r)var d=r(l,u,c,e,t,f);if(!(void 0===d?ly(u,l,3,r,f):d))return!1}}return!0},fy=ml;var dy=function(e){return e==e&&!fy(e)},py=dy,hy=yv;var gy=function(e){for(var t=hy(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,py(o)]}return t};var vy=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},yy=uy,my=gy,by=vy;var wy=function(e){var t=my(e);return 1==t.length&&t[0][2]?by(t[0][0],t[0][1]):function(n){return n===e||yy(n,e,t)}};var xy=function(e,t){return null!=e&&t in Object(e)},Cy=hf,Sy=Tg,_y=Wc,Oy=Ig,ky=Rg,Ey=vf;var jy=function(e,t,n){for(var r=-1,o=(t=Cy(t,e)).length,i=!1;++r<o;){var a=Ey(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ky(o)&&Oy(a,o)&&(_y(e)||Sy(e))},Ay=xy,Ty=jy;var My=function(e,t){return null!=e&&Ty(e,t,Ay)},Py=sy,Dy=xf,Ly=My,Iy=yl,Ry=dy,Ny=vy,By=vf;var Fy=function(e,t){return Iy(e)&&Ry(t)?Ny(By(e),t):function(n){var r=Dy(n,e);return void 0===r&&r===t?Ly(n,e):Py(t,r,3)}};var zy=function(e){return e};var Hy=function(e){return function(t){return null==t?void 0:t[e]}},Vy=bf;var Ky=function(e){return function(t){return Vy(t,e)}},$y=Hy,Uy=Ky,Wy=yl,Zy=vf;var qy=wy,Gy=Fy,Yy=zy,Xy=Wc,Jy=function(e){return Wy(e)?$y(Zy(e)):Uy(e)};var Qy=function(e){return"function"==typeof e?e:null==e?Yy:"object"==typeof e?Xy(e)?Gy(e[0],e[1]):qy(e):Jy(e)};var em=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var tm=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},nm=em,rm=function(e){return e!=e},om=tm;var im=function(e,t,n){return t==t?om(e,t,n):nm(e,rm,n)},am=im;var sm=function(e,t){return!!(null==e?0:e.length)&&am(e,t,0)>-1};var cm=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var lm=Ev,um=function(){},fm=lm&&1/ng(new lm([,-0]))[1]==1/0?function(e){return new lm(e)}:um,dm=qh,pm=sm,hm=cm,gm=Yh,vm=fm,ym=ng;var mm=function(e,t,n){var r=-1,o=pm,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=hm;else if(i>=200){var l=t?null:vm(e);if(l)return ym(l);a=!1,o=gm,c=new dm}else c=t?[]:s;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else o(c,f,n)||(c!==s&&c.push(f),s.push(u))}return s},bm=Qy,wm=mm;var xm=function(e,t){return e&&e.length?wm(e,bm(t)):[]},Cm=ct(xm);function Sm(e,t,n){return!0===t?Cm(e,n):_l(t)?Cm(e,t):e}function _m(e){return _m="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},_m(e)}var Om=["ref"];function km(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 Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Im(r.key),r)}}function Am(e,t,n){return t=Mm(t),function(e,t){if(t&&("object"===_m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pm(e)}(e,Tm()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function Tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tm=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mm(e)}function Pm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dm(e,t){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dm(e,t)}function Lm(e,t,n){return(t=Im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e){var t=function(e,t){if("object"!=_m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_m(t)?t:String(t)}function Rm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nm(e){return e.value}var Bm=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Lm(Pm(e=Am(this,n,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dm(e,t)}(n,t.PureComponent),r=n,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Vf(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Em({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,c=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Em(Em({},t),n)}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,s=n.payloadUniqBy,c=n.payload,l=Em(Em({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if("function"==typeof e)return t.createElement(e,n);n.ref;var r=Rm(n,Om);return t.createElement(Mh,r)}(r,Em(Em({},this.props),{},{payload:Sm(c,s,Nm)})))}}])&&jm(r.prototype,o),i&&jm(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Lm(Bm,"displayName","Legend"),Lm(Bm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fm=Tg,zm=Wc,Hm=Xc?Xc.isConcatSpreadable:void 0;var Vm=fg,Km=function(e){return zm(e)||Fm(e)||!!(Hm&&e&&e[Hm])};var $m=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=Km),i||(i=[]);++a<s;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):Vm(i,c):o||(i[i.length]=c)}return i};var Um=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}},Wm=Um(),Zm=yv;var qm=function(e,t){return e&&Wm(e,t,Zm)},Gm=pv;var Ym=function(e,t){return function(n,r){if(null==n)return n;if(!Gm(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},Xm=Ym(qm),Jm=Xm,Qm=pv;var eb=function(e,t){var n=-1,r=Qm(e)?Array(e.length):[];return Jm(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var tb=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},nb=dl;var rb=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=nb(e),a=void 0!==t,s=null===t,c=t==t,l=nb(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0};var ob=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=rb(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index},ib=ef,ab=bf,sb=Qy,cb=eb,lb=tb,ub=Vg,fb=ob,db=zy,pb=Wc;var hb=function(e,t,n){t=t.length?ib(t,(function(e){return pb(e)?function(t){return ab(t,1===e.length?e[0]:e)}:e})):[db];var r=-1;t=ib(t,ub(sb));var o=cb(e,(function(e,n,o){return{criteria:ib(t,(function(t){return t(e)})),index:++r,value:e}}));return lb(o,(function(e,t){return fb(e,t,n)}))};var gb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},vb=gb,yb=Math.max;var mb=function(e,t,n){return t=yb(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=yb(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),vb(e,this,s)}};var bb=function(e){return function(){return e}},wb=Kl,xb=function(){try{var e=wb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cb=bb,Sb=xb,_b=Sb?function(e,t){return Sb(e,"toString",{configurable:!0,enumerable:!1,value:Cb(t),writable:!0})}:zy,Ob=_b,kb=Date.now;var Eb=function(e){var t=0,n=0;return function(){var r=kb(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ob),jb=zy,Ab=mb,Tb=Eb;var Mb=cu,Pb=pv,Db=Ig,Lb=ml;var Ib=function(e,t,n){if(!Lb(n))return!1;var r=typeof t;return!!("number"==r?Pb(n)&&Db(t,n.length):"string"==r&&t in n)&&Mb(n[t],e)},Rb=$m,Nb=hb,Bb=Ib,Fb=ct(function(e,t){return Tb(Ab(e,t,jb),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Bb(e,t[0],t[1])?t=[]:n>2&&Bb(t[0],t[1],t[2])&&(t=[t[0]]),Nb(e,Rb(t,1),[])})));function zb(e){return zb="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},zb(e)}function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hb.apply(this,arguments)}function Vb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(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 Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$b(Object(n),!0).forEach((function(t){Wb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zb(e){return Array.isArray(e)&&Kf(e[0])&&Kf(e[1])?e.join(" ~ "):e}var qb=function(e){var n=e.separator,r=void 0===n?" : ":n,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,s=void 0===a?{}:a,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,v=e.labelFormatter,y=e.accessibilityLayer,m=void 0!==y&&y,b=Ub({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Ub({margin:0},l),x=!Sf(g),C=x?g:"",S=Uc("recharts-default-tooltip",p),_=Uc("recharts-tooltip-label",h);x&&v&&null!=u&&(C=v(g,u));var O=m?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",Hb({className:S,style:b},O),t.createElement("p",{className:_,style:w},t.isValidElement(C)?C:"".concat(C)),function(){if(u&&u.length){var e=(d?Fb(u,d):u).map((function(e,n){if("none"===e.type)return null;var o=Ub({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s),i=e.formatter||f||Zb,a=e.value,c=e.name,l=a,d=c;if(i&&null!=l&&null!=d){var p=i(a,c,e,n,u);if(Array.isArray(p)){var h=Vb(p,2);l=h[0],d=h[1]}else l=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:o},Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Gb(e){return Gb="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},Gb(e)}function Yb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Gb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xb="recharts-tooltip-wrapper",Jb={visibility:"hidden"};function Qb(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Uc(Xb,Yb(Yb(Yb(Yb({},"".concat(Xb,"-right"),Vf(n)&&t&&Vf(t.x)&&n>=t.x),"".concat(Xb,"-left"),Vf(n)&&t&&Vf(t.x)&&n<t.x),"".concat(Xb,"-bottom"),Vf(r)&&t&&Vf(t.y)&&r>=t.y),"".concat(Xb,"-top"),Vf(r)&&t&&Vf(t.y)&&r<t.y))}function ew(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(i&&Vf(i[r]))return i[r];var u=n[r]-s-o,f=n[r]+o;return t[r]?a[r]?u:f:a[r]?u<c[r]?Math.max(f,c[r]):Math.max(u,c[r]):f+s>c[r]+l?Math.max(u,c[r]):Math.max(f,c[r])}function tw(e){return tw="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},tw(e)}function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ow(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fw(r.key),r)}}function iw(e,t,n){return t=sw(t),function(e,t){if(t&&("object"===tw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cw(e)}(e,aw()?Reflect.construct(t,n||[],sw(e).constructor):t.apply(e,n))}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aw=function(){return!!e})()}function sw(e){return sw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sw(e)}function cw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lw(e,t)}function uw(e,t,n){return(t=fw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fw(e){var t=function(e,t){if("object"!=tw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tw(t)?t:String(t)}var dw=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return uw(cw(e=iw(this,n,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),uw(cw(e),"lastBoundingBox",{width:-1,height:-1}),uw(cw(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lw(e,t)}(n,t.PureComponent),r=n,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.children,c=n.coordinate,l=n.hasPayload,u=n.isAnimationActive,f=n.offset,d=n.position,p=n.reverseDirection,h=n.useTranslate3d,g=n.viewBox,v=n.wrapperStyle,y=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,c=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=ew({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=ew({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:l}):Jb,cssClasses:Qb({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),m=y.cssClasses,b=y.cssProperties,w=rw(rw({transition:u&&r?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(t){e.wrapperNode=t}},s)}}],o&&ow(r.prototype,o),i&&ow(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),pw={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return pw[e]},set:function(e,t){if("string"==typeof e)pw[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){pw[t]=e[t]}))}}};function hw(e){return hw="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},hw(e)}function gw(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 vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(n),!0).forEach((function(t){Cw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sw(r.key),r)}}function mw(e,t,n){return t=ww(t),function(e,t){if(t&&("object"===hw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bw()?Reflect.construct(t,n||[],ww(e).constructor):t.apply(e,n))}function bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bw=function(){return!!e})()}function ww(e){return ww=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ww(e)}function xw(e,t){return xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xw(e,t)}function Cw(e,t,n){return(t=Sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e){var t=function(e,t){if("object"!=hw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hw(t)?t:String(t)}function _w(e){return e.dataKey}var Ow=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),mw(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xw(e,t)}(n,t.PureComponent),r=n,o=[{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.content,c=n.coordinate,l=n.filterNull,u=n.isAnimationActive,f=n.offset,d=n.payload,p=n.payloadUniqBy,h=n.position,g=n.reverseDirection,v=n.useTranslate3d,y=n.viewBox,m=n.wrapperStyle,b=null!=d?d:[];l&&b.length&&(b=Sm(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,_w));var w=b.length>0;return t.createElement(dw,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:u,active:r,coordinate:c,hasPayload:w,offset:f,position:h,reverseDirection:g,useTranslate3d:v,viewBox:y,wrapperStyle:m},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):"function"==typeof e?t.createElement(e,n):t.createElement(qb,n)}(s,vw(vw({},this.props),{},{payload:b})))}}],o&&yw(r.prototype,o),i&&yw(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Cw(Ow,"displayName","Tooltip"),Cw(Ow,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!pw.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var kw=Yc,Ew=/\s/;var jw=function(e){for(var t=e.length;t--&&Ew.test(e.charAt(t)););return t},Aw=jw,Tw=/^\s+/;var Mw=function(e){return e?e.slice(0,Aw(e)+1).replace(Tw,""):e},Pw=Mw,Dw=ml,Lw=dl,Iw=/^[-+]0x[0-9a-f]+$/i,Rw=/^0b[01]+$/i,Nw=/^0o[0-7]+$/i,Bw=parseInt;var Fw=function(e){if("number"==typeof e)return e;if(Lw(e))return NaN;if(Dw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pw(e);var n=Rw.test(e);return n||Nw.test(e)?Bw(e.slice(2),n?2:8):Iw.test(e)?NaN:+e},zw=ml,Hw=function(){return kw.Date.now()},Vw=Fw,Kw=Math.max,$w=Math.min;var Uw=function(e,t,n){var r,o,i,a,s,c,l=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=i}function g(){var e=Hw();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?$w(n,i-(e-l)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Hw(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(g,t),u?p(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Vw(t)||0,zw(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Kw(Vw(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(Hw())},y},Ww=Uw,Zw=ml;var qw=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Zw(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ww(e,t,{leading:r,maxWait:t,trailing:o})},Gw=ct(qw);function Yw(e){return Yw="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},Yw(e)}function Xw(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 Jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qw(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Yw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nx=t.forwardRef((function(e,n){var r=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,s=void 0===a?"100%":a,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,f=void 0===u?0:u,d=e.minHeight,p=e.maxHeight,h=e.children,g=e.debounce,v=void 0===g?0:g,y=e.id,m=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,C=t.useRef(null),S=t.useRef();S.current=b,t.useImperativeHandle(n,(function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})}));var _=ex(t.useState({containerWidth:i.width,containerHeight:i.height}),2),O=_[0],k=_[1],E=t.useCallback((function(e,t){k((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);t.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=S.current)||void 0===t||t.call(S,r,o)};v>0&&(e=Gw(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(C.current),function(){t.disconnect()}}),[E,v]);var j=t.useMemo((function(){var e=O.containerWidth,n=O.containerHeight;if(e<0||n<0)return null;Td(Hf(s)||Hf(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,l),Td(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=Hf(s)?e:s,i=Hf(l)?n:l;r&&r>0&&(o?i=o/r:i&&(o=i*r),p&&i>p&&(i=p)),Td(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,i,s,l,f,d,r);var a=!Array.isArray(h)&&Df.isElement(h)&&ld(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return Df.isElement(e)?t.cloneElement(e,Jw({width:o,height:i},a?{style:Jw({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[r,h,l,p,d,f,O,s]);return t.createElement("div",{id:y?"".concat(y):void 0,className:Uc("recharts-responsive-container",m),style:Jw(Jw({},x),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:C},j)})),rx=function(e){return null};function ox(e){return ox="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},ox(e)}function ix(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 ax(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(n),!0).forEach((function(t){sx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sx(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ox(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ox(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ox(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rx.displayName="Cell";var cx={widthCache:{},cacheCount:0},lx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ux="recharts_measurement_span";var fx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||pw.isSsr)return{width:0,height:0};var n,r=(n=ax({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(cx.widthCache[o])return cx.widthCache[o];try{var i=document.getElementById(ux);i||((i=document.createElement("span")).setAttribute("id",ux),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ax(ax({},lx),r);Object.assign(i.style,a),i.textContent="".concat(e);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return cx.widthCache[o]=c,++cx.cacheCount>2e3&&(cx.cacheCount=0,cx.widthCache={}),c}catch(e){return{width:0,height:0}}};function dx(e){return dx="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},dx(e)}function px(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vx(r.key),r)}}function vx(e){var t=function(e,t){if("object"!=dx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dx(t)?t:String(t)}var yx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,xx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Cx=Object.keys(xx),Sx="NaN";var _x=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||bx.test(n)||(this.num=NaN,this.unit=""),Cx.includes(n)&&(this.num=function(e,t){return e*xx[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=px(null!==(n=wx.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&gx(t.prototype,n),r&&gx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ox(e){if(e.includes(Sx))return Sx;for(var t=e;t.includes("*")||t.includes("/");){var n,r=px(null!==(n=yx.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=_x.parse(null!=o?o:""),c=_x.parse(null!=a?a:""),l="*"===i?s.multiply(c):s.divide(c);if(l.isNaN())return Sx;t=t.replace(yx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=px(null!==(u=mx.exec(t))&&void 0!==u?u:[],4),d=f[1],p=f[2],h=f[3],g=_x.parse(null!=d?d:""),v=_x.parse(null!=h?h:""),y="+"===p?g.add(v):g.subtract(v);if(y.isNaN())return Sx;t=t.replace(mx,y.toString())}return t}var kx=/\(([^()]*)\)/;function Ex(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=px(kx.exec(t),2)[1];t=t.replace(kx,Ox(n))}return t}(t),t=Ox(t)}function jx(e){var t=function(e){try{return Ex(e)}catch(e){return Sx}}(e.slice(5,-1));return t===Sx?"":t}var Ax=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Tx=["dx","dy","angle","className","breakAll"];function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(this,arguments)}function Px(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ix=/[ \f\n\r\t\v\u2028\u2029]+/,Rx=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Sf(t)||(o=n?t.toString().split(""):t.toString().split(Ix)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:fx(e,r).width}})),spaceWidth:n?0:fx(" ",r).width}}catch(e){return null}},Nx=function(e){return[{words:Sf(e)?[]:e.toString().split(Ix)}]},Bx=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!pw.isSsr){var s=Rx({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=Vf(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=Rx({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=Dx(h(m-1),2),w=b[0],x=b[1],C=Dx(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Nx(r)}return Nx(r)},Fx="#808080",zx=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.lineHeight,s=void 0===a?"1em":a,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,f=void 0!==u&&u,d=e.textAnchor,p=void 0===d?"start":d,h=e.verticalAnchor,g=void 0===h?"end":h,v=e.fill,y=void 0===v?Fx:v,m=Px(e,Ax),b=t.useMemo((function(){return Bx({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,C=m.angle,S=m.className,_=m.breakAll,O=Px(m,Tx);if(!Kf(r)||!Kf(i))return null;var k,E=r+(Vf(w)?w:0),j=i+(Vf(x)?x:0);switch(g){case"start":k=jx("calc(".concat(l,")"));break;case"middle":k=jx("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:k=jx("calc(".concat(b.length-1," * -").concat(s,")"))}var A=[];if(f){var T=b[0].width,M=m.width;A.push("scale(".concat((Vf(M)?M/T:1)/T,")"))}return C&&A.push("rotate(".concat(C,", ").concat(E,", ").concat(j,")")),A.length&&(O.transform=A.join(" ")),t.createElement("text",Mx({},yd(O,!0),{x:E,y:j,className:Uc("recharts-text",S),textAnchor:p,fill:y.includes("url")?Fx:y}),b.map((function(e,n){var r=e.words.join(_?"":" ");return t.createElement("tspan",{x:E,dy:0===n?k:s,key:r},r)})))};function Hx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kx(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Hx,n=(t,n)=>Hx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Hx||e===Vx?e:$x,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function $x(){return 0}function Ux(e){return null===e?NaN:+e}const Wx=Kx(Hx).right;Kx(Ux).center;class Zx extends Map{constructor(e,t=Gx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(qx(this,e))}has(e){return super.has(qx(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function qx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Yx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Xx=Math.sqrt(50),Jx=Math.sqrt(10),Qx=Math.sqrt(2);function eC(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Xx?10:i>=Jx?5:i>=Qx?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?eC(e,t,2*n):[s,c,l]}function tC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?eC(t,e,n):eC(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function nC(e,t,n){return eC(e=+e,t=+t,n=+n)[2]}function rC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function oC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function iC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function aC(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?Yx:function(e=Hx){if(e===Hx)return Yx;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);aC(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(sC(e,n,t),o(e[r],i)>0&&sC(e,n,r);a<s;){for(sC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?sC(e,n,s):(++s,sC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cC(e,t,n=Ux){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function lC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function uC(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const fC=Symbol("implicit");function dC(){var e=new Zx,t=[],n=[],r=fC;function o(o){let i=e.get(o);if(void 0===i){if(r!==fC)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Zx;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return dC(t,n).unknown(r)},lC.apply(o,arguments),o}function pC(){var e,t,n=dC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return pC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},lC.apply(f(),arguments)}function hC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return hC(t())},e}function gC(){return hC(pC.apply(null,arguments).paddingInner(1))}function vC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mC(){}var bC=.7,wC=1/bC,xC="\\s*([+-]?\\d+)\\s*",CC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",SC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_C=/^#([0-9a-f]{3,8})$/,OC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),kC=new RegExp(`^rgb\\(${SC},${SC},${SC}\\)$`),EC=new RegExp(`^rgba\\(${xC},${xC},${xC},${CC}\\)$`),jC=new RegExp(`^rgba\\(${SC},${SC},${SC},${CC}\\)$`),AC=new RegExp(`^hsl\\(${CC},${SC},${SC}\\)$`),TC=new RegExp(`^hsla\\(${CC},${SC},${SC},${CC}\\)$`),MC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function PC(){return this.rgb().formatHex()}function DC(){return this.rgb().formatRgb()}function LC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_C.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IC(t):3===n?new BC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?RC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?RC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=OC.exec(e))?new BC(t[1],t[2],t[3],1):(t=kC.exec(e))?new BC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EC.exec(e))?RC(t[1],t[2],t[3],t[4]):(t=jC.exec(e))?RC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?$C(t[1],t[2]/100,t[3]/100,1):(t=TC.exec(e))?$C(t[1],t[2]/100,t[3]/100,t[4]):MC.hasOwnProperty(e)?IC(MC[e]):"transparent"===e?new BC(NaN,NaN,NaN,0):null}function IC(e){return new BC(e>>16&255,e>>8&255,255&e,1)}function RC(e,t,n,r){return r<=0&&(e=t=n=NaN),new BC(e,t,n,r)}function NC(e,t,n,r){return 1===arguments.length?function(e){return e instanceof mC||(e=LC(e)),e?new BC((e=e.rgb()).r,e.g,e.b,e.opacity):new BC}(e):new BC(e,t,n,null==r?1:r)}function BC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function FC(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}`}function zC(){const e=HC(this.opacity);return`${1===e?"rgb(":"rgba("}${VC(this.r)}, ${VC(this.g)}, ${VC(this.b)}${1===e?")":`, ${e})`}`}function HC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KC(e){return((e=VC(e))<16?"0":"")+e.toString(16)}function $C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new WC(e,t,n,r)}function UC(e){if(e instanceof WC)return new WC(e.h,e.s,e.l,e.opacity);if(e instanceof mC||(e=LC(e)),!e)return new WC;if(e instanceof WC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new WC(a,s,c,e.opacity)}function WC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ZC(e){return(e=(e||0)%360)<0?e+360:e}function qC(e){return Math.max(0,Math.min(1,e||0))}function GC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vC(mC,LC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return UC(this).formatHsl()},formatRgb:DC,toString:DC}),vC(BC,NC,yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new BC(VC(this.r),VC(this.g),VC(this.b),HC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:FC,formatHex:FC,formatHex8:function(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}${KC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zC,toString:zC})),vC(WC,(function(e,t,n,r){return 1===arguments.length?UC(e):new WC(e,t,n,null==r?1:r)}),yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new WC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new WC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new BC(GC(e>=240?e-240:e+120,o,r),GC(e,o,r),GC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new WC(ZC(this.h),qC(this.s),qC(this.l),HC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HC(this.opacity);return`${1===e?"hsl(":"hsla("}${ZC(this.h)}, ${100*qC(this.s)}%, ${100*qC(this.l)}%${1===e?")":`, ${e})`}`}}));var YC=e=>()=>e;function XC(e){return 1==(e=+e)?JC:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):YC(isNaN(t)?n:t)}}function JC(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):YC(isNaN(e)?t:e)}var QC=function e(t){var n=XC(t);function r(e,t){var r=n((e=NC(e)).r,(t=NC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JC(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function eS(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function tS(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=cS(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function nS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oS(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=cS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var iS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aS=new RegExp(iS.source,"g");function sS(e,t){var n,r,o,i=iS.lastIndex=aS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=iS.exec(e))&&(r=aS.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:rS(n,r)})),i=aS.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function cS(e,t){var n,r=typeof t;return null==t||"boolean"===r?YC(t):("number"===r?rS:"string"===r?(n=LC(t))?(t=n,QC):sS:t instanceof LC?QC:t instanceof Date?nS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?eS:Array.isArray(t)?tS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oS:rS)(e,t)}function lS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function uS(e,t){void 0===t&&(t=e,e=cS);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function fS(e){return+e}var dS=[0,1];function pS(e){return e}function hS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function gS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=hS(o,r),i=n(a,i)):(r=hS(r,o),i=n(i,a)),function(e){return i(r(e))}}function vS(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=hS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Wx(e,t,1,r)-1;return i[n](o[n](t))}}function yS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function mS(){var e,t,n,r,o,i,a=dS,s=dS,c=cS,l=pS;function u(){var e=Math.min(a.length,s.length);return l!==pS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?vS:gS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),rS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,fS),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=lS,u()},f.clamp=function(e){return arguments.length?(l=!!e||pS,u()):l!==pS},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function bS(){return mS()(pS,pS)}function wS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xS(e){return(e=wS(Math.abs(e)))?e[1]:NaN}var CS,SS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _S(e){if(!(t=SS.exec(e)))throw new Error("invalid format: "+e);var t;return new OS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function OS(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function kS(e,t){var n=wS(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}_S.prototype=OS.prototype,OS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ES={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kS(100*e,t),r:kS,s:function(e,t){var n=wS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(CS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+wS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jS(e){return e}var AS,TS,MS,PS=Array.prototype.map,DS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?jS:(t=PS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?jS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(PS.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=_S(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):ES[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=ES[m],C=/[defgprs%]/.test(m);function S(e){var o,i,c,d=b,S=w;if("c"===m)S=x(e)+S,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),_&&0==+e&&"+"!==f&&(_=!1),d=(_?"("===f?f:l:"-"===f||"("===f?"":f)+d,S=("s"===m?DS[8+CS/3]:"")+S+(_&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+S.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=d+e+S+k;break;case"=":e=d+k+e+S;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+S+k.slice(O);break;default:e=k+d+e+S}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var n=f(((e=_S(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(xS(t)/3))),o=Math.pow(10,-r),i=DS[8+r/3];return function(e){return n(o*e)+i}}}}function IS(e,t,n,r){var o,i=rC(e,t,n);switch((r=_S(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xS(t)/3)))-xS(Math.abs(e)))}(i,a))||(r.precision=o),MS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xS(t)-xS(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-xS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return TS(r)}function RS(e){var t=e.domain;return e.ticks=function(e){var n=t();return tC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return IS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=nC(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function NS(){var e=bS();return e.copy=function(){return yS(e,NS())},lC.apply(e,arguments),RS(e)}function BS(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function FS(e){return Math.log(e)}function zS(e){return Math.exp(e)}function HS(e){return-Math.log(-e)}function VS(e){return-Math.exp(-e)}function KS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $S(e){return(t,n)=>-e(-t,n)}function US(e){const t=e(FS,zS),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?KS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=$S(r),o=$S(o),e(HS,VS)):e(FS,zS),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=tC(a,s,p))}else h=tC(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=_S(n)).precision||(n.trim=!0),n=TS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(BS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function WS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ZS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qS(e){var t=1,n=e(WS(t),ZS(t));return n.constant=function(n){return arguments.length?e(WS(t=+n),ZS(t)):t},RS(n)}function GS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XS(e){return e<0?-e*e:e*e}function JS(e){var t=e(pS,pS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(pS,pS):.5===n?e(YS,XS):e(GS(n),GS(1/n)):n},RS(t)}function QS(){var e=JS(mS());return e.copy=function(){return yS(e,QS()).exponent(e.exponent())},lC.apply(e,arguments),e}function e_(e){return Math.sign(e)*e*e}AS=LS({thousands:",",grouping:[3],currency:["$",""]}),TS=AS.format,MS=AS.formatPrefix;const t_=new Date,n_=new Date;function r_(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>r_((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(t_.setTime(+t),n_.setTime(+r),e(t_),e(n_),Math.floor(n(t_,n_))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const o_=r_((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));o_.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r_((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):o_:null),o_.range;const i_=1e3,a_=6e4,s_=36e5,c_=864e5,l_=6048e5,u_=2592e6,f_=31536e6,d_=r_((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*i_)}),((e,t)=>(t-e)/i_),(e=>e.getUTCSeconds()));d_.range;const p_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getMinutes()));p_.range;const h_=r_((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getUTCMinutes()));h_.range;const g_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_-e.getMinutes()*a_)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getHours()));g_.range;const v_=r_((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getUTCHours()));v_.range;const y_=r_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a_)/c_),(e=>e.getDate()-1));y_.range;const m_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>e.getUTCDate()-1));m_.range;const b_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>Math.floor(e/c_)));function w_(e){return r_((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a_)/l_))}b_.range;const x_=w_(0),C_=w_(1),S_=w_(2),__=w_(3),O_=w_(4),k_=w_(5),E_=w_(6);function j_(e){return r_((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/l_))}x_.range,C_.range,S_.range,__.range,O_.range,k_.range,E_.range;const A_=j_(0),T_=j_(1),M_=j_(2),P_=j_(3),D_=j_(4),L_=j_(5),I_=j_(6);A_.range,T_.range,M_.range,P_.range,D_.range,L_.range,I_.range;const R_=r_((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));R_.range;const N_=r_((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));N_.range;const B_=r_((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));B_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,B_.range;const F_=r_((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function z_(e,t,n,r,o,i){const a=[[d_,1,i_],[d_,5,5e3],[d_,15,15e3],[d_,30,3e4],[i,1,a_],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,s_],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,c_],[r,2,1728e5],[n,1,l_],[t,1,u_],[t,3,7776e6],[e,1,f_]];function s(t,n,r){const o=Math.abs(n-t)/r,i=Kx((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(rC(t/f_,n/f_,r));if(0===i)return o_.every(Math.max(rC(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}F_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,F_.range;const[H_,V_]=z_(F_,N_,A_,b_,v_,h_),[K_,$_]=z_(B_,R_,x_,y_,g_,p_);function U_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function W_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Z_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var q_,G_,Y_,X_={"-":"",_:" ",0:"0"},J_=/^\s*\d+/,Q_=/^%/,eO=/[\\^$*+?|[\]().{}]/g;function tO(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function nO(e){return e.replace(eO,"\\$&")}function rO(e){return new RegExp("^(?:"+e.map(nO).join("|")+")","i")}function oO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function iO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function aO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=J_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function dO(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function pO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function hO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xO(e,t,n){var r=J_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CO(e,t,n){var r=Q_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function SO(e,t,n){var r=J_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=J_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function OO(e,t){return tO(e.getDate(),t,2)}function kO(e,t){return tO(e.getHours(),t,2)}function EO(e,t){return tO(e.getHours()%12||12,t,2)}function jO(e,t){return tO(1+y_.count(B_(e),e),t,3)}function AO(e,t){return tO(e.getMilliseconds(),t,3)}function TO(e,t){return AO(e,t)+"000"}function MO(e,t){return tO(e.getMonth()+1,t,2)}function PO(e,t){return tO(e.getMinutes(),t,2)}function DO(e,t){return tO(e.getSeconds(),t,2)}function LO(e){var t=e.getDay();return 0===t?7:t}function IO(e,t){return tO(x_.count(B_(e)-1,e),t,2)}function RO(e){var t=e.getDay();return t>=4||0===t?O_(e):O_.ceil(e)}function NO(e,t){return e=RO(e),tO(O_.count(B_(e),e)+(4===B_(e).getDay()),t,2)}function BO(e){return e.getDay()}function FO(e,t){return tO(C_.count(B_(e)-1,e),t,2)}function zO(e,t){return tO(e.getFullYear()%100,t,2)}function HO(e,t){return tO((e=RO(e)).getFullYear()%100,t,2)}function VO(e,t){return tO(e.getFullYear()%1e4,t,4)}function KO(e,t){var n=e.getDay();return tO((e=n>=4||0===n?O_(e):O_.ceil(e)).getFullYear()%1e4,t,4)}function $O(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tO(t/60|0,"0",2)+tO(t%60,"0",2)}function UO(e,t){return tO(e.getUTCDate(),t,2)}function WO(e,t){return tO(e.getUTCHours(),t,2)}function ZO(e,t){return tO(e.getUTCHours()%12||12,t,2)}function qO(e,t){return tO(1+m_.count(F_(e),e),t,3)}function GO(e,t){return tO(e.getUTCMilliseconds(),t,3)}function YO(e,t){return GO(e,t)+"000"}function XO(e,t){return tO(e.getUTCMonth()+1,t,2)}function JO(e,t){return tO(e.getUTCMinutes(),t,2)}function QO(e,t){return tO(e.getUTCSeconds(),t,2)}function ek(e){var t=e.getUTCDay();return 0===t?7:t}function tk(e,t){return tO(A_.count(F_(e)-1,e),t,2)}function nk(e){var t=e.getUTCDay();return t>=4||0===t?D_(e):D_.ceil(e)}function rk(e,t){return e=nk(e),tO(D_.count(F_(e),e)+(4===F_(e).getUTCDay()),t,2)}function ok(e){return e.getUTCDay()}function ik(e,t){return tO(T_.count(F_(e)-1,e),t,2)}function ak(e,t){return tO(e.getUTCFullYear()%100,t,2)}function sk(e,t){return tO((e=nk(e)).getUTCFullYear()%100,t,2)}function ck(e,t){return tO(e.getUTCFullYear()%1e4,t,4)}function lk(e,t){var n=e.getUTCDay();return tO((e=n>=4||0===n?D_(e):D_.ceil(e)).getUTCFullYear()%1e4,t,4)}function uk(){return"+0000"}function fk(){return"%"}function dk(e){return+e}function pk(e){return Math.floor(+e/1e3)}function hk(e){return new Date(e)}function gk(e){return e instanceof Date?+e:+new Date(+e)}function vk(e,t,n,r,o,i,a,s,c,l){var u=bS(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,gk)):d().map(hk)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(BS(n,e)):u},u.copy=function(){return yS(u,vk(e,t,n,r,o,i,a,s,c,l))},u}function yk(){var e,t,n,r,o,i=0,a=1,s=pS,c=!1;function l(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(cS),l.rangeRound=u(lS),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function mk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bk(){var e=JS(yk());return e.copy=function(){return mk(e,bk()).exponent(e.exponent())},uC.apply(e,arguments)}function wk(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=pS,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=uS(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(cS),p.rangeRound=h(lS),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function xk(){var e=JS(wk());return e.copy=function(){return mk(e,xk()).exponent(e.exponent())},uC.apply(e,arguments)}!function(e){q_=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=rO(o),u=oO(o),f=rO(i),d=oO(i),p=rO(a),h=oO(a),g=rO(s),v=oO(s),y=rO(c),m=oO(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:OO,e:OO,f:TO,g:HO,G:KO,H:kO,I:EO,j:jO,L:AO,m:MO,M:PO,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:dk,s:pk,S:DO,u:LO,U:IO,V:NO,w:BO,W:FO,x:null,X:null,y:zO,Y:VO,Z:$O,"%":fk},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:UO,e:UO,f:YO,g:sk,G:lk,H:WO,I:ZO,j:qO,L:GO,m:XO,M:JO,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:dk,s:pk,S:QO,u:ek,U:tk,V:rk,w:ok,W:ik,x:null,X:null,y:ak,Y:ck,Z:uk,"%":fk},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:gO,e:gO,f:xO,g:fO,G:uO,H:yO,I:yO,j:vO,L:wO,m:hO,M:mO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:pO,Q:SO,s:_O,S:bO,u:aO,U:sO,V:cO,w:iO,W:lO,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:fO,Y:uO,Z:dO,"%":CO};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=X_[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=Z_(1900,void 0,1);if(_(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=W_(Z_(i.y,0,1))).getUTCDay(),r=o>4||0===o?T_.ceil(r):T_(r),r=m_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=U_(Z_(i.y,0,1))).getDay(),r=o>4||0===o?C_.ceil(r):C_(r),r=y_.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?W_(Z_(i.y,0,1)).getUTCDay():U_(Z_(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,W_(i)):U_(i)}}function _(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in X_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),G_=q_.format,q_.parse,Y_=q_.utcFormat,q_.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ck=Object.freeze({__proto__:null,scaleBand:pC,scaleDiverging:function e(){var t=RS(wk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleDivergingLog:function e(){var t=US(wk()).domain([.1,1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleDivergingPow:xk,scaleDivergingSqrt:function(){return xk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=qS(wk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,fS),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,fS):[0,1],RS(r)},scaleImplicit:fC,scaleLinear:NS,scaleLog:function e(){const t=US(mS()).domain([1,10]);return t.copy=()=>yS(t,e()).base(t.base()),lC.apply(t,arguments),t},scaleOrdinal:dC,scalePoint:gC,scalePow:QS,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=cC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Wx(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Hx),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},lC.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Wx(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},lC.apply(RS(s),arguments)},scaleRadial:function e(){var t,n=bS(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(e_(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,fS)).map(e_)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},lC.apply(i,arguments),RS(i)},scaleSequential:function e(){var t=RS(yk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleSequentialLog:function e(){var t=US(yk()).domain([1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleSequentialPow:bk,scaleSequentialQuantile:function e(){var t=[],n=pS;function r(e){if(null!=e&&!isNaN(e=+e))return n((Wx(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Hx),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return iC(e);if(t>=1)return oC(e);var r,o=(r-1)*t,i=Math.floor(o),a=oC(aC(e,i).subarray(0,i+1));return a+(iC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},uC.apply(r,arguments)},scaleSequentialSqrt:function(){return bk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=qS(yk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleSqrt:function(){return QS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=qS(mS());return t.copy=function(){return yS(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[Wx(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},lC.apply(i,arguments)},scaleTime:function(){return lC.apply(vk(K_,$_,B_,R_,x_,y_,g_,p_,d_,G_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return lC.apply(vk(H_,V_,F_,N_,A_,m_,v_,h_,d_,Y_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:IS}),Sk=dl;var _k=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Sk(a):n(a,s)))var s=a,c=i}return c};var Ok=function(e,t){return e>t},kk=_k,Ek=Ok,jk=zy;var Ak=function(e){return e&&e.length?kk(e,jk,Ek):void 0},Tk=ct(Ak);var Mk=function(e,t){return e<t},Pk=_k,Dk=Mk,Lk=zy;var Ik=function(e){return e&&e.length?Pk(e,Lk,Dk):void 0},Rk=ct(Ik),Nk=ef,Bk=Qy,Fk=eb,zk=Wc;var Hk=$m,Vk=function(e,t){return(zk(e)?Nk:Fk)(e,Bk(t))};var Kk=ct((function(e,t){return Hk(Vk(e,t),1)})),$k=sy;var Uk,Wk=ct((function(e,t){return $k(e,t)})),Zk=1e9,qk=!0,Gk="[DecimalError] ",Yk=Gk+"Invalid argument: ",Xk=Gk+"Exponent out of range: ",Jk=Math.floor,Qk=Math.pow,eE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tE=1e7,nE=7,rE=9007199254740991,oE=Jk(rE/nE),iE={};function aE(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),qk?vE(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/nE))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/tE|0,c[i]%=tE;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,qk?vE(t,f):t}function sE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yk+e)}function cE(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=nE-r.length)&&(i+=pE(n)),i+=r;a=e[t],(n=nE-(r=a+"").length)&&(i+=pE(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}iE.absoluteValue=iE.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},iE.comparedTo=iE.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},iE.decimalPlaces=iE.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nE;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},iE.dividedBy=iE.div=function(e){return lE(this,new this.constructor(e))},iE.dividedToIntegerBy=iE.idiv=function(e){var t=this.constructor;return vE(lE(this,new t(e),0,1),t.precision)},iE.equals=iE.eq=function(e){return!this.cmp(e)},iE.exponent=function(){return fE(this)},iE.greaterThan=iE.gt=function(e){return this.cmp(e)>0},iE.greaterThanOrEqualTo=iE.gte=function(e){return this.cmp(e)>=0},iE.isInteger=iE.isint=function(){return this.e>this.d.length-2},iE.isNegative=iE.isneg=function(){return this.s<0},iE.isPositive=iE.ispos=function(){return this.s>0},iE.isZero=function(){return 0===this.s},iE.lessThan=iE.lt=function(e){return this.cmp(e)<0},iE.lessThanOrEqualTo=iE.lte=function(e){return this.cmp(e)<1},iE.logarithm=iE.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Uk))throw Error(Gk+"NaN");if(n.s<1)throw Error(Gk+(n.s?"NaN":"-Infinity"));return n.eq(Uk)?new r(0):(qk=!1,t=lE(hE(n,i),hE(e,i),i),qk=!0,vE(t,o))},iE.minus=iE.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yE(t,e):aE(t,(e.s=-e.s,e))},iE.modulo=iE.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(Gk+"NaN");return n.s?(qk=!1,t=lE(n,e,0,1).times(e),qk=!0,n.minus(t)):vE(new r(n),o)},iE.naturalExponential=iE.exp=function(){return uE(this)},iE.naturalLogarithm=iE.ln=function(){return hE(this)},iE.negated=iE.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},iE.plus=iE.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aE(t,e):yE(t,(e.s=-e.s,e))},iE.precision=iE.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Yk+e);if(t=fE(o)+1,n=(r=o.d.length-1)*nE+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},iE.squareRoot=iE.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Gk+"NaN")}for(e=fE(s),qk=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=cE(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Jk((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(lE(s,i,a+2)).times(.5),cE(i.d).slice(0,a)===(t=cE(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(vE(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return qk=!0,vE(r,n)},iE.times=iE.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%tE|0,t=s/tE|0;i[o]=(i[o]+t)%tE|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qk?vE(e,f.precision):e},iE.toDecimalPlaces=iE.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(sE(e,0,Zk),void 0===t?t=r.rounding:sE(t,0,8),vE(n,e+fE(n)+1,t))},iE.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=mE(r,!0):(sE(e,0,Zk),void 0===t?t=o.rounding:sE(t,0,8),n=mE(r=vE(new o(r),e+1,t),!0,e+1)),n},iE.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?mE(o):(sE(e,0,Zk),void 0===t?t=i.rounding:sE(t,0,8),n=mE((r=vE(new i(o),e+fE(o)+1,t)).abs(),!1,e+fE(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},iE.toInteger=iE.toint=function(){var e=this,t=e.constructor;return vE(new t(e),fE(e)+1,t.rounding)},iE.toNumber=function(){return+this},iE.toPower=iE.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Uk);if(!(s=new c(s)).s){if(e.s<1)throw Error(Gk+"Infinity");return s}if(s.eq(Uk))return s;if(r=c.precision,e.eq(Uk))return vE(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=rE){for(o=new c(Uk),t=Math.ceil(r/nE+4),qk=!1;n%2&&bE((o=o.times(s)).d,t),0!==(n=Jk(n/2));)bE((s=s.times(s)).d,t);return qk=!0,e.s<0?new c(Uk).div(o):vE(o,r)}}else if(i<0)throw Error(Gk+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,qk=!1,o=e.times(hE(s,r+12)),qk=!0,(o=uE(o)).s=i,o},iE.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=mE(o,(n=fE(o))<=i.toExpNeg||n>=i.toExpPos):(sE(e,1,Zk),void 0===t?t=i.rounding:sE(t,0,8),r=mE(o=vE(new i(o),e,t),e<=(n=fE(o))||n<=i.toExpNeg,e)),r},iE.toSignificantDigits=iE.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(sE(e,1,Zk),void 0===t?t=n.rounding:sE(t,0,8)),vE(new n(this),e,t)},iE.toString=iE.valueOf=iE.val=iE.toJSON=iE[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=fE(e),n=e.constructor;return mE(e,t<=n.toExpNeg||t>=n.toExpPos)};var lE=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%tE|0,r=n/tE|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*tE+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,S,_,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(Gk+"Division by zero");for(c=r.e-o.e,S=j.length,x=E.length,h=(p=new O(k)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=O.precision:a?i+(fE(r)-fE(o))+1:i)<0)return new O(0);if(m=m/nE+2|0,l=0,1==S)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*tE+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=tE/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),S=j.length,x=E.length),w=S,v=(g=E.slice(0,S)).length;v<S;)g[v++]=0;(_=j.slice()).unshift(0),C=j[0],j[1]>=tE/2&&++C;do{u=0,(s=t(j,g,S,v))<0?(y=g[0],S!=v&&(y=y*tE+(g[1]||0)),(u=y/C|0)>1?(u>=tE&&(u=tE-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,S<d?_:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,S,v=g.length))<1&&(u++,n(g,S<v?_:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,vE(p,a?i+fE(p)+1:i)}}();function uE(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(fE(e)>16)throw Error(Xk+fE(e));if(!e.s)return new l(Uk);for(null==t?(qk=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Qk(2,c))/Math.LN10*2+5|0,n=r=o=new l(Uk),l.precision=a;;){if(r=vE(r.times(e),a),n=n.times(++s),cE((i=o.plus(lE(r,n,a))).d).slice(0,a)===cE(o.d).slice(0,a)){for(;c--;)o=vE(o.times(o),a);return l.precision=u,null==t?(qk=!0,vE(o,u)):o}o=i}}function fE(e){for(var t=e.e*nE,n=e.d[0];n>=10;n/=10)t++;return t}function dE(e,t,n){if(t>e.LN10.sd())throw qk=!0,n&&(e.precision=n),Error(Gk+"LN10 precision limit exceeded");return vE(new e(e.LN10),t)}function pE(e){for(var t="";e--;)t+="0";return t}function hE(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(Gk+(d.s?"NaN":"-Infinity"));if(d.eq(Uk))return new h(0);if(null==t?(qk=!1,l=g):l=t,d.eq(10))return null==t&&(qk=!0),dE(h,l);if(l+=10,h.precision=l,r=(n=cE(p)).charAt(0),i=fE(d),!(Math.abs(i)<15e14))return c=dE(h,l+2,g).times(i+""),d=hE(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(qk=!0,vE(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=cE((d=d.times(e)).d)).charAt(0),f++;for(i=fE(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=lE(d.minus(Uk),d.plus(Uk),l),u=vE(d.times(d),l),o=3;;){if(a=vE(a.times(u),l),cE((c=s.plus(lE(a,new h(o),l))).d).slice(0,l)===cE(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(dE(h,l+2,g).times(i+""))),s=lE(s,new h(f),l),h.precision=g,null==t?(qk=!0,vE(s,g)):s;s=c,o+=2}}function gE(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=Jk(n/nE),e.d=[],r=(n+1)%nE,n<0&&(r+=nE),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=nE;r<o;)e.d.push(+t.slice(r,r+=nE));t=t.slice(r),r=nE-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),qk&&(e.e>oE||e.e<-oE))throw Error(Xk+n)}else e.s=0,e.e=0,e.d=[0];return e}function vE(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=nE,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/nE))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=nE)-nE+a}if(void 0!==n&&(s=l/(i=Qk(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?l/Qk(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=fE(e),f.length=1,t=t-i-1,f[0]=Qk(10,(nE-t%nE)%nE),e.e=Jk(-t/nE)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Qk(10,nE-r),f[u]=o>0?(l/Qk(10,a-o)%Qk(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==tE&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=tE)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(qk&&(e.e>oE||e.e<-oE))throw Error(Xk+fE(e));return e}function yE(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),qk?vE(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/nE),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=tE-1;--c[i],c[o]+=tE}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,qk?vE(t,p):t):new d(0)}function mE(e,t,n){var r,o=fE(e),i=cE(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+pE(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+pE(-o-1)+i,n&&(r=n-a)>0&&(i+=pE(r))):o>=a?(i+=pE(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+pE(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=pE(r))),e.s<0?"-"+i:i}function bE(e,t){if(e.length>t)return e.length=t,!0}function wE(e){if(!e||"object"!=typeof e)throw Error(Gk+"Object expected");var t,n,r,o=["precision",1,Zk,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(Jk(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Yk+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Yk+n+": "+r);this[n]=new this(r)}return this}var xE=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Yk+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):gE(t,e.toString())}if("string"!=typeof e)throw Error(Yk+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!eE.test(e))throw Error(Yk+e);gE(t,e)}if(i.prototype=iE,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=wE,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Uk=new xE(1);var CE=xE;function SE(e){return function(e){if(Array.isArray(e))return _E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _E(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OE=function(e){return e},kE={"@@functional/placeholder":!0},EE=function(e){return e===kE},jE=function(e){return function t(){return 0===arguments.length||1===arguments.length&&EE(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},AE=function e(t,n){return 1===t?n:jE((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==kE})).length;return a>=t?n.apply(void 0,o):e(t-a,jE((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return EE(e)?t.shift():e}));return n.apply(void 0,SE(i).concat(t))})))}))},TE=function(e){return AE(e.length,e)},ME=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},PE=TE((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),DE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return OE;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},LE=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},IE=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var RE=TE((function(e,t,n){var r=+e;return r+n*(+t-r)})),NE=TE((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),BE=TE((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),FE={rangeStep:function(e,t,n){for(var r=new CE(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new CE(e).abs().log(10).toNumber())+1},interpolateNumber:RE,uninterpolateNumber:NE,uninterpolateTruncation:BE};function zE(e){return function(e){if(Array.isArray(e))return KE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||VE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||VE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VE(e,t){if(e){if("string"==typeof e)return KE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KE(e,t):void 0}}function KE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $E(e){var t=HE(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function UE(e,t,n){if(e.lte(0))return new CE(0);var r=FE.getDigitCount(e.toNumber()),o=new CE(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new CE(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new CE(Math.ceil(s))}function WE(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new CE(0),tickMin:new CE(0),tickMax:new CE(0)};var i,a=UE(new CE(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new CE(0):(i=new CE(e).add(t).div(2)).sub(new CE(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new CE(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?WE(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new CE(s).mul(a)),tickMax:i.add(new CE(c).mul(a))})}var ZE=IE((function(e){var t=HE(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=HE($E([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(zE(ME(0,o-1).map((function(){return 1/0})))):[].concat(zE(ME(0,o-1).map((function(){return-1/0}))),[l]);return n>r?LE(u):u}if(c===l)return function(e,t,n){var r=1,o=new CE(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new CE(10).pow(FE.getDigitCount(e)-1),o=new CE(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new CE(Math.floor(e)))}else 0===e?o=new CE(Math.floor((t-1)/2)):n||(o=new CE(Math.floor(e)));var a=Math.floor((t-1)/2),s=DE(PE((function(e){return o.add(new CE(e-a).mul(r)).toNumber()})),ME);return s(0,t)}(c,o,i);var f=WE(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=FE.rangeStep(p,h.add(new CE(.1).mul(d)),d);return n>r?LE(g):g})),qE=IE((function(e,t){var n=HE(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=HE($E([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var l=Math.max(t,2),u=UE(new CE(c).sub(s).div(l-1),i,0),f=[].concat(zE(FE.rangeStep(new CE(s),new CE(c).sub(new CE(.99).mul(u)),u)),[c]);return r>o?LE(f):f})),GE="production"===process.env.NODE_ENV,YE="Invariant failed";function XE(e,t){if(!e){if(GE)throw new Error(YE);var n="function"==typeof t?t():t,r=n?"".concat(YE,": ").concat(n):YE;throw new Error(r)}}var JE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QE.apply(this,arguments)}function ej(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rj(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=nj(e,JE),f=yd(u,!1);"x"===e.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?XE(!1,'ErrorBar requires Axis type property to be "number".'):XE(!1));var d=a.map((function(e){var a=s(e,i),u=a.x,d=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,v,y=[];if(Array.isArray(h)){var m=ej(h,2);g=m[0],v=m[1]}else g=v=h;if("vertical"===r){var b=c.scale,w=d+n,x=w+o,C=w-o,S=b(p-g),_=b(p+v);y.push({x1:_,y1:x,x2:_,y2:C}),y.push({x1:S,y1:w,x2:_,y2:w}),y.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===r){var O=l.scale,k=u+n,E=k-o,j=k+o,A=O(p-g),T=O(p+v);y.push({x1:E,y1:T,x2:j,y2:T}),y.push({x1:k,y1:A,x2:k,y2:T}),y.push({x1:E,y1:A,x2:j,y2:A})}return t.createElement(jd,QE({className:"recharts-errorBar",key:"bar-".concat(y.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),y.map((function(e){return t.createElement("line",QE({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(jd,{className:"recharts-errorBars"},d)}function oj(e){return oj="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},oj(e)}function ij(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 aj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ij(Object(n),!0).forEach((function(t){sj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ij(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=oj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},rj.displayName="ErrorBar";var cj=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=hd(n,Bm);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:yj(t),value:o||r,payload:t.props}})),aj(aj(aj({},a.props),Bm.getWithHeight(a,o)),{},{payload:t,item:a})):null};function lj(e){return lj="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},lj(e)}function uj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(n),!0).forEach((function(t){dj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pj(e){return function(e){if(Array.isArray(e))return hj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hj(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gj(e,t,n){return Sf(e)||Sf(t)?n:Kf(t)?Cf(e,t,n):_l(t)?t(e):n}function vj(e,t,n,r){var o=Kk(e,(function(e){return gj(e,t)}));if("number"===n){var i=o.filter((function(e){return Vf(e)||parseFloat(e)}));return i.length?[Rk(i),Tk(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Sf(e)})):o).map((function(e){return Kf(e)||e instanceof Date?e:""}))}var yj=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},mj=function(e,t,n,r,o){var i=pd(t.props.children,rj).filter((function(e){return function(e,t,n){return!!Sf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=gj(t,n);if(Sf(r))return e;var o=Array.isArray(r)?[Rk(r),Tk(r)]:[r,r],i=a.reduce((function(e,n){var r=gj(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},bj=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&mj(e,t,i,r)||vj(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},wj=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},xj=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},Cj=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*zf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Ff(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},Sj=new WeakMap,_j=function(e,t){if("function"!=typeof t)return e;Sj.has(e)||Sj.set(e,new WeakMap);var n=Sj.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},Oj=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:pC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:NS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:gC(),realScaleType:"point"}:"category"===o?{scale:pC(),realScaleType:"band"}:{scale:NS(),realScaleType:"linear"};if(jf(r)){var s="scale".concat(ip(r));return{scale:(Ck[s]||gC)(),realScaleType:Ck[s]?s:"point"}}return _l(r)?{scale:r}:{scale:gC(),realScaleType:"point"}},kj=1e-4,Ej=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-kj,i=Math.max(r[0],r[1])+kj,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},jj={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Ff(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}ah(e,t)}},none:ah,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}ah(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,ah(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Ff(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},Aj=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=jj[n],i=function(){var e=ap([]),t=sh,n=ah,r=ch;function o(o){var i,a,s=Array.from(e.apply(this,arguments),lh),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=bp(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ap(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ap(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?sh:"function"==typeof e?e:ap(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?ah:e,o):n},o}().keys(r).value((function(e,t){return+gj(e,t,0)})).order(sh).offset(o);return i(e)},Tj=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var l=ZE(c,o,a);return e.domain([Rk(l),Tk(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:qE(u,o,a)}}return null};function Mj(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Sf(o[t.dataKey])){var s=Gf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=gj(o,Sf(a)?t.dataKey:a);return Sf(c)?null:t.scale(c)}var Pj=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=gj(i,t.dataKey,t.domain[a]);return Sf(s)?null:t.scale(s)-o/2+r},Dj=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[Rk(t.concat([e[0]]).filter(Vf)),Tk(t.concat([e[1]]).filter(Vf))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Lj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ij=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rj=function(e,t,n){if(_l(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Vf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Lj.test(e[0])){var o=+Lj.exec(e[0])[1];r[0]=t[0]-o}else _l(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Vf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Ij.test(e[1])){var i=+Ij.exec(e[1])[1];r[1]=t[1]+i}else _l(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Nj=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Fb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},Bj=function(e,t,n){return e&&e.length?Wk(e,Cf(n,"type.defaultProps.domain"))?t:e:t},Fj=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return fj(fj({},yd(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:yj(e),value:gj(t,r),type:s,payload:t,chartType:c,hide:l})};function zj(e){return zj="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},zj(e)}function Hj(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 Vj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hj(Object(n),!0).forEach((function(t){Kj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wj=Math.PI/180,Zj=function(e){return 180*e/Math.PI},qj=function(e,t,n,r){return{x:e+Math.cos(-Wj*r)*n,y:t+Math.sin(-Wj*r)*n}},Gj=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Yj=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:Zj(c),angleInRadian:c}},Xj=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},Jj=function(e,t){var n=e.x,r=e.y,o=Yj({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?Vj(Vj({},t),{},{radius:i,angle:Xj(p,t)}):null};function Qj(e){return Qj="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},Qj(e)}var eA=["offset"];function tA(e){return function(e){if(Array.isArray(e))return nA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oA(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 iA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach((function(t){aA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Qj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sA(){return sA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sA.apply(this,arguments)}var cA=function(e){var t=e.value,n=e.formatter,r=Sf(e.children)?t:e.children;return _l(n)?n(r):r},lA=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=qj(f,d,m,o),C=qj(f,d,m,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),_=Sf(e.id)?Uf("recharts-radial-line-"):e.id;return t.createElement("text",sA({},r,{dominantBaseline:"central",className:Uc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:_,d:S})),t.createElement("textPath",{xlinkHref:"#".concat(_)},n))},uA=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=qj(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=qj(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},fA=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return iA(iA({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return iA(iA({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return iA(iA({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return iA(iA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?iA({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?iA({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?iA({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?iA({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?iA({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?iA({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?iA({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?iA({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):bl(o)&&(Vf(o.x)||Hf(o.x))&&(Vf(o.y)||Hf(o.y))?iA({x:a+Wf(o.x,c),y:s+Wf(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):iA({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dA=function(e){return"cx"in e&&Vf(e.cx)};function pA(e){var n,r=e.offset,o=iA({offset:void 0===r?5:r},rA(e,eA)),i=o.viewBox,a=o.position,s=o.value,c=o.children,l=o.content,u=o.className,f=void 0===u?"":u,d=o.textBreakAll;if(!i||Sf(s)&&Sf(c)&&!t.isValidElement(l)&&!_l(l))return null;if(t.isValidElement(l))return t.cloneElement(l,o);if(_l(l)){if(n=t.createElement(l,o),t.isValidElement(n))return n}else n=cA(o);var p=dA(i),h=yd(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return lA(o,n,h);var g=p?uA(o):fA(o);return t.createElement(zx,sA({className:Uc("recharts-label",f)},h,g,{breakAll:d}),n)}pA.displayName="Label";var hA=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Vf(h)&&Vf(g)){if(Vf(u)&&Vf(f))return{x:u,y:f,width:h,height:g};if(Vf(d)&&Vf(p))return{x:d,y:p,width:h,height:g}}return Vf(u)&&Vf(f)?{x:u,y:f,width:0,height:0}:Vf(t)&&Vf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};pA.parseViewBox=hA,pA.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=hA(e),a=pd(o,pA).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(pA,{key:"label-implicit",viewBox:n}):Kf(e)?t.createElement(pA,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===pA?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(pA,{key:"label-implicit",content:e,viewBox:n}):_l(e)?t.createElement(pA,{key:"label-implicit",content:e,viewBox:n}):bl(e)?t.createElement(pA,sA({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(tA(a))};var gA=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},vA=ct(gA);function yA(e){return yA="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},yA(e)}var mA=["valueAccessor"],bA=["data","dataKey","clockWise","id","textBreakAll"];function wA(e){return function(e){if(Array.isArray(e))return xA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CA(){return CA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CA.apply(this,arguments)}function SA(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 _A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SA(Object(n),!0).forEach((function(t){OA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=yA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EA=function(e){return Array.isArray(e.value)?vA(e.value):e.value};function jA(e){var n=e.valueAccessor,r=void 0===n?EA:n,o=kA(e,mA),i=o.data,a=o.dataKey,s=o.clockWise,c=o.id,l=o.textBreakAll,u=kA(o,bA);return i&&i.length?t.createElement(jd,{className:"recharts-label-list"},i.map((function(e,n){var o=Sf(a)?r(e,n):gj(e&&e.payload,a),i=Sf(c)?{}:{id:"".concat(c,"-").concat(n)};return t.createElement(pA,CA({},yd(e,!0),u,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:pA.parseViewBox(Sf(s)?e:_A(_A({},e),{},{clockWise:s})),key:"label-".concat(n),index:n}))}))):null}function AA(e){return AA="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},AA(e)}function TA(){return TA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TA.apply(this,arguments)}function MA(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 PA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MA(Object(n),!0).forEach((function(t){DA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jA.displayName="LabelList",jA.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=pd(e.children,jA).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(jA,{key:"labelList-implicit",data:n}):t.isValidElement(e)||_l(e)?t.createElement(jA,{key:"labelList-implicit",data:n,content:e}):bl(e)?t.createElement(jA,CA({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(wA(o)):o};var LA=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(a?1:-1)+r,u=Math.asin(s/l)/Wj,f=c?o:o+i*u,d=c?o-i*u:o;return{center:qj(t,n,l,f),circleTangency:qj(t,n,r,f),lineTangency:qj(t,n,l*Math.cos(u*Wj),d),theta:u}},IA=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=qj(t,n,o,i),l=qj(t,n,o,s),u="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=qj(t,n,r,i),d=qj(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},RA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},NA=function(e){var n=PA(PA({},RA),e),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,d=n.className;if(a<i||u===f)return null;var p,h=Uc("recharts-sector",d),g=a-i,v=Wf(s,g,0,!0);return p=v>0&&Math.abs(u-f)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=zf(l-c),f=LA({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=LA({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):IA({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=LA({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,S=x.lineTangency,_=x.theta,O=LA({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-l):Math.abs(c-l)-_-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,g/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:f}):IA({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),t.createElement("path",TA({},yd(n,!0),{className:h,d:p,role:"img"}))};function BA(e){return BA="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},BA(e)}function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FA.apply(this,arguments)}function zA(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 HA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zA(Object(n),!0).forEach((function(t){VA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KA={curveBasisClosed:function(e){return new Zp(e)},curveBasisOpen:function(e){return new qp(e)},curveBasis:function(e){return new Wp(e)},curveBumpX:function(e){return new kp(e,!0)},curveBumpY:function(e){return new kp(e,!1)},curveLinearClosed:function(e){return new Gp(e)},curveLinear:xp,curveMonotoneX:function(e){return new eh(e)},curveMonotoneY:function(e){return new th(e)},curveNatural:function(e){return new rh(e)},curveStep:function(e){return new ih(e,.5)},curveStepAfter:function(e){return new ih(e,1)},curveStepBefore:function(e){return new ih(e,0)}},$A=function(e){return e.x===+e.x&&e.y===+e.y},UA=function(e){return e.x},WA=function(e){return e.y},ZA=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,s=e.layout,c=e.connectNulls,l=void 0!==c&&c,u=function(e,t){if(_l(e))return e;var n="curve".concat(ip(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?KA[n]||xp:KA["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),f=l?i.filter((function(e){return $A(e)})):i;if(Array.isArray(a)){var d=l?a.filter((function(e){return $A(e)})):a,p=f.map((function(e,t){return HA(HA({},e),{},{base:d[t]})}));return(t="vertical"===s?Op().y(WA).x1(UA).x0((function(e){return e.base.x})):Op().x(UA).y1(WA).y0((function(e){return e.base.y}))).defined($A).curve(u),t(p)}return(t="vertical"===s&&Vf(a)?Op().y(WA).x1(UA).x0(a):Vf(a)?Op().x(UA).y1(WA).y0(a):_p().x(UA).y(WA)).defined($A).curve(u),t(f)},qA=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?ZA(e):o;return t.createElement("path",FA({},yd(e,!1),nd(e),{className:Uc("recharts-curve",n),d:a,ref:i}))},GA={exports:{}},YA=Object.getOwnPropertySymbols,XA=Object.prototype.hasOwnProperty,JA=Object.prototype.propertyIsEnumerable;var QA,eT,tT,nT,rT,oT,iT,aT,sT,cT,lT=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))XA.call(n,a)&&(o[a]=n[a]);if(YA){r=YA(n);for(var s=0;s<r.length;s++)JA.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function uT(){if(eT)return QA;eT=1;return QA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fT(){return nT?tT:(nT=1,tT=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var dT=Df;GA.exports=function(){if(aT)return iT;aT=1;var e=Df,t=lT,n=uT(),r=fT(),o=function(){if(oT)return rT;oT=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=uT(),n={},r=fT();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},rT=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),iT=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return m(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var f=e(c,u,i,a,s+"."+u,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var s=t[r],c=b(s);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return y(o,i,a,l,w(u));var f=u(s,l,o,i,a+"."+l,n);if(f)return f}return null}))},exact:function(e){return g((function(o,i,a,s,c){var l=o[i],u=b(l);if("object"!==u)return new h("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,s,c,d,w(p));if(!p)return new h("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(l,d,a,s,c+"."+d,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,d,p){if(l=l||f,d=d||s,p!==n){if(c){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+s;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},iT}()(dT.isElement,!0)}else GA.exports=function(){if(cT)return sT;cT=1;var e=uT();function t(){}function n(){}return n.resetWarningCache=t,sT=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var pT=ct(GA.exports),hT=Object.getOwnPropertyNames,gT=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty;function yT(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function mT(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function bT(e){return hT(e).concat(gT(e))}var wT=Object.hasOwn||function(e,t){return vT.call(e,t)};function xT(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var CT="_owner",ST=Object.getOwnPropertyDescriptor,_T=Object.keys;function OT(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function kT(e,t){return xT(e.getTime(),t.getTime())}function ET(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),s=0;(r=a.next())&&!r.done;){for(var c=t.entries(),l=!1,u=0;(o=c.next())&&!o.done;){var f=r.value,d=f[0],p=f[1],h=o.value,g=h[0],v=h[1];l||i[u]||!(l=n.equals(d,g,s,u,e,t,n)&&n.equals(p,v,d,g,e,t,n))||(i[u]=!0),u++}if(!l)return!1;s++}return!0}function jT(e,t,n){var r,o=_T(e),i=o.length;if(_T(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===CT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!wT(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function AT(e,t,n){var r,o,i,a=bT(e),s=a.length;if(bT(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===CT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!wT(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=ST(e,r),i=ST(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function TT(e,t){return xT(e.valueOf(),t.valueOf())}function MT(e,t){return e.source===t.source&&e.flags===t.flags}function PT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var s=t.values(),c=!1,l=0;(o=s.next())&&!o.done;)c||i[l]||!(c=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[l]=!0),l++;if(!c)return!1}return!0}function DT(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var LT="[object Arguments]",IT="[object Boolean]",RT="[object Date]",NT="[object Map]",BT="[object Number]",FT="[object Object]",zT="[object RegExp]",HT="[object Set]",VT="[object String]",KT=Array.isArray,$T="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,UT=Object.assign,WT=Object.prototype.toString.call.bind(Object.prototype.toString);var ZT=qT();function qT(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,s=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?AT:OT,areDatesEqual:kT,areMapsEqual:r?yT(ET,AT):ET,areObjectsEqual:r?AT:jT,arePrimitiveWrappersEqual:TT,areRegExpsEqual:MT,areSetsEqual:r?yT(PT,AT):PT,areTypedArraysEqual:r?AT:DT};if(n&&(o=UT({},o,n(o))),t){var i=mT(o.areArraysEqual),a=mT(o.areMapsEqual),s=mT(o.areObjectsEqual),c=mT(o.areSetsEqual);o=UT({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(e,l,u){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var f=e.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(e,l,u);if(KT(e))return t(e,l,u);if(null!=$T&&$T(e))return c(e,l,u);if(f===Date)return n(e,l,u);if(f===RegExp)return a(e,l,u);if(f===Map)return r(e,l,u);if(f===Set)return s(e,l,u);var d=WT(e);return d===RT?n(e,l,u):d===zT?a(e,l,u):d===NT?r(e,l,u):d===HT?s(e,l,u):d===FT?"function"!=typeof e.then&&"function"!=typeof l.then&&o(e,l,u):d===LT?o(e,l,u):(d===IT||d===BT||d===VT)&&i(e,l,u)}}(s),l=r?r(c):function(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}(c);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),c=s.cache,l=void 0===c?t?new WeakMap:void 0:c,u=s.meta;return n(e,a,{cache:l,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:c,createState:o,equals:l,strict:a})}function GT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function YT(e){return YT="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},YT(e)}function XT(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return JT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QT(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=XT(r),i=o[0],a=o.slice(1);return"number"==typeof i?void GT(n.bind(null,a),i):(n(i),void GT(n.bind(null,a)))}"object"===YT(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function eM(e){return eM="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},eM(e)}function tM(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 nM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tM(Object(n),!0).forEach((function(t){rM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT({strict:!0}),qT({circular:!0}),qT({circular:!0,strict:!0}),qT({createInternalComparator:function(){return xT}}),qT({strict:!0,createInternalComparator:function(){return xT}}),qT({circular:!0,createInternalComparator:function(){return xT}}),qT({circular:!0,createInternalComparator:function(){return xT},strict:!0});var oM=function(e){return e},iM=function(e,t){return Object.keys(t).reduce((function(n,r){return nM(nM({},n),{},rM({},r,e(r,t[r])))}),{})},aM=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},sM="production"!==process.env.NODE_ENV,cM=function(e,t,n,r,o,i,a,s){if(sM&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;console.warn(t.replace(/%s/g,(function(){return c[l++]})))}};function lM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||fM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uM(e){return function(e){if(Array.isArray(e))return dM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fM(e,t){if(e){if("string"==typeof e)return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dM(e,t):void 0}}function dM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pM=1e-4,hM=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},gM=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},vM=function(e,t){return function(n){var r=hM(e,t);return gM(r,n)}},yM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var c=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=lM(c,4);r=l[0],o=l[1],i=l[2],a=l[3]}else cM(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}cM([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,f,d=vM(r,i),p=vM(o,a),h=(u=r,f=i,function(e){var t=hM(u,f),n=[].concat(uM(t.map((function(e,t){return e*t})).slice(1)),[0]);return gM(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=d(r)-n,a=h(r);if(Math.abs(i-n)<pM||a<pM)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},mM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yM(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<pM&&Math.abs(i)<pM?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return yM(r);cM(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:(cM(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function bM(e){return bM="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},bM(e)}function wM(e){return function(e){if(Array.isArray(e))return kM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xM(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 CM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xM(Object(n),!0).forEach((function(t){SM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||OM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OM(e,t){if(e){if("string"==typeof e)return kM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kM(e,t):void 0}}function kM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EM=function(e,t,n){return e+(t-e)*n},jM=function(e){return e.from!==e.to},AM=function e(t,n,r){var o=iM((function(e,n){if(jM(n)){var r=_M(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return CM(CM({},n),{},{from:o,velocity:i})}return n}),n);return r<1?iM((function(e,t){return jM(t)?CM(CM({},t),{},{velocity:EM(t.velocity,o[e].velocity,r),from:EM(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},TM=function(e,t,n,r,o){var i,a,s,c,l=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=l.reduce((function(n,r){return CM(CM({},n),{},SM({},r,[e[r],t[r]]))}),{}),f=l.reduce((function(n,r){return CM(CM({},n),{},SM({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=AM(n,f,i),o(CM(CM(CM({},e),t),iM((function(e,t){return t.from}),f))),s=r,Object.values(f).filter(jM).length&&(d=requestAnimationFrame(p))}:function(i){c||(c=i);var a=(i-c)/r,s=iM((function(e,t){return EM.apply(void 0,wM(t).concat([n(a)]))}),u);if(o(CM(CM(CM({},e),t),s)),a<1)d=requestAnimationFrame(p);else{var l=iM((function(e,t){return EM.apply(void 0,wM(t).concat([n(1)]))}),u);o(CM(CM(CM({},e),t),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}};function MM(e){return MM="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},MM(e)}var PM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function DM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LM(e){return function(e){if(Array.isArray(e))return IM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return IM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RM(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 NM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach((function(t){BM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BM(e,t,n){return(t=zM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zM(r.key),r)}}function zM(e){var t=function(e,t){if("object"!==MM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===MM(t)?t:String(t)}function HM(e,t){return HM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HM(e,t)}function VM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UM(e);if(t){var o=UM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KM(this,n)}}function KM(e,t){if(t&&("object"===MM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $M(e)}function $M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(e){return UM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UM(e)}var WM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HM(e,t)}(a,t.PureComponent);var n,r,o,i=VM(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,c=r.from,l=r.to,u=r.steps,f=r.children,d=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind($M(n)),n.changeStyle=n.changeStyle.bind($M(n)),!o||d<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),KM(n);if(u&&u.length)n.state={style:u[0].style};else if(c){if("function"==typeof f)return n.state={style:c},KM(n);n.state={style:s?BM({},s,c):c}}else n.state={style:{}};return n}return n=a,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,s=t.from,c=this.state.style;if(r)if(n){if(!(ZT(e.to,a)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=l||i?s:e.to;if(this.state&&c){var f={style:o?BM({},o,u):u};(o&&c[o]!==u||!o&&c!==u)&&this.setState(f)}this.runAnimation(NM(NM({},this.props),{},{from:u,begin:0}))}}else{var d={style:o?BM({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=TM(n,r,mM(i),o,this.changeStyle);this.manager.start([c,a,function(){t.stopJSAnimation=l()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,c=void 0===s?0:s;return this.manager.start([o].concat(LM(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,c=r.style,l=r.properties,u=r.onAnimationEnd,f=o>0?n[o-1]:r,d=l||Object.keys(c);if("function"==typeof s||"spring"===s)return[].concat(LM(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:s}),i]);var p=aM(d,i,s),h=NM(NM(NM({},f.style),c),{},{transition:p});return[].concat(LM(e),[h,i,u]).filter(oM)}),[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=QT());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?BM({},r,o):o,d=aM(Object.keys(f),n,i);u.start([a,t,NM(NM({},f),{},{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var o=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=DM(e,PM),a=t.Children.count(n),s=this.state.style;if("function"==typeof n)return n(s);if(!o||0===a||r<=0)return n;var c=function(e){var n=e.props,r=n.style,o=void 0===r?{}:r,a=n.className;return t.cloneElement(e,NM(NM({},i),{},{style:NM(NM({},o),s),className:a}))};return 1===a?c(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return c(e)})))}}],r&&FM(n.prototype,r),o&&FM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function ZM(e){return ZM="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},ZM(e)}function qM(){return qM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qM.apply(this,arguments)}function GM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XM(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 JM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XM(Object(n),!0).forEach((function(t){QM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QM(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ZM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZM(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}WM.displayName="Animate",WM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},WM.propTypes={from:pT.oneOfType([pT.object,pT.string]),to:pT.oneOfType([pT.object,pT.string]),attributeName:pT.string,duration:pT.number,begin:pT.number,easing:pT.oneOfType([pT.string,pT.func]),steps:pT.arrayOf(pT.shape({duration:pT.number.isRequired,style:pT.object.isRequired,easing:pT.oneOfType([pT.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),pT.func]),properties:pT.arrayOf("string"),onAnimationEnd:pT.func})),children:pT.oneOfType([pT.node,pT.func]),isActive:pT.bool,canBegin:pT.bool,onAnimationEnd:pT.func,shouldReAnimate:pT.bool,onAnimationStart:pT.func,onAnimationReStart:pT.func},pT.object,pT.object,pT.object,pT.element,pT.object,pT.object,pT.object,pT.oneOfType([pT.array,pT.element]),pT.any;var eP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},tP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},nP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rP=function(e){var n=JM(JM({},nP),e),r=t.useRef(),o=GM(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.width,u=n.height,f=n.radius,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Uc("recharts-rectangle",d);return y?t.createElement(WM,{canBegin:i>0,from:{width:l,height:u,x:s,y:c},to:{width:l,height:u,x:s,y:c},duration:h,animationEasing:p,isActive:y},(function(e){var o=e.width,a=e.height,s=e.x,c=e.y;return t.createElement(WM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:v,easing:p},t.createElement("path",qM({},yd(n,!0),{className:m,d:eP(s,c,o,a,f),ref:r})))})):t.createElement("path",qM({},yd(n,!0),{className:m,d:eP(s,c,l,u,f)}))},oP=["points","className","baseLinePoints","connectNulls"];function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iP.apply(this,arguments)}function aP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sP(e){return function(e){if(Array.isArray(e))return cP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lP=function(e){return e&&e.x===+e.x&&e.y===+e.y},uP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){lP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),lP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(sP(e),sP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},fP=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=aP(e,oP);if(!n||!n.length)return null;var s=Uc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=uP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(uP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",iP({},yd(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",iP({},yd(a,!0),{fill:"none",d:uP(n,i)})):null,c?t.createElement("path",iP({},yd(a,!0),{fill:"none",d:uP(o,i)})):null)}var u=uP(n,i);return t.createElement("path",iP({},yd(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function dP(){return dP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dP.apply(this,arguments)}var pP=function(e){var n=e.cx,r=e.cy,o=e.r,i=Uc("recharts-dot",e.className);return n===+n&&r===+r&&o===+o?t.createElement("circle",dP({},yd(e,!1),nd(e),{className:i,cx:n,cy:r,r:o})):null};function hP(e){return hP="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},hP(e)}var gP=["x","y","top","left","width","height","className"];function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vP.apply(this,arguments)}function yP(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 mP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=hP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hP(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wP=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},xP=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.top,s=void 0===a?0:a,c=e.left,l=void 0===c?0:c,u=e.width,f=void 0===u?0:u,d=e.height,p=void 0===d?0:d,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(n),!0).forEach((function(t){mP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:i,top:s,left:l,width:f,height:p},bP(e,gP));return Vf(r)&&Vf(i)&&Vf(f)&&Vf(p)&&Vf(s)&&Vf(l)?t.createElement("path",vP({},yd(g,!0),{className:Uc("recharts-cross",h),d:wP(r,i,f,p,s,l)})):null},CP=_k,SP=Ok,_P=Qy;var OP=function(e,t){return e&&e.length?CP(e,_P(t),SP):void 0},kP=ct(OP),EP=_k,jP=Qy,AP=Mk;var TP=function(e,t){return e&&e.length?EP(e,jP(t),AP):void 0},MP=ct(TP),PP=["cx","cy","angle","ticks","axisLine"],DP=["ticks","tick","angle","tickFormatter","stroke"];function LP(e){return LP="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},LP(e)}function IP(){return IP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IP.apply(this,arguments)}function RP(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 NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RP(Object(n),!0).forEach((function(t){$P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UP(r.key),r)}}function zP(e,t,n){return t=VP(t),function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,HP()?Reflect.construct(t,n||[],VP(e).constructor):t.apply(e,n))}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HP=function(){return!!e})()}function VP(e){return VP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VP(e)}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function $P(e,t,n){return(t=UP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UP(e){var t=function(e,t){if("object"!=LP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LP(t)?t:String(t)}var WP=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),zP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KP(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return qj(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=kP(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:MP(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=BP(e,PP),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=qj(n,r,c[0],o),u=qj(n,r,c[1],o),f=NP(NP(NP({},yd(s,!1)),{},{fill:"none"},yd(a,!1)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",IP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.angle,s=r.tickFormatter,c=r.stroke,l=BP(r,DP),u=this.getTickTextAnchor(),f=yd(l,!1),d=yd(i,!1),p=o.map((function(r,o){var l=e.getTickValueCoord(r),p=NP(NP(NP(NP({textAnchor:u,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:o},l),{},{payload:r});return t.createElement(jd,IP({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(jd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),pA.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,IP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],o&&FP(r.prototype,o),i&&FP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function ZP(e){return ZP="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},ZP(e)}function qP(){return qP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qP.apply(this,arguments)}function GP(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 YP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GP(Object(n),!0).forEach((function(t){nD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rD(r.key),r)}}function JP(e,t,n){return t=eD(t),function(e,t){if(t&&("object"===ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QP()?Reflect.construct(t,n||[],eD(e).constructor):t.apply(e,n))}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QP=function(){return!!e})()}function eD(e){return eD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eD(e)}function tD(e,t){return tD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tD(e,t)}function nD(e,t,n){return(t=rD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rD(e){var t=function(e,t){if("object"!=ZP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZP(t)?t:String(t)}$P(WP,"displayName","PolarRadiusAxis"),$P(WP,"axisType","radiusAxis"),$P(WP,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var oD=Math.PI/180,iD=1e-5,aD=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),JP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tD(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=qj(n,r,o,e.coordinate),c=qj(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*oD);return n>iD?"outer"===t?"start":"end":n<-iD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=YP(YP({},yd(this.props,!1)),{},{fill:"none"},yd(i,!1));if("circle"===a)return t.createElement(pP,qP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return qj(n,r,o,e.coordinate)}));return t.createElement(fP,qP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.tickLine,s=r.tickFormatter,c=r.stroke,l=yd(this.props,!1),u=yd(i,!1),f=YP(YP({},l),{},{fill:"none"},yd(a,!1)),d=o.map((function(r,o){var d=e.getTickLineCoord(r),p=YP(YP(YP({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:c},u),{},{index:o,payload:r,x:d.x2,y:d.y2});return t.createElement(jd,qP({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),a&&t.createElement("line",qP({className:"recharts-polar-angle-axis-tick-line"},f,d)),i&&n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(jd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,qP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],o&&XP(r.prototype,o),i&&XP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();nD(aD,"displayName","PolarAngleAxis"),nD(aD,"axisType","angleAxis"),nD(aD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var sD=iv(Object.getPrototypeOf,Object),cD=cl,lD=sD,uD=ll,fD=Function.prototype,dD=Object.prototype,pD=fD.toString,hD=dD.hasOwnProperty,gD=pD.call(Object);var vD=ct((function(e){if(!uD(e)||"[object Object]"!=cD(e))return!1;var t=lD(e);if(null===t)return!0;var n=hD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pD.call(n)==gD})),yD=cl,mD=ll;var bD=ct((function(e){return!0===e||!1===e||mD(e)&&"[object Boolean]"==yD(e)}));function wD(e){return wD="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},wD(e)}function xD(){return xD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xD.apply(this,arguments)}function CD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SD(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _D(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 OD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_D(Object(n),!0).forEach((function(t){kD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=wD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ED,jD=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},AD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},TD=function(e){var n=OD(OD({},AD),e),r=t.useRef(),o=CD(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.upperWidth,u=n.lowerWidth,f=n.height,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||f!==+f||0===l&&0===u||0===f)return null;var y=Uc("recharts-trapezoid",d);return v?t.createElement(WM,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:s,y:c},to:{upperWidth:l,lowerWidth:u,height:f,x:s,y:c},duration:h,animationEasing:p,isActive:v},(function(e){var o=e.upperWidth,a=e.lowerWidth,s=e.height,c=e.x,l=e.y;return t.createElement(WM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:p},t.createElement("path",xD({},yd(n,!0),{className:y,d:jD(c,l,o,a,s),ref:r})))})):t.createElement("g",null,t.createElement("path",xD({},yd(n,!0),{className:y,d:jD(s,c,l,u,f)})))},MD=["option","shapeType","propTransformer","activeClassName","isActive"];function PD(e){return PD="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},PD(e)}function DD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LD(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 ID(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LD(Object(n),!0).forEach((function(t){RD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ND(e,t){return ID(ID({},t),e)}function BD(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(rP,r);case"trapezoid":return t.createElement(TD,r);case"sector":return t.createElement(NA,r);case"symbols":if(function(e,t){return"symbols"===e}(n))return t.createElement(bh,r);break;default:return null}}function FD(e){var n,r=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?ND:i,s=e.activeClassName,c=void 0===s?"recharts-active-shape":s,l=e.isActive,u=DD(e,MD);if(t.isValidElement(r))n=t.cloneElement(r,ID(ID({},u),function(e){return t.isValidElement(e)?e.props:e}(r)));else if(_l(r))n=r(u);else if(vD(r)&&!bD(r)){var f=a(r,u);n=t.createElement(BD,{shapeType:o,elementProps:f})}else{var d=u;n=t.createElement(BD,{shapeType:o,elementProps:d})}return l?t.createElement(jd,{className:c},n):n}function zD(e,t){return null!=t&&"trapezoids"in e.props}function HD(e,t){return null!=t&&"sectors"in e.props}function VD(e,t){return null!=t&&"points"in e.props}function KD(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function $D(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function UD(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function WD(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return zD(e,t)?n="trapezoids":HD(e,t)?n="sectors":VD(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return zD(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:HD(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:VD(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=Wk(i,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return zD(e,t)?n=KD:HD(e,t)?n=$D:VD(e,t)&&(n=UD),n}(n,t);return r(e,t)})),c=n.props[o].indexOf(s[s.length-1]);return a&&r===c}));return r.indexOf(a[a.length-1])}function ZD(e){return ZD="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},ZD(e)}function qD(){return qD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qD.apply(this,arguments)}function GD(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 YD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GD(Object(n),!0).forEach((function(t){rL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oL(r.key),r)}}function JD(e,t,n){return t=eL(t),function(e,t){if(t&&("object"===ZD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tL(e)}(e,QD()?Reflect.construct(t,n||[],eL(e).constructor):t.apply(e,n))}function QD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QD=function(){return!!e})()}function eL(e){return eL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eL(e)}function tL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nL(e,t){return nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nL(e,t)}function rL(e,t,n){return(t=oL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oL(e){var t=function(e,t){if("object"!=ZD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZD(t)?t:String(t)}var iL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),rL(tL(t=JD(this,n,[e])),"pieRef",null),rL(tL(t),"sectorRefs",[]),rL(tL(t),"id",Uf("recharts-pie-")),rL(tL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),_l(e)&&e()})),rL(tL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),_l(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nL(e,t)}(n,t.PureComponent),r=n,o=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.label,i=r.labelLine,a=r.dataKey,s=r.valueKey,c=yd(this.props,!1),l=yd(o,!1),u=yd(i,!1),f=o&&o.offsetRadius||20,d=e.map((function(e,r){var d=(e.startAngle+e.endAngle)/2,p=qj(e.cx,e.cy,e.outerRadius+f,d),h=YD(YD(YD(YD({},c),e),{},{stroke:"none"},l),{},{index:r,textAnchor:n.getTextAnchor(p.x,e.cx)},p),g=YD(YD(YD(YD({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:r,points:[qj(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=a;return Sf(a)&&Sf(s)?v="value":Sf(a)&&(v=s),t.createElement(jd,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(r)},i&&n.renderLabelLineItem(i,g),n.renderLabelItem(o,h,gj(e,v)))}));return t.createElement(jd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map((function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var c=n.isActiveIndex(s),l=a&&n.hasActiveIndex()?a:null,u=c?o:l,f=YD(YD({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(jd,qD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},rd(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(FD,qD({option:u,isActive:c,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(WM,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?Cf(e,"paddingAngle",0):0;if(n){var s=qf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=YD(YD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=qf(0,l-f)(o),p=YD(YD({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(jd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Wk(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Vf(s)||!Vf(c)||!Vf(l)||!Vf(u))return null;var p=Uc("recharts-pie",i);return t.createElement(jd,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),pA.renderCallByParent(this.props,null,!1),(!f||d)&&jA.renderCallByParent(this.props,o,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(qA,qD({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return _l(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(zx,qD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}],o&&XD(r.prototype,o),i&&XD(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();ED=iL,rL(iL,"displayName","Pie"),rL(iL,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!pw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),rL(iL,"parseDeltaAngle",(function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)})),rL(iL,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=yd(e.props,!1),i=pd(r,rx);return n&&n.length?n.map((function(e,t){return YD(YD(YD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return YD(YD({},o),e.props)})):[]})),rL(iL,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Gj(o,i);return{cx:r+Wf(e.props.cx,o,o/2),cy:n+Wf(e.props.cy,i,i/2),innerRadius:Wf(e.props.innerRadius,a,0),outerRadius:Wf(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),rL(iL,"getComposedData",(function(e){var t=e.item,n=e.offset,r=ED.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=ED.parseCoordinateOfPie(t,n),g=ED.parseDeltaAngle(a,s),v=Math.abs(g),y=l;Sf(l)&&Sf(f)?(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):Sf(l)&&(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==gj(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=gj(t,y,0);return e+(Vf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=gj(e,y,0),o=gj(e,u,t),s=(Vf(r)?r:0)/C,l=(n=t?b.endAngle+zf(g)*c*(0!==r?1:0):a)+zf(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=qj(h.cx,h.cy,v,f);return b=YD(YD(YD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:gj(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:zf(g)*c})})));return YD(YD({},h),{},{sectors:m,data:r})}));var aL=Math.ceil,sL=Math.max;var cL=function(e,t,n,r){for(var o=-1,i=sL(aL((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},lL=Fw,uL=1/0;var fL=function(e){return e?(e=lL(e))===uL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},dL=cL,pL=Ib,hL=fL;var gL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&pL(t,n,r)&&(n=r=void 0),t=hL(t),void 0===n?(n=t,t=0):n=hL(n),r=void 0===r?t<n?1:-1:hL(r),dL(t,n,r,e)}}());function vL(e){return vL="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},vL(e)}function yL(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 mL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yL(Object(n),!0).forEach((function(t){bL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wL=["Webkit","Moz","O","ms"];function xL(e){return xL="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},xL(e)}function CL(){return CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CL.apply(this,arguments)}function SL(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 _L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SL(Object(n),!0).forEach((function(t){ML(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PL(r.key),r)}}function kL(e,t,n){return t=jL(t),function(e,t){if(t&&("object"===xL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return AL(e)}(e,EL()?Reflect.construct(t,n||[],jL(e).constructor):t.apply(e,n))}function EL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EL=function(){return!!e})()}function jL(e){return jL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jL(e)}function AL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TL(e,t){return TL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TL(e,t)}function ML(e,t,n){return(t=PL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PL(e){var t=function(e,t){if("object"!=xL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xL(t)?t:String(t)}var DL=function(e){return e.changedTouches&&!!e.changedTouches.length},LL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ML(AL(t=kL(this,n,[e])),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),ML(AL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),ML(AL(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})})),t.detachDragEndListener()})),ML(AL(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),ML(AL(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),ML(AL(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),ML(AL(t),"handleSlideDragStart",(function(e){var n=DL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(AL(t),"startX"),endX:t.handleTravellerDragStart.bind(AL(t),"endX")},t.state={},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TL(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,c=Math.min(t,r),l=Math.max(t,r),u=n.getIndexInRange(o,c),f=n.getIndexInRange(o,l);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=gj(n[e],o,e);return _l(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=DL(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,c+l-u-a):g<0&&(g=Math.max(g,c-a)),h[r]=a+g;var v=this.getIndex(h),y=v.startIndex,m=v.endIndex;this.setState(ML(ML({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=p.length-1,("startX"===r&&(o>i?y%d==0:m%d==0)||o<i&&m===e||"endX"===r&&(o>i?m%d==0:y%d==0)||o>i&&m===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[t],c=o.indexOf(s);if(-1!==c){var l=c+e;if(!(-1===l||l>=o.length)){var u=o[l];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(ML({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,r){var o=this,i=this.props,a=i.y,s=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,f=i.data,d=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=_L(_L({},yd(this.props,!1)),{},{x:h,y:a,width:s,height:c}),v=u||"Min value: ".concat(f[d].name,", Max value: ").concat(f[p].name);return t.createElement(jd,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(l,g))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,l=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(jd,{className:"recharts-brush-texts"},t.createElement(zx,CL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(zx,CL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving,v=u.isTravellerFocused;if(!n||!n.length||!Vf(i)||!Vf(a)||!Vf(s)||!Vf(c)||s<=0||c<=0)return null;var y=Uc("recharts-brush",r),m=1===t.Children.count(o),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=wL.reduce((function(e,r){return mL(mL({},e),{},bL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(jd,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):_l(e)?e(r):n.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return _L({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=gC().domain(gL(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],o&&OL(r.prototype,o),i&&OL(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();ML(LL,"displayName","Brush"),ML(LL,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var IL=Xm;var RL=function(e,t){var n;return IL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},NL=Gh,BL=Qy,FL=RL,zL=Wc,HL=Ib;var VL=function(e,t,n){var r=zL(e)?NL:FL;return n&&HL(e,t,n)&&(t=void 0),r(e,BL(t))},KL=ct(VL),$L=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},UL=xb;var WL=function(e,t,n){"__proto__"==t&&UL?UL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ZL=WL,qL=qm,GL=Qy;var YL=function(e,t){var n={};return t=GL(t),qL(e,(function(e,r,o){ZL(n,r,t(e,r,o))})),n},XL=ct(YL);var JL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},QL=Xm;var eI=function(e,t){var n=!0;return QL(e,(function(e,r,o){return n=!!t(e,r,o)})),n},tI=JL,nI=eI,rI=Qy,oI=Wc,iI=Ib;var aI=function(e,t,n){var r=oI(e)?tI:nI;return n&&iI(e,t,n)&&(t=void 0),r(e,rI(t))},sI=ct(aI),cI=["x","y"];function lI(e){return lI="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},lI(e)}function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function fI(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 dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fI(Object(n),!0).forEach((function(t){pI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gI(e,t){var n=e.x,r=e.y,o=hI(e,cI),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||o.height),u=parseInt(l,10),f="".concat(t.width||o.width),d=parseInt(f,10);return dI(dI(dI(dI(dI({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function vI(e){return t.createElement(FD,uI({shapeType:"rectangle",propTransformer:gI,activeClassName:"recharts-active-bar"},e))}var yI,mI=["value","background"];function bI(e){return bI="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},bI(e)}function wI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xI(){return xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xI.apply(this,arguments)}function CI(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 SI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CI(Object(n),!0).forEach((function(t){TI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MI(r.key),r)}}function OI(e,t,n){return t=EI(t),function(e,t){if(t&&("object"===bI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jI(e)}(e,kI()?Reflect.construct(t,n||[],EI(e).constructor):t.apply(e,n))}function kI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kI=function(){return!!e})()}function EI(e){return EI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EI(e)}function jI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AI(e,t){return AI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AI(e,t)}function TI(e,t,n){return(t=MI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MI(e){var t=function(e,t){if("object"!=bI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bI(t)?t:String(t)}var PI=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return TI(jI(e=OI(this,n,[].concat(r))),"state",{isAnimationFinished:!1}),TI(jI(e),"id",Uf("recharts-bar-")),TI(jI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),TI(jI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AI(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,s=r.activeBar,c=yd(this.props,!1);return e&&e.map((function(e,r){var l=r===a,u=l?s:o,f=SI(SI(SI({},c),e),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(jd,xI({className:"recharts-bar-rectangle"},rd(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(vI,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,l=n.animationId,u=this.state.prevData;return t.createElement(WM,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=qf(n.x,e.x),a=qf(n.y,e.y),s=qf(n.width,e.width),c=qf(n.height,e.height);return SI(SI({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=qf(0,e.height)(i);return SI(SI({},e),{},{y:e.y+e.height-l,height:l})}var f=qf(0,e.width)(i);return SI(SI({},e),{},{width:f})}));return t.createElement(jd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Wk(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,o=n.dataKey,i=n.activeIndex,a=yd(this.props.background,!1);return r.map((function(n,r){n.value;var s=n.background,c=wI(n,mI);if(!s)return null;var l=SI(SI(SI(SI(SI({},c),{},{fill:"#eee"},s),a),rd(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.createElement(vI,xI({option:e.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=pd(r.children,rj);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:gj(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,f,c.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Uc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=Sf(p)?this.id:p;return t.createElement(jd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(jd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&jA.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],o&&_I(r.prototype,o),i&&_I(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function DI(e){return DI="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},DI(e)}function LI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BI(r.key),r)}}function II(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 RI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?II(Object(n),!0).forEach((function(t){NI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):II(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NI(e,t,n){return(t=BI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BI(e){var t=function(e,t){if("object"!=DI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DI(t)?t:String(t)}yI=PI,TI(PI,"displayName","Bar"),TI(PI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!pw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),TI(PI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=pd(y,rx),S=f.map((function(e,t){var r,f,d,g,y,b;l?r=function(e,t){if(!t||2!==t.length||!Vf(t[0])||!Vf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Vf(e[0])||e[0]<n)&&(o[0]=n),(!Vf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=gj(e,v),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?XE(!1,"minPointSize callback function received a value with type of ".concat(lI(n),". Currently only numbers are supported.")):XE(!1)),t)}}(m,yI.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var _,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],E=O[1];f=Pj({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=E?E:k)&&void 0!==_?_:void 0,g=p.size;var j=k-E;if(y=Number.isNaN(j)?0:j,b={x:f,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)){var A=zf(y||S)*(Math.abs(S)-Math.abs(y));d-=A,y+=A}}else{var T=[i.scale(r[0]),i.scale(r[1])],M=T[0],P=T[1];if(f=M,d=Pj({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=P-M,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=zf(g||S)*(Math.abs(S)-Math.abs(g))}return SI(SI(SI({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[Fj(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return SI({data:S,layout:h},d)}));var FI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!hd(c,PI);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=y[1]-y[0],_=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(_=Math.min((e||0)-(O[t-1]||0),_))}));var k=_/S,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Wf(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}l="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(l=[l[1],l[0]]);var T=Oj(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),Ej(M);var D=Tj(M,RI(RI({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=RI(RI(RI({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=Nj(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,RI(RI({},i),{},NI({},a,L))}),{})},zI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},HI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&LI(t.prototype,n),r&&LI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();NI(HI,"EPS",1e-4);var VI=function(e){var t=Object.keys(e).reduce((function(t,n){return RI(RI({},t),{},NI({},n,HI.create(e[n])))}),{});return RI(RI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XL(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return sI(e,(function(e,n){return t[n].isInRange(e)}))}})};var KI=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},$I=Qy,UI=pv,WI=yv;var ZI=function(e){return function(t,n,r){var o=Object(t);if(!UI(t)){var i=$I(n);t=WI(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},qI=fL;var GI=em,YI=Qy,XI=function(e){var t=qI(e),n=t%1;return t==t?n?t-n:t:0},JI=Math.max;var QI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:XI(n);return o<0&&(o=JI(r+o,0)),GI(e,YI(t),o)},eR=ct(ZI(QI)),tR=Zu((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function nR(e){return nR="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},nR(e)}var rR=t.createContext(void 0),oR=t.createContext(void 0),iR=t.createContext(void 0),aR=t.createContext({}),sR=t.createContext(void 0),cR=t.createContext(0),lR=t.createContext(0),uR=function(e){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=e.clipPathId,s=e.children,c=e.width,l=e.height,u=tR(i);return t.createElement(rR.Provider,{value:r},t.createElement(oR.Provider,{value:o},t.createElement(aR.Provider,{value:i},t.createElement(iR.Provider,{value:u},t.createElement(sR.Provider,{value:a},t.createElement(cR.Provider,{value:l},t.createElement(lR.Provider,{value:c},s)))))))};function fR(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var dR=function(e){var n=t.useContext(rR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(nR(e),"]. ").concat(fR(n))):XE(!1)),r},pR=function(e){var n=t.useContext(oR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(nR(e),"]. ").concat(fR(n))):XE(!1)),r},hR=function(){return t.useContext(lR)},gR=function(){return t.useContext(cR)};function vR(e){return vR="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},vR(e)}function yR(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 mR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yR(Object(n),!0).forEach((function(t){bR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CR(){return CR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CR.apply(this,arguments)}function SR(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,c=e.className,l=e.alwaysShow,u=t.useContext(sR),f=dR(i),d=pR(a),p=t.useContext(iR);if(!u||!p)return null;Td(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,a,s,c){var l=o.x,u=o.y,f=o.width,d=o.height;if(n){var p=c.y,h=e.y.apply(p,{position:i});if($L(c,"discard")&&!e.y.isInRange(h))return null;var g=[{x:l+f,y:h},{x:l,y:h}];return"left"===s?g.reverse():g}if(t){var v=c.x,y=e.x.apply(v,{position:i});if($L(c,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:u+d},{x:y,y:u}];return"top"===a?m.reverse():m}if(r){var b=c.segment.map((function(t){return e.apply(t,{position:i})}));return $L(c,"discard")&&KL(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(VI({x:f.scale,y:d.scale}),Kf(n),Kf(r),o&&2===o.length,p,e.position,f.orientation,d.orientation,e);if(!h)return null;var g=wR(h,2),v=g[0],y=v.x,m=v.y,b=g[1],w=b.x,x=b.y,C=mR(mR({clipPath:$L(e,"hidden")?"url(#".concat(u,")"):void 0},yd(e,!0)),{},{x1:y,y1:m,x2:w,y2:x});return t.createElement(jd,{className:Uc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement("line",CR({},n,{className:"recharts-reference-line-line"}))}(s,C),pA.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return zI({x:t,y:n},{x:r,y:o})}({x1:y,y1:m,x2:w,y2:x})))}function _R(e){return _R="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(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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OR.apply(this,arguments)}function kR(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 ER(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach((function(t){jR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=_R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_R(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}SR.displayName="ReferenceLine",SR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function AR(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Kf(n),c=Kf(r);if(Td(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=VI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return $L(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=ER(ER({clipPath:$L(e,"hidden")?"url(#".concat(a,")"):void 0},yd(e,!0)),{},{cx:u,cy:f});return t.createElement(jd,{className:Uc("recharts-reference-dot",p)},AR.renderDot(d,h),pA.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function TR(e){return TR="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},TR(e)}function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MR.apply(this,arguments)}function PR(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 DR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PR(Object(n),!0).forEach((function(t){LR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=TR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=TR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AR.displayName="ReferenceDot",AR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},AR.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(pP,OR({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function IR(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Td(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Kf(n),u=Kf(r),f=Kf(o),d=Kf(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=VI({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!$L(o,"discard")||f.isInRange(d)&&f.isInRange(p)?zI(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=$L(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(jd,{className:Uc("recharts-reference-area",a)},IR.renderRect(p,DR(DR({clipPath:g},yd(e,!0)),h)),pA.renderCallByParent(e,h))}function RR(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function NR(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function BR(e){return BR="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},BR(e)}function FR(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 zR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FR(Object(n),!0).forEach((function(t){HR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VR(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Vf(c)||pw.isSsr)return function(e,t){return RR(e,t+1)}(o,"number"==typeof c&&Vf(c)?c:0);var d=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?fx(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=_l(l)?l(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return KI(r,n)}(fx(o,{fontSize:t,letterSpacing:n}),h,f):fx(o,{fontSize:t,letterSpacing:n})[p]},v=o.length>=2?zf(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,s=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,p);return"equidistantPreserveStart"===c?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),s=t.start,c=t.end,l=0,u=1,f=s,d=function(){var t=null==r?void 0:r[l];if(void 0===t)return{v:RR(r,u)};var i,a=l,d=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===l||NR(e,p,d,f,c);h||(l=0,f=s,u+=1),h&&(f=p+e*(d()/2+o),l+=u)};u<=a.length;)if(i=d())return i.v;return[]}(v,y,g,o,a):(d="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(i){var u=r[s-1],f=n(u,s-1),d=e*(u.coordinate+e*f/2-l);a[s-1]=u=zR(zR({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),NR(e,u.tickCoord,(function(){return f}),c,l)&&(l=u.tickCoord-e*(f/2+o),a[s-1]=zR(zR({},u),{},{isShow:!0}))}for(var p=i?s-1:s,h=function(t){var r,i=a[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-c);a[t]=i=zR(zR({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=zR(zR({},i),{},{tickCoord:i.coordinate});NR(e,i.tickCoord,s,c,l)&&(c=i.tickCoord+e*(s()/2+o),a[t]=zR(zR({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(v,y,g,o,a,"preserveStartEnd"===c):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,l=function(t){var r,l=i[t],u=function(){return void 0===r&&(r=n(l,t)),r};if(t===a-1){var f=e*(l.coordinate+e*u()/2-c);i[t]=l=zR(zR({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else i[t]=l=zR(zR({},l),{},{tickCoord:l.coordinate});NR(e,l.tickCoord,u,s,c)&&(c=l.tickCoord-e*(u()/2+o),i[t]=zR(zR({},l),{},{isShow:!0}))},u=a-1;u>=0;u--)l(u);return i}(v,y,g,o,a),d.filter((function(e){return e.isShow})))}IR.displayName="ReferenceArea",IR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},IR.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(rP,MR({},n,{className:"recharts-reference-area-rect"}))};var KR=["viewBox"],$R=["viewBox"],UR=["ticks"];function WR(e){return WR="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},WR(e)}function ZR(){return ZR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZR.apply(this,arguments)}function qR(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 GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(n),!0).forEach((function(t){nN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function XR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rN(r.key),r)}}function JR(e,t,n){return t=eN(t),function(e,t){if(t&&("object"===WR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QR()?Reflect.construct(t,n||[],eN(e).constructor):t.apply(e,n))}function QR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QR=function(){return!!e})()}function eN(e){return eN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eN(e)}function tN(e,t){return tN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tN(e,t)}function nN(e,t,n){return(t=rN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rN(e){var t=function(e,t){if("object"!=WR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=WR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WR(t)?t:String(t)}var oN=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=JR(this,n,[e])).state={fontSize:"",letterSpacing:""},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tN(e,t)}(n,t.Component),r=n,o=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=YR(e,KR),o=this.props,i=o.viewBox,a=YR(o,$R);return!Yf(n,i)||!Yf(r,a)||!Yf(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=Vf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,l=GR(GR(GR({},yd(this.props,!1)),yd(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=GR(GR({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=GR(GR({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",ZR({},l,{className:Uc("recharts-cartesian-axis-line",Cf(c,"className"))}))}},{key:"renderTicks",value:function(e,r,o){var i=this,a=this.props,s=a.tickLine,c=a.stroke,l=a.tick,u=a.tickFormatter,f=a.unit,d=VR(GR(GR({},this.props),{},{ticks:e}),r,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=yd(this.props,!1),v=yd(l,!1),y=GR(GR({},g),{},{fill:"none"},yd(s,!1)),m=d.map((function(e,r){var o=i.getTickLineCoord(e),a=o.line,m=o.tick,b=GR(GR(GR(GR({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:r,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(jd,ZR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},rd(i.props,e,r)),s&&t.createElement("line",ZR({},y,a,{className:Uc("recharts-cartesian-axis-tick-line",Cf(s,"className"))})),l&&n.renderTickItem(l,b,"".concat(_l(u)?u(e.value,r):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,l=c.ticks,u=YR(c,UR),f=l;return _l(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(jd,{className:Uc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),pA.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,ZR({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],o&&XR(r.prototype,o),i&&XR(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();nN(oN,"displayName","CartesianAxis"),nN(oN,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var iN=["x1","y1","x2","y2","key"],aN=["offset"];function sN(e){return sN="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},sN(e)}function cN(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 lN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(){return fN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fN.apply(this,arguments)}function dN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var pN=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function hN(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=dN(n,iN),u=yd(l,!1);u.offset;var f=dN(u,aN);r=t.createElement("line",fN({},f,{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}function gN(e){var n=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=lN(lN({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(o),index:o});return hN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function vN(e){var n=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=lN(lN({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(o),index:o});return hN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function yN(e){var n=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height,c=e.horizontalPoints,l=e.horizontal;if(!(void 0===l||l)||!n||!n.length)return null;var u=c.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var f=u.map((function(e,c){var l=!u[c+1]?i+s-e:u[c+1]-e;if(l<=0)return null;var f=c%n.length;return t.createElement("rect",{key:"react-".concat(c),y:e,x:o,height:l,width:a,stroke:"none",fill:n[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function mN(e){var n=e.vertical,r=void 0===n||n,o=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,c=e.width,l=e.height,u=e.verticalPoints;if(!r||!o||!o.length)return null;var f=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==f[0]&&f.unshift(0);var d=f.map((function(e,n){var r=!f[n+1]?a+c-e:f[n+1]-e;if(r<=0)return null;var u=n%o.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:l,stroke:"none",fill:o[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var bN=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return xj(VR(lN(lN(lN({},oN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},wN=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return xj(VR(lN(lN(lN({},oN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},xN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function CN(e){var n,r,o,i,a,s,c,l,u=hR(),f=gR(),d=t.useContext(aR),p=lN(lN({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:xN.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:xN.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:xN.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:xN.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:xN.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:xN.verticalFill,x:Vf(e.x)?e.x:d.left,y:Vf(e.y)?e.y:d.top,width:Vf(e.width)?e.width:d.width,height:Vf(e.height)?e.height:d.height}),h=p.x,g=p.y,v=p.width,y=p.height,m=p.syncWithTicks,b=p.horizontalValues,w=p.verticalValues,x=(c=t.useContext(rR),Zf(c)),C=(l=t.useContext(oR),eR(l,(function(e){return sI(e.domain,Number.isFinite)}))||Zf(l));if(!Vf(v)||v<=0||!Vf(y)||y<=0||!Vf(h)||h!==+h||!Vf(g)||g!==+g)return null;var S=p.verticalCoordinatesGenerator||bN,_=p.horizontalCoordinatesGenerator||wN,O=p.horizontalPoints,k=p.verticalPoints;if((!O||!O.length)&&_l(_)){var E=b&&b.length,j=_({yAxis:C?lN(lN({},C),{},{ticks:E?b:C.ticks}):void 0,width:u,height:f,offset:d},!!E||m);Td(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(sN(j),"]")),Array.isArray(j)&&(O=j)}if((!k||!k.length)&&_l(S)){var A=w&&w.length,T=S({xAxis:x?lN(lN({},x),{},{ticks:A?w:x.ticks}):void 0,width:u,height:f,offset:d},!!A||m);Td(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(sN(T),"]")),Array.isArray(T)&&(k=T)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(pN,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height}),t.createElement(gN,fN({},p,{offset:d,horizontalPoints:O,xAxis:x,yAxis:C})),t.createElement(vN,fN({},p,{offset:d,verticalPoints:k,xAxis:x,yAxis:C})),t.createElement(yN,fN({},p,{horizontalPoints:O})),t.createElement(mN,fN({},p,{verticalPoints:k})))}CN.displayName="CartesianGrid";var SN=["type","layout","connectNulls","ref"];function _N(e){return _N="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},_N(e)}function ON(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kN(){return kN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kN.apply(this,arguments)}function EN(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 jN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AN(e){return function(e){if(Array.isArray(e))return TN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return TN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TN(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BN(r.key),r)}}function PN(e,t,n){return t=LN(t),function(e,t){if(t&&("object"===_N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return IN(e)}(e,DN()?Reflect.construct(t,n||[],LN(e).constructor):t.apply(e,n))}function DN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DN=function(){return!!e})()}function LN(e){return LN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LN(e)}function IN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RN(e,t){return RN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RN(e,t)}function NN(e,t,n){return(t=BN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e){var t=function(e,t){if("object"!=_N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_N(t)?t:String(t)}var FN=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return NN(IN(e=PN(this,n,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),NN(IN(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),NN(IN(e),"getStrokeDasharray",(function(t,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,t);for(var a=Math.floor(t/i),s=t%i,c=r-t,l=[],u=0,f=0;u<o.length;f+=o[u],++u)if(f+o[u]>s){l=[].concat(AN(o.slice(0,u)),[s-f]);break}var d=l.length%2==0?[0,c]:[c];return[].concat(AN(n.repeat(o,a)),AN(l),d).map((function(e){return"".concat(e,"px")})).join(", ")})),NN(IN(e),"id",Uf("recharts-line-")),NN(IN(e),"pathRef",(function(t){e.mainCurve=t})),NN(IN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),NN(IN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RN(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=pd(r.children,rj);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gj(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,u,c.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,s=i.points,c=i.dataKey,l=yd(this.props,!1),u=yd(a,!0),f=s.map((function(e,t){var r=jN(jN(jN({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.renderDotItem(a,r)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(o,")"):null};return t.createElement(jd,kN({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=ON(i,SN),u=jN(jN(jN({},yd(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(qA,kN({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(WM,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=qf(r.x,e.x),a=qf(r.y,e.y);return jN(jN({},e),{},{x:i(o),y:a(o)})}if(d){var c=qf(2*p,e.x),l=qf(h/2,e.y);return jN(jN({},e),{},{x:c(o),y:l(o)})}return jN(jN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=qf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l=r.generateSimpleStrokeDasharray(y,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!Wk(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Uc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=Sf(h)?this.id:h,C=null!==(e=yd(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,_=void 0===S?3:S,O=C.strokeWidth,k=void 0===O?2:O,E=(function(e){return e&&"object"===sd(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*_+k;return t.createElement(jd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&jA.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(AN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(AN(r),AN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=Uc("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(pP,kN({},n,{className:o}))}return r}}],o&&MN(r.prototype,o),i&&MN(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function zN(){return zN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zN.apply(this,arguments)}NN(FN,"displayName","Line"),NN(FN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!pw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),NN(FN,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=gj(e,a);return"horizontal"===u?{x:Mj({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Sf(c)?null:r.scale(c),value:c,payload:e}:{x:Sf(c)?null:n.scale(c),y:Mj({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return jN({points:f,layout:u},l)}));var HN=function(e){var n=e.xAxisId,r=hR(),o=gR(),i=dR(n);return null==i?null:t.createElement(oN,zN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function VN(){return VN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VN.apply(this,arguments)}HN.displayName="XAxis",HN.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var KN=function(e){var n=e.yAxisId,r=hR(),o=gR(),i=pR(n);return null==i?null:t.createElement(oN,VN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function $N(e){return function(e){if(Array.isArray(e))return UN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return UN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UN(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}KN.displayName="YAxis",KN.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var WN=function(e,t,n,r,o){var i=pd(e,SR),a=pd(e,AR),s=[].concat($N(i),$N(a)),c=pd(e,IR),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&$L(t.props,"extendDomain")&&Vf(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&$L(t.props,"extendDomain")&&Vf(t.props[d])&&Vf(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Vf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZN={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ZN);var qN=new(ct(ZN.exports)),GN="recharts.syncMouseEvents";function YN(e){return YN="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},YN(e)}function XN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QN(r.key),r)}}function JN(e,t,n){return(t=QN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e){var t=function(e,t){if("object"!=YN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YN(t)?t:String(t)}var eB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JN(this,"activeIndex",0),JN(this,"coordinateList",[]),JN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,s=void 0===a?null:a,c=e.offset,l=void 0===c?null:c,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,c=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=r+a+s,u=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:u})}}}],n&&XN(t.prototype,n),r&&XN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tB(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[qj(t,n,r,o),qj(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function nB(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return tB(t);var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,f=t.angle,d=qj(s,c,l,f),p=qj(s,c,u,f);r=d.x,o=d.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function rB(e){return rB="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},rB(e)}function oB(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 iB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oB(Object(n),!0).forEach((function(t){aB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aB(e,t,n){return t=function(e){var t=function(e,t){if("object"!=rB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rB(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e){var n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName;if(!r||!r.props.cursor||!i||!a||"ScatterChart"!==d&&"axis"!==o)return null;var p=qA;if("ScatterChart"===d)n=a,p=xP;else if("BarChart"===d)n=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(f,a,c,u),p=rP;else if("radial"===f){var h=tB(a),g=h.cx,v=h.cy,y=h.radius;n={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=NA}else n={points:nB(f,a,c)},p=qA;var m=iB(iB(iB(iB({stroke:"#ccc",pointerEvents:"none"},c),n),yd(r.props.cursor,!1)),{},{payload:s,payloadIndex:l,className:"recharts-tooltip-cursor"});return t.isValidElement(r.props.cursor)?t.cloneElement(r.props.cursor,m):t.createElement(p,m)}var cB=["item"],lB=["children","className","width","height","style","compact","title","desc"];function uB(e){return uB="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},uB(e)}function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(this,arguments)}function dB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||xB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kB(r.key),r)}}function gB(e,t,n){return t=yB(t),function(e,t){if(t&&("object"===uB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mB(e)}(e,vB()?Reflect.construct(t,n||[],yB(e).constructor):t.apply(e,n))}function vB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vB=function(){return!!e})()}function yB(e){return yB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yB(e)}function mB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(e,t){return bB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bB(e,t)}function wB(e){return function(e){if(Array.isArray(e))return CB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xB(e,t){if(e){if("string"==typeof e)return CB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CB(e,t):void 0}}function CB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SB(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 _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SB(Object(n),!0).forEach((function(t){OB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OB(e,t,n){return(t=kB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kB(e){var t=function(e,t){if("object"!=uB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uB(t)?t:String(t)}var EB={xAxis:["bottom","top"],yAxis:["left","right"]},jB={width:"100%",height:"100%"},AB={x:0,y:0};function TB(e){return e}var MB=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(wB(e),wB(n)):e}),[]);return i.length>0?i:e&&e.length&&Vf(r)&&Vf(o)?e.slice(r,o+1):[]};function PB(e){return"number"===e?[0,"auto"]:void 0}var DB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=MB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var c,l,u=null!==(c=s.props.data)&&void 0!==c?c:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Gf(void 0===u?a:u,i.dataKey,r):l=u&&u[n]||a[n];return l?[].concat(wB(o),[Fj(s,l)]):o}),[])},LB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(zf(u-l)!==zf(f-u)){var p=[];if(zf(f-u)===zf(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(l>=0&&c){var u=c[l]&&c[l].value,f=DB(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return _B(_B(_B({},r),qj(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return _B(_B(_B({},r),qj(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return AB}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},IB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,d=wj(l,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,_,O,k=MB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Vf(r)&&Vf(o))return!0}return!1})(n.props.domain,y,g)&&(S=Rj(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category")));var j=PB(g);if(!S||0===S.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(S=vj(k,v,g),"category"===g&&d){var M=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);m&&M?(_=S,S=gL(0,E)):m||(S=Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(wB(e),[t])}),[]))}else if("category"===g)S=m?S.filter((function(e){return""!==e&&!Sf(e)})):Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Sf(t)?e:[].concat(wB(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return mj(e,t,n,o,r)})).filter((function(e){return!Sf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(S=P)}!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category"))}else S=d?gL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:Dj(a[C].stackGroups,s,c):bj(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)S=WN(u,S,C,o,w),T&&(S=Rj(T,S,y));else if("category"===g&&T){var D=T;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return _B(_B({},t),{},OB({},C,_B(_B({},n.props),{},{axisType:o,domain:S,categoricalDomain:O,duplicateDomain:_,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{})},RB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=pd(l,o),d={};return f&&f.length?d=IB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=MB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=wj(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=PB("number");return e[v]?e:(h++,p?g=gL(0,d):a&&a[v]&&a[v].hasStack?(g=Dj(a[v].stackGroups,s,c),g=WN(u,g,v,o)):(g=Rj(y,bj(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=WN(u,g,v,o)),_B(_B({},e),{},OB({},v,_B(_B({axisType:o},r.defaultProps),{},{hide:!0,orientation:Cf(EB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},NB=function(e){var t=e.children,n=e.defaultShowTooltip,r=hd(t,LL),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},BB=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},FB=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,l=n.children,u=n.margin||{},f=hd(l,LL),d=hd(l,Bm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:_B(_B({},e),{},OB({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:_B(_B({},e),{},OB({},r,Cf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=_B(_B({},h),p),v=g.bottom;f&&(g.bottom+=f.props.height||LL.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=cj({children:o,legendWidth:s});if(c){var l=r||{},u=l.width,f=l.height,d=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&Vf(e[d]))return fj(fj({},e),{},dj({},d,e[d]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&Vf(e[p]))return fj(fj({},e),{},dj({},p,e[p]+(f||0)))}return e}(g,0,n,t));var y=s-g.left-g.right,m=c-g.top-g.bottom;return _B(_B({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(m,0)})},zB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=BB(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=ld(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return ld(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:Sf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=MB(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:s}),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(v,"Id")],_=l.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")];a&&a[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?XE(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):XE(!1));var c=a[s];return _B(_B({},e),{},OB(OB({},r.axisType,c),"".concat(r.axisType,"Ticks"),Cj(c)))}),{}),O=_[v],k=_["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(Kf(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=ld(n.type).indexOf("Bar")>=0,A=Nj(O,k),T=[];if(j){var M,P,D=Sf(x)?p:x,L=null!==(M=null!==(P=Nj(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Wf(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(f=!0,p=s*(d*=.9));var h={offset:((r-p)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+l,size:f?d:t.barSize}},r=[].concat(pj(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var g=Wf(n,r,0,!0);r-2*g-(s-1)*l<=0&&(l=0);var v=(r-2*g-(s-1)*l)/s;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;c=i.reduce((function(e,t,n){var r=[].concat(pj(e),[{item:t.item,position:{offset:g+(v+l)*n+(v-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[S],maxBarSize:D}),L!==A&&(T=T.map((function(e){return _B(_B({},e),{},{position:_B(_B({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:_B(_B({},N(_B(_B({},_),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},OB(OB(OB({key:n.key||"item-".concat(c)},g,_[g]),v,_[v]),"animationId",i)),childIndex:(I=n,R=e.children,dd(R).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!gd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=BB(u),y=v.numericAxisName,m=v.cateAxisName,b=pd(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Kf(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Uf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return fj(fj({},e),{},dj({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return fj(fj({},t),{},dj({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Aj(e,a.items,o)}))}),{})),fj(fj({},t),{},dj({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return _B(_B({},e),{},OB({},r,RB(n,_B(_B({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=FB(_B(_B({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var S,_,O=x["".concat(m,"Map")],k=(S=Zf(O),{tooltipTicks:_=Cj(S,!1,!0),orderedTooltipTicks:Fb(_,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Nj(S,_)}),E=p(n,_B(_B({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return _B(_B({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return n=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),OB(mB(a=gB(this,n,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),OB(mB(a),"accessibilityManager",new eB),OB(mB(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(_B({legendBBox:e},h({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},_B(_B({},a.state),{},{legendBBox:e}))))}})),OB(mB(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),OB(mB(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return _B({dataStartIndex:t,dataEndIndex:n},h({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),OB(mB(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=_B(_B({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;_l(r)&&r(n,e)}})),OB(mB(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?_B(_B({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;_l(r)&&r(n,e)})),OB(mB(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),OB(mB(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),OB(mB(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),OB(mB(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;_l(n)&&n(t,e)})),OB(mB(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&cd[t]?cd[t]:null}(e),r=Cf(a.props,"".concat(n));n&&_l(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),OB(mB(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=_B(_B({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;_l(r)&&r(n,e)}})),OB(mB(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;_l(t)&&t(a.getMouseInfo(e),e)})),OB(mB(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;_l(t)&&t(a.getMouseInfo(e),e)})),OB(mB(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),OB(mB(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),OB(mB(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),OB(mB(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&qN.emit(GN,a.props.syncId,e,a.eventEmitterSymbol)})),OB(mB(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(_B({dataStartIndex:i,dataEndIndex:s},h({props:a.props,dataStartIndex:i,dataEndIndex:s,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,f=a.state,d=f.offset,p=f.tooltipTicks;if(!d)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){u=g;break}}var v=_B(_B({},d),{},{x:d.left,y:d.top}),y=Math.min(c,v.x+v.width),m=Math.min(l,v.y+v.height),b=p[u]&&p[u].value,w=DB(a.state,a.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?m:p[u].coordinate}:AB;a.setState(_B(_B({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else a.setState(e)})),OB(mB(a),"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,s=o.activeCoordinate,c=o.activePayload,l=o.offset,u=o.activeTooltipIndex,f=o.tooltipAxisBandSize,d=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,g=e.key||"_recharts-cursor";return t.createElement(sB,{key:g,activeCoordinate:s,activePayload:c,activeTooltipIndex:u,chartName:r,element:e,isActive:p,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:d})})),OB(mB(a),"renderPolarAxis",(function(e,n,r){var o=Cf(e,"type.axisType"),i=Cf(a.state,"".concat(o,"Map")),s=i&&i[e.props["".concat(o,"Id")]];return t.cloneElement(e,_B(_B({},s),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:Cj(s,!0)}))})),OB(mB(a),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,s=a.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=Zf(c),f=Zf(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Array.isArray(o)?o:Cj(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:Cj(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),OB(mB(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,n=a.props,r=n.children,o=n.width,i=n.height,s=a.props.margin||{},c=o-(s.left||0)-(s.right||0),l=cj({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=pB(l,cB);return t.cloneElement(f,_B(_B({},d),{},{chartWidth:o,chartHeight:i,margin:s,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),OB(mB(a),"renderTooltip",(function(){var e,n=a.props,r=n.children,o=n.accessibilityLayer,i=hd(r,Ow);if(!i)return null;var s=a.state,c=s.isTooltipActive,l=s.activeCoordinate,u=s.activePayload,f=s.activeLabel,d=s.offset,p=null!==(e=i.props.active)&&void 0!==e?e:c;return t.cloneElement(i,{viewBox:_B(_B({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?u:[],coordinate:l,accessibilityLayer:o})})),OB(mB(a),"renderBrush",(function(e){var n=a.props,r=n.margin,o=n.data,i=a.state,s=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:_j(a.handleBrushChange,e.props.onChange),data:o,x:Vf(e.props.x)?e.props.x:s.left,y:Vf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:Vf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),OB(mB(a),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=mB(a).clipPathId,i=a.state,s=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})})),OB(mB(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,s=[],c=t.props.key,l=t.item.props,u=l.activeDot,f=_B(_B({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:yj(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},yd(u,!1)),nd(u));return s.push(n.renderActiveDot(u,f)),o?s.push(n.renderActiveDot(u,_B(_B({},f),{},{cx:o.x,cy:o.y,key:"".concat(c,"-basePoint-").concat(i)}))):a&&s.push(null),s})),OB(mB(a),"renderGraphicChild",(function(e,n,r){var o=a.filterFormatItem(e,n,r);if(!o)return null;var i=a.getTooltipEventType(),s=a.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=hd(a.props.children,Ow),p=o.props,h=p.points,g=p.isRange,v=p.baseLine,y=o.item.props,m=y.activeDot,b=y.hide,w=y.activeBar,x=y.activeShape,C=Boolean(!b&&c&&d&&(m||w||x)),S={};"axis"!==i&&d&&"click"===d.props.trigger?S={onClick:_j(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(S={onMouseLeave:_j(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:_j(a.handleItemMouseEnter,e.props.onMouseEnter)});var _=t.cloneElement(e,_B(_B({},o.props),S));if(C){if(!(u>=0)){var O,k=(null!==(O=a.getItemByXY(a.state.activeCoordinate))&&void 0!==O?O:{graphicalItem:_}).graphicalItem,E=k.item,j=void 0===E?e:E,A=k.childIndex,T=_B(_B(_B({},o.props),S),{},{activeIndex:A});return[t.cloneElement(j,T),null,null]}var M,P;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());M=Gf(h,D,f),P=g&&v&&Gf(v,D,f)}else M=null==h?void 0:h[u],P=g&&v&&v[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[t.cloneElement(e,_B(_B(_B({},o.props),S),{},{activeIndex:L})),null,null]}if(!Sf(M))return[_].concat(wB(a.renderActivePoints({item:o,activePoint:M,basePoint:P,childIndex:u,isRange:g})))}return g?[_,null,null]:[_,null]})),OB(mB(a),"renderCustomized",(function(e,n,r){return t.cloneElement(e,_B(_B({key:"recharts-customized-".concat(r)},a.props),a.state))})),OB(mB(a),"renderMap",{CartesianGrid:{handler:TB,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:TB},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:TB},YAxis:{handler:TB},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=e.id)&&void 0!==o?o:Uf("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Gw(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var o,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bB(e,t)}(n,t.Component),o=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=hd(t,Ow);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=DB(this.state,n,a,s),l=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,f="horizontal"===o?{x:l,y:u}:{y:l,x:u},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=_B(_B({},f),d.props.points[a].tooltipPosition),c=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){md([hd(e.children,Ow)],[hd(this.props.children,Ow)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=hd(this.props.children,Ow);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,s=this.inRange(i.chartX,i.chartY,a);if(!s)return null;var c=this.state,l=c.xAxisMap,u=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&u){var f=Zf(l).scale,d=Zf(u).scale,p=f&&f.invert?f.invert(i.chartX):null,h=d&&d.invert?d.invert(i.chartY):null;return _B(_B({},i),{},{xValue:p,yValue:h})}var g=LB(this.state,this.props.data,this.props.layout,s);return g?_B(_B({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=Zf(c);return Jj({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=hd(e,Ow),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),_B(_B({},nd(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){qN.on(GN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){qN.removeListener(GN,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===ld(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=dB(t,2),r=n[0],o=n[1];return _B(_B({},e),{},OB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=dB(t,2),r=n[0],o=n[1];return _B(_B({},e),{},OB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,c=a.item,l=ld(c.type);if("Bar"===l){var u=(s.data||[]).find((function(t){return tP(e,t)}));if(u)return{graphicalItem:a,payload:u}}else if("RadialBar"===l){var f=(s.data||[]).find((function(t){return Jj(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if(zD(a,r)||HD(a,r)||VD(a,r)){var d=WD({graphicalItem:a,activeTooltipItem:r,itemData:c.props.data}),p=void 0===c.props.activeIndex?d:c.props.activeIndex;return{graphicalItem:_B(_B({},a),{},{childIndex:p}),payload:VD(a,r)?c.props.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e,n=this;if(!gd(this))return null;var r,o,i=this.props,a=i.children,s=i.className,c=i.width,l=i.height,u=i.style,f=i.compact,d=i.title,p=i.desc,h=pB(i,lB),g=yd(h,!1);if(f)return t.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(_d,fB({},g,{width:c,height:l,title:d,desc:p}),this.renderClipPath(),wd(a,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,g.role=null!==(o=this.props.role)&&void 0!==o?o:"application",g.onKeyDown=function(e){n.accessibilityManager.keyboardEvent(e)},g.onFocus=function(){n.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return t.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",fB({className:Uc("recharts-wrapper",s),style:_B({position:"relative",cursor:"default",width:c,height:l},u)},v,{ref:function(e){n.container=e},role:null!==(e=g.role)&&void 0!==e?e:"region"}),t.createElement(_d,fB({},g,{width:c,height:l,title:d,desc:p,style:jB}),this.renderClipPath(),wd(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&hB(o.prototype,i),s&&hB(o,s),Object.defineProperty(o,"prototype",{writable:!1}),n}(),OB(n,"displayName",r),OB(n,"defaultProps",_B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),OB(n,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=NB(e);return _B(_B(_B({},d),{},{updateId:0},h(_B(_B({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!Yf(l,t.prevMargin)){var p=NB(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=_B(_B({},LB(t,r,s)),{},{updateId:t.updateId+1}),y=_B(_B(_B({},p),g),v);return _B(_B(_B({},y),h(_B({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!md(o,t.prevChildren)){var m,b,w,x,C=hd(o,LL),S=C&&null!==(m=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:u,_=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,O=S!==u||_!==f,k=!Sf(r)&&!O?t.updateId:t.updateId+1;return _B(_B({updateId:k},h(_B(_B({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:_}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),OB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(pP,n),t.createElement(jd,{className:"recharts-active-dot",key:n.key},r)})),n},HB=zB({chartName:"LineChart",GraphicalChild:FN,axisComponents:[{axisType:"xAxis",AxisComp:HN},{axisType:"yAxis",AxisComp:KN}],formatAxisMap:FI}),VB=zB({chartName:"BarChart",GraphicalChild:PI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:HN},{axisType:"yAxis",AxisComp:KN}],formatAxisMap:FI}),KB=zB({chartName:"PieChart",GraphicalChild:iL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:aD},{axisType:"radiusAxis",AxisComp:WP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Wf(e.cx,i,i/2),u=Wf(e.cy,a,a/2),f=Gj(i,a,n),d=Wf(e.innerRadius,f,0),p=Wf(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Sf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=$j(i=a.range,2);s=g[0],c=g[1]}var v=Oj(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),Ej(m);var b=Tj(m,Vj(Vj({},a),{},{realScaleType:y})),w=Vj(Vj(Vj({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return Vj(Vj({},e),{},Kj({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const $B=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function UB(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function WB(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ZB(e,t){const n=UB(e);return isNaN(t)?WB(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function qB(e,t){const n=UB(e);if(isNaN(t))return WB(e,NaN);if(!t)return n;const r=n.getDate(),o=WB(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function GB(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=UB(e),u=r||n?qB(l,r+12*n):l,f=1e3*(c+60*(s+60*a));return WB(e,(i||o?ZB(u,i+7*o):u).getTime()+f)}const YB=6048e5,XB=864e5;let JB={};function QB(){return JB}function eF(e,t){const n=QB(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=UB(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function tF(e){return eF(e,{weekStartsOn:1})}function nF(e){const t=UB(e),n=t.getFullYear(),r=WB(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=tF(r),i=WB(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=tF(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function rF(e){const t=UB(e);return t.setHours(0,0,0,0),t}function oF(e){const t=UB(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function iF(e,t){const n=rF(e),r=rF(t),o=+n-oF(n),i=+r-oF(r);return Math.round((o-i)/XB)}function aF(e){return WB(e,Date.now())}function sF(e,t){return+rF(e)==+rF(t)}function cF(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=UB(e);return!isNaN(Number(n))}function lF(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function uF(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function fF(e,t,n){const r=function(e,t){return+UB(e)-+UB(t)}(e,t)/6e4;return uF(n?.roundingMethod)(r)}function dF(e,t,n){const r=function(e,t){const n=UB(e),r=UB(t),o=lF(n,r),i=Math.abs(iF(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(lF(n,r)===-o));return 0===a?0:a}(e,t)/7;return uF(n?.roundingMethod)(r)}const pF={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"}};function hF(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gF={date:hF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hF({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:hF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yF(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const mF={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:yF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:yF({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:yF({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:yF({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"})};function bF(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const wF={ordinalNumber:(xF={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(xF.matchPattern);if(!n)return null;const r=n[0],o=e.match(xF.parsePattern);if(!o)return null;let i=xF.valueCallback?xF.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:bF({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:bF({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:e=>e+1}),month:bF({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:bF({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:bF({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"})};var xF;const CF={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=pF[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:gF,formatRelative:(e,t,n,r)=>vF[e],localize:mF,match:wF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SF(e){const t=UB(e),n=iF(t,function(e){const t=UB(e),n=WB(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function _F(e){const t=UB(e),n=+tF(t)-+function(e){const t=nF(e),n=WB(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),tF(n)}(t);return Math.round(n/YB)+1}function OF(e,t){const n=UB(e),r=n.getFullYear(),o=QB(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=WB(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=eF(a,t),c=WB(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=eF(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function kF(e,t){const n=UB(e),r=+eF(n,t)-+function(e,t){const n=QB(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=OF(e,t),i=WB(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),eF(i,t)}(n,t);return Math.round(r/YB)+1}function EF(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const jF={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return EF("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):EF(n+1,2)},d:(e,t)=>EF(e.getDate(),t.length),a(e,t){const n=e.getHours()/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:(e,t)=>EF(e.getHours()%12||12,t.length),H:(e,t)=>EF(e.getHours(),t.length),m:(e,t)=>EF(e.getMinutes(),t.length),s:(e,t)=>EF(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return EF(Math.trunc(r*Math.pow(10,n-3)),t.length)}},AF="midnight",TF="noon",MF="morning",PF="afternoon",DF="evening",LF="night",IF={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return jF.y(e,t)},Y:function(e,t,n,r){const o=OF(e,r),i=o>0?o:1-o;if("YY"===t){return EF(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):EF(i,t.length)},R:function(e,t){return EF(nF(e),t.length)},u:function(e,t){return EF(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return EF(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return EF(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jF.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return EF(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=kF(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):EF(o,t.length)},I:function(e,t,n){const r=_F(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):EF(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):jF.d(e,t)},D:function(e,t,n){const r=SF(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):EF(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return EF(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return EF(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return EF(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?TF:0===r?AF: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){const r=e.getHours();let o;switch(o=r>=17?DF:r>=12?PF:r>=4?MF:LF,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){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return jF.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):jF.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):EF(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):EF(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jF.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jF.s(e,t)},S:function(e,t){return jF.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return NF(r);case"XXXX":case"XX":return BF(r);default:return BF(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return NF(r);case"xxxx":case"xx":return BF(r);default:return BF(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+RF(r,":");default:return"GMT"+BF(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+RF(r,":");default:return"GMT"+BF(r,":")}},t:function(e,t,n){return EF(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return EF(e.getTime(),t.length)}};function RF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+EF(i,2)}function NF(e,t){if(e%60==0){return(e>0?"-":"+")+EF(Math.abs(e)/60,2)}return BF(e,t)}function BF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+EF(Math.trunc(r/60),2)+t+EF(r%60,2)}const FF=(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"})}},zF=(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"})}},HF={p:zF,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return FF(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",FF(r,t)).replace("{{time}}",zF(o,t))}},VF=/^D+$/,KF=/^Y+$/,$F=["D","DD","YY","YYYY"];const UF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZF=/^'([^]*?)'?$/,qF=/''/g,GF=/[a-zA-Z]/;function YF(e,t,n){const r=QB(),o=n?.locale??r.locale??CF,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=UB(e);if(!cF(s))throw new RangeError("Invalid time value");let c=t.match(WF).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,HF[t])(e,o.formatLong)}return e})).join("").match(UF).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:XF(e)};if(IF[t])return{isToken:!0,value:e};if(t.match(GF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return KF.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return VF.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),$F.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,IF[i[0]])(s,i,o.localize,l)})).join("")}function XF(e){const t=e.match(ZF);return t?t[1].replace(qF,"'"):e}function JF(e){return UB(e).getDate()}function QF(e){const t=UB(e),n=t.getFullYear(),r=t.getMonth(),o=WB(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function ez(e){const t=UB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function tz(e,t){const n=UB(e),r=UB(t);return n.getTime()>r.getTime()}function nz(e,t){return+UB(e)<+UB(t)}function rz(e){return function(e,t){const n=UB(e),r=UB(t);return n.getFullYear()===r.getFullYear()}(e,aF(e))}function oz(e,t){return ZB(e,-t)}function iz(e,t){let n=UB(e);return isNaN(+n)?WB(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){const n=UB(e),r=n.getFullYear(),o=n.getDate(),i=WB(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=QF(i);return n.setMonth(t,Math.min(o,a)),n}(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function az(e,t){const n=UB(e);return n.setDate(t),n}function sz(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=function(e,t){return qB(e,-t)}(e,r+12*n),u=1e3*(c+60*(s+60*a));return WB(e,oz(l,i+7*o).getTime()-u)}const cz=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},lz=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),uz=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),fz=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),dz=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(yz,{children:[e.jsx(mz,{children:r}),null==n?void 0:n.map((t=>{var n,r;const o=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color),i=`${null===(r=t.payload)||void 0===r?void 0:r.name}-${t.dataKey}-${t.value}`;return e.jsxs(vz,{children:[o&&e.jsx($B,{color:o}),t.name,": ",lz(t.value||0)]},i)}))]}):null,pz=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Ow,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(dz,{})})},hz=({payload:t,toggleData:n})=>e.jsx(gz,{children:null==t?void 0:t.map((t=>e.jsxs(vz,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx($B,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),gz=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),vz=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),yz=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),mz=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let bz;const wz=new Uint8Array(16);function xz(){if(!bz&&(bz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bz(wz)}const Cz=[];for(let e=0;e<256;++e)Cz.push((e+256).toString(16).slice(1));var Sz={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _z(e,t,n){if(Sz.randomUUID&&!t&&!e)return Sz.randomUUID();const r=(e=e||{}).random||(e.rng||xz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Cz[e[t+0]]+Cz[e[t+1]]+Cz[e[t+2]]+Cz[e[t+3]]+"-"+Cz[e[t+4]]+Cz[e[t+5]]+"-"+Cz[e[t+6]]+Cz[e[t+7]]+"-"+Cz[e[t+8]]+Cz[e[t+9]]+"-"+Cz[e[t+10]]+Cz[e[t+11]]+Cz[e[t+12]]+Cz[e[t+13]]+Cz[e[t+14]]+Cz[e[t+15]]}(r)}const Oz=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),kz=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),Ez=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),jz=W.div({display:"flex"}),Az=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),Tz=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),Mz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),Pz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),Dz=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),Lz=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),Iz=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),Rz=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,S={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(Dz,Object.assign({htmlFor:r,labelRight:C,disabled:l},S,{children:[o&&e.jsx(Iz,{children:o}),e.jsx(Lz,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};var Nz,Bz,Fz=Object.create,zz=Object.defineProperty,Hz=Object.defineProperties,Vz=Object.getOwnPropertyDescriptor,Kz=Object.getOwnPropertyDescriptors,$z=Object.getOwnPropertyNames,Uz=Object.getOwnPropertySymbols,Wz=Object.getPrototypeOf,Zz=Object.prototype.hasOwnProperty,qz=Object.prototype.propertyIsEnumerable,Gz=(e,t,n)=>t in e?zz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yz=(e,t)=>{for(var n in t||(t={}))Zz.call(t,n)&&Gz(e,n,t[n]);if(Uz)for(var n of Uz(t))qz.call(t,n)&&Gz(e,n,t[n]);return e},Xz=(e,t)=>Hz(e,Kz(t)),Jz=(e,t)=>{var n={};for(var r in e)Zz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uz)for(var r of Uz(e))t.indexOf(r)<0&&qz.call(e,r)&&(n[r]=e[r]);return n},Qz=(Nz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,S=u;C!==t.tail&&!(f&&S>=f.reach);S+=C.value.length,C=C.next){var _=C.value;if(t.length>e.length)return;if(!(_ instanceof o)){var O,k=1;if(m){if(!(O=i(x,S,e,y))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=S;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(S=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,_=e.slice(S,A),O.index-=S}else if(!(O=i(x,0,_,y)))continue;E=O.index;var M=O[0],P=_.slice(0,E),D=_.slice(E+M.length),L=S+_.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),S+=P.length),l(t,I,k),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),k>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,S,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return Bz||(0,Nz[$z(Nz)[0]])((Bz={exports:{}}).exports,Bz),Bz.exports}),eH=((e,t,n)=>(n=null!=e?Fz(Wz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $z(t))Zz.call(e,o)||o===n||zz(e,o,{get:()=>t[o],enumerable:!(r=Vz(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:zz(n,"default",{value:e,enumerable:!0}),e)))(Qz());eH.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},eH.languages.markup.tag.inside["attr-value"].inside.entity=eH.languages.markup.entity,eH.languages.markup.doctype.inside["internal-subset"].inside=eH.languages.markup,eH.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(eH.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:eH.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:eH.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},eH.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(eH.languages.markup.tag,"addAttribute",{value:function(e,t){eH.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:eH.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),eH.languages.html=eH.languages.markup,eH.languages.mathml=eH.languages.markup,eH.languages.svg=eH.languages.markup,eH.languages.xml=eH.languages.extend("markup",{}),eH.languages.ssml=eH.languages.xml,eH.languages.atom=eH.languages.xml,eH.languages.rss=eH.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(eH),eH.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},eH.languages.javascript=eH.languages.extend("clike",{"class-name":[eH.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),eH.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,eH.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:eH.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:eH.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:eH.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:eH.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:eH.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),eH.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:eH.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),eH.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),eH.languages.markup&&(eH.languages.markup.tag.addInlined("script","javascript"),eH.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),eH.languages.js=eH.languages.javascript,eH.languages.actionscript=eH.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),eH.languages.actionscript["class-name"].alias="function",delete eH.languages.actionscript.parameter,delete eH.languages.actionscript["literal-property"],eH.languages.markup&&eH.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:eH.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(eH),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(eH),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(eH),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(eH),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(eH),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(eH),eH.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:eH.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},eH.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),eH.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(eH),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(eH),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(eH),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(eH),eH.languages.n4js=eH.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),eH.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),eH.languages.n4jsd=eH.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(eH),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(eH),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(eH),eH.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},eH.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=eH.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(eH),eH.languages.c=eH.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),eH.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),eH.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},eH.languages.c.string],char:eH.languages.c.char,comment:eH.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:eH.languages.c}}}}),eH.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete eH.languages.c.boolean,eH.languages.objectivec=eH.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete eH.languages.objectivec["class-name"],eH.languages.objc=eH.languages.objectivec,eH.languages.reason=eH.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),eH.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete eH.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(eH),eH.languages.go=eH.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),eH.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete eH.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(eH),eH.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},eH.languages.python["string-interpolation"].inside.interpolation.inside.rest=eH.languages.python,eH.languages.py=eH.languages.python;var tH={};((e,t)=>{for(var n in t)zz(e,n,{get:t[n],enumerable:!0})})(tH,{dracula:()=>nH,duotoneDark:()=>rH,duotoneLight:()=>oH,github:()=>iH,jettwaveDark:()=>mH,jettwaveLight:()=>bH,nightOwl:()=>aH,nightOwlLight:()=>sH,oceanicNext:()=>uH,okaidia:()=>fH,oneDark:()=>wH,oneLight:()=>xH,palenight:()=>dH,shadesOfPurple:()=>pH,synthwave84:()=>hH,ultramin:()=>gH,vsDark:()=>vH,vsLight:()=>yH});var nH={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},rH={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},oH={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},iH={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},aH={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},sH={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},cH="#c5a5c5",lH="#8dc891",uH={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:cH}},{types:["attr-value"],style:{color:lH}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:lH}},{types:["punctuation"],style:{color:lH}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:cH}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},fH={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},dH={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},pH={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},hH={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},gH={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},vH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},yH={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},mH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},bH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},wH={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},xH={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},CH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Yz(Yz({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Xz(Yz({},n),{backgroundColor:void 0}),r},SH=/\r\n|\r|\n/,_H=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},OH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},kH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=OH(l,u.type),u.alias&&(l=OH(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(SH),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)_H(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return _H(s),c},EH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(CH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(CH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Jz(n,["className","style","line"]);const s=Xz(Yz({},a),{className:Uc("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Yz(Yz({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Jz(t,["token","className","style"]);const s=Xz(Yz({},a),{className:Uc("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=Yz(Yz({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return kH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),kH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},jH=e=>t.createElement(EH,Xz(Yz({},e),{prism:e.prism||eH,theme:e.theme||vH,code:e.code,language:e.language}))
|
|
26
|
+
*/"production"===process.env.NODE_ENV?Af.exports=function(){if(Ef)return Tf;Ef=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return Tf.AsyncMode=c,Tf.ConcurrentMode=l,Tf.ContextConsumer=s,Tf.ContextProvider=a,Tf.Element=t,Tf.ForwardRef=u,Tf.Fragment=r,Tf.Lazy=h,Tf.Memo=p,Tf.Portal=n,Tf.Profiler=i,Tf.StrictMode=o,Tf.Suspense=f,Tf.isAsyncMode=function(e){return w(e)||b(e)===c},Tf.isConcurrentMode=w,Tf.isContextConsumer=function(e){return b(e)===s},Tf.isContextProvider=function(e){return b(e)===a},Tf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tf.isForwardRef=function(e){return b(e)===u},Tf.isFragment=function(e){return b(e)===r},Tf.isLazy=function(e){return b(e)===h},Tf.isMemo=function(e){return b(e)===p},Tf.isPortal=function(e){return b(e)===n},Tf.isProfiler=function(e){return b(e)===i},Tf.isStrictMode=function(e){return b(e)===o},Tf.isSuspense=function(e){return b(e)===f},Tf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Tf.typeOf=b,Tf}():Af.exports=(Mf||(Mf=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case c:case l:case r:case i:case o:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case u:case h:case p:case a:return v;default:return d}}case n:return d}}}var w=c,x=l,C=s,S=a,_=t,O=u,k=r,E=h,j=p,A=n,T=i,M=o,P=f,D=!1;function L(e){return b(e)===l}Pf.AsyncMode=w,Pf.ConcurrentMode=x,Pf.ContextConsumer=C,Pf.ContextProvider=S,Pf.Element=_,Pf.ForwardRef=O,Pf.Fragment=k,Pf.Lazy=E,Pf.Memo=j,Pf.Portal=A,Pf.Profiler=T,Pf.StrictMode=M,Pf.Suspense=P,Pf.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===c},Pf.isConcurrentMode=L,Pf.isContextConsumer=function(e){return b(e)===s},Pf.isContextProvider=function(e){return b(e)===a},Pf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pf.isForwardRef=function(e){return b(e)===u},Pf.isFragment=function(e){return b(e)===r},Pf.isLazy=function(e){return b(e)===h},Pf.isMemo=function(e){return b(e)===p},Pf.isPortal=function(e){return b(e)===n},Pf.isProfiler=function(e){return b(e)===i},Pf.isStrictMode=function(e){return b(e)===o},Pf.isSuspense=function(e){return b(e)===f},Pf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Pf.typeOf=b}()),Pf);var Df=Af.exports,Lf=cl,If=ll;var Rf=function(e){return"number"==typeof e||If(e)&&"[object Number]"==Lf(e)},Nf=ct(Rf),Bf=Rf;var Ff=ct((function(e){return Bf(e)&&e!=+e})),zf=function(e){return 0===e?0:e>0?1:-1},Hf=function(e){return jf(e)&&e.indexOf("%")===e.length-1},Vf=function(e){return Nf(e)&&!Ff(e)},Kf=function(e){return Vf(e)||jf(e)},$f=0,Uf=function(e){var t=++$f;return"".concat(e||"").concat(t)},Wf=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Vf(e)&&!jf(e))return r;if(Hf(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Ff(n)&&(n=r),o&&n>t&&(n=t),n},Zf=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},qf=function(e,t){return Vf(e)&&Vf(t)?function(n){return e+n*(t-e)}:function(){return t}};function Gf(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Cf(e,t))===n})):null}function Yf(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Xf(e){return Xf="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},Xf(e)}var Jf=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Qf=["points","pathLength"],ed={svg:["viewBox","children"],polygon:Qf,polyline:Qf},td=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],nd=function(e,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(t.isValidElement(e)&&(r=e.props),!bl(r))return null;var o={};return Object.keys(r).forEach((function(e){td.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},rd=function(e,t,n){if(!bl(e)||"object"!==Xf(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];td.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},od=["children"],id=["children"];function ad(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sd(e){return sd="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},sd(e)}var cd={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ld=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},ud=null,fd=null,dd=function e(n){if(n===ud&&Array.isArray(fd))return fd;var r=[];return t.Children.forEach(n,(function(t){Sf(t)||(Df.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),fd=r,ud=n,r};function pd(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return ld(e)})):[ld(t)],dd(e).forEach((function(e){var t=Cf(e,"type.displayName")||Cf(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function hd(e,t){var n=pd(e,t);return n&&n[0]}var gd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Vf(n)||n<=0||!Vf(r)||r<=0)},vd=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],yd=function(e,n,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(t.isValidElement(e)&&(o=e.props),!bl(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,n,r){var o,i=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!_l(e)&&(r&&i.includes(t)||Jf.includes(t))||n&&td.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,n,r)&&(i[e]=o[e])})),i},md=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return bd(Array.isArray(n)?n[0]:n,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!bd(a,s))return!1}return!0},bd=function(e,t){if(Sf(e)&&Sf(t))return!0;if(!Sf(e)&&!Sf(t)){var n=e.props||{},r=n.children,o=ad(n,od),i=t.props||{},a=i.children,s=ad(i,id);return r&&a?Yf(o,s)&&md(r,a):!r&&!a&&Yf(o,s)}return!1},wd=function(e,t){var n=[],r={};return dd(e).forEach((function(e,o){if(function(e){return e&&e.type&&jf(e.type)&&vd.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=ld(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(e,i,o);n.push(l),r[i]=!0}}})),n},xd=["children","width","height","viewBox","className","style","title","desc"];function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cd.apply(this,arguments)}function Sd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _d(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,s=e.style,c=e.title,l=e.desc,u=Sd(e,xd),f=i||{width:r,height:o,x:0,y:0},d=Uc("recharts-surface",a);return t.createElement("svg",Cd({},yd(u,!0,"svg"),{className:d,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,c),t.createElement("desc",null,l),n)}var Od=["children","className"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function Ed(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jd=t.forwardRef((function(e,n){var r=e.children,o=e.className,i=Ed(e,Od),a=Uc("recharts-layer",o);return t.createElement("g",kd({className:a},yd(i,!0),{ref:n}),r)})),Ad="production"!==process.env.NODE_ENV,Td=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(Ad&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var Md=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},Pd=Md;var Dd=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Pd(e,t,n)},Ld=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Id=function(e){return Ld.test(e)};var Rd=function(e){return e.split("")},Nd="\\ud800-\\udfff",Bd="["+Nd+"]",Fd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",zd="\\ud83c[\\udffb-\\udfff]",Hd="[^"+Nd+"]",Vd="(?:\\ud83c[\\udde6-\\uddff]){2}",Kd="[\\ud800-\\udbff][\\udc00-\\udfff]",$d="(?:"+Fd+"|"+zd+")"+"?",Ud="[\\ufe0e\\ufe0f]?",Wd=Ud+$d+("(?:\\u200d(?:"+[Hd,Vd,Kd].join("|")+")"+Ud+$d+")*"),Zd="(?:"+[Hd+Fd+"?",Fd,Vd,Kd,Bd].join("|")+")",qd=RegExp(zd+"(?="+zd+")|"+Zd+Wd,"g");var Gd=function(e){return e.match(qd)||[]},Yd=Rd,Xd=Id,Jd=Gd;var Qd=function(e){return Xd(e)?Jd(e):Yd(e)},ep=Dd,tp=Id,np=Qd,rp=lf;var op=function(e){return function(t){t=rp(t);var n=tp(t)?np(t):void 0,r=n?n[0]:t.charAt(0),o=n?ep(n,1).join(""):t.slice(1);return r[e]()+o}},ip=ct(op("toUpperCase"));function ap(e){return function(){return e}}const sp=Math.cos,cp=Math.sin,lp=Math.sqrt,up=Math.PI,fp=2*up,dp=Math.PI,pp=2*dp,hp=1e-6,gp=pp-hp;function vp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class yp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?vp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vp;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,c=r-t,l=i-e,u=a-t,f=l*l+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>hp)if(Math.abs(u*s-c*l)>hp&&o){let d=n-i,p=r-a,h=s*s+c*c,g=d*d+p*p,v=Math.sqrt(h),y=Math.sqrt(f),m=o*Math.tan((dp-Math.acos((h+f-g)/(2*v*y)))/2),b=m/y,w=m/v;Math.abs(b-1)>hp&&this._append`L${e+b*l},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*d>l*p)},${this._x1=e+w*s},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),c=e+a,l=t+s,u=1^i,f=i?r-o:o-r;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>hp||Math.abs(this._y1-l)>hp)&&this._append`L${c},${l}`,n&&(f<0&&(f=f%pp+pp),f>gp?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:f>hp&&this._append`A${n},${n},0,${+(f>=dp)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function mp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new yp(t)}function bp(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function wp(e){this._context=e}function xp(e){return new wp(e)}function Cp(e){return e[0]}function Sp(e){return e[1]}function _p(e,t){var n=ap(!0),r=null,o=xp,i=null,a=mp(s);function s(s){var c,l,u,f=(s=bp(s)).length,d=!1;for(null==r&&(i=o(u=a())),c=0;c<=f;++c)!(c<f&&n(l=s[c],c,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,s),+t(l,c,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Cp:ap(e),t="function"==typeof t?t:void 0===t?Sp:ap(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:ap(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function Op(e,t,n){var r=null,o=ap(!0),i=null,a=xp,s=null,c=mp(l);function l(l){var u,f,d,p,h,g=(l=bp(l)).length,v=!1,y=new Array(g),m=new Array(g);for(null==i&&(s=a(h=c())),u=0;u<=g;++u){if(!(u<g&&o(p=l[u],u,l))===v)if(v=!v)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(y[d],m[d]);s.lineEnd(),s.areaEnd()}v&&(y[u]=+e(p,u,l),m[u]=+t(p,u,l),s.point(r?+r(p,u,l):y[u],n?+n(p,u,l):m[u]))}if(h)return s=null,h+""||null}function u(){return _p().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Cp:ap(+e),t="function"==typeof t?t:ap(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Sp:ap(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ap(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ap(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:ap(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class kp{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var Ep={draw(e,t){const n=lp(t/up);e.moveTo(n,0),e.arc(0,0,n,0,fp)}},jp={draw(e,t){const n=lp(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const Ap=lp(1/3),Tp=2*Ap;var Mp={draw(e,t){const n=lp(t/Tp),r=n*Ap;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Pp={draw(e,t){const n=lp(t),r=-n/2;e.rect(r,r,n,n)}};const Dp=cp(up/10)/cp(7*up/10),Lp=cp(fp/10)*Dp,Ip=-sp(fp/10)*Dp;var Rp={draw(e,t){const n=lp(.8908130915292852*t),r=Lp*n,o=Ip*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=fp*t/5,a=sp(i),s=cp(i);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()}};const Np=lp(3);var Bp={draw(e,t){const n=-lp(t/(3*Np));e.moveTo(0,2*n),e.lineTo(-Np*n,-n),e.lineTo(Np*n,-n),e.closePath()}};const Fp=-.5,zp=lp(3)/2,Hp=1/lp(12),Vp=3*(Hp/2+1);var Kp={draw(e,t){const n=lp(t/Vp),r=n/2,o=n*Hp,i=r,a=n*Hp+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(Fp*r-zp*o,zp*r+Fp*o),e.lineTo(Fp*i-zp*a,zp*i+Fp*a),e.lineTo(Fp*s-zp*c,zp*s+Fp*c),e.lineTo(Fp*r+zp*o,Fp*o-zp*r),e.lineTo(Fp*i+zp*a,Fp*a-zp*i),e.lineTo(Fp*s+zp*c,Fp*c-zp*s),e.closePath()}};function $p(){}function Up(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Wp(e){this._context=e}function Zp(e){this._context=e}function qp(e){this._context=e}function Gp(e){this._context=e}function Yp(e){return e<0?-1:1}function Xp(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Yp(i)+Yp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Jp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qp(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function eh(e){this._context=e}function th(e){this._context=new nh(e)}function nh(e){this._context=e}function rh(e){this._context=e}function oh(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function ih(e,t){this._context=e,this._t=t}function ah(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function sh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ch(e,t){return e[t]}function lh(e){const t=[];return t.key=e,t}function uh(e){return uh="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},uh(e)}Wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Up(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Zp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Gp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qp(this,this._t0,Jp(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qp(this,Jp(this,n=Xp(this,e,t)),n);break;default:Qp(this,this._t0,n=Xp(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(th.prototype=Object.create(eh.prototype)).point=function(e,t){eh.prototype.point.call(this,t,e)},nh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=oh(e),o=oh(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},ih.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var fh=["type","size","sizeType"];function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(this,arguments)}function ph(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){gh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gh(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uh(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yh={symbolCircle:Ep,symbolCross:jp,symbolDiamond:Mp,symbolSquare:Pp,symbolStar:Rp,symbolTriangle:Bp,symbolWye:Kp},mh=Math.PI/180,bh=function(e){var n,r,o=e.type,i=void 0===o?"circle":o,a=e.size,s=void 0===a?64:a,c=e.sizeType,l=void 0===c?"area":c,u=hh(hh({},vh(e,fh)),{},{type:i,size:s,sizeType:l}),f=u.className,d=u.cx,p=u.cy,h=yd(u,!0);return d===+d&&p===+p&&s===+s?t.createElement("path",dh({},h,{className:Uc("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:(n=function(e){var t="symbol".concat(ip(e));return yh[t]||Ep}(i),r=function(e,t){let n=null,r=mp(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ap(e||Ep),t="function"==typeof t?t:ap(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ap(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(n).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*mh;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(s,l,i)),r())})):null};function wh(e){return wh="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},wh(e)}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}function Ch(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 Sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ah(r.key),r)}}function _h(e,t,n){return t=kh(t),function(e,t){if(t&&("object"===wh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}function jh(e,t,n){return(t=Ah(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e){var t=function(e,t){if("object"!=wh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wh(t)?t:String(t)}bh.registerSymbol=function(e,t){yh["symbol".concat(ip(e))]=t};var Th=32,Mh=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),_h(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eh(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=Th/6,i=Th/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Th,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Th,"M").concat(2*i,",").concat(r,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Th,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.legendIcon,t.cloneElement(e.legendIcon,s)}return t.createElement(bh,{fill:a,cx:r,cy:r,size:Th,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,s=n.inactiveColor,c={x:0,y:0,width:Th,height:Th},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i=n.formatter||a,f=Uc(jh(jh({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",n.inactive));if("none"===n.type)return null;var d=_l(n.value)?null:n.value;Td(!_l(n.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=n.inactive?s:n.color;return t.createElement("li",xh({className:f,style:l,key:"legend-item-".concat(r)},rd(e.props,n,r)),t.createElement(_d,{width:o,height:o,viewBox:c,style:u},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(d,n,r):d))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Sh(r.prototype,o),i&&Sh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();jh(Mh,"displayName","Legend"),jh(Mh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ph=Ou;var Dh=Ou,Lh=ku,Ih=Ku;var Rh=Ou,Nh=function(){this.__data__=new Ph,this.size=0},Bh=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Fh=function(e){return this.__data__.get(e)},zh=function(e){return this.__data__.has(e)},Hh=function(e,t){var n=this.__data__;if(n instanceof Dh){var r=n.__data__;if(!Lh||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ih(r)}return n.set(e,t),this.size=n.size,this};function Vh(e){var t=this.__data__=new Rh(e);this.size=t.size}Vh.prototype.clear=Nh,Vh.prototype.delete=Bh,Vh.prototype.get=Fh,Vh.prototype.has=zh,Vh.prototype.set=Hh;var Kh=Vh;var $h=Ku,Uh=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Wh=function(e){return this.__data__.has(e)};function Zh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $h;++t<n;)this.add(e[t])}Zh.prototype.add=Zh.prototype.push=Uh,Zh.prototype.has=Wh;var qh=Zh;var Gh=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Yh=function(e,t){return e.has(t)},Xh=qh,Jh=Gh,Qh=Yh;var eg=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new Xh:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var v=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Jh(t,(function(e,t){if(!Qh(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var tg=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var ng=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rg=Yc.Uint8Array,og=cu,ig=eg,ag=tg,sg=ng,cg=Xc?Xc.prototype:void 0,lg=cg?cg.valueOf:void 0;var ug=function(e,t,n,r,o,i,a){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 rg(e),new rg(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return og(+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 s=ag;case"[object Set]":var c=1&r;if(s||(s=sg),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=ig(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(lg)return lg.call(e)==lg.call(t)}return!1};var fg=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},dg=fg,pg=Wc;var hg=function(e,t,n){var r=t(e);return pg(e)?r:dg(r,n(e))};var gg=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var vg=gg,yg=function(){return[]},mg=Object.prototype.propertyIsEnumerable,bg=Object.getOwnPropertySymbols,wg=bg?function(e){return null==e?[]:(e=Object(e),vg(bg(e),(function(t){return mg.call(e,t)})))}:yg,xg=wg;var Cg=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Sg=cl,_g=ll;var Og=function(e){return _g(e)&&"[object Arguments]"==Sg(e)},kg=ll,Eg=Object.prototype,jg=Eg.hasOwnProperty,Ag=Eg.propertyIsEnumerable,Tg=Og(function(){return arguments}())?Og:function(e){return kg(e)&&jg.call(e,"callee")&&!Ag.call(e,"callee")},Mg={exports:{}};var Pg=function(){return!1};!function(e,t){var n=Yc,r=Pg,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Mg,Mg.exports);var Dg=Mg.exports,Lg=/^(?:0|[1-9]\d*)$/;var Ig=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Lg.test(e))&&e>-1&&e%1==0&&e<t};var Rg=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ng=cl,Bg=Rg,Fg=ll,zg={};zg["[object Float32Array]"]=zg["[object Float64Array]"]=zg["[object Int8Array]"]=zg["[object Int16Array]"]=zg["[object Int32Array]"]=zg["[object Uint8Array]"]=zg["[object Uint8ClampedArray]"]=zg["[object Uint16Array]"]=zg["[object Uint32Array]"]=!0,zg["[object Arguments]"]=zg["[object Array]"]=zg["[object ArrayBuffer]"]=zg["[object Boolean]"]=zg["[object DataView]"]=zg["[object Date]"]=zg["[object Error]"]=zg["[object Function]"]=zg["[object Map]"]=zg["[object Number]"]=zg["[object Object]"]=zg["[object RegExp]"]=zg["[object Set]"]=zg["[object String]"]=zg["[object WeakMap]"]=!1;var Hg=function(e){return Fg(e)&&Bg(e.length)&&!!zg[Ng(e)]};var Vg=function(e){return function(t){return e(t)}},Kg={exports:{}};!function(e,t){var n=Zc,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Kg,Kg.exports);var $g=Kg.exports,Ug=Hg,Wg=Vg,Zg=$g&&$g.isTypedArray,qg=Zg?Wg(Zg):Ug,Gg=Cg,Yg=Tg,Xg=Wc,Jg=Dg,Qg=Ig,ev=qg,tv=Object.prototype.hasOwnProperty;var nv=function(e,t){var n=Xg(e),r=!n&&Yg(e),o=!n&&!r&&Jg(e),i=!n&&!r&&!o&&ev(e),a=n||r||o||i,s=a?Gg(e.length,String):[],c=s.length;for(var l in e)!t&&!tv.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Qg(l,c))||s.push(l);return s},rv=Object.prototype;var ov=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rv)};var iv=function(e,t){return function(n){return e(t(n))}},av=iv(Object.keys,Object),sv=ov,cv=av,lv=Object.prototype.hasOwnProperty;var uv=function(e){if(!sv(e))return cv(e);var t=[];for(var n in Object(e))lv.call(e,n)&&"constructor"!=n&&t.push(n);return t},fv=Sl,dv=Rg;var pv=function(e){return null!=e&&dv(e.length)&&!fv(e)},hv=nv,gv=uv,vv=pv;var yv=function(e){return vv(e)?hv(e):gv(e)},mv=hg,bv=xg,wv=yv;var xv=function(e){return mv(e,wv,bv)},Cv=xv,Sv=Object.prototype.hasOwnProperty;var _v=function(e,t,n,r,o,i){var a=1&n,s=Cv(e),c=s.length;if(c!=Cv(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:Sv.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<c;){var g=e[u=s[l]],v=t[u];if(r)var y=a?r(v,g,u,t,e,i):r(g,v,u,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},Ov=Kl(Yc,"DataView"),kv=Kl(Yc,"Promise"),Ev=Kl(Yc,"Set"),jv=Ov,Av=ku,Tv=kv,Mv=Ev,Pv=Kl(Yc,"WeakMap"),Dv=cl,Lv=Al,Iv="[object Map]",Rv="[object Promise]",Nv="[object Set]",Bv="[object WeakMap]",Fv="[object DataView]",zv=Lv(jv),Hv=Lv(Av),Vv=Lv(Tv),Kv=Lv(Mv),$v=Lv(Pv),Uv=Dv;(jv&&Uv(new jv(new ArrayBuffer(1)))!=Fv||Av&&Uv(new Av)!=Iv||Tv&&Uv(Tv.resolve())!=Rv||Mv&&Uv(new Mv)!=Nv||Pv&&Uv(new Pv)!=Bv)&&(Uv=function(e){var t=Dv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Lv(n):"";if(r)switch(r){case zv:return Fv;case Hv:return Iv;case Vv:return Rv;case Kv:return Nv;case $v:return Bv}return t});var Wv=Kh,Zv=eg,qv=ug,Gv=_v,Yv=Uv,Xv=Wc,Jv=Dg,Qv=qg,ey="[object Arguments]",ty="[object Array]",ny="[object Object]",ry=Object.prototype.hasOwnProperty;var oy=function(e,t,n,r,o,i){var a=Xv(e),s=Xv(t),c=a?ty:Yv(e),l=s?ty:Yv(t),u=(c=c==ey?ny:c)==ny,f=(l=l==ey?ny:l)==ny,d=c==l;if(d&&Jv(e)){if(!Jv(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new Wv),a||Qv(e)?Zv(e,t,n,r,o,i):qv(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&ry.call(e,"__wrapped__"),h=f&&ry.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Wv),o(g,v,n,r,i)}}return!!d&&(i||(i=new Wv),Gv(e,t,n,r,o,i))},iy=oy,ay=ll;var sy=function e(t,n,r,o,i){return t===n||(null==t||null==n||!ay(t)&&!ay(n)?t!=t&&n!=n:iy(t,n,r,o,e,i))},cy=Kh,ly=sy;var uy=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var f=new cy;if(r)var d=r(l,u,c,e,t,f);if(!(void 0===d?ly(u,l,3,r,f):d))return!1}}return!0},fy=ml;var dy=function(e){return e==e&&!fy(e)},py=dy,hy=yv;var gy=function(e){for(var t=hy(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,py(o)]}return t};var vy=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},yy=uy,my=gy,by=vy;var wy=function(e){var t=my(e);return 1==t.length&&t[0][2]?by(t[0][0],t[0][1]):function(n){return n===e||yy(n,e,t)}};var xy=function(e,t){return null!=e&&t in Object(e)},Cy=hf,Sy=Tg,_y=Wc,Oy=Ig,ky=Rg,Ey=vf;var jy=function(e,t,n){for(var r=-1,o=(t=Cy(t,e)).length,i=!1;++r<o;){var a=Ey(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ky(o)&&Oy(a,o)&&(_y(e)||Sy(e))},Ay=xy,Ty=jy;var My=function(e,t){return null!=e&&Ty(e,t,Ay)},Py=sy,Dy=xf,Ly=My,Iy=yl,Ry=dy,Ny=vy,By=vf;var Fy=function(e,t){return Iy(e)&&Ry(t)?Ny(By(e),t):function(n){var r=Dy(n,e);return void 0===r&&r===t?Ly(n,e):Py(t,r,3)}};var zy=function(e){return e};var Hy=function(e){return function(t){return null==t?void 0:t[e]}},Vy=bf;var Ky=function(e){return function(t){return Vy(t,e)}},$y=Hy,Uy=Ky,Wy=yl,Zy=vf;var qy=wy,Gy=Fy,Yy=zy,Xy=Wc,Jy=function(e){return Wy(e)?$y(Zy(e)):Uy(e)};var Qy=function(e){return"function"==typeof e?e:null==e?Yy:"object"==typeof e?Xy(e)?Gy(e[0],e[1]):qy(e):Jy(e)};var em=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var tm=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},nm=em,rm=function(e){return e!=e},om=tm;var im=function(e,t,n){return t==t?om(e,t,n):nm(e,rm,n)},am=im;var sm=function(e,t){return!!(null==e?0:e.length)&&am(e,t,0)>-1};var cm=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var lm=Ev,um=function(){},fm=lm&&1/ng(new lm([,-0]))[1]==1/0?function(e){return new lm(e)}:um,dm=qh,pm=sm,hm=cm,gm=Yh,vm=fm,ym=ng;var mm=function(e,t,n){var r=-1,o=pm,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=hm;else if(i>=200){var l=t?null:vm(e);if(l)return ym(l);a=!1,o=gm,c=new dm}else c=t?[]:s;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else o(c,f,n)||(c!==s&&c.push(f),s.push(u))}return s},bm=Qy,wm=mm;var xm=function(e,t){return e&&e.length?wm(e,bm(t)):[]},Cm=ct(xm);function Sm(e,t,n){return!0===t?Cm(e,n):_l(t)?Cm(e,t):e}function _m(e){return _m="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},_m(e)}var Om=["ref"];function km(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 Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Im(r.key),r)}}function Am(e,t,n){return t=Mm(t),function(e,t){if(t&&("object"===_m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pm(e)}(e,Tm()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function Tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tm=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mm(e)}function Pm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dm(e,t){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dm(e,t)}function Lm(e,t,n){return(t=Im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e){var t=function(e,t){if("object"!=_m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_m(t)?t:String(t)}function Rm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nm(e){return e.value}var Bm=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Lm(Pm(e=Am(this,n,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dm(e,t)}(n,t.PureComponent),r=n,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Vf(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Em({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,c=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Em(Em({},t),n)}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,s=n.payloadUniqBy,c=n.payload,l=Em(Em({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if("function"==typeof e)return t.createElement(e,n);n.ref;var r=Rm(n,Om);return t.createElement(Mh,r)}(r,Em(Em({},this.props),{},{payload:Sm(c,s,Nm)})))}}])&&jm(r.prototype,o),i&&jm(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Lm(Bm,"displayName","Legend"),Lm(Bm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fm=Tg,zm=Wc,Hm=Xc?Xc.isConcatSpreadable:void 0;var Vm=fg,Km=function(e){return zm(e)||Fm(e)||!!(Hm&&e&&e[Hm])};var $m=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=Km),i||(i=[]);++a<s;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):Vm(i,c):o||(i[i.length]=c)}return i};var Um=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}},Wm=Um(),Zm=yv;var qm=function(e,t){return e&&Wm(e,t,Zm)},Gm=pv;var Ym=function(e,t){return function(n,r){if(null==n)return n;if(!Gm(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},Xm=Ym(qm),Jm=Xm,Qm=pv;var eb=function(e,t){var n=-1,r=Qm(e)?Array(e.length):[];return Jm(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var tb=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},nb=dl;var rb=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=nb(e),a=void 0!==t,s=null===t,c=t==t,l=nb(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0};var ob=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=rb(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index},ib=ef,ab=bf,sb=Qy,cb=eb,lb=tb,ub=Vg,fb=ob,db=zy,pb=Wc;var hb=function(e,t,n){t=t.length?ib(t,(function(e){return pb(e)?function(t){return ab(t,1===e.length?e[0]:e)}:e})):[db];var r=-1;t=ib(t,ub(sb));var o=cb(e,(function(e,n,o){return{criteria:ib(t,(function(t){return t(e)})),index:++r,value:e}}));return lb(o,(function(e,t){return fb(e,t,n)}))};var gb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},vb=gb,yb=Math.max;var mb=function(e,t,n){return t=yb(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=yb(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),vb(e,this,s)}};var bb=function(e){return function(){return e}},wb=Kl,xb=function(){try{var e=wb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cb=bb,Sb=xb,_b=Sb?function(e,t){return Sb(e,"toString",{configurable:!0,enumerable:!1,value:Cb(t),writable:!0})}:zy,Ob=_b,kb=Date.now;var Eb=function(e){var t=0,n=0;return function(){var r=kb(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ob),jb=zy,Ab=mb,Tb=Eb;var Mb=cu,Pb=pv,Db=Ig,Lb=ml;var Ib=function(e,t,n){if(!Lb(n))return!1;var r=typeof t;return!!("number"==r?Pb(n)&&Db(t,n.length):"string"==r&&t in n)&&Mb(n[t],e)},Rb=$m,Nb=hb,Bb=Ib,Fb=ct(function(e,t){return Tb(Ab(e,t,jb),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Bb(e,t[0],t[1])?t=[]:n>2&&Bb(t[0],t[1],t[2])&&(t=[t[0]]),Nb(e,Rb(t,1),[])})));function zb(e){return zb="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},zb(e)}function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hb.apply(this,arguments)}function Vb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(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 Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$b(Object(n),!0).forEach((function(t){Wb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zb(e){return Array.isArray(e)&&Kf(e[0])&&Kf(e[1])?e.join(" ~ "):e}var qb=function(e){var n=e.separator,r=void 0===n?" : ":n,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,s=void 0===a?{}:a,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,v=e.labelFormatter,y=e.accessibilityLayer,m=void 0!==y&&y,b=Ub({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Ub({margin:0},l),x=!Sf(g),C=x?g:"",S=Uc("recharts-default-tooltip",p),_=Uc("recharts-tooltip-label",h);x&&v&&null!=u&&(C=v(g,u));var O=m?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",Hb({className:S,style:b},O),t.createElement("p",{className:_,style:w},t.isValidElement(C)?C:"".concat(C)),function(){if(u&&u.length){var e=(d?Fb(u,d):u).map((function(e,n){if("none"===e.type)return null;var o=Ub({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s),i=e.formatter||f||Zb,a=e.value,c=e.name,l=a,d=c;if(i&&null!=l&&null!=d){var p=i(a,c,e,n,u);if(Array.isArray(p)){var h=Vb(p,2);l=h[0],d=h[1]}else l=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:o},Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Gb(e){return Gb="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},Gb(e)}function Yb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Gb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xb="recharts-tooltip-wrapper",Jb={visibility:"hidden"};function Qb(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Uc(Xb,Yb(Yb(Yb(Yb({},"".concat(Xb,"-right"),Vf(n)&&t&&Vf(t.x)&&n>=t.x),"".concat(Xb,"-left"),Vf(n)&&t&&Vf(t.x)&&n<t.x),"".concat(Xb,"-bottom"),Vf(r)&&t&&Vf(t.y)&&r>=t.y),"".concat(Xb,"-top"),Vf(r)&&t&&Vf(t.y)&&r<t.y))}function ew(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(i&&Vf(i[r]))return i[r];var u=n[r]-s-o,f=n[r]+o;return t[r]?a[r]?u:f:a[r]?u<c[r]?Math.max(f,c[r]):Math.max(u,c[r]):f+s>c[r]+l?Math.max(u,c[r]):Math.max(f,c[r])}function tw(e){return tw="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},tw(e)}function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ow(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fw(r.key),r)}}function iw(e,t,n){return t=sw(t),function(e,t){if(t&&("object"===tw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cw(e)}(e,aw()?Reflect.construct(t,n||[],sw(e).constructor):t.apply(e,n))}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aw=function(){return!!e})()}function sw(e){return sw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sw(e)}function cw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lw(e,t)}function uw(e,t,n){return(t=fw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fw(e){var t=function(e,t){if("object"!=tw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tw(t)?t:String(t)}var dw=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return uw(cw(e=iw(this,n,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),uw(cw(e),"lastBoundingBox",{width:-1,height:-1}),uw(cw(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lw(e,t)}(n,t.PureComponent),r=n,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.children,c=n.coordinate,l=n.hasPayload,u=n.isAnimationActive,f=n.offset,d=n.position,p=n.reverseDirection,h=n.useTranslate3d,g=n.viewBox,v=n.wrapperStyle,y=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,c=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=ew({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=ew({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:l}):Jb,cssClasses:Qb({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),m=y.cssClasses,b=y.cssProperties,w=rw(rw({transition:u&&r?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(t){e.wrapperNode=t}},s)}}],o&&ow(r.prototype,o),i&&ow(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),pw={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return pw[e]},set:function(e,t){if("string"==typeof e)pw[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){pw[t]=e[t]}))}}};function hw(e){return hw="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},hw(e)}function gw(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 vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(n),!0).forEach((function(t){Cw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sw(r.key),r)}}function mw(e,t,n){return t=ww(t),function(e,t){if(t&&("object"===hw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bw()?Reflect.construct(t,n||[],ww(e).constructor):t.apply(e,n))}function bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bw=function(){return!!e})()}function ww(e){return ww=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ww(e)}function xw(e,t){return xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xw(e,t)}function Cw(e,t,n){return(t=Sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e){var t=function(e,t){if("object"!=hw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hw(t)?t:String(t)}function _w(e){return e.dataKey}var Ow=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),mw(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xw(e,t)}(n,t.PureComponent),r=n,o=[{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.content,c=n.coordinate,l=n.filterNull,u=n.isAnimationActive,f=n.offset,d=n.payload,p=n.payloadUniqBy,h=n.position,g=n.reverseDirection,v=n.useTranslate3d,y=n.viewBox,m=n.wrapperStyle,b=null!=d?d:[];l&&b.length&&(b=Sm(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,_w));var w=b.length>0;return t.createElement(dw,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:u,active:r,coordinate:c,hasPayload:w,offset:f,position:h,reverseDirection:g,useTranslate3d:v,viewBox:y,wrapperStyle:m},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):"function"==typeof e?t.createElement(e,n):t.createElement(qb,n)}(s,vw(vw({},this.props),{},{payload:b})))}}],o&&yw(r.prototype,o),i&&yw(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Cw(Ow,"displayName","Tooltip"),Cw(Ow,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!pw.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var kw=Yc,Ew=/\s/;var jw=function(e){for(var t=e.length;t--&&Ew.test(e.charAt(t)););return t},Aw=jw,Tw=/^\s+/;var Mw=function(e){return e?e.slice(0,Aw(e)+1).replace(Tw,""):e},Pw=Mw,Dw=ml,Lw=dl,Iw=/^[-+]0x[0-9a-f]+$/i,Rw=/^0b[01]+$/i,Nw=/^0o[0-7]+$/i,Bw=parseInt;var Fw=function(e){if("number"==typeof e)return e;if(Lw(e))return NaN;if(Dw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pw(e);var n=Rw.test(e);return n||Nw.test(e)?Bw(e.slice(2),n?2:8):Iw.test(e)?NaN:+e},zw=ml,Hw=function(){return kw.Date.now()},Vw=Fw,Kw=Math.max,$w=Math.min;var Uw=function(e,t,n){var r,o,i,a,s,c,l=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=i}function g(){var e=Hw();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?$w(n,i-(e-l)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Hw(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(g,t),u?p(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Vw(t)||0,zw(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Kw(Vw(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(Hw())},y},Ww=Uw,Zw=ml;var qw=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Zw(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ww(e,t,{leading:r,maxWait:t,trailing:o})},Gw=ct(qw);function Yw(e){return Yw="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},Yw(e)}function Xw(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 Jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qw(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Yw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nx=t.forwardRef((function(e,n){var r=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,s=void 0===a?"100%":a,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,f=void 0===u?0:u,d=e.minHeight,p=e.maxHeight,h=e.children,g=e.debounce,v=void 0===g?0:g,y=e.id,m=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,C=t.useRef(null),S=t.useRef();S.current=b,t.useImperativeHandle(n,(function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})}));var _=ex(t.useState({containerWidth:i.width,containerHeight:i.height}),2),O=_[0],k=_[1],E=t.useCallback((function(e,t){k((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);t.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=S.current)||void 0===t||t.call(S,r,o)};v>0&&(e=Gw(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(C.current),function(){t.disconnect()}}),[E,v]);var j=t.useMemo((function(){var e=O.containerWidth,n=O.containerHeight;if(e<0||n<0)return null;Td(Hf(s)||Hf(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,l),Td(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=Hf(s)?e:s,i=Hf(l)?n:l;r&&r>0&&(o?i=o/r:i&&(o=i*r),p&&i>p&&(i=p)),Td(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,i,s,l,f,d,r);var a=!Array.isArray(h)&&Df.isElement(h)&&ld(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return Df.isElement(e)?t.cloneElement(e,Jw({width:o,height:i},a?{style:Jw({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[r,h,l,p,d,f,O,s]);return t.createElement("div",{id:y?"".concat(y):void 0,className:Uc("recharts-responsive-container",m),style:Jw(Jw({},x),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:C},j)})),rx=function(e){return null};function ox(e){return ox="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},ox(e)}function ix(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 ax(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(n),!0).forEach((function(t){sx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sx(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ox(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ox(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ox(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rx.displayName="Cell";var cx={widthCache:{},cacheCount:0},lx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ux="recharts_measurement_span";var fx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||pw.isSsr)return{width:0,height:0};var n,r=(n=ax({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(cx.widthCache[o])return cx.widthCache[o];try{var i=document.getElementById(ux);i||((i=document.createElement("span")).setAttribute("id",ux),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ax(ax({},lx),r);Object.assign(i.style,a),i.textContent="".concat(e);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return cx.widthCache[o]=c,++cx.cacheCount>2e3&&(cx.cacheCount=0,cx.widthCache={}),c}catch(e){return{width:0,height:0}}};function dx(e){return dx="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},dx(e)}function px(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vx(r.key),r)}}function vx(e){var t=function(e,t){if("object"!=dx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dx(t)?t:String(t)}var yx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,xx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Cx=Object.keys(xx),Sx="NaN";var _x=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||bx.test(n)||(this.num=NaN,this.unit=""),Cx.includes(n)&&(this.num=function(e,t){return e*xx[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=px(null!==(n=wx.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&gx(t.prototype,n),r&&gx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ox(e){if(e.includes(Sx))return Sx;for(var t=e;t.includes("*")||t.includes("/");){var n,r=px(null!==(n=yx.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=_x.parse(null!=o?o:""),c=_x.parse(null!=a?a:""),l="*"===i?s.multiply(c):s.divide(c);if(l.isNaN())return Sx;t=t.replace(yx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=px(null!==(u=mx.exec(t))&&void 0!==u?u:[],4),d=f[1],p=f[2],h=f[3],g=_x.parse(null!=d?d:""),v=_x.parse(null!=h?h:""),y="+"===p?g.add(v):g.subtract(v);if(y.isNaN())return Sx;t=t.replace(mx,y.toString())}return t}var kx=/\(([^()]*)\)/;function Ex(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=px(kx.exec(t),2)[1];t=t.replace(kx,Ox(n))}return t}(t),t=Ox(t)}function jx(e){var t=function(e){try{return Ex(e)}catch(e){return Sx}}(e.slice(5,-1));return t===Sx?"":t}var Ax=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Tx=["dx","dy","angle","className","breakAll"];function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(this,arguments)}function Px(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ix=/[ \f\n\r\t\v\u2028\u2029]+/,Rx=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Sf(t)||(o=n?t.toString().split(""):t.toString().split(Ix)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:fx(e,r).width}})),spaceWidth:n?0:fx(" ",r).width}}catch(e){return null}},Nx=function(e){return[{words:Sf(e)?[]:e.toString().split(Ix)}]},Bx=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!pw.isSsr){var s=Rx({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=Vf(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=Rx({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=Dx(h(m-1),2),w=b[0],x=b[1],C=Dx(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Nx(r)}return Nx(r)},Fx="#808080",zx=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.lineHeight,s=void 0===a?"1em":a,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,f=void 0!==u&&u,d=e.textAnchor,p=void 0===d?"start":d,h=e.verticalAnchor,g=void 0===h?"end":h,v=e.fill,y=void 0===v?Fx:v,m=Px(e,Ax),b=t.useMemo((function(){return Bx({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,C=m.angle,S=m.className,_=m.breakAll,O=Px(m,Tx);if(!Kf(r)||!Kf(i))return null;var k,E=r+(Vf(w)?w:0),j=i+(Vf(x)?x:0);switch(g){case"start":k=jx("calc(".concat(l,")"));break;case"middle":k=jx("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:k=jx("calc(".concat(b.length-1," * -").concat(s,")"))}var A=[];if(f){var T=b[0].width,M=m.width;A.push("scale(".concat((Vf(M)?M/T:1)/T,")"))}return C&&A.push("rotate(".concat(C,", ").concat(E,", ").concat(j,")")),A.length&&(O.transform=A.join(" ")),t.createElement("text",Mx({},yd(O,!0),{x:E,y:j,className:Uc("recharts-text",S),textAnchor:p,fill:y.includes("url")?Fx:y}),b.map((function(e,n){var r=e.words.join(_?"":" ");return t.createElement("tspan",{x:E,dy:0===n?k:s,key:r},r)})))};function Hx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kx(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Hx,n=(t,n)=>Hx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Hx||e===Vx?e:$x,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function $x(){return 0}function Ux(e){return null===e?NaN:+e}const Wx=Kx(Hx).right;Kx(Ux).center;class Zx extends Map{constructor(e,t=Gx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(qx(this,e))}has(e){return super.has(qx(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function qx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Yx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Xx=Math.sqrt(50),Jx=Math.sqrt(10),Qx=Math.sqrt(2);function eC(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Xx?10:i>=Jx?5:i>=Qx?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?eC(e,t,2*n):[s,c,l]}function tC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?eC(t,e,n):eC(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function nC(e,t,n){return eC(e=+e,t=+t,n=+n)[2]}function rC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function oC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function iC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function aC(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?Yx:function(e=Hx){if(e===Hx)return Yx;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);aC(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(sC(e,n,t),o(e[r],i)>0&&sC(e,n,r);a<s;){for(sC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?sC(e,n,s):(++s,sC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cC(e,t,n=Ux){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function lC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function uC(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const fC=Symbol("implicit");function dC(){var e=new Zx,t=[],n=[],r=fC;function o(o){let i=e.get(o);if(void 0===i){if(r!==fC)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Zx;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return dC(t,n).unknown(r)},lC.apply(o,arguments),o}function pC(){var e,t,n=dC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return pC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},lC.apply(f(),arguments)}function hC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return hC(t())},e}function gC(){return hC(pC.apply(null,arguments).paddingInner(1))}function vC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mC(){}var bC=.7,wC=1/bC,xC="\\s*([+-]?\\d+)\\s*",CC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",SC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_C=/^#([0-9a-f]{3,8})$/,OC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),kC=new RegExp(`^rgb\\(${SC},${SC},${SC}\\)$`),EC=new RegExp(`^rgba\\(${xC},${xC},${xC},${CC}\\)$`),jC=new RegExp(`^rgba\\(${SC},${SC},${SC},${CC}\\)$`),AC=new RegExp(`^hsl\\(${CC},${SC},${SC}\\)$`),TC=new RegExp(`^hsla\\(${CC},${SC},${SC},${CC}\\)$`),MC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function PC(){return this.rgb().formatHex()}function DC(){return this.rgb().formatRgb()}function LC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_C.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IC(t):3===n?new BC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?RC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?RC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=OC.exec(e))?new BC(t[1],t[2],t[3],1):(t=kC.exec(e))?new BC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EC.exec(e))?RC(t[1],t[2],t[3],t[4]):(t=jC.exec(e))?RC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?$C(t[1],t[2]/100,t[3]/100,1):(t=TC.exec(e))?$C(t[1],t[2]/100,t[3]/100,t[4]):MC.hasOwnProperty(e)?IC(MC[e]):"transparent"===e?new BC(NaN,NaN,NaN,0):null}function IC(e){return new BC(e>>16&255,e>>8&255,255&e,1)}function RC(e,t,n,r){return r<=0&&(e=t=n=NaN),new BC(e,t,n,r)}function NC(e,t,n,r){return 1===arguments.length?function(e){return e instanceof mC||(e=LC(e)),e?new BC((e=e.rgb()).r,e.g,e.b,e.opacity):new BC}(e):new BC(e,t,n,null==r?1:r)}function BC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function FC(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}`}function zC(){const e=HC(this.opacity);return`${1===e?"rgb(":"rgba("}${VC(this.r)}, ${VC(this.g)}, ${VC(this.b)}${1===e?")":`, ${e})`}`}function HC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KC(e){return((e=VC(e))<16?"0":"")+e.toString(16)}function $C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new WC(e,t,n,r)}function UC(e){if(e instanceof WC)return new WC(e.h,e.s,e.l,e.opacity);if(e instanceof mC||(e=LC(e)),!e)return new WC;if(e instanceof WC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new WC(a,s,c,e.opacity)}function WC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ZC(e){return(e=(e||0)%360)<0?e+360:e}function qC(e){return Math.max(0,Math.min(1,e||0))}function GC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vC(mC,LC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return UC(this).formatHsl()},formatRgb:DC,toString:DC}),vC(BC,NC,yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new BC(VC(this.r),VC(this.g),VC(this.b),HC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:FC,formatHex:FC,formatHex8:function(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}${KC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zC,toString:zC})),vC(WC,(function(e,t,n,r){return 1===arguments.length?UC(e):new WC(e,t,n,null==r?1:r)}),yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new WC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new WC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new BC(GC(e>=240?e-240:e+120,o,r),GC(e,o,r),GC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new WC(ZC(this.h),qC(this.s),qC(this.l),HC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HC(this.opacity);return`${1===e?"hsl(":"hsla("}${ZC(this.h)}, ${100*qC(this.s)}%, ${100*qC(this.l)}%${1===e?")":`, ${e})`}`}}));var YC=e=>()=>e;function XC(e){return 1==(e=+e)?JC:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):YC(isNaN(t)?n:t)}}function JC(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):YC(isNaN(e)?t:e)}var QC=function e(t){var n=XC(t);function r(e,t){var r=n((e=NC(e)).r,(t=NC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JC(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function eS(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function tS(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=cS(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function nS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oS(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=cS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var iS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aS=new RegExp(iS.source,"g");function sS(e,t){var n,r,o,i=iS.lastIndex=aS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=iS.exec(e))&&(r=aS.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:rS(n,r)})),i=aS.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function cS(e,t){var n,r=typeof t;return null==t||"boolean"===r?YC(t):("number"===r?rS:"string"===r?(n=LC(t))?(t=n,QC):sS:t instanceof LC?QC:t instanceof Date?nS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?eS:Array.isArray(t)?tS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oS:rS)(e,t)}function lS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function uS(e,t){void 0===t&&(t=e,e=cS);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function fS(e){return+e}var dS=[0,1];function pS(e){return e}function hS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function gS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=hS(o,r),i=n(a,i)):(r=hS(r,o),i=n(i,a)),function(e){return i(r(e))}}function vS(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=hS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Wx(e,t,1,r)-1;return i[n](o[n](t))}}function yS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function mS(){var e,t,n,r,o,i,a=dS,s=dS,c=cS,l=pS;function u(){var e=Math.min(a.length,s.length);return l!==pS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?vS:gS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),rS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,fS),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=lS,u()},f.clamp=function(e){return arguments.length?(l=!!e||pS,u()):l!==pS},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function bS(){return mS()(pS,pS)}function wS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xS(e){return(e=wS(Math.abs(e)))?e[1]:NaN}var CS,SS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _S(e){if(!(t=SS.exec(e)))throw new Error("invalid format: "+e);var t;return new OS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function OS(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function kS(e,t){var n=wS(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}_S.prototype=OS.prototype,OS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ES={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kS(100*e,t),r:kS,s:function(e,t){var n=wS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(CS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+wS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jS(e){return e}var AS,TS,MS,PS=Array.prototype.map,DS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?jS:(t=PS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?jS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(PS.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=_S(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):ES[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=ES[m],C=/[defgprs%]/.test(m);function S(e){var o,i,c,d=b,S=w;if("c"===m)S=x(e)+S,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),_&&0==+e&&"+"!==f&&(_=!1),d=(_?"("===f?f:l:"-"===f||"("===f?"":f)+d,S=("s"===m?DS[8+CS/3]:"")+S+(_&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+S.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=d+e+S+k;break;case"=":e=d+k+e+S;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+S+k.slice(O);break;default:e=k+d+e+S}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var n=f(((e=_S(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(xS(t)/3))),o=Math.pow(10,-r),i=DS[8+r/3];return function(e){return n(o*e)+i}}}}function IS(e,t,n,r){var o,i=rC(e,t,n);switch((r=_S(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xS(t)/3)))-xS(Math.abs(e)))}(i,a))||(r.precision=o),MS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xS(t)-xS(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-xS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return TS(r)}function RS(e){var t=e.domain;return e.ticks=function(e){var n=t();return tC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return IS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=nC(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function NS(){var e=bS();return e.copy=function(){return yS(e,NS())},lC.apply(e,arguments),RS(e)}function BS(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function FS(e){return Math.log(e)}function zS(e){return Math.exp(e)}function HS(e){return-Math.log(-e)}function VS(e){return-Math.exp(-e)}function KS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $S(e){return(t,n)=>-e(-t,n)}function US(e){const t=e(FS,zS),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?KS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=$S(r),o=$S(o),e(HS,VS)):e(FS,zS),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=tC(a,s,p))}else h=tC(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=_S(n)).precision||(n.trim=!0),n=TS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(BS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function WS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ZS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qS(e){var t=1,n=e(WS(t),ZS(t));return n.constant=function(n){return arguments.length?e(WS(t=+n),ZS(t)):t},RS(n)}function GS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XS(e){return e<0?-e*e:e*e}function JS(e){var t=e(pS,pS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(pS,pS):.5===n?e(YS,XS):e(GS(n),GS(1/n)):n},RS(t)}function QS(){var e=JS(mS());return e.copy=function(){return yS(e,QS()).exponent(e.exponent())},lC.apply(e,arguments),e}function e_(e){return Math.sign(e)*e*e}AS=LS({thousands:",",grouping:[3],currency:["$",""]}),TS=AS.format,MS=AS.formatPrefix;const t_=new Date,n_=new Date;function r_(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>r_((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(t_.setTime(+t),n_.setTime(+r),e(t_),e(n_),Math.floor(n(t_,n_))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const o_=r_((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));o_.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r_((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):o_:null),o_.range;const i_=1e3,a_=6e4,s_=36e5,c_=864e5,l_=6048e5,u_=2592e6,f_=31536e6,d_=r_((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*i_)}),((e,t)=>(t-e)/i_),(e=>e.getUTCSeconds()));d_.range;const p_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getMinutes()));p_.range;const h_=r_((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getUTCMinutes()));h_.range;const g_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_-e.getMinutes()*a_)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getHours()));g_.range;const v_=r_((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getUTCHours()));v_.range;const y_=r_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a_)/c_),(e=>e.getDate()-1));y_.range;const m_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>e.getUTCDate()-1));m_.range;const b_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>Math.floor(e/c_)));function w_(e){return r_((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a_)/l_))}b_.range;const x_=w_(0),C_=w_(1),S_=w_(2),__=w_(3),O_=w_(4),k_=w_(5),E_=w_(6);function j_(e){return r_((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/l_))}x_.range,C_.range,S_.range,__.range,O_.range,k_.range,E_.range;const A_=j_(0),T_=j_(1),M_=j_(2),P_=j_(3),D_=j_(4),L_=j_(5),I_=j_(6);A_.range,T_.range,M_.range,P_.range,D_.range,L_.range,I_.range;const R_=r_((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));R_.range;const N_=r_((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));N_.range;const B_=r_((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));B_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,B_.range;const F_=r_((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function z_(e,t,n,r,o,i){const a=[[d_,1,i_],[d_,5,5e3],[d_,15,15e3],[d_,30,3e4],[i,1,a_],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,s_],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,c_],[r,2,1728e5],[n,1,l_],[t,1,u_],[t,3,7776e6],[e,1,f_]];function s(t,n,r){const o=Math.abs(n-t)/r,i=Kx((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(rC(t/f_,n/f_,r));if(0===i)return o_.every(Math.max(rC(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}F_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,F_.range;const[H_,V_]=z_(F_,N_,A_,b_,v_,h_),[K_,$_]=z_(B_,R_,x_,y_,g_,p_);function U_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function W_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Z_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var q_,G_,Y_,X_={"-":"",_:" ",0:"0"},J_=/^\s*\d+/,Q_=/^%/,eO=/[\\^$*+?|[\]().{}]/g;function tO(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function nO(e){return e.replace(eO,"\\$&")}function rO(e){return new RegExp("^(?:"+e.map(nO).join("|")+")","i")}function oO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function iO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function aO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=J_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function dO(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function pO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function hO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xO(e,t,n){var r=J_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CO(e,t,n){var r=Q_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function SO(e,t,n){var r=J_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=J_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function OO(e,t){return tO(e.getDate(),t,2)}function kO(e,t){return tO(e.getHours(),t,2)}function EO(e,t){return tO(e.getHours()%12||12,t,2)}function jO(e,t){return tO(1+y_.count(B_(e),e),t,3)}function AO(e,t){return tO(e.getMilliseconds(),t,3)}function TO(e,t){return AO(e,t)+"000"}function MO(e,t){return tO(e.getMonth()+1,t,2)}function PO(e,t){return tO(e.getMinutes(),t,2)}function DO(e,t){return tO(e.getSeconds(),t,2)}function LO(e){var t=e.getDay();return 0===t?7:t}function IO(e,t){return tO(x_.count(B_(e)-1,e),t,2)}function RO(e){var t=e.getDay();return t>=4||0===t?O_(e):O_.ceil(e)}function NO(e,t){return e=RO(e),tO(O_.count(B_(e),e)+(4===B_(e).getDay()),t,2)}function BO(e){return e.getDay()}function FO(e,t){return tO(C_.count(B_(e)-1,e),t,2)}function zO(e,t){return tO(e.getFullYear()%100,t,2)}function HO(e,t){return tO((e=RO(e)).getFullYear()%100,t,2)}function VO(e,t){return tO(e.getFullYear()%1e4,t,4)}function KO(e,t){var n=e.getDay();return tO((e=n>=4||0===n?O_(e):O_.ceil(e)).getFullYear()%1e4,t,4)}function $O(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tO(t/60|0,"0",2)+tO(t%60,"0",2)}function UO(e,t){return tO(e.getUTCDate(),t,2)}function WO(e,t){return tO(e.getUTCHours(),t,2)}function ZO(e,t){return tO(e.getUTCHours()%12||12,t,2)}function qO(e,t){return tO(1+m_.count(F_(e),e),t,3)}function GO(e,t){return tO(e.getUTCMilliseconds(),t,3)}function YO(e,t){return GO(e,t)+"000"}function XO(e,t){return tO(e.getUTCMonth()+1,t,2)}function JO(e,t){return tO(e.getUTCMinutes(),t,2)}function QO(e,t){return tO(e.getUTCSeconds(),t,2)}function ek(e){var t=e.getUTCDay();return 0===t?7:t}function tk(e,t){return tO(A_.count(F_(e)-1,e),t,2)}function nk(e){var t=e.getUTCDay();return t>=4||0===t?D_(e):D_.ceil(e)}function rk(e,t){return e=nk(e),tO(D_.count(F_(e),e)+(4===F_(e).getUTCDay()),t,2)}function ok(e){return e.getUTCDay()}function ik(e,t){return tO(T_.count(F_(e)-1,e),t,2)}function ak(e,t){return tO(e.getUTCFullYear()%100,t,2)}function sk(e,t){return tO((e=nk(e)).getUTCFullYear()%100,t,2)}function ck(e,t){return tO(e.getUTCFullYear()%1e4,t,4)}function lk(e,t){var n=e.getUTCDay();return tO((e=n>=4||0===n?D_(e):D_.ceil(e)).getUTCFullYear()%1e4,t,4)}function uk(){return"+0000"}function fk(){return"%"}function dk(e){return+e}function pk(e){return Math.floor(+e/1e3)}function hk(e){return new Date(e)}function gk(e){return e instanceof Date?+e:+new Date(+e)}function vk(e,t,n,r,o,i,a,s,c,l){var u=bS(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,gk)):d().map(hk)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(BS(n,e)):u},u.copy=function(){return yS(u,vk(e,t,n,r,o,i,a,s,c,l))},u}function yk(){var e,t,n,r,o,i=0,a=1,s=pS,c=!1;function l(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(cS),l.rangeRound=u(lS),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function mk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bk(){var e=JS(yk());return e.copy=function(){return mk(e,bk()).exponent(e.exponent())},uC.apply(e,arguments)}function wk(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=pS,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=uS(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(cS),p.rangeRound=h(lS),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function xk(){var e=JS(wk());return e.copy=function(){return mk(e,xk()).exponent(e.exponent())},uC.apply(e,arguments)}!function(e){q_=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=rO(o),u=oO(o),f=rO(i),d=oO(i),p=rO(a),h=oO(a),g=rO(s),v=oO(s),y=rO(c),m=oO(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:OO,e:OO,f:TO,g:HO,G:KO,H:kO,I:EO,j:jO,L:AO,m:MO,M:PO,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:dk,s:pk,S:DO,u:LO,U:IO,V:NO,w:BO,W:FO,x:null,X:null,y:zO,Y:VO,Z:$O,"%":fk},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:UO,e:UO,f:YO,g:sk,G:lk,H:WO,I:ZO,j:qO,L:GO,m:XO,M:JO,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:dk,s:pk,S:QO,u:ek,U:tk,V:rk,w:ok,W:ik,x:null,X:null,y:ak,Y:ck,Z:uk,"%":fk},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:gO,e:gO,f:xO,g:fO,G:uO,H:yO,I:yO,j:vO,L:wO,m:hO,M:mO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:pO,Q:SO,s:_O,S:bO,u:aO,U:sO,V:cO,w:iO,W:lO,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:fO,Y:uO,Z:dO,"%":CO};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=X_[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=Z_(1900,void 0,1);if(_(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=W_(Z_(i.y,0,1))).getUTCDay(),r=o>4||0===o?T_.ceil(r):T_(r),r=m_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=U_(Z_(i.y,0,1))).getDay(),r=o>4||0===o?C_.ceil(r):C_(r),r=y_.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?W_(Z_(i.y,0,1)).getUTCDay():U_(Z_(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,W_(i)):U_(i)}}function _(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in X_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),G_=q_.format,q_.parse,Y_=q_.utcFormat,q_.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ck=Object.freeze({__proto__:null,scaleBand:pC,scaleDiverging:function e(){var t=RS(wk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleDivergingLog:function e(){var t=US(wk()).domain([.1,1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleDivergingPow:xk,scaleDivergingSqrt:function(){return xk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=qS(wk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,fS),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,fS):[0,1],RS(r)},scaleImplicit:fC,scaleLinear:NS,scaleLog:function e(){const t=US(mS()).domain([1,10]);return t.copy=()=>yS(t,e()).base(t.base()),lC.apply(t,arguments),t},scaleOrdinal:dC,scalePoint:gC,scalePow:QS,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=cC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Wx(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Hx),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},lC.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Wx(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},lC.apply(RS(s),arguments)},scaleRadial:function e(){var t,n=bS(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(e_(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,fS)).map(e_)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},lC.apply(i,arguments),RS(i)},scaleSequential:function e(){var t=RS(yk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleSequentialLog:function e(){var t=US(yk()).domain([1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleSequentialPow:bk,scaleSequentialQuantile:function e(){var t=[],n=pS;function r(e){if(null!=e&&!isNaN(e=+e))return n((Wx(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Hx),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return iC(e);if(t>=1)return oC(e);var r,o=(r-1)*t,i=Math.floor(o),a=oC(aC(e,i).subarray(0,i+1));return a+(iC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},uC.apply(r,arguments)},scaleSequentialSqrt:function(){return bk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=qS(yk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleSqrt:function(){return QS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=qS(mS());return t.copy=function(){return yS(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[Wx(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},lC.apply(i,arguments)},scaleTime:function(){return lC.apply(vk(K_,$_,B_,R_,x_,y_,g_,p_,d_,G_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return lC.apply(vk(H_,V_,F_,N_,A_,m_,v_,h_,d_,Y_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:IS}),Sk=dl;var _k=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Sk(a):n(a,s)))var s=a,c=i}return c};var Ok=function(e,t){return e>t},kk=_k,Ek=Ok,jk=zy;var Ak=function(e){return e&&e.length?kk(e,jk,Ek):void 0},Tk=ct(Ak);var Mk=function(e,t){return e<t},Pk=_k,Dk=Mk,Lk=zy;var Ik=function(e){return e&&e.length?Pk(e,Lk,Dk):void 0},Rk=ct(Ik),Nk=ef,Bk=Qy,Fk=eb,zk=Wc;var Hk=$m,Vk=function(e,t){return(zk(e)?Nk:Fk)(e,Bk(t))};var Kk=ct((function(e,t){return Hk(Vk(e,t),1)})),$k=sy;var Uk,Wk=ct((function(e,t){return $k(e,t)})),Zk=1e9,qk=!0,Gk="[DecimalError] ",Yk=Gk+"Invalid argument: ",Xk=Gk+"Exponent out of range: ",Jk=Math.floor,Qk=Math.pow,eE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tE=1e7,nE=7,rE=9007199254740991,oE=Jk(rE/nE),iE={};function aE(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),qk?vE(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/nE))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/tE|0,c[i]%=tE;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,qk?vE(t,f):t}function sE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yk+e)}function cE(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=nE-r.length)&&(i+=pE(n)),i+=r;a=e[t],(n=nE-(r=a+"").length)&&(i+=pE(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}iE.absoluteValue=iE.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},iE.comparedTo=iE.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},iE.decimalPlaces=iE.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nE;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},iE.dividedBy=iE.div=function(e){return lE(this,new this.constructor(e))},iE.dividedToIntegerBy=iE.idiv=function(e){var t=this.constructor;return vE(lE(this,new t(e),0,1),t.precision)},iE.equals=iE.eq=function(e){return!this.cmp(e)},iE.exponent=function(){return fE(this)},iE.greaterThan=iE.gt=function(e){return this.cmp(e)>0},iE.greaterThanOrEqualTo=iE.gte=function(e){return this.cmp(e)>=0},iE.isInteger=iE.isint=function(){return this.e>this.d.length-2},iE.isNegative=iE.isneg=function(){return this.s<0},iE.isPositive=iE.ispos=function(){return this.s>0},iE.isZero=function(){return 0===this.s},iE.lessThan=iE.lt=function(e){return this.cmp(e)<0},iE.lessThanOrEqualTo=iE.lte=function(e){return this.cmp(e)<1},iE.logarithm=iE.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Uk))throw Error(Gk+"NaN");if(n.s<1)throw Error(Gk+(n.s?"NaN":"-Infinity"));return n.eq(Uk)?new r(0):(qk=!1,t=lE(hE(n,i),hE(e,i),i),qk=!0,vE(t,o))},iE.minus=iE.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yE(t,e):aE(t,(e.s=-e.s,e))},iE.modulo=iE.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(Gk+"NaN");return n.s?(qk=!1,t=lE(n,e,0,1).times(e),qk=!0,n.minus(t)):vE(new r(n),o)},iE.naturalExponential=iE.exp=function(){return uE(this)},iE.naturalLogarithm=iE.ln=function(){return hE(this)},iE.negated=iE.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},iE.plus=iE.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aE(t,e):yE(t,(e.s=-e.s,e))},iE.precision=iE.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Yk+e);if(t=fE(o)+1,n=(r=o.d.length-1)*nE+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},iE.squareRoot=iE.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Gk+"NaN")}for(e=fE(s),qk=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=cE(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Jk((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(lE(s,i,a+2)).times(.5),cE(i.d).slice(0,a)===(t=cE(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(vE(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return qk=!0,vE(r,n)},iE.times=iE.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%tE|0,t=s/tE|0;i[o]=(i[o]+t)%tE|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qk?vE(e,f.precision):e},iE.toDecimalPlaces=iE.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(sE(e,0,Zk),void 0===t?t=r.rounding:sE(t,0,8),vE(n,e+fE(n)+1,t))},iE.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=mE(r,!0):(sE(e,0,Zk),void 0===t?t=o.rounding:sE(t,0,8),n=mE(r=vE(new o(r),e+1,t),!0,e+1)),n},iE.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?mE(o):(sE(e,0,Zk),void 0===t?t=i.rounding:sE(t,0,8),n=mE((r=vE(new i(o),e+fE(o)+1,t)).abs(),!1,e+fE(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},iE.toInteger=iE.toint=function(){var e=this,t=e.constructor;return vE(new t(e),fE(e)+1,t.rounding)},iE.toNumber=function(){return+this},iE.toPower=iE.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Uk);if(!(s=new c(s)).s){if(e.s<1)throw Error(Gk+"Infinity");return s}if(s.eq(Uk))return s;if(r=c.precision,e.eq(Uk))return vE(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=rE){for(o=new c(Uk),t=Math.ceil(r/nE+4),qk=!1;n%2&&bE((o=o.times(s)).d,t),0!==(n=Jk(n/2));)bE((s=s.times(s)).d,t);return qk=!0,e.s<0?new c(Uk).div(o):vE(o,r)}}else if(i<0)throw Error(Gk+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,qk=!1,o=e.times(hE(s,r+12)),qk=!0,(o=uE(o)).s=i,o},iE.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=mE(o,(n=fE(o))<=i.toExpNeg||n>=i.toExpPos):(sE(e,1,Zk),void 0===t?t=i.rounding:sE(t,0,8),r=mE(o=vE(new i(o),e,t),e<=(n=fE(o))||n<=i.toExpNeg,e)),r},iE.toSignificantDigits=iE.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(sE(e,1,Zk),void 0===t?t=n.rounding:sE(t,0,8)),vE(new n(this),e,t)},iE.toString=iE.valueOf=iE.val=iE.toJSON=iE[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=fE(e),n=e.constructor;return mE(e,t<=n.toExpNeg||t>=n.toExpPos)};var lE=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%tE|0,r=n/tE|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*tE+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,S,_,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(Gk+"Division by zero");for(c=r.e-o.e,S=j.length,x=E.length,h=(p=new O(k)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=O.precision:a?i+(fE(r)-fE(o))+1:i)<0)return new O(0);if(m=m/nE+2|0,l=0,1==S)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*tE+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=tE/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),S=j.length,x=E.length),w=S,v=(g=E.slice(0,S)).length;v<S;)g[v++]=0;(_=j.slice()).unshift(0),C=j[0],j[1]>=tE/2&&++C;do{u=0,(s=t(j,g,S,v))<0?(y=g[0],S!=v&&(y=y*tE+(g[1]||0)),(u=y/C|0)>1?(u>=tE&&(u=tE-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,S<d?_:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,S,v=g.length))<1&&(u++,n(g,S<v?_:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,vE(p,a?i+fE(p)+1:i)}}();function uE(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(fE(e)>16)throw Error(Xk+fE(e));if(!e.s)return new l(Uk);for(null==t?(qk=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Qk(2,c))/Math.LN10*2+5|0,n=r=o=new l(Uk),l.precision=a;;){if(r=vE(r.times(e),a),n=n.times(++s),cE((i=o.plus(lE(r,n,a))).d).slice(0,a)===cE(o.d).slice(0,a)){for(;c--;)o=vE(o.times(o),a);return l.precision=u,null==t?(qk=!0,vE(o,u)):o}o=i}}function fE(e){for(var t=e.e*nE,n=e.d[0];n>=10;n/=10)t++;return t}function dE(e,t,n){if(t>e.LN10.sd())throw qk=!0,n&&(e.precision=n),Error(Gk+"LN10 precision limit exceeded");return vE(new e(e.LN10),t)}function pE(e){for(var t="";e--;)t+="0";return t}function hE(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(Gk+(d.s?"NaN":"-Infinity"));if(d.eq(Uk))return new h(0);if(null==t?(qk=!1,l=g):l=t,d.eq(10))return null==t&&(qk=!0),dE(h,l);if(l+=10,h.precision=l,r=(n=cE(p)).charAt(0),i=fE(d),!(Math.abs(i)<15e14))return c=dE(h,l+2,g).times(i+""),d=hE(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(qk=!0,vE(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=cE((d=d.times(e)).d)).charAt(0),f++;for(i=fE(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=lE(d.minus(Uk),d.plus(Uk),l),u=vE(d.times(d),l),o=3;;){if(a=vE(a.times(u),l),cE((c=s.plus(lE(a,new h(o),l))).d).slice(0,l)===cE(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(dE(h,l+2,g).times(i+""))),s=lE(s,new h(f),l),h.precision=g,null==t?(qk=!0,vE(s,g)):s;s=c,o+=2}}function gE(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=Jk(n/nE),e.d=[],r=(n+1)%nE,n<0&&(r+=nE),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=nE;r<o;)e.d.push(+t.slice(r,r+=nE));t=t.slice(r),r=nE-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),qk&&(e.e>oE||e.e<-oE))throw Error(Xk+n)}else e.s=0,e.e=0,e.d=[0];return e}function vE(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=nE,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/nE))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=nE)-nE+a}if(void 0!==n&&(s=l/(i=Qk(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?l/Qk(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=fE(e),f.length=1,t=t-i-1,f[0]=Qk(10,(nE-t%nE)%nE),e.e=Jk(-t/nE)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Qk(10,nE-r),f[u]=o>0?(l/Qk(10,a-o)%Qk(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==tE&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=tE)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(qk&&(e.e>oE||e.e<-oE))throw Error(Xk+fE(e));return e}function yE(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),qk?vE(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/nE),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=tE-1;--c[i],c[o]+=tE}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,qk?vE(t,p):t):new d(0)}function mE(e,t,n){var r,o=fE(e),i=cE(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+pE(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+pE(-o-1)+i,n&&(r=n-a)>0&&(i+=pE(r))):o>=a?(i+=pE(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+pE(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=pE(r))),e.s<0?"-"+i:i}function bE(e,t){if(e.length>t)return e.length=t,!0}function wE(e){if(!e||"object"!=typeof e)throw Error(Gk+"Object expected");var t,n,r,o=["precision",1,Zk,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(Jk(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Yk+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Yk+n+": "+r);this[n]=new this(r)}return this}var xE=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Yk+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):gE(t,e.toString())}if("string"!=typeof e)throw Error(Yk+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!eE.test(e))throw Error(Yk+e);gE(t,e)}if(i.prototype=iE,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=wE,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Uk=new xE(1);var CE=xE;function SE(e){return function(e){if(Array.isArray(e))return _E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _E(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OE=function(e){return e},kE={"@@functional/placeholder":!0},EE=function(e){return e===kE},jE=function(e){return function t(){return 0===arguments.length||1===arguments.length&&EE(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},AE=function e(t,n){return 1===t?n:jE((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==kE})).length;return a>=t?n.apply(void 0,o):e(t-a,jE((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return EE(e)?t.shift():e}));return n.apply(void 0,SE(i).concat(t))})))}))},TE=function(e){return AE(e.length,e)},ME=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},PE=TE((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),DE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return OE;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},LE=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},IE=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var RE=TE((function(e,t,n){var r=+e;return r+n*(+t-r)})),NE=TE((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),BE=TE((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),FE={rangeStep:function(e,t,n){for(var r=new CE(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new CE(e).abs().log(10).toNumber())+1},interpolateNumber:RE,uninterpolateNumber:NE,uninterpolateTruncation:BE};function zE(e){return function(e){if(Array.isArray(e))return KE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||VE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||VE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VE(e,t){if(e){if("string"==typeof e)return KE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KE(e,t):void 0}}function KE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $E(e){var t=HE(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function UE(e,t,n){if(e.lte(0))return new CE(0);var r=FE.getDigitCount(e.toNumber()),o=new CE(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new CE(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new CE(Math.ceil(s))}function WE(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new CE(0),tickMin:new CE(0),tickMax:new CE(0)};var i,a=UE(new CE(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new CE(0):(i=new CE(e).add(t).div(2)).sub(new CE(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new CE(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?WE(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new CE(s).mul(a)),tickMax:i.add(new CE(c).mul(a))})}var ZE=IE((function(e){var t=HE(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=HE($E([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(zE(ME(0,o-1).map((function(){return 1/0})))):[].concat(zE(ME(0,o-1).map((function(){return-1/0}))),[l]);return n>r?LE(u):u}if(c===l)return function(e,t,n){var r=1,o=new CE(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new CE(10).pow(FE.getDigitCount(e)-1),o=new CE(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new CE(Math.floor(e)))}else 0===e?o=new CE(Math.floor((t-1)/2)):n||(o=new CE(Math.floor(e)));var a=Math.floor((t-1)/2),s=DE(PE((function(e){return o.add(new CE(e-a).mul(r)).toNumber()})),ME);return s(0,t)}(c,o,i);var f=WE(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=FE.rangeStep(p,h.add(new CE(.1).mul(d)),d);return n>r?LE(g):g})),qE=IE((function(e,t){var n=HE(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=HE($E([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var l=Math.max(t,2),u=UE(new CE(c).sub(s).div(l-1),i,0),f=[].concat(zE(FE.rangeStep(new CE(s),new CE(c).sub(new CE(.99).mul(u)),u)),[c]);return r>o?LE(f):f})),GE="production"===process.env.NODE_ENV,YE="Invariant failed";function XE(e,t){if(!e){if(GE)throw new Error(YE);var n="function"==typeof t?t():t,r=n?"".concat(YE,": ").concat(n):YE;throw new Error(r)}}var JE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QE.apply(this,arguments)}function ej(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rj(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=nj(e,JE),f=yd(u,!1);"x"===e.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?XE(!1,'ErrorBar requires Axis type property to be "number".'):XE(!1));var d=a.map((function(e){var a=s(e,i),u=a.x,d=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,v,y=[];if(Array.isArray(h)){var m=ej(h,2);g=m[0],v=m[1]}else g=v=h;if("vertical"===r){var b=c.scale,w=d+n,x=w+o,C=w-o,S=b(p-g),_=b(p+v);y.push({x1:_,y1:x,x2:_,y2:C}),y.push({x1:S,y1:w,x2:_,y2:w}),y.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===r){var O=l.scale,k=u+n,E=k-o,j=k+o,A=O(p-g),T=O(p+v);y.push({x1:E,y1:T,x2:j,y2:T}),y.push({x1:k,y1:A,x2:k,y2:T}),y.push({x1:E,y1:A,x2:j,y2:A})}return t.createElement(jd,QE({className:"recharts-errorBar",key:"bar-".concat(y.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),y.map((function(e){return t.createElement("line",QE({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(jd,{className:"recharts-errorBars"},d)}function oj(e){return oj="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},oj(e)}function ij(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 aj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ij(Object(n),!0).forEach((function(t){sj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ij(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=oj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},rj.displayName="ErrorBar";var cj=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=hd(n,Bm);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:yj(t),value:o||r,payload:t.props}})),aj(aj(aj({},a.props),Bm.getWithHeight(a,o)),{},{payload:t,item:a})):null};function lj(e){return lj="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},lj(e)}function uj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(n),!0).forEach((function(t){dj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pj(e){return function(e){if(Array.isArray(e))return hj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hj(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gj(e,t,n){return Sf(e)||Sf(t)?n:Kf(t)?Cf(e,t,n):_l(t)?t(e):n}function vj(e,t,n,r){var o=Kk(e,(function(e){return gj(e,t)}));if("number"===n){var i=o.filter((function(e){return Vf(e)||parseFloat(e)}));return i.length?[Rk(i),Tk(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Sf(e)})):o).map((function(e){return Kf(e)||e instanceof Date?e:""}))}var yj=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},mj=function(e,t,n,r,o){var i=pd(t.props.children,rj).filter((function(e){return function(e,t,n){return!!Sf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=gj(t,n);if(Sf(r))return e;var o=Array.isArray(r)?[Rk(r),Tk(r)]:[r,r],i=a.reduce((function(e,n){var r=gj(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},bj=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&mj(e,t,i,r)||vj(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},wj=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},xj=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},Cj=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*zf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Ff(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},Sj=new WeakMap,_j=function(e,t){if("function"!=typeof t)return e;Sj.has(e)||Sj.set(e,new WeakMap);var n=Sj.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},Oj=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:pC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:NS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:gC(),realScaleType:"point"}:"category"===o?{scale:pC(),realScaleType:"band"}:{scale:NS(),realScaleType:"linear"};if(jf(r)){var s="scale".concat(ip(r));return{scale:(Ck[s]||gC)(),realScaleType:Ck[s]?s:"point"}}return _l(r)?{scale:r}:{scale:gC(),realScaleType:"point"}},kj=1e-4,Ej=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-kj,i=Math.max(r[0],r[1])+kj,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},jj={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Ff(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}ah(e,t)}},none:ah,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}ah(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,ah(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Ff(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},Aj=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=jj[n],i=function(){var e=ap([]),t=sh,n=ah,r=ch;function o(o){var i,a,s=Array.from(e.apply(this,arguments),lh),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=bp(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ap(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ap(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?sh:"function"==typeof e?e:ap(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?ah:e,o):n},o}().keys(r).value((function(e,t){return+gj(e,t,0)})).order(sh).offset(o);return i(e)},Tj=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var l=ZE(c,o,a);return e.domain([Rk(l),Tk(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:qE(u,o,a)}}return null};function Mj(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Sf(o[t.dataKey])){var s=Gf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=gj(o,Sf(a)?t.dataKey:a);return Sf(c)?null:t.scale(c)}var Pj=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=gj(i,t.dataKey,t.domain[a]);return Sf(s)?null:t.scale(s)-o/2+r},Dj=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[Rk(t.concat([e[0]]).filter(Vf)),Tk(t.concat([e[1]]).filter(Vf))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Lj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ij=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rj=function(e,t,n){if(_l(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Vf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Lj.test(e[0])){var o=+Lj.exec(e[0])[1];r[0]=t[0]-o}else _l(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Vf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Ij.test(e[1])){var i=+Ij.exec(e[1])[1];r[1]=t[1]+i}else _l(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Nj=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Fb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},Bj=function(e,t,n){return e&&e.length?Wk(e,Cf(n,"type.defaultProps.domain"))?t:e:t},Fj=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return fj(fj({},yd(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:yj(e),value:gj(t,r),type:s,payload:t,chartType:c,hide:l})};function zj(e){return zj="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},zj(e)}function Hj(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 Vj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hj(Object(n),!0).forEach((function(t){Kj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wj=Math.PI/180,Zj=function(e){return 180*e/Math.PI},qj=function(e,t,n,r){return{x:e+Math.cos(-Wj*r)*n,y:t+Math.sin(-Wj*r)*n}},Gj=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Yj=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:Zj(c),angleInRadian:c}},Xj=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},Jj=function(e,t){var n=e.x,r=e.y,o=Yj({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?Vj(Vj({},t),{},{radius:i,angle:Xj(p,t)}):null},Qj=function(e){return t.isValidElement(e)||_l(e)||"boolean"==typeof e?"":e.className};function eA(e){return eA="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},eA(e)}var tA=["offset"];function nA(e){return function(e){if(Array.isArray(e))return rA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iA(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 aA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(Object(n),!0).forEach((function(t){sA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=eA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(this,arguments)}var lA=function(e){var t=e.value,n=e.formatter,r=Sf(e.children)?t:e.children;return _l(n)?n(r):r},uA=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=qj(f,d,m,o),C=qj(f,d,m,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),_=Sf(e.id)?Uf("recharts-radial-line-"):e.id;return t.createElement("text",cA({},r,{dominantBaseline:"central",className:Uc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:_,d:S})),t.createElement("textPath",{xlinkHref:"#".concat(_)},n))},fA=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=qj(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=qj(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},dA=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return aA(aA({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return aA(aA({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return aA(aA({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return aA(aA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?aA({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?aA({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?aA({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?aA({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?aA({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?aA({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?aA({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?aA({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):bl(o)&&(Vf(o.x)||Hf(o.x))&&(Vf(o.y)||Hf(o.y))?aA({x:a+Wf(o.x,c),y:s+Wf(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):aA({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},pA=function(e){return"cx"in e&&Vf(e.cx)};function hA(e){var n,r=e.offset,o=aA({offset:void 0===r?5:r},oA(e,tA)),i=o.viewBox,a=o.position,s=o.value,c=o.children,l=o.content,u=o.className,f=void 0===u?"":u,d=o.textBreakAll;if(!i||Sf(s)&&Sf(c)&&!t.isValidElement(l)&&!_l(l))return null;if(t.isValidElement(l))return t.cloneElement(l,o);if(_l(l)){if(n=t.createElement(l,o),t.isValidElement(n))return n}else n=lA(o);var p=pA(i),h=yd(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return uA(o,n,h);var g=p?fA(o):dA(o);return t.createElement(zx,cA({className:Uc("recharts-label",f)},h,g,{breakAll:d}),n)}hA.displayName="Label";var gA=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Vf(h)&&Vf(g)){if(Vf(u)&&Vf(f))return{x:u,y:f,width:h,height:g};if(Vf(d)&&Vf(p))return{x:d,y:p,width:h,height:g}}return Vf(u)&&Vf(f)?{x:u,y:f,width:0,height:0}:Vf(t)&&Vf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};hA.parseViewBox=gA,hA.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=gA(e),a=pd(o,hA).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(hA,{key:"label-implicit",viewBox:n}):Kf(e)?t.createElement(hA,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===hA?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(hA,{key:"label-implicit",content:e,viewBox:n}):_l(e)?t.createElement(hA,{key:"label-implicit",content:e,viewBox:n}):bl(e)?t.createElement(hA,cA({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(nA(a))};var vA=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},yA=ct(vA);function mA(e){return mA="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},mA(e)}var bA=["valueAccessor"],wA=["data","dataKey","clockWise","id","textBreakAll"];function xA(e){return function(e){if(Array.isArray(e))return CA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return CA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SA(){return SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SA.apply(this,arguments)}function _A(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 OA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_A(Object(n),!0).forEach((function(t){kA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=mA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jA=function(e){return Array.isArray(e.value)?yA(e.value):e.value};function AA(e){var n=e.valueAccessor,r=void 0===n?jA:n,o=EA(e,bA),i=o.data,a=o.dataKey,s=o.clockWise,c=o.id,l=o.textBreakAll,u=EA(o,wA);return i&&i.length?t.createElement(jd,{className:"recharts-label-list"},i.map((function(e,n){var o=Sf(a)?r(e,n):gj(e&&e.payload,a),i=Sf(c)?{}:{id:"".concat(c,"-").concat(n)};return t.createElement(hA,SA({},yd(e,!0),u,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:hA.parseViewBox(Sf(s)?e:OA(OA({},e),{},{clockWise:s})),key:"label-".concat(n),index:n}))}))):null}function TA(e){return TA="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},TA(e)}function MA(){return MA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MA.apply(this,arguments)}function PA(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 DA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(n),!0).forEach((function(t){LA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=TA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=TA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AA.displayName="LabelList",AA.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=pd(e.children,AA).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(AA,{key:"labelList-implicit",data:n}):t.isValidElement(e)||_l(e)?t.createElement(AA,{key:"labelList-implicit",data:n,content:e}):bl(e)?t.createElement(AA,SA({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(xA(o)):o};var IA=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(a?1:-1)+r,u=Math.asin(s/l)/Wj,f=c?o:o+i*u,d=c?o-i*u:o;return{center:qj(t,n,l,f),circleTangency:qj(t,n,r,f),lineTangency:qj(t,n,l*Math.cos(u*Wj),d),theta:u}},RA=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=qj(t,n,o,i),l=qj(t,n,o,s),u="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=qj(t,n,r,i),d=qj(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},NA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},BA=function(e){var n=DA(DA({},NA),e),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,d=n.className;if(a<i||u===f)return null;var p,h=Uc("recharts-sector",d),g=a-i,v=Wf(s,g,0,!0);return p=v>0&&Math.abs(u-f)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=zf(l-c),f=IA({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=IA({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):RA({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=IA({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,S=x.lineTangency,_=x.theta,O=IA({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-l):Math.abs(c-l)-_-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,g/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:f}):RA({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),t.createElement("path",MA({},yd(n,!0),{className:h,d:p,role:"img"}))};function FA(e){return FA="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},FA(e)}function zA(){return zA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zA.apply(this,arguments)}function HA(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 VA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HA(Object(n),!0).forEach((function(t){KA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=FA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $A={curveBasisClosed:function(e){return new Zp(e)},curveBasisOpen:function(e){return new qp(e)},curveBasis:function(e){return new Wp(e)},curveBumpX:function(e){return new kp(e,!0)},curveBumpY:function(e){return new kp(e,!1)},curveLinearClosed:function(e){return new Gp(e)},curveLinear:xp,curveMonotoneX:function(e){return new eh(e)},curveMonotoneY:function(e){return new th(e)},curveNatural:function(e){return new rh(e)},curveStep:function(e){return new ih(e,.5)},curveStepAfter:function(e){return new ih(e,1)},curveStepBefore:function(e){return new ih(e,0)}},UA=function(e){return e.x===+e.x&&e.y===+e.y},WA=function(e){return e.x},ZA=function(e){return e.y},qA=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,s=e.layout,c=e.connectNulls,l=void 0!==c&&c,u=function(e,t){if(_l(e))return e;var n="curve".concat(ip(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?$A[n]||xp:$A["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),f=l?i.filter((function(e){return UA(e)})):i;if(Array.isArray(a)){var d=l?a.filter((function(e){return UA(e)})):a,p=f.map((function(e,t){return VA(VA({},e),{},{base:d[t]})}));return(t="vertical"===s?Op().y(ZA).x1(WA).x0((function(e){return e.base.x})):Op().x(WA).y1(ZA).y0((function(e){return e.base.y}))).defined(UA).curve(u),t(p)}return(t="vertical"===s&&Vf(a)?Op().y(ZA).x1(WA).x0(a):Vf(a)?Op().x(WA).y1(ZA).y0(a):_p().x(WA).y(ZA)).defined(UA).curve(u),t(f)},GA=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?qA(e):o;return t.createElement("path",zA({},yd(e,!1),nd(e),{className:Uc("recharts-curve",n),d:a,ref:i}))},YA={exports:{}},XA=Object.getOwnPropertySymbols,JA=Object.prototype.hasOwnProperty,QA=Object.prototype.propertyIsEnumerable;var eT,tT,nT,rT,oT,iT,aT,sT,cT,lT,uT=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))JA.call(n,a)&&(o[a]=n[a]);if(XA){r=XA(n);for(var s=0;s<r.length;s++)QA.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function fT(){if(tT)return eT;tT=1;return eT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function dT(){return rT?nT:(rT=1,nT=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var pT=Df;YA.exports=function(){if(sT)return aT;sT=1;var e=Df,t=uT,n=fT(),r=dT(),o=function(){if(iT)return oT;iT=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=fT(),n={},r=dT();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},oT=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),aT=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return m(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var f=e(c,u,i,a,s+"."+u,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var s=t[r],c=b(s);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return y(o,i,a,l,w(u));var f=u(s,l,o,i,a+"."+l,n);if(f)return f}return null}))},exact:function(e){return g((function(o,i,a,s,c){var l=o[i],u=b(l);if("object"!==u)return new h("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,s,c,d,w(p));if(!p)return new h("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(l,d,a,s,c+"."+d,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,d,p){if(l=l||f,d=d||s,p!==n){if(c){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+s;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},aT}()(pT.isElement,!0)}else YA.exports=function(){if(lT)return cT;lT=1;var e=fT();function t(){}function n(){}return n.resetWarningCache=t,cT=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var hT=ct(YA.exports),gT=Object.getOwnPropertyNames,vT=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty;function mT(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function bT(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function wT(e){return gT(e).concat(vT(e))}var xT=Object.hasOwn||function(e,t){return yT.call(e,t)};function CT(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var ST="_owner",_T=Object.getOwnPropertyDescriptor,OT=Object.keys;function kT(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function ET(e,t){return CT(e.getTime(),t.getTime())}function jT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),s=0;(r=a.next())&&!r.done;){for(var c=t.entries(),l=!1,u=0;(o=c.next())&&!o.done;){var f=r.value,d=f[0],p=f[1],h=o.value,g=h[0],v=h[1];l||i[u]||!(l=n.equals(d,g,s,u,e,t,n)&&n.equals(p,v,d,g,e,t,n))||(i[u]=!0),u++}if(!l)return!1;s++}return!0}function AT(e,t,n){var r,o=OT(e),i=o.length;if(OT(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===ST&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!xT(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function TT(e,t,n){var r,o,i,a=wT(e),s=a.length;if(wT(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===ST&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!xT(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=_T(e,r),i=_T(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function MT(e,t){return CT(e.valueOf(),t.valueOf())}function PT(e,t){return e.source===t.source&&e.flags===t.flags}function DT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var s=t.values(),c=!1,l=0;(o=s.next())&&!o.done;)c||i[l]||!(c=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[l]=!0),l++;if(!c)return!1}return!0}function LT(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var IT="[object Arguments]",RT="[object Boolean]",NT="[object Date]",BT="[object Map]",FT="[object Number]",zT="[object Object]",HT="[object RegExp]",VT="[object Set]",KT="[object String]",$T=Array.isArray,UT="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,WT=Object.assign,ZT=Object.prototype.toString.call.bind(Object.prototype.toString);var qT=GT();function GT(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,s=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?TT:kT,areDatesEqual:ET,areMapsEqual:r?mT(jT,TT):jT,areObjectsEqual:r?TT:AT,arePrimitiveWrappersEqual:MT,areRegExpsEqual:PT,areSetsEqual:r?mT(DT,TT):DT,areTypedArraysEqual:r?TT:LT};if(n&&(o=WT({},o,n(o))),t){var i=bT(o.areArraysEqual),a=bT(o.areMapsEqual),s=bT(o.areObjectsEqual),c=bT(o.areSetsEqual);o=WT({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(e,l,u){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var f=e.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(e,l,u);if($T(e))return t(e,l,u);if(null!=UT&&UT(e))return c(e,l,u);if(f===Date)return n(e,l,u);if(f===RegExp)return a(e,l,u);if(f===Map)return r(e,l,u);if(f===Set)return s(e,l,u);var d=ZT(e);return d===NT?n(e,l,u):d===HT?a(e,l,u):d===BT?r(e,l,u):d===VT?s(e,l,u):d===zT?"function"!=typeof e.then&&"function"!=typeof l.then&&o(e,l,u):d===IT?o(e,l,u):(d===RT||d===FT||d===KT)&&i(e,l,u)}}(s),l=r?r(c):function(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}(c);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),c=s.cache,l=void 0===c?t?new WeakMap:void 0:c,u=s.meta;return n(e,a,{cache:l,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:c,createState:o,equals:l,strict:a})}function YT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function XT(e){return XT="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},XT(e)}function JT(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return QT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eM(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=JT(r),i=o[0],a=o.slice(1);return"number"==typeof i?void YT(n.bind(null,a),i):(n(i),void YT(n.bind(null,a)))}"object"===XT(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function tM(e){return tM="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},tM(e)}function nM(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 rM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nM(Object(n),!0).forEach((function(t){oM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==tM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}GT({strict:!0}),GT({circular:!0}),GT({circular:!0,strict:!0}),GT({createInternalComparator:function(){return CT}}),GT({strict:!0,createInternalComparator:function(){return CT}}),GT({circular:!0,createInternalComparator:function(){return CT}}),GT({circular:!0,createInternalComparator:function(){return CT},strict:!0});var iM=function(e){return e},aM=function(e,t){return Object.keys(t).reduce((function(n,r){return rM(rM({},n),{},oM({},r,e(r,t[r])))}),{})},sM=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},cM="production"!==process.env.NODE_ENV,lM=function(e,t,n,r,o,i,a,s){if(cM&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;console.warn(t.replace(/%s/g,(function(){return c[l++]})))}};function uM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||dM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fM(e){return function(e){if(Array.isArray(e))return pM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dM(e,t){if(e){if("string"==typeof e)return pM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pM(e,t):void 0}}function pM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hM=1e-4,gM=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},vM=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},yM=function(e,t){return function(n){var r=gM(e,t);return vM(r,n)}},mM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var c=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=uM(c,4);r=l[0],o=l[1],i=l[2],a=l[3]}else lM(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}lM([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,f,d=yM(r,i),p=yM(o,a),h=(u=r,f=i,function(e){var t=gM(u,f),n=[].concat(fM(t.map((function(e,t){return e*t})).slice(1)),[0]);return vM(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=d(r)-n,a=h(r);if(Math.abs(i-n)<hM||a<hM)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},bM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mM(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<hM&&Math.abs(i)<hM?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return mM(r);lM(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:(lM(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function wM(e){return wM="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},wM(e)}function xM(e){return function(e){if(Array.isArray(e))return EM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CM(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 SM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CM(Object(n),!0).forEach((function(t){_M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||kM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kM(e,t){if(e){if("string"==typeof e)return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EM(e,t):void 0}}function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jM=function(e,t,n){return e+(t-e)*n},AM=function(e){return e.from!==e.to},TM=function e(t,n,r){var o=aM((function(e,n){if(AM(n)){var r=OM(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return SM(SM({},n),{},{from:o,velocity:i})}return n}),n);return r<1?aM((function(e,t){return AM(t)?SM(SM({},t),{},{velocity:jM(t.velocity,o[e].velocity,r),from:jM(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},MM=function(e,t,n,r,o){var i,a,s,c,l=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=l.reduce((function(n,r){return SM(SM({},n),{},_M({},r,[e[r],t[r]]))}),{}),f=l.reduce((function(n,r){return SM(SM({},n),{},_M({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=TM(n,f,i),o(SM(SM(SM({},e),t),aM((function(e,t){return t.from}),f))),s=r,Object.values(f).filter(AM).length&&(d=requestAnimationFrame(p))}:function(i){c||(c=i);var a=(i-c)/r,s=aM((function(e,t){return jM.apply(void 0,xM(t).concat([n(a)]))}),u);if(o(SM(SM(SM({},e),t),s)),a<1)d=requestAnimationFrame(p);else{var l=aM((function(e,t){return jM.apply(void 0,xM(t).concat([n(1)]))}),u);o(SM(SM(SM({},e),t),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}};function PM(e){return PM="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},PM(e)}var DM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function LM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function IM(e){return function(e){if(Array.isArray(e))return RM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return RM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NM(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 BM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NM(Object(n),!0).forEach((function(t){FM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FM(e,t,n){return(t=HM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HM(r.key),r)}}function HM(e){var t=function(e,t){if("object"!==PM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PM(t)?t:String(t)}function VM(e,t){return VM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VM(e,t)}function KM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WM(e);if(t){var o=WM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $M(this,n)}}function $M(e,t){if(t&&("object"===PM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UM(e)}function UM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(e){return WM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WM(e)}var ZM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VM(e,t)}(a,t.PureComponent);var n,r,o,i=KM(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,c=r.from,l=r.to,u=r.steps,f=r.children,d=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(UM(n)),n.changeStyle=n.changeStyle.bind(UM(n)),!o||d<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),$M(n);if(u&&u.length)n.state={style:u[0].style};else if(c){if("function"==typeof f)return n.state={style:c},$M(n);n.state={style:s?FM({},s,c):c}}else n.state={style:{}};return n}return n=a,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,s=t.from,c=this.state.style;if(r)if(n){if(!(qT(e.to,a)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=l||i?s:e.to;if(this.state&&c){var f={style:o?FM({},o,u):u};(o&&c[o]!==u||!o&&c!==u)&&this.setState(f)}this.runAnimation(BM(BM({},this.props),{},{from:u,begin:0}))}}else{var d={style:o?FM({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=MM(n,r,bM(i),o,this.changeStyle);this.manager.start([c,a,function(){t.stopJSAnimation=l()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,c=void 0===s?0:s;return this.manager.start([o].concat(IM(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,c=r.style,l=r.properties,u=r.onAnimationEnd,f=o>0?n[o-1]:r,d=l||Object.keys(c);if("function"==typeof s||"spring"===s)return[].concat(IM(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:s}),i]);var p=sM(d,i,s),h=BM(BM(BM({},f.style),c),{},{transition:p});return[].concat(IM(e),[h,i,u]).filter(iM)}),[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=eM());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?FM({},r,o):o,d=sM(Object.keys(f),n,i);u.start([a,t,BM(BM({},f),{},{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var o=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=LM(e,DM),a=t.Children.count(n),s=this.state.style;if("function"==typeof n)return n(s);if(!o||0===a||r<=0)return n;var c=function(e){var n=e.props,r=n.style,o=void 0===r?{}:r,a=n.className;return t.cloneElement(e,BM(BM({},i),{},{style:BM(BM({},o),s),className:a}))};return 1===a?c(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return c(e)})))}}],r&&zM(n.prototype,r),o&&zM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function qM(e){return qM="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},qM(e)}function GM(){return GM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GM.apply(this,arguments)}function YM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return XM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JM(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 QM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JM(Object(n),!0).forEach((function(t){eP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=qM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qM(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ZM.displayName="Animate",ZM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ZM.propTypes={from:hT.oneOfType([hT.object,hT.string]),to:hT.oneOfType([hT.object,hT.string]),attributeName:hT.string,duration:hT.number,begin:hT.number,easing:hT.oneOfType([hT.string,hT.func]),steps:hT.arrayOf(hT.shape({duration:hT.number.isRequired,style:hT.object.isRequired,easing:hT.oneOfType([hT.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),hT.func]),properties:hT.arrayOf("string"),onAnimationEnd:hT.func})),children:hT.oneOfType([hT.node,hT.func]),isActive:hT.bool,canBegin:hT.bool,onAnimationEnd:hT.func,shouldReAnimate:hT.bool,onAnimationStart:hT.func,onAnimationReStart:hT.func},hT.object,hT.object,hT.object,hT.element,hT.object,hT.object,hT.object,hT.oneOfType([hT.array,hT.element]),hT.any;var tP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},nP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},rP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},oP=function(e){var n=QM(QM({},rP),e),r=t.useRef(),o=YM(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.width,u=n.height,f=n.radius,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Uc("recharts-rectangle",d);return y?t.createElement(ZM,{canBegin:i>0,from:{width:l,height:u,x:s,y:c},to:{width:l,height:u,x:s,y:c},duration:h,animationEasing:p,isActive:y},(function(e){var o=e.width,a=e.height,s=e.x,c=e.y;return t.createElement(ZM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:v,easing:p},t.createElement("path",GM({},yd(n,!0),{className:m,d:tP(s,c,o,a,f),ref:r})))})):t.createElement("path",GM({},yd(n,!0),{className:m,d:tP(s,c,l,u,f)}))},iP=["points","className","baseLinePoints","connectNulls"];function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aP.apply(this,arguments)}function sP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uP=function(e){return e&&e.x===+e.x&&e.y===+e.y},fP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){uP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),uP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(cP(e),cP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},dP=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=sP(e,iP);if(!n||!n.length)return null;var s=Uc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=fP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(fP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",aP({},yd(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",aP({},yd(a,!0),{fill:"none",d:fP(n,i)})):null,c?t.createElement("path",aP({},yd(a,!0),{fill:"none",d:fP(o,i)})):null)}var u=fP(n,i);return t.createElement("path",aP({},yd(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function pP(){return pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pP.apply(this,arguments)}var hP=function(e){var n=e.cx,r=e.cy,o=e.r,i=Uc("recharts-dot",e.className);return n===+n&&r===+r&&o===+o?t.createElement("circle",pP({},yd(e,!1),nd(e),{className:i,cx:n,cy:r,r:o})):null};function gP(e){return gP="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},gP(e)}var vP=["x","y","top","left","width","height","className"];function yP(){return yP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yP.apply(this,arguments)}function mP(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 bP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=gP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gP(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xP=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},CP=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.top,s=void 0===a?0:a,c=e.left,l=void 0===c?0:c,u=e.width,f=void 0===u?0:u,d=e.height,p=void 0===d?0:d,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mP(Object(n),!0).forEach((function(t){bP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:i,top:s,left:l,width:f,height:p},wP(e,vP));return Vf(r)&&Vf(i)&&Vf(f)&&Vf(p)&&Vf(s)&&Vf(l)?t.createElement("path",yP({},yd(g,!0),{className:Uc("recharts-cross",h),d:xP(r,i,f,p,s,l)})):null},SP=_k,_P=Ok,OP=Qy;var kP=function(e,t){return e&&e.length?SP(e,OP(t),_P):void 0},EP=ct(kP),jP=_k,AP=Qy,TP=Mk;var MP=function(e,t){return e&&e.length?jP(e,AP(t),TP):void 0},PP=ct(MP),DP=["cx","cy","angle","ticks","axisLine"],LP=["ticks","tick","angle","tickFormatter","stroke"];function IP(e){return IP="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},IP(e)}function RP(){return RP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RP.apply(this,arguments)}function NP(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 BP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NP(Object(n),!0).forEach((function(t){UP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WP(r.key),r)}}function HP(e,t,n){return t=KP(t),function(e,t){if(t&&("object"===IP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,VP()?Reflect.construct(t,n||[],KP(e).constructor):t.apply(e,n))}function VP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VP=function(){return!!e})()}function KP(e){return KP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KP(e)}function $P(e,t){return $P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$P(e,t)}function UP(e,t,n){return(t=WP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WP(e){var t=function(e,t){if("object"!=IP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==IP(t)?t:String(t)}var ZP=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),HP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$P(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return qj(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=EP(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:PP(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=FP(e,DP),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=qj(n,r,c[0],o),u=qj(n,r,c[1],o),f=BP(BP(BP({},yd(s,!1)),{},{fill:"none"},yd(a,!1)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",RP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.angle,s=r.tickFormatter,c=r.stroke,l=FP(r,LP),u=this.getTickTextAnchor(),f=yd(l,!1),d=yd(i,!1),p=o.map((function(r,o){var l=e.getTickValueCoord(r),p=BP(BP(BP(BP({textAnchor:u,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:o},l),{},{payload:r});return t.createElement(jd,RP({className:Uc("recharts-polar-radius-axis-tick",Qj(i)),key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(jd,{className:Uc("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),o&&this.renderTicks(),hA.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,RP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],o&&zP(r.prototype,o),i&&zP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function qP(e){return qP="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},qP(e)}function GP(){return GP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GP.apply(this,arguments)}function YP(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 XP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YP(Object(n),!0).forEach((function(t){rD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oD(r.key),r)}}function QP(e,t,n){return t=tD(t),function(e,t){if(t&&("object"===qP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eD()?Reflect.construct(t,n||[],tD(e).constructor):t.apply(e,n))}function eD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eD=function(){return!!e})()}function tD(e){return tD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tD(e)}function nD(e,t){return nD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nD(e,t)}function rD(e,t,n){return(t=oD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oD(e){var t=function(e,t){if("object"!=qP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qP(t)?t:String(t)}UP(ZP,"displayName","PolarRadiusAxis"),UP(ZP,"axisType","radiusAxis"),UP(ZP,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var iD=Math.PI/180,aD=1e-5,sD=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),QP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nD(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=qj(n,r,o,e.coordinate),c=qj(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*iD);return n>aD?"outer"===t?"start":"end":n<-aD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=XP(XP({},yd(this.props,!1)),{},{fill:"none"},yd(i,!1));if("circle"===a)return t.createElement(hP,GP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return qj(n,r,o,e.coordinate)}));return t.createElement(dP,GP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.tickLine,s=r.tickFormatter,c=r.stroke,l=yd(this.props,!1),u=yd(i,!1),f=XP(XP({},l),{},{fill:"none"},yd(a,!1)),d=o.map((function(r,o){var d=e.getTickLineCoord(r),p=XP(XP(XP({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:c},u),{},{index:o,payload:r,x:d.x2,y:d.y2});return t.createElement(jd,GP({className:Uc("recharts-polar-angle-axis-tick",Qj(i)),key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),a&&t.createElement("line",GP({className:"recharts-polar-angle-axis-tick-line"},f,d)),i&&n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(jd,{className:Uc("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,GP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],o&&JP(r.prototype,o),i&&JP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();rD(sD,"displayName","PolarAngleAxis"),rD(sD,"axisType","angleAxis"),rD(sD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var cD=iv(Object.getPrototypeOf,Object),lD=cl,uD=cD,fD=ll,dD=Function.prototype,pD=Object.prototype,hD=dD.toString,gD=pD.hasOwnProperty,vD=hD.call(Object);var yD=ct((function(e){if(!fD(e)||"[object Object]"!=lD(e))return!1;var t=uD(e);if(null===t)return!0;var n=gD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&hD.call(n)==vD})),mD=cl,bD=ll;var wD=ct((function(e){return!0===e||!1===e||bD(e)&&"[object Boolean]"==mD(e)}));function xD(e){return xD="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},xD(e)}function CD(){return CD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CD.apply(this,arguments)}function SD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OD(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 kD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OD(Object(n),!0).forEach((function(t){ED(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ED(e,t,n){return t=function(e){var t=function(e,t){if("object"!=xD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jD,AD=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},TD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MD=function(e){var n=kD(kD({},TD),e),r=t.useRef(),o=SD(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.upperWidth,u=n.lowerWidth,f=n.height,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||f!==+f||0===l&&0===u||0===f)return null;var y=Uc("recharts-trapezoid",d);return v?t.createElement(ZM,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:s,y:c},to:{upperWidth:l,lowerWidth:u,height:f,x:s,y:c},duration:h,animationEasing:p,isActive:v},(function(e){var o=e.upperWidth,a=e.lowerWidth,s=e.height,c=e.x,l=e.y;return t.createElement(ZM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:p},t.createElement("path",CD({},yd(n,!0),{className:y,d:AD(c,l,o,a,s),ref:r})))})):t.createElement("g",null,t.createElement("path",CD({},yd(n,!0),{className:y,d:AD(s,c,l,u,f)})))},PD=["option","shapeType","propTransformer","activeClassName","isActive"];function DD(e){return DD="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},DD(e)}function LD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ID(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 RD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ID(Object(n),!0).forEach((function(t){ND(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ND(e,t,n){return t=function(e){var t=function(e,t){if("object"!=DD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BD(e,t){return RD(RD({},t),e)}function FD(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(oP,r);case"trapezoid":return t.createElement(MD,r);case"sector":return t.createElement(BA,r);case"symbols":if(function(e,t){return"symbols"===e}(n))return t.createElement(bh,r);break;default:return null}}function zD(e){var n,r=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?BD:i,s=e.activeClassName,c=void 0===s?"recharts-active-shape":s,l=e.isActive,u=LD(e,PD);if(t.isValidElement(r))n=t.cloneElement(r,RD(RD({},u),function(e){return t.isValidElement(e)?e.props:e}(r)));else if(_l(r))n=r(u);else if(yD(r)&&!wD(r)){var f=a(r,u);n=t.createElement(FD,{shapeType:o,elementProps:f})}else{var d=u;n=t.createElement(FD,{shapeType:o,elementProps:d})}return l?t.createElement(jd,{className:c},n):n}function HD(e,t){return null!=t&&"trapezoids"in e.props}function VD(e,t){return null!=t&&"sectors"in e.props}function KD(e,t){return null!=t&&"points"in e.props}function $D(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function UD(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function WD(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function ZD(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return HD(e,t)?n="trapezoids":VD(e,t)?n="sectors":KD(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return HD(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:VD(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:KD(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=Wk(i,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return HD(e,t)?n=$D:VD(e,t)?n=UD:KD(e,t)&&(n=WD),n}(n,t);return r(e,t)})),c=n.props[o].indexOf(s[s.length-1]);return a&&r===c}));return r.indexOf(a[a.length-1])}function qD(e){return qD="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},qD(e)}function GD(){return GD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GD.apply(this,arguments)}function YD(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 XD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YD(Object(n),!0).forEach((function(t){oL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iL(r.key),r)}}function QD(e,t,n){return t=tL(t),function(e,t){if(t&&("object"===qD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nL(e)}(e,eL()?Reflect.construct(t,n||[],tL(e).constructor):t.apply(e,n))}function eL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eL=function(){return!!e})()}function tL(e){return tL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tL(e)}function nL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rL(e,t){return rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rL(e,t)}function oL(e,t,n){return(t=iL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iL(e){var t=function(e,t){if("object"!=qD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qD(t)?t:String(t)}var aL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),oL(nL(t=QD(this,n,[e])),"pieRef",null),oL(nL(t),"sectorRefs",[]),oL(nL(t),"id",Uf("recharts-pie-")),oL(nL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),_l(e)&&e()})),oL(nL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),_l(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rL(e,t)}(n,t.PureComponent),r=n,o=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.label,i=r.labelLine,a=r.dataKey,s=r.valueKey,c=yd(this.props,!1),l=yd(o,!1),u=yd(i,!1),f=o&&o.offsetRadius||20,d=e.map((function(e,r){var d=(e.startAngle+e.endAngle)/2,p=qj(e.cx,e.cy,e.outerRadius+f,d),h=XD(XD(XD(XD({},c),e),{},{stroke:"none"},l),{},{index:r,textAnchor:n.getTextAnchor(p.x,e.cx)},p),g=XD(XD(XD(XD({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:r,points:[qj(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=a;return Sf(a)&&Sf(s)?v="value":Sf(a)&&(v=s),t.createElement(jd,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(r)},i&&n.renderLabelLineItem(i,g),n.renderLabelItem(o,h,gj(e,v)))}));return t.createElement(jd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map((function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var c=n.isActiveIndex(s),l=a&&n.hasActiveIndex()?a:null,u=c?o:l,f=XD(XD({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(jd,GD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},rd(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(zD,GD({option:u,isActive:c,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(ZM,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?Cf(e,"paddingAngle",0):0;if(n){var s=qf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=XD(XD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=qf(0,l-f)(o),p=XD(XD({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(jd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Wk(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Vf(s)||!Vf(c)||!Vf(l)||!Vf(u))return null;var p=Uc("recharts-pie",i);return t.createElement(jd,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),hA.renderCallByParent(this.props,null,!1),(!f||d)&&AA.renderCallByParent(this.props,o,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(_l(e))return e(n);var r=Uc("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return t.createElement(GA,GD({},n,{type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;if(_l(e)&&(o=e(n),t.isValidElement(o)))return o;var i=Uc("recharts-pie-label-text","boolean"==typeof e||_l(e)?"":e.className);return t.createElement(zx,GD({},n,{alignmentBaseline:"middle",className:i}),o)}}],o&&JD(r.prototype,o),i&&JD(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();jD=aL,oL(aL,"displayName","Pie"),oL(aL,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!pw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),oL(aL,"parseDeltaAngle",(function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)})),oL(aL,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=yd(e.props,!1),i=pd(r,rx);return n&&n.length?n.map((function(e,t){return XD(XD(XD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return XD(XD({},o),e.props)})):[]})),oL(aL,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Gj(o,i);return{cx:r+Wf(e.props.cx,o,o/2),cy:n+Wf(e.props.cy,i,i/2),innerRadius:Wf(e.props.innerRadius,a,0),outerRadius:Wf(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),oL(aL,"getComposedData",(function(e){var t=e.item,n=e.offset,r=jD.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=jD.parseCoordinateOfPie(t,n),g=jD.parseDeltaAngle(a,s),v=Math.abs(g),y=l;Sf(l)&&Sf(f)?(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):Sf(l)&&(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==gj(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=gj(t,y,0);return e+(Vf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=gj(e,y,0),o=gj(e,u,t),s=(Vf(r)?r:0)/C,l=(n=t?b.endAngle+zf(g)*c*(0!==r?1:0):a)+zf(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=qj(h.cx,h.cy,v,f);return b=XD(XD(XD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:gj(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:zf(g)*c})})));return XD(XD({},h),{},{sectors:m,data:r})}));var sL=Math.ceil,cL=Math.max;var lL=function(e,t,n,r){for(var o=-1,i=cL(sL((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},uL=Fw,fL=1/0;var dL=function(e){return e?(e=uL(e))===fL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},pL=lL,hL=Ib,gL=dL;var vL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&hL(t,n,r)&&(n=r=void 0),t=gL(t),void 0===n?(n=t,t=0):n=gL(n),r=void 0===r?t<n?1:-1:gL(r),pL(t,n,r,e)}}());function yL(e){return yL="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},yL(e)}function mL(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 bL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mL(Object(n),!0).forEach((function(t){wL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=yL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xL=["Webkit","Moz","O","ms"];function CL(e){return CL="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},CL(e)}function SL(){return SL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SL.apply(this,arguments)}function _L(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 OL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_L(Object(n),!0).forEach((function(t){PL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DL(r.key),r)}}function EL(e,t,n){return t=AL(t),function(e,t){if(t&&("object"===CL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TL(e)}(e,jL()?Reflect.construct(t,n||[],AL(e).constructor):t.apply(e,n))}function jL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jL=function(){return!!e})()}function AL(e){return AL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AL(e)}function TL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ML(e,t){return ML=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ML(e,t)}function PL(e,t,n){return(t=DL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DL(e){var t=function(e,t){if("object"!=CL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CL(t)?t:String(t)}var LL=function(e){return e.changedTouches&&!!e.changedTouches.length},IL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),PL(TL(t=EL(this,n,[e])),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),PL(TL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),PL(TL(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})})),t.detachDragEndListener()})),PL(TL(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),PL(TL(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),PL(TL(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),PL(TL(t),"handleSlideDragStart",(function(e){var n=LL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(TL(t),"startX"),endX:t.handleTravellerDragStart.bind(TL(t),"endX")},t.state={},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ML(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,c=Math.min(t,r),l=Math.max(t,r),u=n.getIndexInRange(o,c),f=n.getIndexInRange(o,l);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=gj(n[e],o,e);return _l(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=LL(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,c+l-u-a):g<0&&(g=Math.max(g,c-a)),h[r]=a+g;var v=this.getIndex(h),y=v.startIndex,m=v.endIndex;this.setState(PL(PL({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=p.length-1,("startX"===r&&(o>i?y%d==0:m%d==0)||o<i&&m===e||"endX"===r&&(o>i?m%d==0:y%d==0)||o>i&&m===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[t],c=o.indexOf(s);if(-1!==c){var l=c+e;if(!(-1===l||l>=o.length)){var u=o[l];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(PL({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,r){var o=this,i=this.props,a=i.y,s=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,f=i.data,d=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=OL(OL({},yd(this.props,!1)),{},{x:h,y:a,width:s,height:c}),v=u||"Min value: ".concat(f[d].name,", Max value: ").concat(f[p].name);return t.createElement(jd,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(l,g))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,l=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(jd,{className:"recharts-brush-texts"},t.createElement(zx,SL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(zx,SL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving,v=u.isTravellerFocused;if(!n||!n.length||!Vf(i)||!Vf(a)||!Vf(s)||!Vf(c)||s<=0||c<=0)return null;var y=Uc("recharts-brush",r),m=1===t.Children.count(o),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=xL.reduce((function(e,r){return bL(bL({},e),{},wL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(jd,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):_l(e)?e(r):n.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return OL({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=gC().domain(vL(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],o&&kL(r.prototype,o),i&&kL(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();PL(IL,"displayName","Brush"),PL(IL,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var RL=Xm;var NL=function(e,t){var n;return RL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},BL=Gh,FL=Qy,zL=NL,HL=Wc,VL=Ib;var KL=function(e,t,n){var r=HL(e)?BL:zL;return n&&VL(e,t,n)&&(t=void 0),r(e,FL(t))},$L=ct(KL),UL=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},WL=xb;var ZL=function(e,t,n){"__proto__"==t&&WL?WL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qL=ZL,GL=qm,YL=Qy;var XL=function(e,t){var n={};return t=YL(t),GL(e,(function(e,r,o){qL(n,r,t(e,r,o))})),n},JL=ct(XL);var QL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},eI=Xm;var tI=function(e,t){var n=!0;return eI(e,(function(e,r,o){return n=!!t(e,r,o)})),n},nI=QL,rI=tI,oI=Qy,iI=Wc,aI=Ib;var sI=function(e,t,n){var r=iI(e)?nI:rI;return n&&aI(e,t,n)&&(t=void 0),r(e,oI(t))},cI=ct(sI),lI=["x","y"];function uI(e){return uI="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},uI(e)}function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fI.apply(this,arguments)}function dI(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 pI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dI(Object(n),!0).forEach((function(t){hI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vI(e,t){var n=e.x,r=e.y,o=gI(e,lI),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||o.height),u=parseInt(l,10),f="".concat(t.width||o.width),d=parseInt(f,10);return pI(pI(pI(pI(pI({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function yI(e){return t.createElement(zD,fI({shapeType:"rectangle",propTransformer:vI,activeClassName:"recharts-active-bar"},e))}var mI,bI=["value","background"];function wI(e){return wI="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},wI(e)}function xI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CI(){return CI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CI.apply(this,arguments)}function SI(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 _I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SI(Object(n),!0).forEach((function(t){MI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PI(r.key),r)}}function kI(e,t,n){return t=jI(t),function(e,t){if(t&&("object"===wI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return AI(e)}(e,EI()?Reflect.construct(t,n||[],jI(e).constructor):t.apply(e,n))}function EI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EI=function(){return!!e})()}function jI(e){return jI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jI(e)}function AI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TI(e,t){return TI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TI(e,t)}function MI(e,t,n){return(t=PI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PI(e){var t=function(e,t){if("object"!=wI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wI(t)?t:String(t)}var DI=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return MI(AI(e=kI(this,n,[].concat(r))),"state",{isAnimationFinished:!1}),MI(AI(e),"id",Uf("recharts-bar-")),MI(AI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),MI(AI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TI(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,s=r.activeBar,c=yd(this.props,!1);return e&&e.map((function(e,r){var l=r===a,u=l?s:o,f=_I(_I(_I({},c),e),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(jd,CI({className:"recharts-bar-rectangle"},rd(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(yI,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,l=n.animationId,u=this.state.prevData;return t.createElement(ZM,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=qf(n.x,e.x),a=qf(n.y,e.y),s=qf(n.width,e.width),c=qf(n.height,e.height);return _I(_I({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=qf(0,e.height)(i);return _I(_I({},e),{},{y:e.y+e.height-l,height:l})}var f=qf(0,e.width)(i);return _I(_I({},e),{},{width:f})}));return t.createElement(jd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Wk(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,o=n.dataKey,i=n.activeIndex,a=yd(this.props.background,!1);return r.map((function(n,r){n.value;var s=n.background,c=xI(n,bI);if(!s)return null;var l=_I(_I(_I(_I(_I({},c),{},{fill:"#eee"},s),a),rd(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.createElement(yI,CI({option:e.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=pd(r.children,rj);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:gj(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,f,c.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Uc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=Sf(p)?this.id:p;return t.createElement(jd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(jd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&AA.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],o&&OI(r.prototype,o),i&&OI(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function LI(e){return LI="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},LI(e)}function II(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FI(r.key),r)}}function RI(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 NI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RI(Object(n),!0).forEach((function(t){BI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BI(e,t,n){return(t=FI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FI(e){var t=function(e,t){if("object"!=LI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LI(t)?t:String(t)}mI=DI,MI(DI,"displayName","Bar"),MI(DI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!pw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),MI(DI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=pd(y,rx),S=f.map((function(e,t){var r,f,d,g,y,b;l?r=function(e,t){if(!t||2!==t.length||!Vf(t[0])||!Vf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Vf(e[0])||e[0]<n)&&(o[0]=n),(!Vf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=gj(e,v),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?XE(!1,"minPointSize callback function received a value with type of ".concat(uI(n),". Currently only numbers are supported.")):XE(!1)),t)}}(m,mI.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var _,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],E=O[1];f=Pj({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=E?E:k)&&void 0!==_?_:void 0,g=p.size;var j=k-E;if(y=Number.isNaN(j)?0:j,b={x:f,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)){var A=zf(y||S)*(Math.abs(S)-Math.abs(y));d-=A,y+=A}}else{var T=[i.scale(r[0]),i.scale(r[1])],M=T[0],P=T[1];if(f=M,d=Pj({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=P-M,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=zf(g||S)*(Math.abs(S)-Math.abs(g))}return _I(_I(_I({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[Fj(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return _I({data:S,layout:h},d)}));var zI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!hd(c,DI);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=y[1]-y[0],_=1/0,O=g.categoricalDomain.sort();if(O.forEach((function(e,t){t>0&&(_=Math.min((e||0)-(O[t-1]||0),_))})),Number.isFinite(_)){var k=_/S,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Wf(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}}l="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(l=[l[1],l[0]]);var T=Oj(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),Ej(M);var D=Tj(M,NI(NI({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=NI(NI(NI({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=Nj(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,NI(NI({},i),{},BI({},a,L))}),{})},HI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},VI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&II(t.prototype,n),r&&II(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();BI(VI,"EPS",1e-4);var KI=function(e){var t=Object.keys(e).reduce((function(t,n){return NI(NI({},t),{},BI({},n,VI.create(e[n])))}),{});return NI(NI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return JL(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return cI(e,(function(e,n){return t[n].isInRange(e)}))}})};var $I=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},UI=Qy,WI=pv,ZI=yv;var qI=function(e){return function(t,n,r){var o=Object(t);if(!WI(t)){var i=UI(n);t=ZI(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},GI=dL;var YI=em,XI=Qy,JI=function(e){var t=GI(e),n=t%1;return t==t?n?t-n:t:0},QI=Math.max;var eR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:JI(n);return o<0&&(o=QI(r+o,0)),YI(e,XI(t),o)},tR=ct(qI(eR)),nR=Zu((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function rR(e){return rR="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},rR(e)}var oR=t.createContext(void 0),iR=t.createContext(void 0),aR=t.createContext(void 0),sR=t.createContext({}),cR=t.createContext(void 0),lR=t.createContext(0),uR=t.createContext(0),fR=function(e){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=e.clipPathId,s=e.children,c=e.width,l=e.height,u=nR(i);return t.createElement(oR.Provider,{value:r},t.createElement(iR.Provider,{value:o},t.createElement(sR.Provider,{value:i},t.createElement(aR.Provider,{value:u},t.createElement(cR.Provider,{value:a},t.createElement(lR.Provider,{value:l},t.createElement(uR.Provider,{value:c},s)))))))};function dR(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var pR=function(e){var n=t.useContext(oR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(rR(e),"]. ").concat(dR(n))):XE(!1)),r},hR=function(e){var n=t.useContext(iR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(rR(e),"]. ").concat(dR(n))):XE(!1)),r},gR=function(){return t.useContext(uR)},vR=function(){return t.useContext(lR)};function yR(e){return yR="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},yR(e)}function mR(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 bR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mR(Object(n),!0).forEach((function(t){wR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=yR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SR(){return SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SR.apply(this,arguments)}function _R(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,c=e.className,l=e.alwaysShow,u=t.useContext(cR),f=pR(i),d=hR(a),p=t.useContext(aR);if(!u||!p)return null;Td(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,a,s,c){var l=o.x,u=o.y,f=o.width,d=o.height;if(n){var p=c.y,h=e.y.apply(p,{position:i});if(UL(c,"discard")&&!e.y.isInRange(h))return null;var g=[{x:l+f,y:h},{x:l,y:h}];return"left"===s?g.reverse():g}if(t){var v=c.x,y=e.x.apply(v,{position:i});if(UL(c,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:u+d},{x:y,y:u}];return"top"===a?m.reverse():m}if(r){var b=c.segment.map((function(t){return e.apply(t,{position:i})}));return UL(c,"discard")&&$L(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(KI({x:f.scale,y:d.scale}),Kf(n),Kf(r),o&&2===o.length,p,e.position,f.orientation,d.orientation,e);if(!h)return null;var g=xR(h,2),v=g[0],y=v.x,m=v.y,b=g[1],w=b.x,x=b.y,C=bR(bR({clipPath:UL(e,"hidden")?"url(#".concat(u,")"):void 0},yd(e,!0)),{},{x1:y,y1:m,x2:w,y2:x});return t.createElement(jd,{className:Uc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement("line",SR({},n,{className:"recharts-reference-line-line"}))}(s,C),hA.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return HI({x:t,y:n},{x:r,y:o})}({x1:y,y1:m,x2:w,y2:x})))}function OR(e){return OR="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},OR(e)}function kR(){return kR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kR.apply(this,arguments)}function ER(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 jR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ER(Object(n),!0).forEach((function(t){AR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=OR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_R.displayName="ReferenceLine",_R.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function TR(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Kf(n),c=Kf(r);if(Td(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=KI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return UL(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=jR(jR({clipPath:UL(e,"hidden")?"url(#".concat(a,")"):void 0},yd(e,!0)),{},{cx:u,cy:f});return t.createElement(jd,{className:Uc("recharts-reference-dot",p)},TR.renderDot(d,h),hA.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function MR(e){return MR="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},MR(e)}function PR(){return PR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PR.apply(this,arguments)}function DR(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 LR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DR(Object(n),!0).forEach((function(t){IR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=MR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TR.displayName="ReferenceDot",TR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},TR.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(hP,kR({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function RR(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Td(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Kf(n),u=Kf(r),f=Kf(o),d=Kf(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=KI({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!UL(o,"discard")||f.isInRange(d)&&f.isInRange(p)?HI(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=UL(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(jd,{className:Uc("recharts-reference-area",a)},RR.renderRect(p,LR(LR({clipPath:g},yd(e,!0)),h)),hA.renderCallByParent(e,h))}function NR(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function BR(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function FR(e){return FR="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},FR(e)}function zR(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 HR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zR(Object(n),!0).forEach((function(t){VR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=FR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Vf(c)||pw.isSsr)return function(e,t){return NR(e,t+1)}(o,"number"==typeof c&&Vf(c)?c:0);var d=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?fx(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=_l(l)?l(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return $I(r,n)}(fx(o,{fontSize:t,letterSpacing:n}),h,f):fx(o,{fontSize:t,letterSpacing:n})[p]},v=o.length>=2?zf(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,s=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,p);return"equidistantPreserveStart"===c?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),s=t.start,c=t.end,l=0,u=1,f=s,d=function(){var t=null==r?void 0:r[l];if(void 0===t)return{v:NR(r,u)};var i,a=l,d=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===l||BR(e,p,d,f,c);h||(l=0,f=s,u+=1),h&&(f=p+e*(d()/2+o),l+=u)};u<=a.length;)if(i=d())return i.v;return[]}(v,y,g,o,a):(d="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(i){var u=r[s-1],f=n(u,s-1),d=e*(u.coordinate+e*f/2-l);a[s-1]=u=HR(HR({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),BR(e,u.tickCoord,(function(){return f}),c,l)&&(l=u.tickCoord-e*(f/2+o),a[s-1]=HR(HR({},u),{},{isShow:!0}))}for(var p=i?s-1:s,h=function(t){var r,i=a[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-c);a[t]=i=HR(HR({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=HR(HR({},i),{},{tickCoord:i.coordinate});BR(e,i.tickCoord,s,c,l)&&(c=i.tickCoord+e*(s()/2+o),a[t]=HR(HR({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(v,y,g,o,a,"preserveStartEnd"===c):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,l=function(t){var r,l=i[t],u=function(){return void 0===r&&(r=n(l,t)),r};if(t===a-1){var f=e*(l.coordinate+e*u()/2-c);i[t]=l=HR(HR({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else i[t]=l=HR(HR({},l),{},{tickCoord:l.coordinate});BR(e,l.tickCoord,u,s,c)&&(c=l.tickCoord-e*(u()/2+o),i[t]=HR(HR({},l),{},{isShow:!0}))},u=a-1;u>=0;u--)l(u);return i}(v,y,g,o,a),d.filter((function(e){return e.isShow})))}RR.displayName="ReferenceArea",RR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},RR.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(oP,PR({},n,{className:"recharts-reference-area-rect"}))};var $R=["viewBox"],UR=["viewBox"],WR=["ticks"];function ZR(e){return ZR="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},ZR(e)}function qR(){return qR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qR.apply(this,arguments)}function GR(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 YR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GR(Object(n),!0).forEach((function(t){rN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oN(r.key),r)}}function QR(e,t,n){return t=tN(t),function(e,t){if(t&&("object"===ZR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eN()?Reflect.construct(t,n||[],tN(e).constructor):t.apply(e,n))}function eN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eN=function(){return!!e})()}function tN(e){return tN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tN(e)}function nN(e,t){return nN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nN(e,t)}function rN(e,t,n){return(t=oN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oN(e){var t=function(e,t){if("object"!=ZR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZR(t)?t:String(t)}var iN=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=QR(this,n,[e])).state={fontSize:"",letterSpacing:""},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nN(e,t)}(n,t.Component),r=n,o=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=XR(e,$R),o=this.props,i=o.viewBox,a=XR(o,UR);return!Yf(n,i)||!Yf(r,a)||!Yf(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=Vf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,l=YR(YR(YR({},yd(this.props,!1)),yd(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=YR(YR({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=YR(YR({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",qR({},l,{className:Uc("recharts-cartesian-axis-line",Cf(c,"className"))}))}},{key:"renderTicks",value:function(e,r,o){var i=this,a=this.props,s=a.tickLine,c=a.stroke,l=a.tick,u=a.tickFormatter,f=a.unit,d=KR(YR(YR({},this.props),{},{ticks:e}),r,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=yd(this.props,!1),v=yd(l,!1),y=YR(YR({},g),{},{fill:"none"},yd(s,!1)),m=d.map((function(e,r){var o=i.getTickLineCoord(e),a=o.line,m=o.tick,b=YR(YR(YR(YR({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:r,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(jd,qR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},rd(i.props,e,r)),s&&t.createElement("line",qR({},y,a,{className:Uc("recharts-cartesian-axis-tick-line",Cf(s,"className"))})),l&&n.renderTickItem(l,b,"".concat(_l(u)?u(e.value,r):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,l=c.ticks,u=XR(c,WR),f=l;return _l(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(jd,{className:Uc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),hA.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,qR({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],o&&JR(r.prototype,o),i&&JR(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();rN(iN,"displayName","CartesianAxis"),rN(iN,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var aN=["x1","y1","x2","y2","key"],sN=["offset"];function cN(e){return cN="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},cN(e)}function lN(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 uN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lN(Object(n),!0).forEach((function(t){fN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=cN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dN(){return dN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dN.apply(this,arguments)}function pN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hN=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function gN(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=pN(n,aN),u=yd(l,!1);u.offset;var f=pN(u,sN);r=t.createElement("line",dN({},f,{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}function vN(e){var n=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=uN(uN({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(o),index:o});return gN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function yN(e){var n=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=uN(uN({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(o),index:o});return gN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function mN(e){var n=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height,c=e.horizontalPoints,l=e.horizontal;if(!(void 0===l||l)||!n||!n.length)return null;var u=c.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var f=u.map((function(e,c){var l=!u[c+1]?i+s-e:u[c+1]-e;if(l<=0)return null;var f=c%n.length;return t.createElement("rect",{key:"react-".concat(c),y:e,x:o,height:l,width:a,stroke:"none",fill:n[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function bN(e){var n=e.vertical,r=void 0===n||n,o=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,c=e.width,l=e.height,u=e.verticalPoints;if(!r||!o||!o.length)return null;var f=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==f[0]&&f.unshift(0);var d=f.map((function(e,n){var r=!f[n+1]?a+c-e:f[n+1]-e;if(r<=0)return null;var u=n%o.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:l,stroke:"none",fill:o[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var wN=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return xj(KR(uN(uN(uN({},iN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},xN=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return xj(KR(uN(uN(uN({},iN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},CN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function SN(e){var n,r,o,i,a,s,c,l,u=gR(),f=vR(),d=t.useContext(sR),p=uN(uN({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:CN.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:CN.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:CN.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:CN.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:CN.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:CN.verticalFill,x:Vf(e.x)?e.x:d.left,y:Vf(e.y)?e.y:d.top,width:Vf(e.width)?e.width:d.width,height:Vf(e.height)?e.height:d.height}),h=p.x,g=p.y,v=p.width,y=p.height,m=p.syncWithTicks,b=p.horizontalValues,w=p.verticalValues,x=(c=t.useContext(oR),Zf(c)),C=(l=t.useContext(iR),tR(l,(function(e){return cI(e.domain,Number.isFinite)}))||Zf(l));if(!Vf(v)||v<=0||!Vf(y)||y<=0||!Vf(h)||h!==+h||!Vf(g)||g!==+g)return null;var S=p.verticalCoordinatesGenerator||wN,_=p.horizontalCoordinatesGenerator||xN,O=p.horizontalPoints,k=p.verticalPoints;if((!O||!O.length)&&_l(_)){var E=b&&b.length,j=_({yAxis:C?uN(uN({},C),{},{ticks:E?b:C.ticks}):void 0,width:u,height:f,offset:d},!!E||m);Td(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(cN(j),"]")),Array.isArray(j)&&(O=j)}if((!k||!k.length)&&_l(S)){var A=w&&w.length,T=S({xAxis:x?uN(uN({},x),{},{ticks:A?w:x.ticks}):void 0,width:u,height:f,offset:d},!!A||m);Td(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(cN(T),"]")),Array.isArray(T)&&(k=T)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(hN,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height}),t.createElement(vN,dN({},p,{offset:d,horizontalPoints:O,xAxis:x,yAxis:C})),t.createElement(yN,dN({},p,{offset:d,verticalPoints:k,xAxis:x,yAxis:C})),t.createElement(mN,dN({},p,{horizontalPoints:O})),t.createElement(bN,dN({},p,{verticalPoints:k})))}SN.displayName="CartesianGrid";var _N=["type","layout","connectNulls","ref"];function ON(e){return ON="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},ON(e)}function kN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function EN(){return EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EN.apply(this,arguments)}function jN(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 AN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TN(e){return function(e){if(Array.isArray(e))return MN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return MN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MN(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FN(r.key),r)}}function DN(e,t,n){return t=IN(t),function(e,t){if(t&&("object"===ON(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return RN(e)}(e,LN()?Reflect.construct(t,n||[],IN(e).constructor):t.apply(e,n))}function LN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LN=function(){return!!e})()}function IN(e){return IN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IN(e)}function RN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NN(e,t){return NN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NN(e,t)}function BN(e,t,n){return(t=FN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e){var t=function(e,t){if("object"!=ON(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ON(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ON(t)?t:String(t)}var zN=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return BN(RN(e=DN(this,n,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),BN(RN(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),BN(RN(e),"getStrokeDasharray",(function(t,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,t);for(var a=Math.floor(t/i),s=t%i,c=r-t,l=[],u=0,f=0;u<o.length;f+=o[u],++u)if(f+o[u]>s){l=[].concat(TN(o.slice(0,u)),[s-f]);break}var d=l.length%2==0?[0,c]:[c];return[].concat(TN(n.repeat(o,a)),TN(l),d).map((function(e){return"".concat(e,"px")})).join(", ")})),BN(RN(e),"id",Uf("recharts-line-")),BN(RN(e),"pathRef",(function(t){e.mainCurve=t})),BN(RN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),BN(RN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NN(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=pd(r.children,rj);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gj(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,u,c.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,s=i.points,c=i.dataKey,l=yd(this.props,!1),u=yd(a,!0),f=s.map((function(e,t){var r=AN(AN(AN({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.renderDotItem(a,r)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(o,")"):null};return t.createElement(jd,EN({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=kN(i,_N),u=AN(AN(AN({},yd(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(GA,EN({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(ZM,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=qf(r.x,e.x),a=qf(r.y,e.y);return AN(AN({},e),{},{x:i(o),y:a(o)})}if(d){var c=qf(2*p,e.x),l=qf(h/2,e.y);return AN(AN({},e),{},{x:c(o),y:l(o)})}return AN(AN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=qf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l=r.generateSimpleStrokeDasharray(y,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!Wk(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Uc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=Sf(h)?this.id:h,C=null!==(e=yd(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,_=void 0===S?3:S,O=C.strokeWidth,k=void 0===O?2:O,E=(function(e){return e&&"object"===sd(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*_+k;return t.createElement(jd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&AA.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(TN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(TN(r),TN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=Uc("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(hP,EN({},n,{className:o}))}return r}}],o&&PN(r.prototype,o),i&&PN(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function HN(){return HN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HN.apply(this,arguments)}BN(zN,"displayName","Line"),BN(zN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!pw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),BN(zN,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=gj(e,a);return"horizontal"===u?{x:Mj({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Sf(c)?null:r.scale(c),value:c,payload:e}:{x:Sf(c)?null:n.scale(c),y:Mj({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return AN({points:f,layout:u},l)}));var VN=function(e){var n=e.xAxisId,r=gR(),o=vR(),i=pR(n);return null==i?null:t.createElement(iN,HN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function KN(){return KN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KN.apply(this,arguments)}VN.displayName="XAxis",VN.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var $N=function(e){var n=e.yAxisId,r=gR(),o=vR(),i=hR(n);return null==i?null:t.createElement(iN,KN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function UN(e){return function(e){if(Array.isArray(e))return WN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return WN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WN(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}$N.displayName="YAxis",$N.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var ZN=function(e,t,n,r,o){var i=pd(e,_R),a=pd(e,TR),s=[].concat(UN(i),UN(a)),c=pd(e,RR),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&UL(t.props,"extendDomain")&&Vf(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&UL(t.props,"extendDomain")&&Vf(t.props[d])&&Vf(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Vf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},qN={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(qN);var GN=new(ct(qN.exports)),YN="recharts.syncMouseEvents";function XN(e){return XN="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},XN(e)}function JN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eB(r.key),r)}}function QN(e,t,n){return(t=eB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){var t=function(e,t){if("object"!=XN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XN(t)?t:String(t)}var tB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QN(this,"activeIndex",0),QN(this,"coordinateList",[]),QN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,s=void 0===a?null:a,c=e.offset,l=void 0===c?null:c,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,c=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=r+a+s,u=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:u})}}}],n&&JN(t.prototype,n),r&&JN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nB(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[qj(t,n,r,o),qj(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function rB(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return nB(t);var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,f=t.angle,d=qj(s,c,l,f),p=qj(s,c,u,f);r=d.x,o=d.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function oB(e){return oB="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},oB(e)}function iB(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 aB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iB(Object(n),!0).forEach((function(t){sB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sB(e,t,n){return t=function(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e){var n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName;if(!r||!r.props.cursor||!i||!a||"ScatterChart"!==d&&"axis"!==o)return null;var p=GA;if("ScatterChart"===d)n=a,p=CP;else if("BarChart"===d)n=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(f,a,c,u),p=oP;else if("radial"===f){var h=nB(a),g=h.cx,v=h.cy,y=h.radius;n={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=BA}else n={points:rB(f,a,c)},p=GA;var m=aB(aB(aB(aB({stroke:"#ccc",pointerEvents:"none"},c),n),yd(r.props.cursor,!1)),{},{payload:s,payloadIndex:l,className:Uc("recharts-tooltip-cursor",r.props.cursor.className)});return t.isValidElement(r.props.cursor)?t.cloneElement(r.props.cursor,m):t.createElement(p,m)}var lB=["item"],uB=["children","className","width","height","style","compact","title","desc"];function fB(e){return fB="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},fB(e)}function dB(){return dB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dB.apply(this,arguments)}function pB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||CB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EB(r.key),r)}}function vB(e,t,n){return t=mB(t),function(e,t){if(t&&("object"===fB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bB(e)}(e,yB()?Reflect.construct(t,n||[],mB(e).constructor):t.apply(e,n))}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yB=function(){return!!e})()}function mB(e){return mB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mB(e)}function bB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wB(e,t){return wB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wB(e,t)}function xB(e){return function(e){if(Array.isArray(e))return SB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CB(e,t){if(e){if("string"==typeof e)return SB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SB(e,t):void 0}}function SB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _B(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 OB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_B(Object(n),!0).forEach((function(t){kB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kB(e,t,n){return(t=EB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=function(e,t){if("object"!=fB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fB(t)?t:String(t)}var jB={xAxis:["bottom","top"],yAxis:["left","right"]},AB={width:"100%",height:"100%"},TB={x:0,y:0};function MB(e){return e}var PB=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(xB(e),xB(n)):e}),[]);return i.length>0?i:e&&e.length&&Vf(r)&&Vf(o)?e.slice(r,o+1):[]};function DB(e){return"number"===e?[0,"auto"]:void 0}var LB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=PB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var c,l,u=null!==(c=s.props.data)&&void 0!==c?c:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Gf(void 0===u?a:u,i.dataKey,r):l=u&&u[n]||a[n];return l?[].concat(xB(o),[Fj(s,l)]):o}),[])},IB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(zf(u-l)!==zf(f-u)){var p=[];if(zf(f-u)===zf(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(l>=0&&c){var u=c[l]&&c[l].value,f=LB(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return OB(OB(OB({},r),qj(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return OB(OB(OB({},r),qj(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return TB}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},RB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,d=wj(l,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,_,O,k=PB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Vf(r)&&Vf(o))return!0}return!1})(n.props.domain,y,g)&&(S=Rj(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category")));var j=DB(g);if(!S||0===S.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(S=vj(k,v,g),"category"===g&&d){var M=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);m&&M?(_=S,S=vL(0,E)):m||(S=Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(xB(e),[t])}),[]))}else if("category"===g)S=m?S.filter((function(e){return""!==e&&!Sf(e)})):Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Sf(t)?e:[].concat(xB(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return mj(e,t,n,o,r)})).filter((function(e){return!Sf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(S=P)}!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category"))}else S=d?vL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:Dj(a[C].stackGroups,s,c):bj(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)S=ZN(u,S,C,o,w),T&&(S=Rj(T,S,y));else if("category"===g&&T){var D=T;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return OB(OB({},t),{},kB({},C,OB(OB({},n.props),{},{axisType:o,domain:S,categoricalDomain:O,duplicateDomain:_,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{})},NB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=pd(l,o),d={};return f&&f.length?d=RB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=PB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=wj(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=DB("number");return e[v]?e:(h++,p?g=vL(0,d):a&&a[v]&&a[v].hasStack?(g=Dj(a[v].stackGroups,s,c),g=ZN(u,g,v,o)):(g=Rj(y,bj(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=ZN(u,g,v,o)),OB(OB({},e),{},kB({},v,OB(OB({axisType:o},r.defaultProps),{},{hide:!0,orientation:Cf(jB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},BB=function(e){var t=e.children,n=e.defaultShowTooltip,r=hd(t,IL),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},FB=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},zB=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,l=n.children,u=n.margin||{},f=hd(l,IL),d=hd(l,Bm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:OB(OB({},e),{},kB({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:OB(OB({},e),{},kB({},r,Cf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=OB(OB({},h),p),v=g.bottom;f&&(g.bottom+=f.props.height||IL.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=cj({children:o,legendWidth:s});if(c){var l=r||{},u=l.width,f=l.height,d=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&Vf(e[d]))return fj(fj({},e),{},dj({},d,e[d]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&Vf(e[p]))return fj(fj({},e),{},dj({},p,e[p]+(f||0)))}return e}(g,0,n,t));var y=s-g.left-g.right,m=c-g.top-g.bottom;return OB(OB({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(m,0)})},HB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=FB(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=ld(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return ld(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:Sf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=PB(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:s}),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(v,"Id")],_=l.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")];a&&a[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?XE(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):XE(!1));var c=a[s];return OB(OB({},e),{},kB(kB({},r.axisType,c),"".concat(r.axisType,"Ticks"),Cj(c)))}),{}),O=_[v],k=_["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(Kf(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=ld(n.type).indexOf("Bar")>=0,A=Nj(O,k),T=[];if(j){var M,P,D=Sf(x)?p:x,L=null!==(M=null!==(P=Nj(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Wf(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(f=!0,p=s*(d*=.9));var h={offset:((r-p)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+l,size:f?d:t.barSize}},r=[].concat(pj(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var g=Wf(n,r,0,!0);r-2*g-(s-1)*l<=0&&(l=0);var v=(r-2*g-(s-1)*l)/s;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;c=i.reduce((function(e,t,n){var r=[].concat(pj(e),[{item:t.item,position:{offset:g+(v+l)*n+(v-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[S],maxBarSize:D}),L!==A&&(T=T.map((function(e){return OB(OB({},e),{},{position:OB(OB({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:OB(OB({},N(OB(OB({},_),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},kB(kB(kB({key:n.key||"item-".concat(c)},g,_[g]),v,_[v]),"animationId",i)),childIndex:(I=n,R=e.children,dd(R).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!gd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=FB(u),y=v.numericAxisName,m=v.cateAxisName,b=pd(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Kf(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Uf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return fj(fj({},e),{},dj({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return fj(fj({},t),{},dj({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Aj(e,a.items,o)}))}),{})),fj(fj({},t),{},dj({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return OB(OB({},e),{},kB({},r,NB(n,OB(OB({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=zB(OB(OB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var S,_,O=x["".concat(m,"Map")],k=(S=Zf(O),{tooltipTicks:_=Cj(S,!1,!0),orderedTooltipTicks:Fb(_,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Nj(S,_)}),E=p(n,OB(OB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return OB(OB({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return n=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),kB(bB(a=vB(this,n,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),kB(bB(a),"accessibilityManager",new tB),kB(bB(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(OB({legendBBox:e},h({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},OB(OB({},a.state),{},{legendBBox:e}))))}})),kB(bB(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),kB(bB(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return OB({dataStartIndex:t,dataEndIndex:n},h({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),kB(bB(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=OB(OB({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;_l(r)&&r(n,e)}})),kB(bB(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?OB(OB({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;_l(r)&&r(n,e)})),kB(bB(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),kB(bB(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),kB(bB(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),kB(bB(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;_l(n)&&n(t,e)})),kB(bB(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&cd[t]?cd[t]:null}(e),r=Cf(a.props,"".concat(n));n&&_l(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),kB(bB(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=OB(OB({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;_l(r)&&r(n,e)}})),kB(bB(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;_l(t)&&t(a.getMouseInfo(e),e)})),kB(bB(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;_l(t)&&t(a.getMouseInfo(e),e)})),kB(bB(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),kB(bB(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),kB(bB(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),kB(bB(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&GN.emit(YN,a.props.syncId,e,a.eventEmitterSymbol)})),kB(bB(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(OB({dataStartIndex:i,dataEndIndex:s},h({props:a.props,dataStartIndex:i,dataEndIndex:s,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,f=a.state,d=f.offset,p=f.tooltipTicks;if(!d)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){u=g;break}}var v=OB(OB({},d),{},{x:d.left,y:d.top}),y=Math.min(c,v.x+v.width),m=Math.min(l,v.y+v.height),b=p[u]&&p[u].value,w=LB(a.state,a.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?m:p[u].coordinate}:TB;a.setState(OB(OB({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else a.setState(e)})),kB(bB(a),"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,s=o.activeCoordinate,c=o.activePayload,l=o.offset,u=o.activeTooltipIndex,f=o.tooltipAxisBandSize,d=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,g=e.key||"_recharts-cursor";return t.createElement(cB,{key:g,activeCoordinate:s,activePayload:c,activeTooltipIndex:u,chartName:r,element:e,isActive:p,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:d})})),kB(bB(a),"renderPolarAxis",(function(e,n,r){var o=Cf(e,"type.axisType"),i=Cf(a.state,"".concat(o,"Map")),s=i&&i[e.props["".concat(o,"Id")]];return t.cloneElement(e,OB(OB({},s),{},{className:Uc(o,s.className),key:e.key||"".concat(n,"-").concat(r),ticks:Cj(s,!0)}))})),kB(bB(a),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,s=a.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=Zf(c),f=Zf(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Array.isArray(o)?o:Cj(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:Cj(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),kB(bB(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,n=a.props,r=n.children,o=n.width,i=n.height,s=a.props.margin||{},c=o-(s.left||0)-(s.right||0),l=cj({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=hB(l,lB);return t.cloneElement(f,OB(OB({},d),{},{chartWidth:o,chartHeight:i,margin:s,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),kB(bB(a),"renderTooltip",(function(){var e,n=a.props,r=n.children,o=n.accessibilityLayer,i=hd(r,Ow);if(!i)return null;var s=a.state,c=s.isTooltipActive,l=s.activeCoordinate,u=s.activePayload,f=s.activeLabel,d=s.offset,p=null!==(e=i.props.active)&&void 0!==e?e:c;return t.cloneElement(i,{viewBox:OB(OB({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?u:[],coordinate:l,accessibilityLayer:o})})),kB(bB(a),"renderBrush",(function(e){var n=a.props,r=n.margin,o=n.data,i=a.state,s=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:_j(a.handleBrushChange,e.props.onChange),data:o,x:Vf(e.props.x)?e.props.x:s.left,y:Vf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:Vf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),kB(bB(a),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=bB(a).clipPathId,i=a.state,s=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})})),kB(bB(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,s=[],c=t.props.key,l=t.item.props,u=l.activeDot,f=OB(OB({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:yj(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},yd(u,!1)),nd(u));return s.push(n.renderActiveDot(u,f)),o?s.push(n.renderActiveDot(u,OB(OB({},f),{},{cx:o.x,cy:o.y,key:"".concat(c,"-basePoint-").concat(i)}))):a&&s.push(null),s})),kB(bB(a),"renderGraphicChild",(function(e,n,r){var o=a.filterFormatItem(e,n,r);if(!o)return null;var i=a.getTooltipEventType(),s=a.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=hd(a.props.children,Ow),p=o.props,h=p.points,g=p.isRange,v=p.baseLine,y=o.item.props,m=y.activeDot,b=y.hide,w=y.activeBar,x=y.activeShape,C=Boolean(!b&&c&&d&&(m||w||x)),S={};"axis"!==i&&d&&"click"===d.props.trigger?S={onClick:_j(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(S={onMouseLeave:_j(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:_j(a.handleItemMouseEnter,e.props.onMouseEnter)});var _=t.cloneElement(e,OB(OB({},o.props),S));if(C){if(!(u>=0)){var O,k=(null!==(O=a.getItemByXY(a.state.activeCoordinate))&&void 0!==O?O:{graphicalItem:_}).graphicalItem,E=k.item,j=void 0===E?e:E,A=k.childIndex,T=OB(OB(OB({},o.props),S),{},{activeIndex:A});return[t.cloneElement(j,T),null,null]}var M,P;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());M=Gf(h,D,f),P=g&&v&&Gf(v,D,f)}else M=null==h?void 0:h[u],P=g&&v&&v[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[t.cloneElement(e,OB(OB(OB({},o.props),S),{},{activeIndex:L})),null,null]}if(!Sf(M))return[_].concat(xB(a.renderActivePoints({item:o,activePoint:M,basePoint:P,childIndex:u,isRange:g})))}return g?[_,null,null]:[_,null]})),kB(bB(a),"renderCustomized",(function(e,n,r){return t.cloneElement(e,OB(OB({key:"recharts-customized-".concat(r)},a.props),a.state))})),kB(bB(a),"renderMap",{CartesianGrid:{handler:MB,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:MB},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:MB},YAxis:{handler:MB},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=e.id)&&void 0!==o?o:Uf("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Gw(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var o,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wB(e,t)}(n,t.Component),o=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=hd(t,Ow);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=LB(this.state,n,a,s),l=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,f="horizontal"===o?{x:l,y:u}:{y:l,x:u},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=OB(OB({},f),d.props.points[a].tooltipPosition),c=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){md([hd(e.children,Ow)],[hd(this.props.children,Ow)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=hd(this.props.children,Ow);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,s=this.inRange(i.chartX,i.chartY,a);if(!s)return null;var c=this.state,l=c.xAxisMap,u=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&u){var f=Zf(l).scale,d=Zf(u).scale,p=f&&f.invert?f.invert(i.chartX):null,h=d&&d.invert?d.invert(i.chartY):null;return OB(OB({},i),{},{xValue:p,yValue:h})}var g=IB(this.state,this.props.data,this.props.layout,s);return g?OB(OB({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=Zf(c);return Jj({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=hd(e,Ow),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),OB(OB({},nd(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){GN.on(YN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){GN.removeListener(YN,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===ld(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=pB(t,2),r=n[0],o=n[1];return OB(OB({},e),{},kB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=pB(t,2),r=n[0],o=n[1];return OB(OB({},e),{},kB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,c=a.item,l=ld(c.type);if("Bar"===l){var u=(s.data||[]).find((function(t){return nP(e,t)}));if(u)return{graphicalItem:a,payload:u}}else if("RadialBar"===l){var f=(s.data||[]).find((function(t){return Jj(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if(HD(a,r)||VD(a,r)||KD(a,r)){var d=ZD({graphicalItem:a,activeTooltipItem:r,itemData:c.props.data}),p=void 0===c.props.activeIndex?d:c.props.activeIndex;return{graphicalItem:OB(OB({},a),{},{childIndex:p}),payload:KD(a,r)?c.props.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e=this;if(!gd(this))return null;var n,r,o=this.props,i=o.children,a=o.className,s=o.width,c=o.height,l=o.style,u=o.compact,f=o.title,d=o.desc,p=hB(o,uB),h=yd(p,!1);if(u)return t.createElement(fR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(_d,dB({},h,{width:s,height:c,title:f,desc:d}),this.renderClipPath(),wd(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return t.createElement(fR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",dB({className:Uc("recharts-wrapper",a),style:OB({position:"relative",cursor:"default",width:s,height:c},l)},g,{ref:function(t){e.container=t}}),t.createElement(_d,dB({},h,{width:s,height:c,title:f,desc:d,style:AB}),this.renderClipPath(),wd(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&gB(o.prototype,i),s&&gB(o,s),Object.defineProperty(o,"prototype",{writable:!1}),n}(),kB(n,"displayName",r),kB(n,"defaultProps",OB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),kB(n,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=BB(e);return OB(OB(OB({},d),{},{updateId:0},h(OB(OB({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!Yf(l,t.prevMargin)){var p=BB(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=OB(OB({},IB(t,r,s)),{},{updateId:t.updateId+1}),y=OB(OB(OB({},p),g),v);return OB(OB(OB({},y),h(OB({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!md(o,t.prevChildren)){var m,b,w,x,C=hd(o,IL),S=C&&null!==(m=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:u,_=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,O=S!==u||_!==f,k=!Sf(r)&&!O?t.updateId:t.updateId+1;return OB(OB({updateId:k},h(OB(OB({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:_}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),kB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(hP,n),t.createElement(jd,{className:"recharts-active-dot",key:n.key},r)})),n},VB=HB({chartName:"LineChart",GraphicalChild:zN,axisComponents:[{axisType:"xAxis",AxisComp:VN},{axisType:"yAxis",AxisComp:$N}],formatAxisMap:zI}),KB=HB({chartName:"BarChart",GraphicalChild:DI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:VN},{axisType:"yAxis",AxisComp:$N}],formatAxisMap:zI}),$B=HB({chartName:"PieChart",GraphicalChild:aL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sD},{axisType:"radiusAxis",AxisComp:ZP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Wf(e.cx,i,i/2),u=Wf(e.cy,a,a/2),f=Gj(i,a,n),d=Wf(e.innerRadius,f,0),p=Wf(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Sf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=$j(i=a.range,2);s=g[0],c=g[1]}var v=Oj(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),Ej(m);var b=Tj(m,Vj(Vj({},a),{},{realScaleType:y})),w=Vj(Vj(Vj({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return Vj(Vj({},e),{},Kj({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const UB=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function WB(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function ZB(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function qB(e,t){const n=WB(e);return isNaN(t)?ZB(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function GB(e,t){const n=WB(e);if(isNaN(t))return ZB(e,NaN);if(!t)return n;const r=n.getDate(),o=ZB(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function YB(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=WB(e),u=r||n?GB(l,r+12*n):l,f=1e3*(c+60*(s+60*a));return ZB(e,(i||o?qB(u,i+7*o):u).getTime()+f)}const XB=6048e5,JB=864e5;let QB={};function eF(){return QB}function tF(e,t){const n=eF(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=WB(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function nF(e){return tF(e,{weekStartsOn:1})}function rF(e){const t=WB(e),n=t.getFullYear(),r=ZB(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=nF(r),i=ZB(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=nF(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function oF(e){const t=WB(e);return t.setHours(0,0,0,0),t}function iF(e){const t=WB(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function aF(e,t){const n=oF(e),r=oF(t),o=+n-iF(n),i=+r-iF(r);return Math.round((o-i)/JB)}function sF(e){return ZB(e,Date.now())}function cF(e,t){return+oF(e)==+oF(t)}function lF(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=WB(e);return!isNaN(Number(n))}function uF(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function fF(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function dF(e,t,n){const r=function(e,t){return+WB(e)-+WB(t)}(e,t)/6e4;return fF(n?.roundingMethod)(r)}function pF(e,t,n){const r=function(e,t){const n=WB(e),r=WB(t),o=uF(n,r),i=Math.abs(aF(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(uF(n,r)===-o));return 0===a?0:a}(e,t)/7;return fF(n?.roundingMethod)(r)}const hF={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"}};function gF(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vF={date:gF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:gF({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:gF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},yF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function mF(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const bF={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:mF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:mF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:mF({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:mF({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:mF({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"})};function wF(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const xF={ordinalNumber:(CF={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(CF.matchPattern);if(!n)return null;const r=n[0],o=e.match(CF.parsePattern);if(!o)return null;let i=CF.valueCallback?CF.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:wF({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:wF({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:e=>e+1}),month:wF({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:wF({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:wF({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"})};var CF;const SF={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=hF[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:vF,formatRelative:(e,t,n,r)=>yF[e],localize:bF,match:xF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function _F(e){const t=WB(e),n=aF(t,function(e){const t=WB(e),n=ZB(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function OF(e){const t=WB(e),n=+nF(t)-+function(e){const t=rF(e),n=ZB(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nF(n)}(t);return Math.round(n/XB)+1}function kF(e,t){const n=WB(e),r=n.getFullYear(),o=eF(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=ZB(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=tF(a,t),c=ZB(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=tF(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function EF(e,t){const n=WB(e),r=+tF(n,t)-+function(e,t){const n=eF(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=kF(e,t),i=ZB(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),tF(i,t)}(n,t);return Math.round(r/XB)+1}function jF(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const AF={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return jF("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):jF(n+1,2)},d:(e,t)=>jF(e.getDate(),t.length),a(e,t){const n=e.getHours()/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:(e,t)=>jF(e.getHours()%12||12,t.length),H:(e,t)=>jF(e.getHours(),t.length),m:(e,t)=>jF(e.getMinutes(),t.length),s:(e,t)=>jF(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return jF(Math.trunc(r*Math.pow(10,n-3)),t.length)}},TF="midnight",MF="noon",PF="morning",DF="afternoon",LF="evening",IF="night",RF={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return AF.y(e,t)},Y:function(e,t,n,r){const o=kF(e,r),i=o>0?o:1-o;if("YY"===t){return jF(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):jF(i,t.length)},R:function(e,t){return jF(rF(e),t.length)},u:function(e,t){return jF(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return jF(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return jF(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return AF.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return jF(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=EF(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):jF(o,t.length)},I:function(e,t,n){const r=OF(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):jF(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):AF.d(e,t)},D:function(e,t,n){const r=_F(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):jF(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return jF(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return jF(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return jF(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?MF:0===r?TF: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){const r=e.getHours();let o;switch(o=r>=17?LF:r>=12?DF:r>=4?PF:IF,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){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return AF.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):AF.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):jF(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):jF(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):AF.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):AF.s(e,t)},S:function(e,t){return AF.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return BF(r);case"XXXX":case"XX":return FF(r);default:return FF(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BF(r);case"xxxx":case"xx":return FF(r);default:return FF(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+NF(r,":");default:return"GMT"+FF(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+NF(r,":");default:return"GMT"+FF(r,":")}},t:function(e,t,n){return jF(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return jF(e.getTime(),t.length)}};function NF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+jF(i,2)}function BF(e,t){if(e%60==0){return(e>0?"-":"+")+jF(Math.abs(e)/60,2)}return FF(e,t)}function FF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+jF(Math.trunc(r/60),2)+t+jF(r%60,2)}const zF=(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"})}},HF=(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"})}},VF={p:HF,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return zF(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",zF(r,t)).replace("{{time}}",HF(o,t))}},KF=/^D+$/,$F=/^Y+$/,UF=["D","DD","YY","YYYY"];const WF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qF=/^'([^]*?)'?$/,GF=/''/g,YF=/[a-zA-Z]/;function XF(e,t,n){const r=eF(),o=n?.locale??r.locale??SF,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=WB(e);if(!lF(s))throw new RangeError("Invalid time value");let c=t.match(ZF).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,VF[t])(e,o.formatLong)}return e})).join("").match(WF).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:JF(e)};if(RF[t])return{isToken:!0,value:e};if(t.match(YF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return $F.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return KF.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),UF.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,RF[i[0]])(s,i,o.localize,l)})).join("")}function JF(e){const t=e.match(qF);return t?t[1].replace(GF,"'"):e}function QF(e){return WB(e).getDate()}function ez(e){const t=WB(e),n=t.getFullYear(),r=t.getMonth(),o=ZB(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function tz(e){const t=WB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function nz(e,t){const n=WB(e),r=WB(t);return n.getTime()>r.getTime()}function rz(e,t){return+WB(e)<+WB(t)}function oz(e){return function(e,t){const n=WB(e),r=WB(t);return n.getFullYear()===r.getFullYear()}(e,sF(e))}function iz(e,t){return qB(e,-t)}function az(e,t){let n=WB(e);return isNaN(+n)?ZB(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){const n=WB(e),r=n.getFullYear(),o=n.getDate(),i=ZB(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=ez(i);return n.setMonth(t,Math.min(o,a)),n}(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function sz(e,t){const n=WB(e);return n.setDate(t),n}function cz(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=function(e,t){return GB(e,-t)}(e,r+12*n),u=1e3*(c+60*(s+60*a));return ZB(e,iz(l,i+7*o).getTime()-u)}const lz=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},uz=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),fz=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),dz=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),pz=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(mz,{children:[e.jsx(bz,{children:r}),null==n?void 0:n.map((t=>{var n,r;const o=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color),i=`${null===(r=t.payload)||void 0===r?void 0:r.name}-${t.dataKey}-${t.value}`;return e.jsxs(yz,{children:[o&&e.jsx(UB,{color:o}),t.name,": ",uz(t.value||0)]},i)}))]}):null,hz=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Ow,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(pz,{})})},gz=({payload:t,toggleData:n})=>e.jsx(vz,{children:null==t?void 0:t.map((t=>e.jsxs(yz,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx(UB,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),vz=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),yz=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),mz=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),bz=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let wz;const xz=new Uint8Array(16);function Cz(){if(!wz&&(wz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!wz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wz(xz)}const Sz=[];for(let e=0;e<256;++e)Sz.push((e+256).toString(16).slice(1));var _z={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oz(e,t,n){if(_z.randomUUID&&!t&&!e)return _z.randomUUID();const r=(e=e||{}).random||(e.rng||Cz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Sz[e[t+0]]+Sz[e[t+1]]+Sz[e[t+2]]+Sz[e[t+3]]+"-"+Sz[e[t+4]]+Sz[e[t+5]]+"-"+Sz[e[t+6]]+Sz[e[t+7]]+"-"+Sz[e[t+8]]+Sz[e[t+9]]+"-"+Sz[e[t+10]]+Sz[e[t+11]]+Sz[e[t+12]]+Sz[e[t+13]]+Sz[e[t+14]]+Sz[e[t+15]]}(r)}const kz=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),Ez=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),jz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),Az=W.div({display:"flex"}),Tz=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),Mz=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),Pz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),Dz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),Lz=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),Iz=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),Rz=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),Nz=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,S={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(Lz,Object.assign({htmlFor:r,labelRight:C,disabled:l},S,{children:[o&&e.jsx(Rz,{children:o}),e.jsx(Iz,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};var Bz,Fz,zz=Object.create,Hz=Object.defineProperty,Vz=Object.defineProperties,Kz=Object.getOwnPropertyDescriptor,$z=Object.getOwnPropertyDescriptors,Uz=Object.getOwnPropertyNames,Wz=Object.getOwnPropertySymbols,Zz=Object.getPrototypeOf,qz=Object.prototype.hasOwnProperty,Gz=Object.prototype.propertyIsEnumerable,Yz=(e,t,n)=>t in e?Hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xz=(e,t)=>{for(var n in t||(t={}))qz.call(t,n)&&Yz(e,n,t[n]);if(Wz)for(var n of Wz(t))Gz.call(t,n)&&Yz(e,n,t[n]);return e},Jz=(e,t)=>Vz(e,$z(t)),Qz=(e,t)=>{var n={};for(var r in e)qz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Wz)for(var r of Wz(e))t.indexOf(r)<0&&Gz.call(e,r)&&(n[r]=e[r]);return n},eH=(Bz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,S=u;C!==t.tail&&!(f&&S>=f.reach);S+=C.value.length,C=C.next){var _=C.value;if(t.length>e.length)return;if(!(_ instanceof o)){var O,k=1;if(m){if(!(O=i(x,S,e,y))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=S;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(S=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,_=e.slice(S,A),O.index-=S}else if(!(O=i(x,0,_,y)))continue;E=O.index;var M=O[0],P=_.slice(0,E),D=_.slice(E+M.length),L=S+_.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),S+=P.length),l(t,I,k),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),k>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,S,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return Fz||(0,Bz[Uz(Bz)[0]])((Fz={exports:{}}).exports,Fz),Fz.exports}),tH=((e,t,n)=>(n=null!=e?zz(Zz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Uz(t))qz.call(e,o)||o===n||Hz(e,o,{get:()=>t[o],enumerable:!(r=Kz(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Hz(n,"default",{value:e,enumerable:!0}),e)))(eH());tH.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},tH.languages.markup.tag.inside["attr-value"].inside.entity=tH.languages.markup.entity,tH.languages.markup.doctype.inside["internal-subset"].inside=tH.languages.markup,tH.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(tH.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:tH.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:tH.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},tH.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(tH.languages.markup.tag,"addAttribute",{value:function(e,t){tH.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:tH.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),tH.languages.html=tH.languages.markup,tH.languages.mathml=tH.languages.markup,tH.languages.svg=tH.languages.markup,tH.languages.xml=tH.languages.extend("markup",{}),tH.languages.ssml=tH.languages.xml,tH.languages.atom=tH.languages.xml,tH.languages.rss=tH.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(tH),tH.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},tH.languages.javascript=tH.languages.extend("clike",{"class-name":[tH.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),tH.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,tH.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:tH.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:tH.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:tH.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:tH.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:tH.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),tH.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:tH.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),tH.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),tH.languages.markup&&(tH.languages.markup.tag.addInlined("script","javascript"),tH.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),tH.languages.js=tH.languages.javascript,tH.languages.actionscript=tH.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),tH.languages.actionscript["class-name"].alias="function",delete tH.languages.actionscript.parameter,delete tH.languages.actionscript["literal-property"],tH.languages.markup&&tH.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:tH.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(tH),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(tH),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(tH),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(tH),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(tH),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(tH),tH.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:tH.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},tH.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),tH.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(tH),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(tH),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(tH),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(tH),tH.languages.n4js=tH.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),tH.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),tH.languages.n4jsd=tH.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(tH),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(tH),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(tH),tH.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},tH.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=tH.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(tH),tH.languages.c=tH.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),tH.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),tH.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},tH.languages.c.string],char:tH.languages.c.char,comment:tH.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:tH.languages.c}}}}),tH.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete tH.languages.c.boolean,tH.languages.objectivec=tH.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete tH.languages.objectivec["class-name"],tH.languages.objc=tH.languages.objectivec,tH.languages.reason=tH.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),tH.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete tH.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(tH),tH.languages.go=tH.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),tH.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete tH.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(tH),tH.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},tH.languages.python["string-interpolation"].inside.interpolation.inside.rest=tH.languages.python,tH.languages.py=tH.languages.python;var nH={};((e,t)=>{for(var n in t)Hz(e,n,{get:t[n],enumerable:!0})})(nH,{dracula:()=>rH,duotoneDark:()=>oH,duotoneLight:()=>iH,github:()=>aH,jettwaveDark:()=>bH,jettwaveLight:()=>wH,nightOwl:()=>sH,nightOwlLight:()=>cH,oceanicNext:()=>fH,okaidia:()=>dH,oneDark:()=>xH,oneLight:()=>CH,palenight:()=>pH,shadesOfPurple:()=>hH,synthwave84:()=>gH,ultramin:()=>vH,vsDark:()=>yH,vsLight:()=>mH});var rH={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},oH={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},iH={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},aH={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},sH={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},cH={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},lH="#c5a5c5",uH="#8dc891",fH={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:lH}},{types:["attr-value"],style:{color:uH}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:uH}},{types:["punctuation"],style:{color:uH}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:lH}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},dH={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},pH={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},hH={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},gH={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},vH={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},yH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},mH={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},bH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},wH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},xH={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},CH={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},SH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Xz(Xz({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Jz(Xz({},n),{backgroundColor:void 0}),r},_H=/\r\n|\r|\n/,OH=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},kH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},EH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=kH(l,u.type),u.alias&&(l=kH(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(_H),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)OH(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return OH(s),c},jH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(SH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(SH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Qz(n,["className","style","line"]);const s=Jz(Xz({},a),{className:Uc("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Xz(Xz({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Qz(t,["token","className","style"]);const s=Jz(Xz({},a),{className:Uc("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=Xz(Xz({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return EH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),EH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},AH=e=>t.createElement(jH,Jz(Xz({},e),{prism:e.prism||tH,theme:e.theme||yH,code:e.code,language:e.language}))
|
|
27
27
|
/*! Bundled license information:
|
|
28
28
|
|
|
29
29
|
prismjs/prism.js:
|
|
@@ -35,11 +35,11 @@ prismjs/prism.js:
|
|
|
35
35
|
* @namespace
|
|
36
36
|
* @public
|
|
37
37
|
*)
|
|
38
|
-
*/;const AH=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(TH,{onClick:()=>{cz(r),i(!0)},copied:o,children:o?e.jsx(fn,{name:"check-circle",color:a.success}):e.jsx(fn,{name:"copy",color:s})})},TH=W.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),MH=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(PH,Object.assign({},i,{children:[e.jsx(DH,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(LH,{children:r}),e.jsx(AH,{content:r})]}))},PH=W.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),DH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),LH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),IH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),cn),RH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),NH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),BH=W.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var FH={exports:{}};FH.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return s(e)?e:q(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,y=1<<v,m=y-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function _(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,L=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=R||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!U(e)}function K(e){return e&&"function"==typeof e.next}function $(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(R&&e[R]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():K(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):K(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?q(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ye(o[1],e)&&(n||ye(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function _e(){}function Oe(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._iterable),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):H()}))},be.prototype.equals=function(e){return e instanceof be?ye(this._value,e._value):me(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(Ce,n),t(Se,Ce),t(_e,Ce),t(Oe,Ce),Ce.Keyed=Se,Ce.Indexed=_e,Ce.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Re)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function $e(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t($e,Se),$e.prototype.toString=function(){return this.__toString("Map {","}")},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return it(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},$e.prototype.remove=function(e){return it(this,e,b)},$e.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},$e.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,Cn(e),t,n);return r===b?void 0:r},$e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},$e.prototype.merge=function(){return dt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},$e.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},$e.prototype.mergeDeep=function(){return dt(this,pt,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},$e.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},$e.prototype.sort=function(e){return Vt(fn(this,e))},$e.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new et(this,e,t)},$e.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},$e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},$e.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=$e.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(S(s),S(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new _);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ye(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ye(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function vt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,l=o?b:e.get(c,b),u=vt(l,t,n,r);return u===l?e:u===b?e.remove(c):(o?ot():e).set(c,u)}function yt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return lt(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[yt(i&o-1)].get(e+v,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,l=this.bitmap,u=0!=(l&c);if(!u&&o===b)return this;var f=yt(l&c-1),d=this.nodes,p=u?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!u&&h&&d.length>=Ct)return ft(e,d,l,s,h);if(u&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(u&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,y=u?h?l:l^c:l|c,w=u?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=y,this.nodes=w,this):new Ye(e,y,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+v,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,l=this.nodes,u=l[s];if(c&&!u)return this;var f=at(u,e,t+v,n,r,o,i,a);if(f===u)return this;var d=this.count;if(u){if(!f&&--d<St)return ut(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(S(a),S(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===u)return new Qe(e,this.keyHash,c[1^l]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ye(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),ct(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=y/4,Ct=y/2,St=y/4;function _t(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(r),r>0&&r<y?Dt(0,r,v,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(_t,_e),_t.of=function(){return this(arguments)},_t.prototype.toString=function(){return this.__toString("List [","]")},_t.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},_t.prototype.set=function(e,t){return It(this,e,t)},_t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},_t.prototype.insert=function(e,t){return this.splice(e,0,t)},_t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},_t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},_t.prototype.pop=function(){return Ft(this,0,-1)},_t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},_t.prototype.shift=function(){return Ft(this,1)},_t.prototype.merge=function(){return zt(this,void 0,arguments)},_t.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},_t.prototype.mergeDeep=function(){return zt(this,pt,arguments)},_t.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},_t.prototype.setSize=function(e){return Ft(this,0,e)},_t.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},_t.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?H():z(e,n++,t)}))},_t.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},_t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},_t.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=_t.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=qe.setIn,Et.deleteIn=Et.removeIn=qe.removeIn,Et.update=qe.update,Et.updateIn=qe.updateIn,Et.mergeIn=qe.mergeIn,Et.mergeDeepIn=qe.mergeDeepIn,Et.withMutations=qe.withMutations,Et.asMutable=qe.asMutable,Et.asImmutable=qe.asImmutable,Et.wasAltered=qe.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>y&&(l=y),function(){if(c===l)return Mt;var e=t?--l:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>y&&(u=y),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(l===u)return Mt;var n=t?--u:l++;s=a(c&&c[n],o-v,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Lt(){return At||(At=Dt(0,0,v))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Rt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var l=e&&e.array[s],u=Rt(l,t,n-v,r,o,i);return u===l?e:((a=Nt(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(S(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=v;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,u=0;a+u<0;)l=new jt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=v);u&&(a+=u,o+=u,s+=u,i+=u);for(var f=Ht(i),d=Ht(s);d>=1<<c+v;)l=new jt(l&&l.array.length?[l]:[],r),c+=v;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),y=c;y>v;y-=v){var b=f>>>y&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>v&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,c=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(u=0;l;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(u+=(1<<c)*w),c-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,c,a-u)),l&&d<f&&(l=l.removeAfter(r,c,d-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],l=o(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<y?0:e-1>>>v<<v}function Vt(e){return null==e?Ut():Kt(e)?e:Ut().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return Ue(e)&&u(e)}function $t(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ut(){return Tt||(Tt=$t(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):$t(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?D:L,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(o,r?l:s++,u,i)}}))},o}function tn(e,t,n){var r=$e().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(u(e)?Vt():$e()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=bn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?r===I?e:z(r,c,l,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,l=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return r||o===L?e:z(o,l++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],u=f[1],c&&(c=t.call(n,u,i,a))}while(c);return o===I?e:z(o,i,u,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new te(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,l){var u=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?c(e,l+1):!1===r(e,n?o:i++,u)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===I&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,c++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):c(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),$(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?q:c(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=$(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=$(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=$e(i)},o=r.prototype=Object.create(_n);return o.constructor=r,r}t(Vt,$e),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ut()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?$t(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?yn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?yn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,q),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var _n=Sn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Rn():Tn(e)&&!u(e)?e:Rn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}_n[g]=_n.remove,_n.deleteIn=_n.removeIn=qe.removeIn,_n.merge=qe.merge,_n.mergeWith=qe.mergeWith,_n.mergeIn=qe.mergeIn,_n.mergeDeep=qe.mergeDeep,_n.mergeDeepWith=qe.mergeDeepWith,_n.mergeDeepIn=qe.mergeDeepIn,_n.setIn=qe.setIn,_n.update=qe.update,_n.updateIn=qe.updateIn,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&u(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=qe.withMutations,Dn.asMutable=qe.asMutable,Dn.asImmutable=qe.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn(Ut()))}function Kn(e){return null==e?Gn():$n(e)?e:Gn().unshiftAll(e)}function $n(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,_e),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Kn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return _e.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Kn.isStack=$n;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Kn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(s(this)?this.valueSeq():this)},toList:function(){return _t(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ye(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,ln(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ye(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(_e,o.prototype),Yn(Oe,i.prototype);var lr={Iterable:n,Seq:Z,Collection:Ce,Map:$e,OrderedMap:Vt,List:_t,Stack:Kn,Set:An,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ye,fromJS:pe};return lr}();var zH=FH.exports,HH=zH.OrderedMap,VH={createFromArray:function(e){return HH(e.map((function(e){return[e.getKey(),e]})))}};var KH=zH,$H=KH.Map,UH=KH.OrderedSet,WH=KH.Record,ZH=UH(),qH={style:ZH,entity:null},GH=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return YH;var t=$H({style:ZH,entity:null}).merge(e),n=XH.get(t);if(n)return n;var o=new r(t);return XH=XH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?UH(t):t,entity:Array.isArray(n)?UH(n):n})},r}(WH(qH)),YH=new GH,XH=$H([[$H(qH),YH]]);GH.EMPTY=YH;var JH=GH;var QH=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var eV=JH,tV=QH,nV=zH,rV=nV.List,oV=nV.Map,iV=nV.OrderedSet,aV=nV.Record,sV=nV.Repeat,cV=iV(),lV=aV({key:"",type:"unstyled",text:"",characterList:rV(),depth:0,data:oV()}),uV=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rV(sV(eV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():cV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){tV(this.getCharacterList(),fV,e,t)},o.findEntityRanges=function(e,t){tV(this.getCharacterList(),dV,e,t)},r}(lV);function fV(e,t){return e.getStyle()===t.getStyle()}function dV(e,t){return e.getEntity()===t.getEntity()}var pV=uV;var hV=JH,gV=QH,vV=zH,yV=vV.List,mV=vV.Map,bV=vV.OrderedSet,wV=vV.Record,xV=vV.Repeat,CV=bV(),SV={parent:null,characterList:yV(),data:mV(),depth:0,key:"",text:"",type:"unstyled",children:yV(),prevSibling:null,nextSibling:null},_V=function(e,t){return e.getStyle()===t.getStyle()},OV=function(e,t){return e.getEntity()===t.getEntity()},kV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SV;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=yV(xV(hV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():CV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){gV(this.getCharacterList(),_V,e,t)},o.findEntityRanges=function(e,t){gV(this.getCharacterList(),OV,e,t)},r}(wV(SV)),EV=kV,jV=JH,AV=zH.Map;function TV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(AV([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=c):(o=t===i?a:0,l=t===s?c:e.getLength());for(var u,f=e.getCharacterList();o<l;)u=f.get(o),f=f.set(o,r?jV.applyStyle(u,n):jV.removeStyle(u,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var MV={add:function(e,t,n){return TV(e,t,n,!0)},remove:function(e,t,n){return TV(e,t,n,!1)}},PV=JH;var DV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,PV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},LV=zH;var IV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(LV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return DV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},RV={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c||(c=s),l=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:c!==r&&c--),{start:c,end:l}}},NV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var BV=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(NV(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},FV=BV;var zV=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?FV(!1,"Entity key not found in this range."):FV(!1)),n},HV=RV,VV=zV,KV=BV;function $V(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),l=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===l)return n;var f=VV(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?KV(!1,"There should only be one entity range within this removal range."):KV(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=HV.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var UV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var l=r;if(s&&s===c)l=$V(e,t,l,o,s,!0,!0);else if(s&&c){var u=$V(e,t,l,o,s,!1,!0),f=$V(e,n,l,o,c,!1,!1);l=l.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=$V(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=$V(e,n,l,o,c,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},WV={},ZV=Math.pow(2,24);var qV=function(){for(var e;void 0===e||WV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*ZV).toString(32);return WV[e]=!0,e},GV=EV,YV=qV,XV=zH.OrderedMap,JV=function(e){return e.first()instanceof GV?function(e){var t,n={};return XV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),l=r.getParentKey(),u=YV();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return XV(e.toArray().map((function(e){var t=YV();return[t,e.set("key",t)]})))}(e)},QV=JH,eK=QH,tK=BV;function nK(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,l=function(e,t,n){var r;return eK(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?tK(!1,"Removal range must exist within character list."):tK(!1)),r}(r,s,n),u=l.start,f=l.end;u<f;)c=r.get(u),r=r.set(u,QV.applyEntity(c,null)),u++;return t.set("characterList",r)}return t}var rK=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=nK(r,s,a);c!==s&&(o[i]=c);var l=t.getEndKey(),u=t.getEndOffset(),f=n.get(l);i===l&&(f=c);var d=nK(r,f,u);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},oK=JV,iK=rK,aK=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=iK(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),l=s.indexOf(o)+1;return oK(a.slice(c,l).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var sK=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},cK=VH,lK=EV,uK=sK,fK=BV,dK=JV,pK=zH.List,hK=function(e,t,n,r,o,i){var a=n.first()instanceof lK,s=[],c=r.size,l=n.get(o),u=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=cK.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var u=e.get(s).getChildKeys(),f=u.indexOf(o)+1,d=u.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],pK(d))}}))}(g,0,l,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},gK=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?fK(!1,"`insertFragment` should only be called with a collapsed selection state."):fK(!1));var o=e.getBlockMap(),i=dK(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof lK&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?fK(!1,"`insertFragment` should not be called when a container node is selected."):fK(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),l=s.getCharacterList(),u=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:uK(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,t,o,i.first(),a,s,r):hK(e,t,o,i,a,s)},vK=sK,yK=BV,mK=zH.Repeat;var bK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?yK(!1,"`insertText` should only be called with a collapsed range."):yK(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),l=c.getText(),u=c.merge({text:l.slice(0,s)+n+l.slice(s,c.getLength()),characterList:vK(c.getCharacterList(),mK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},wK=zH.Map;var xK=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(wK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},CK=EV,SK=function(e,t){if(!(e instanceof CK))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},_K=EV,OK=SK,kK=zH;kK.List;var EK=kK.Map,jK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},AK=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},TK=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},MK=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},PK=function(e,t,n,r){return e.withMutations((function(o){if(jK(t.getKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})})),jK(n.getKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})})),AK(t.getKey(),r).forEach((function(e){return jK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),jK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),jK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r)})})),jK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:MK(e,o,r)})})),jK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),AK(n.getKey(),r).forEach((function(e){jK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=OK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?OK(o,t):null}return n}(n,r).forEach((function(e){return jK(e,o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();jK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),jK(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){jK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);jK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}jK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},DK=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},LK=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),l=r.get(a),u=c instanceof _K,f=[];if(u){var d=l.getChildKeys(),p=AK(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(AK(OK(l,r),r))}n=c===l?DK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=u&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?EK([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(EK([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return u&&c!==l&&(v=PK(v,c,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},IK=EV,RK=qV,NK=zH,BK=BV,FK=xK,zK=NK.List,HK=NK.Map,VK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},KK=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?BK(!1,"Selection range must be collapsed."):BK(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return FK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),l=RK(),u=o instanceof IK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:c.slice(s),data:HK()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?BK(!1,"ContentBlockNode must not have children"):BK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();VK(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:zK(i)})})),VK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),VK(r,e,(function(e){return e.merge({nextSibling:o})})),VK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},$K=JH,UK=MV,WK=IV,ZK=UV,qK=aK,GK=gK,YK=bK,XK=BV,JK=xK,QK=rK,e$=LK,t$=KK,n$=zH.OrderedSet,r$={replaceText:function(e,t,n,r,o){var i=QK(e,t),a=e$(i,t),s=$K.create({style:r||n$(),entity:o||null});return YK(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?XK(!1,"Target range must be collapsed for `insertText`."):XK(!1)),r$.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=qK(e,t),o=r$.removeRange(e,t,"backward");return r$.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=QK(e,t),i=e$(o,t);return GK(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),l=i.getEntityAt(s),u=a.getEntityAt(c-1);if(r===o&&l&&l===u){var f=ZK(e.getEntityMap(),i,a,t,n);return e$(e,f)}var d=QK(e,t);return e$(d,t)},splitBlock:function(e,t){var n=QK(e,t),r=e$(n,t);return t$(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return UK.add(e,t,n)},removeInlineStyle:function(e,t,n){return UK.remove(e,t,n)},setBlockType:function(e,t,n){return JK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return JK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return JK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=QK(e,t);return WK(r,t,n)}},o$=r$;var i$=function(e){return Object.keys(e).map((function(t){return e[t]}))};function a$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s$=QH,c$=i$,l$=zH,u$=l$.List,f$=l$.Repeat,d$=l$.Record,p$=function(){return!0},h$=d$({start:null,end:null}),g$=d$({start:null,end:null,decoratorKey:null,leaves:null}),v$={generate:function(e,t,n){var r=t.getLength();if(!r)return u$.of(new g$({start:0,end:0,decoratorKey:null,leaves:u$.of(new h$({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):u$(f$(null,r)),a=t.getCharacterList();return s$(i,m$,p$,(function(e,t){o.push(new g$({start:e,end:t,decoratorKey:i.get(e),leaves:y$(a.slice(e,t).toList(),e)}))})),u$(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new g$(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a$(e,t,n[t])}))}return e}({},n,{leaves:null!=t?u$(Array.isArray(t)?t:c$(t)).map((function(e){return h$(e)})):null}))}};function y$(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return s$(r,m$,p$,(function(e,r){n.push(new h$({start:e+t,end:r+t}))})),u$(n)}function m$(e,t){return e===t}var b$=v$;var w$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,zH.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),x$=w$;var C$=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _$=x$,O$=BV,k$=C$,E$=(0,zH.Map)(),j$=k$();function A$(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var T$={getLastCreatedEntityKey:function(){return A$("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),T$.__getLastCreatedEntityKey()},create:function(e,t,n){return A$("DraftEntity.create","contentState.createEntity"),T$.__create(e,t,n)},add:function(e){return A$("DraftEntity.add","contentState.addEntity"),T$.__add(e)},get:function(e){return A$("DraftEntity.get","contentState.getEntity"),T$.__get(e)},__getAll:function(){return E$},__loadWithEntities:function(e){E$=e,j$=k$()},mergeData:function(e,t){return A$("DraftEntity.mergeData","contentState.mergeEntityData"),T$.__mergeData(e,t)},replaceData:function(e,t){return A$("DraftEntity.replaceData","contentState.replaceEntityData"),T$.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return j$},__create:function(e,t,n){return T$.__add(new _$({type:e,mutability:t,data:n||{}}))},__add:function(e){return j$=k$(),E$=E$.set(j$,e),j$},__get:function(e){var t=E$.get(e);return t||("production"!==process.env.NODE_ENV?O$(!1,"Unknown DraftEntity key: %s.",e):O$(!1)),t},__mergeData:function(e,t){var n=T$.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S$(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return E$=E$.set(e,o),o},__replaceData:function(e,t){var n=T$.__get(e).set("data",t);return E$=E$.set(e,n),n}},M$=T$;var P$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,zH.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),D$=P$,L$=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},I$=new RegExp("\r","g");var R$=function(e){return e.replace(I$,"")};function N$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){B$(e,t,n[t])}))}return 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}var F$=VH,z$=JH,H$=pV,V$=EV,K$=M$,$$=D$,U$=qV,W$=i$,Z$=L$,q$=zH,G$=R$,Y$=q$.List,X$=q$.Record,J$=q$.Repeat,Q$=q$.Map,eU=q$.OrderedMap,tU=X$({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),nU=Z$("draft_tree_data_support")?V$:H$,rU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return K$},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return K$.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return K$.__create(e,t,n),this},o.mergeEntityData=function(e,t){return K$.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return K$.__replaceData(e,t),this},o.addEntity=function(e){return K$.__add(e),this},o.getEntity=function(e){return K$.__get(e)},o.getAllEntities=function(){return K$.__getAll()},o.loadWithEntities=function(e){return K$.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=F$.createFromArray(n),i=o.isEmpty()?new $$:$$.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||K$,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=G$(e),new nU({key:U$(),text:e,type:"unstyled",characterList:Y$(J$(z$.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(N$({},e,{blockMap:eU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new $$(e.selectionBefore),selectionAfter:new $$(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new nU(N$({},e,{data:Q$(e.data),characterList:null!=t?Y$((Array.isArray(t)?t:W$(t)).map((function(e){return z$.fromJS(e)}))):void 0}))},r}(tU),oU=rU,iU=BV,aU="LTR",sU="RTL",cU=null;function lU(e){return e===aU||e===sU}function uU(e){return lU(e)||("production"!==process.env.NODE_ENV?iU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):iU(!1)),e===aU?"ltr":"rtl"}function fU(e){cU=e}var dU={NEUTRAL:"NEUTRAL",LTR:aU,RTL:sU,isStrong:lU,getHTMLDir:uU,getHTMLDirIfDifferent:function(e,t){return lU(e)||("production"!==process.env.NODE_ENV?iU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):iU(!1)),lU(t)||("production"!==process.env.NODE_ENV?iU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):iU(!1)),e===t?null:uU(e)},setGlobalDir:fU,initGlobalDir:function(){fU(aU)},getGlobalDir:function(){return cU||this.initGlobalDir(),cU||("production"!==process.env.NODE_ENV?iU(!1,"Global direction not set."):iU(!1)),cU}},pU=dU,hU=BV,gU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",vU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",yU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+gU+vU+"]"),mU=new RegExp("["+gU+vU+"]");function bU(e){var t=yU.exec(e);return null==t?null:t[0]}function wU(e){var t=bU(e);return null==t?pU.NEUTRAL:mU.exec(t)?pU.RTL:pU.LTR}function xU(e,t){if(t=t||pU.NEUTRAL,!e.length)return t;var n=wU(e);return n===pU.NEUTRAL?t:n}function CU(e,t){return t||(t=pU.getGlobalDir()),pU.isStrong(t)||("production"!==process.env.NODE_ENV?hU(!1,"Fallback direction must be a strong direction"):hU(!1)),xU(e,t)}var SU={firstStrongChar:bU,firstStrongCharDir:wU,resolveBlockDir:xU,getDirection:CU,isDirectionLTR:function(e,t){return CU(e,t)===pU.LTR},isDirectionRTL:function(e,t){return CU(e,t)===pU.RTL}};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}var OU,kU=SU,EU=dU,jU=BV,AU=function(){function e(e){_U(this,"_defaultDir",void 0),_U(this,"_lastDir",void 0),e?EU.isStrong(e)||("production"!==process.env.NODE_ENV?jU(!1,"Default direction must be a strong direction (LTR or RTL)"):jU(!1)):e=EU.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=kU.getDirection(e,this._lastDir),this._lastDir},e}(),TU=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},MU=AU,PU=zH,DU=TU,LU=PU.OrderedMap;function IU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RU(e,t,n[t])}))}return e}function RU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NU=b$,BU=oU,FU={getDirectionMap:function(e,t){OU?OU.reset():OU=new MU;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return DU(OU).getDirection(e.getText())})),o=LU(n.keySeq().zip(r));return null!=t&&PU.is(t,o)?t:o}},zU=D$,HU=zH,VU=HU.OrderedSet,KU=HU.Record,$U=HU.Stack,UU=HU.OrderedMap,WU=HU.List,ZU=KU({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:$U(),selection:null,treeMap:null,undoStack:$U()}),qU=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(BU.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:$U(),redoStack:$U(),decorator:n||null,selection:zU.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=IU({},e,{treeMap:YU(n,e.decorator),directionMap:FU.getDirectionMap(n)});return new t(new ZU(r))},t.fromJS=function(e){return new t(new ZU(IU({},e,{directionMap:null!=e.directionMap?UU(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?VU(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?BU.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?$U(e.redoStack.map((function(e){return BU.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new zU(e.selection):e.selection,treeMap:null!=e.treeMap?UU(e.treeMap).map((function(e){return WU(e).map((function(e){return NU.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?$U(e.undoStack.map((function(e){return BU.fromJS(e)}))):e.undoStack,currentContent:BU.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return NU.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):YU(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return NU.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){RU(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return XU(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return XU(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return GU(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),GU(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new zU({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=FU.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var f={currentContent:l,directionMap:i,undoStack:c,redoStack:$U(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=FU.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=FU.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function GU(e,t,n){return qU.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function YU(e,t){return e.getBlockMap().map((function(n){return NU.generate(e,n,t)})).toOrderedMap()}function XU(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):VU()}var JU=qU,QU=EV,eW=SK,tW=zH,nW=BV,rW=tW.OrderedMap,oW=tW.List,iW=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},aW=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),l=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){iW(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),iW(u,e,(function(e){return e.merge({nextSibling:l})})),iW(l,e,(function(e){return e.merge({prevSibling:u})})),iW(d,e,(function(e){return e.merge({prevSibling:a})})),iW(p,e,(function(e){return e.merge({nextSibling:a})})),iW(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:oW(o)})})),iW(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function sW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cW(e,t,n[t])}))}return e}function cW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lW=VH,uW=JH,fW=pV,dW=EV,pW=o$,hW=JU,gW=qV,vW=zH,yW=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?nW(!1,"Replacing blocks is not supported."):nW(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1));var a=e.getBlockMap(),s=t instanceof QU,c=[t],l=a.delete(i);s&&(c=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=eW(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var u=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=rW();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1)),p=u.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1)),p=u.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:aW(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},mW=L$("draft_tree_data_support"),bW=mW?dW:fW,wW=vW.List,xW=vW.Repeat,CW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=pW.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=pW.splitBlock(i,a),c=s.getSelectionAfter(),l=pW.setBlockType(s,c,"atomic"),u=uW.create({entity:t}),f={key:gW(),type:"atomic",text:n,characterList:wW(xW(u,n.length))},d={key:gW(),type:"unstyled"};mW&&(f=sW({},f,{nextSibling:d.key}),d=sW({},d,{prevSibling:f.key}));var p=[new bW(f),new bW(d)],h=lW.createFromArray(p),g=pW.replaceWithFragment(l,c,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return hW.push(e,v,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=yW(i,t,s,r)}else{var c=pW.removeRange(i,n,"backward"),l=c.getSelectionAfter(),u=c.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=yW(c,t,u,"before");else if(l.getEndOffset()===u.getLength())o=yW(c,t,u,"after");else{var f=pW.splitBlock(c,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=yW(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return hW.push(e,h,"move-block")}};var SW=zH.List,_W=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),SW(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var OW=_W;function kW(e){return e.replace(/\//g,"-")}var EW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(kW).join(" "):Array.prototype.map.call(arguments,kW).join(" ")},jW=t,AW=EW,TW=(0,zH.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:jW.createElement("ul",{className:AW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:jW.createElement("ol",{className:AW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:jW.createElement("pre",{className:AW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),MW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},PW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="major",l="model",u="name",f="type",d="vendor",p="version",h="architecture",g="console",v="mobile",y="tablet",m="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",_="BlackBerry",O="Browser",k="Chrome",E="Firefox",j="Google",A="Huawei",T="LG",M="Microsoft",P="Motorola",D="Opera",L="Samsung",I="Sharp",R="Sony",N="Xiaomi",B="Zebra",F="Facebook",z="Chromium OS",H="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===s&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,s,c,l,u,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)u=l[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):r:this[c[0]]=u?c[1].call(this,u,c[2]):r:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):r):this[c]=u||r;f+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(K(t[n][o],e))return"?"===n?r:n}else if(K(t[n],e))return"?"===n?r:n;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,F],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,L],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,L],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,C],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,C],[f,y]],[/(macintosh);/i],[l,[d,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,A],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,A],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,P],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,T],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,T],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,v]],[/(pixel c)\b/i],[l,[d,j],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,j],[f,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,R],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,R],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,x],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,x],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,_],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,v]],[/(nexus 9)/i],[l,[d,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[f,y]],[/(surface duo)/i],[l,[d,M],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,v]],[/(u304aa)/i],[l,[d,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,y]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,y]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,v]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[d,l,[f,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,v]],[/smart-tv.+(samsung)/i],[d,[f,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,L],[f,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,m]],[/(apple) ?tv/i],[d,[l,C+" TV"],[f,m]],[/crkey/i],[[l,k+"cast"],[d,j],[f,m]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,x],[f,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,m]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,R],[f,m]],[/(mitv-\w{5}) bui/i],[l,[d,N],[f,m]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,U],[l,U],[f,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,g]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[l,[d,R],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,g]],[/((pebble))app/i],[d,l,[f,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,C],[f,b]],[/droid.+; (glass) \d/i],[l,[d,j],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,b]],[/(quest( 2| pro)?)/i],[l,[d,F],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,x],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,m=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,x=g&&g.userAgent==m;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,m,w.browser),t[c]=typeof(e=t[p])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,m,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,W.call(e,m,w.device),x&&!e[f]&&b&&b.mobile&&(e[f]=v),x&&"Macintosh"==e[l]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[l]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(e){return m=typeof e===s&&e.length>500?U(e,500):e,this},this.setUA(m),this};Y.VERSION="0.7.37",Y.BROWSER=V([u,p,c]),Y.CPU=V([h]),Y.DEVICE=V([l,d,f,g,v,m,y,b,w]),Y.ENGINE=Y.OS=V([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:st)}(PW,PW.exports);var DW="Unknown",LW={"Mac OS":"Mac OS X"};var IW,RW=(new(0,PW.exports)).getResult(),NW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(RW.browser.version),BW={browserArchitecture:RW.cpu.architecture||DW,browserFullVersion:RW.browser.version||DW,browserMinorVersion:NW.minor||DW,browserName:RW.browser.name||DW,browserVersion:RW.browser.major||DW,deviceName:RW.device.model||DW,engineName:RW.engine.name||DW,engineVersion:RW.engine.version||DW,platformArchitecture:RW.cpu.architecture||DW,platformName:(IW=RW.os.name,LW[IW]||IW||DW),platformVersion:RW.os.version||DW,platformFullVersion:RW.os.version||DW},FW=BV,zW=/\./,HW=/\|\|/,VW=/\s+\-\s+/,KW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,$W=/^(\d*)(.*)/;function UW(e,t){var n=e.split(HW);return n.length>1?n.some((function(e){return nZ.contains(e,t)})):function(e,t){var n=e.split(VW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?FW(!1,'the "-" operator expects exactly 2 operands'):FW(!1)),1===n.length)return WW(n[0],t);var r=n[0],o=n[1];return XW(r)&&XW(o)||("production"!==process.env.NODE_ENV?FW(!1,'operands to the "-" operator must be simple (no modifiers)'):FW(!1)),WW(">="+r,t)&&WW("<="+o,t)}(e=n[0].trim(),t)}function WW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(zW),r=GW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return ZW(n,i);case"<=":return function(e,t){var n=tZ(e,t);return-1===n||0===n}(n,i);case">=":return qW(n,i);case">":return function(e,t){return 1===tZ(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);YW(i)&&(r[o]=i+1+"");return qW(e,n)&&ZW(e,r)}(n,i);default:return function(e,t){return 0===tZ(e,t)}(n,i)}}function ZW(e,t){return-1===tZ(e,t)}function qW(e,t){var n=tZ(e,t);return 1===n||0===n}function GW(e){var t=e.split(zW),n=t[0].match(KW);return n||("production"!==process.env.NODE_ENV?FW(!1,"expected regex to match but it did not"):FW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function YW(e){return!isNaN(e)&&isFinite(e)}function XW(e){return!GW(e).modifier}function JW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function QW(e,t){var n=e.match($W)[1],r=t.match($W)[1],o=parseInt(n,10),i=parseInt(r,10);return YW(o)&&YW(i)&&o!==i?eZ(o,i):eZ(e,t)}function eZ(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?FW(!1,'"a" and "b" must be of the same type'):FW(!1)),e>t?1:e<t?-1:0}function tZ(e,t){for(var n=function(e,t){JW(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return JW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=QW(r[i],o[i]);if(a)return a}return 0}var nZ={contains:function(e,t){return UW(e.trim(),t.trim())}},rZ=nZ,oZ=Object.prototype.hasOwnProperty;var iZ=function(e,t,n){if(!e)return null;var r={};for(var o in e)oZ.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var aZ=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},sZ=BW,cZ=rZ;function lZ(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,cZ.contains(o,t))}function uZ(e){return"Windows"===sZ.platformName?e.replace(/^\s*NT/,""):e}var fZ=iZ({isBrowser:function(e){return lZ(sZ.browserName,sZ.browserFullVersion,e)},isBrowserArchitecture:function(e){return lZ(sZ.browserArchitecture,null,e)},isDevice:function(e){return lZ(sZ.deviceName,null,e)},isEngine:function(e){return lZ(sZ.engineName,sZ.engineVersion,e)},isPlatform:function(e){return lZ(sZ.platformName,sZ.platformFullVersion,e,uZ)},isPlatformArchitecture:function(e){return lZ(sZ.platformArchitecture,null,e)}},aZ);var dZ=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var pZ=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},hZ=pZ;var gZ=function e(t){if(hZ(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},vZ=dZ,yZ=gZ;var mZ=function(e){for(var t=e;t&&t!==vZ(e).documentElement;){var n=yZ(t);if(null!=n)return n;t=t.parentNode}return null};var bZ=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function wZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xZ=fZ,CZ=mZ,SZ=bZ,_Z=BV,OZ=TU,kZ=zH.Map,EZ={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},jZ=xZ.isBrowser("IE <= 11"),AZ=function(){function e(e){var t=this;wZ(this,"observer",void 0),wZ(this,"container",void 0),wZ(this,"mutations",void 0),wZ(this,"onCharData",void 0),this.container=e,this.mutations=kZ();var n=SZ(e);n.MutationObserver&&!jZ?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?_Z(!1,"Expected target to be an instance of Node"):_Z(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,EZ):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=kZ(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return jZ?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=OZ(CZ(e.target));this.mutations=this.mutations.set(n,t)}},e}(),TZ="-",MZ={encode:function(e,t,n){return e+TZ+t+TZ+n},decode:function(e){var t=e.split(TZ).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(TZ),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},PZ={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},DZ={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var LZ=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},IZ=BV,RZ=LZ;var NZ=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?IZ(!1,"Missing editorNode"):IZ(!1)),RZ(t.firstChild)||("production"!==process.env.NODE_ENV?IZ(!1,"editorNode.firstChild is not an HTMLElement"):IZ(!1)),t.firstChild},BZ=MZ,FZ=TU;var zZ=function(e,t,n,r,o){var i=FZ(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=BZ.decode(t),s=a.blockKey,c=e.getBlockTree(s),l=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),u=BZ.decode(r),f=u.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,y=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===y)return i;var m=!1;if(s===f){var b=l.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:y,isBackward:m})},HZ=mZ,VZ=gZ,KZ=zZ,$Z=BV,UZ=pZ,WZ=TU;function ZZ(e,t,n){var r=t,o=HZ(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?$Z(!1,"Unknown node in selection range."):$Z(!1)),e===r)&&(r=r.firstChild,UZ(r)||("production"!==process.env.NODE_ENV?$Z(!1,"Invalid DraftEditorContents node."):$Z(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?$Z(!1,"Invalid DraftEditorContents structure."):$Z(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(UZ(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||VZ(e.firstChild));)e=e.firstChild;return e}(r);i=WZ(VZ(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,l=null;if(VZ(s)){var u=function(e){for(;e.lastChild&&(UZ(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||VZ(e.lastChild));)e=e.lastChild;return e}(s);c=WZ(VZ(u)),l=qZ(u)}else c=WZ(o),l=qZ(s);return{key:c,offset:l}}function qZ(e){var t=e.textContent;return"\n"===t?0:t.length}var GZ=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:KZ(e,WZ(HZ(n)),r,WZ(HZ(o)),i),needsRecovery:!1};var c=null,l=null,u=!0;return a?(c={key:WZ(HZ(n)),offset:r},l=ZZ(t,o,i)):s?(l={key:WZ(HZ(o)),offset:i},c=ZZ(t,n,r)):(c=ZZ(t,n,r),l=ZZ(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:KZ(e,c.key,c.offset,l.key,l.offset),needsRecovery:u}},YZ=GZ;var XZ=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:YZ(e,t,r,o,i,a)},JZ=DZ,QZ=JU,eq=NZ,tq=XZ;var nq=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();JZ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=tq(n,eq(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?QZ.forceSelection(n,o):QZ.acceptSelection(n,o),e.update(n))}};var rq={notEmptyKey:function(e){return null!=e&&""!=e}},oq=rq.notEmptyKey;function iq(e,t){return oq(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var aq=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:iq(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),iq(e.getEntityMap(),n)},sq=AZ,cq=o$,lq=MZ,uq=JU,fq=PZ,dq=nq,pq=NZ,hq=XZ,gq=aq,vq=TU,yq=fZ.isBrowser("IE"),mq=!1,bq=!1,wq=null;var xq,Cq,Sq={onCompositionStart:function(e){bq=!0,function(e){wq||(wq=new sq(pq(e))).start()}(e)},onCompositionEnd:function(e){mq=!1,bq=!1,setTimeout((function(){mq||Sq.resolveComposition(e)}),20)},onSelect:dq,onKeyDown:function(e,t){if(!bq)return Sq.resolveComposition(e),void e._onKeyDown(t);t.which!==fq.RIGHT&&t.which!==fq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===fq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!bq){var t=vq(wq).stopAndFlushMutations();wq=null,mq=!0;var n=uq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=lq.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),l=c.start,u=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:u,isBackward:!1}),d=gq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=cq.replaceText(r,f,e,p,d),n=uq.set(n,{currentContent:r})}));var o=hq(n,pq(e)).selectionState;e.restoreEditorDOM();var i=yq?uq.forceSelection(n,o):uq.acceptSelection(n,o);e.update(uq.push(i,r,"insert-characters"))}else e.update(n)}}},_q=Sq;function Oq(){if(Cq)return xq;Cq=1;var e=lT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=MZ,o=t,i=SU,a=dU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,l=e.decorator,u=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),v=l.getComponentForKey(u),y=l.getPropsForKey(u),m=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(v,n({},y,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return xq=s}function kq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jq=t,Aq=BV,Tq=pZ,Mq=fZ.isBrowser("IE <= 11");var Pq=function(e){var t,n;function r(t){var n;return Eq(kq(n=e.call(this,t)||this),"_forceFlag",void 0),Eq(kq(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Tq(t)||("production"!==process.env.NODE_ENV?Aq(!1,"node is not an Element"):Aq(!1));var r=t;return n?!function(e){return Mq?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},Mq?jq.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):jq.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Mq?jq.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):jq.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):jq.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(jq.Component),Dq=Pq,Lq=pZ;var Iq=function(e){return!(!e||!e.ownerDocument)&&(Lq(e)&&"BR"===e.nodeName)},Rq={initODS:function(){},handleExtensionCausedError:function(){}};var Nq=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},Bq=Nq;var Fq=function(e){return Bq(e)&&3==e.nodeType},zq=Fq;var Hq=function e(t,n){return!(!t||!n)&&(t===n||!zq(t)&&(zq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Vq=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Kq=Rq,$q=DZ,Uq=Hq,Wq=Vq,Zq=dZ,qq=BV,Gq=pZ,Yq=fZ.isBrowser("IE");function Xq(e,t){if(!e)return"[empty]";var n=Jq(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Gq(n)||("production"!==process.env.NODE_ENV?qq(!1,"Node must be an Element if it is not a text node."):qq(!1)),n.outerHTML)}function Jq(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Zq(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(Jq(i[a],t));return o}function Qq(e,t){for(var n=e,r=n;n;){if(Gq(n)&&r.hasAttribute("contenteditable"))return Xq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function eG(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function tG(e,t,n,r){var o=Wq();if(e.extend&&null!=t&&Uq(o,t)){n>eG(t)&&$q.logSelectionStateFailure({anonymizedDom:Qq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw $q.logSelectionStateFailure({anonymizedDom:Qq(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function nG(e,t,n,r){var o=Zq(t).createRange();if(n>eG(t)&&($q.logSelectionStateFailure({anonymizedDom:Qq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Kq.handleExtensionCausedError()),o.setStart(t,n),Yq)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var rG=function(e,t,n,r,o){var i=Zq(t);if(Uq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),l=e.getFocusKey(),u=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=l,c=u,l=d,u=p,f=!1}var h=s===n&&r<=c&&o>=c,g=l===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),nG(a,t,c-r,e),void tG(a,t,u-r,e);if(f){if(g&&(a.removeAllRanges(),nG(a,t,u-r,e)),h){var v=a.focusNode,y=a.focusOffset;a.removeAllRanges(),nG(a,t,c-r,e),tG(a,v,y,e)}}else h&&(a.removeAllRanges(),nG(a,t,c-r,e)),g&&tG(a,t,u-r,e)}},oG=lT;var iG,aG,sG=Dq,cG=t,lG=BV,uG=Iq,fG=rG,dG=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?lG(!1,"Missing node"):lG(!1));var c,l=s.firstChild;l||("production"!==process.env.NODE_ENV?lG(!1,"Missing child"):lG(!1)),l.nodeType===Node.TEXT_NODE?c=l:uG(l)?c=s:(c=l.firstChild)||("production"!==process.env.NODE_ENV?lG(!1,"Missing targetNode"):lG(!1)),fG(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?lG(!1,"Missing leafNode"):lG(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),oG(e,r,n)}),{});if(i){var l=i(s,t);c=oG(c,l)}return cG.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},cG.createElement(sG,null,n))},r}(cG.Component),pG=dG;function hG(){if(aG)return iG;aG=1;var e=Oq(),n=pG,r=MZ,o=t,i=EW;zH.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,l=t.customStyleMap,u=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,v=a.getKey(),y=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(v,i,t),u=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:u,selection:p?h:null,forceSelection:d,text:y.slice(u,f),styleSet:a.getInlineStyleAt(u),customStyleMap:l,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:s,decorator:u,decoratorKey:g,direction:f,leafSet:t,text:y,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return iG=a}function gG(e,t){return!!t&&(e===t.documentElement||e===t.body)}var vG={getTop:function(e){var t=e.ownerDocument;return gG(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;gG(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return gG(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;gG(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},yG=/-(.)/g;var mG=function(e){return e.replace(yG,(function(e,t){return t.toUpperCase()}))},bG=/([A-Z])/g;var wG=function(e){return e.replace(bG,"-$1").toLowerCase()},xG=mG,CG=wG;function SG(e){return null==e?e:String(e)}var _G=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return SG(n.getPropertyValue(CG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return SG(n.getPropertyValue(CG(t)));if("display"===t)return"none"}return e.currentStyle?SG("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[xG(t)]):SG(e.style&&e.style[xG(t)])};function OG(e,t){var n=kG.get(e,t);return"auto"===n||"scroll"===n}var kG={get:_G,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(OG(e,"overflow")||OG(e,"overflowY")||OG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},EG=kG,jG=Hq;var AG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!jG(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var TG=function(e){var t=AG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},MG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var PG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:MG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},DG=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var LG=function(e){var t=PG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=DG(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function IG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function RG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function NG(){return{width:window.innerWidth||IG(),height:window.innerHeight||RG()}}NG.withoutScrollbars=function(){return{width:IG(),height:RG()}};var BG,FG,zG,HG,VG=NG;function KG(){if(FG)return BG;FG=1;var e=lT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=hG(),a=MZ,s=t,c=vG,l=EG,u=TG,f=LG,d=VG,p=BV,h=LZ;zH.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},y=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=f(o);if(o===window){var a=u(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,l=t.blockRendererFn,u=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,_=t.selection,O=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=y(i,l),g=d.CustomComponent||w,b=v(i,c),x=b.Element,C=b.wrapperTemplate,S=m(i,p,o,u,d,null),_=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,S,s.createElement(g,_))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var l,u=n.reverse()[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=y(o,l),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:S,hasSelection:g(_,E),selection:_,tree:O});if(o.getParentKey())return M;var P=v(o,c).Element,D=m(o,p,j,u,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return BG=b}var $G=lT;function UG(){return UG=$G||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UG.apply(this,arguments)}var WG,ZG,qG,GG,YG=pG,XG=MZ,JG=t,QG=vG,eY=EG,tY=SU,nY=dU,rY=EW,oY=TG,iY=LG,aY=VG,sY=BV,cY=LZ,lY=TU,uY=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},fY=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||uY(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=eY.getScrollParent(n),i=iY(o);if(o===window){var a=oY(n);(r=a.y+a.height-aY().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{cY(n)||("production"!==process.env.NODE_ENV?sY(!1,"blockNode is not an HTMLElement"):sY(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&QG.setTop(o,QG.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=uY(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var l=c.size-1,u=c.map((function(a,c){var u=XG.encode(n,s,c),f=a.get("start"),d=a.get("end");return JG.createElement(YG,{key:u,offsetKey:u,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return u;if(!e.props.decorator)return u;var d=lY(e.props.decorator),p=d.getComponentForKey(f);if(!p)return u;var h=d.getPropsForKey(f),g=XG.encode(n,s,0),v=c.first().get("start"),y=c.last().get("end"),m=r.slice(v,y),b=t.getEntityAt(a.get("start")),w=nY.getHTMLDirIfDifferent(tY.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:v,end:y,blockKey:n,entityKey:b,offsetKey:g};return JG.createElement(p,UG({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=rY({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return JG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(JG.Component),dY=fY;var pY=L$("draft_tree_data_support")?function(){if(HG)return zG;HG=1;var e=lT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=KG(),o=MZ,i=t,a=TU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var l=c.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,l=e.customStyleMap,u=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),y=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:u,customStyleMap:l,decorator:y,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return zG=s}():function(){if(GG)return qG;GG=1;var e=lT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=dY,a=MZ,s=t,c=EW,l=(ZG||(ZG=1,WG=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),WG),u=TU,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,y=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=m.getBlocksAsArray(),_=[],O=null,k=null,E=0;E<S.length;E++){var j=S[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var I=y||C.get(A),R=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:v,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,H=j.getDepth(),V="";if(c&&(V=c(j)),"li"===z)V=l(V,f(T,H,k!==F||null===O||H>O,I));var K=P||i,$={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:A};void 0!==L&&($=r({},$,{contentEditable:L,suppressContentEditableWarning:!0}));var U=s.createElement(z,$,s.createElement(K,n({},N,{key:A})));_.push({block:U,wrapperTemplate:F,key:A,offsetKey:R}),O=F?j.getDepth():null,k=F}for(var W=[],Z=0;Z<_.length;){var q=_[Z];if(q.wrapperTemplate){var G=[];do{G.push(_[Z].block),Z++}while(Z<_.length&&_[Z].wrapperTemplate===q.wrapperTemplate);var Y=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return qG=d}(),hY={isImage:function(e){return"image"===gY(e)[0]},isJpeg:function(e){var t=gY(e);return hY.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function gY(e){return e.split("/")}var vY=hY,yY=BV;var mY=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?yY(!1,"toArray: Array-like object expected"):yY(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object needs a length property"):yY(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object should have keys for indices"):yY(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):yY(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function bY(e){return function(){return e}}var wY=function(){};wY.thatReturns=bY,wY.thatReturnsFalse=bY(!1),wY.thatReturnsTrue=bY(!0),wY.thatReturnsNull=bY(null),wY.thatReturnsThis=function(){return this},wY.thatReturnsArgument=function(e){return e};var xY=wY,CY=vY,SY=mY,_Y=xY,OY=new RegExp("\r\n","g"),kY={"text/rtf":1,"text/html":1};function EY(e){if("file"==e.kind)return e.getAsFile()}var jY=function(){function e(e){this.data=e,this.types=e.types?SY(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return kY[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(OY,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!CY.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(EY).filter(_Y.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),AY=jY,TY=BV,MY=/\.textClipping$/,PY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var DY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in PY))return void t("");if(""===e.type){var n="";return MY.test(e.name)&&(n=e.name.replace(MY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?TY(!1,'We should be calling "FileReader.readAsText" which returns a string'):TY(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var LY=function(e){return"handled"===e||!0===e},IY=AY,RY=o$,NY=JU,BY=mZ,FY=dZ,zY=DY,HY=zZ,VY=bZ,KY=LY,$Y=TU;var UY={onDragEnd:function(e){e.exitCurrentMode(),WY(e)},onDrop:function(e,t){var n=new IY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=FY(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=$Y(n),r=$Y(r);var a=$Y(BY(n));return HY(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&KY(e.props.handleDroppedFiles(o,i)))return;zY(i,(function(t){t&&e.update(ZY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&KY(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=RY.moveText(e.getCurrentContent(),e.getSelection(),t);return NY.push(e,n,"insert-fragment")}(r,o)):e.update(ZY(r,o,n.getText()))),WY(e)}}}};function WY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:VY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function ZY(e,t,n){var r=RY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return NY.push(e,r,"insert-fragment")}var qY=UY;var GY=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},l=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}}("undefined"==typeof self?st:self);var YY=st.setImmediate,XY=o$,JY=JU,QY=aq,eX=LY,tX=GY,nX=TU,rX=YY,oX="'",iX="/",aX=fZ.isBrowser("Firefox");function sX(e,t,n,r,o){var i=XY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return JY.push(e,i,"insert-characters",o)}var cX=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&eX(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(sX(n,r,n.getCurrentInlineStyle(),QY(n.getCurrentContent(),n.getSelection()),!0));var s,c=sX(n,r,n.getCurrentInlineStyle(),QY(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=tX(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=c.getBlockTree(a);l=u.size!==f.size||u.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),l=n.get("start"),u=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||c!==u||null!=f&&u-l!=s-o}))}if(l||(s=r,l=aX&&(s==oX||s==iX)),l||(l=nX(c.getDirectionMap()).get(a)!==nX(n.getDirectionMap()).get(a)),l)return t.preventDefault(),c=JY.set(c,{forceSelection:!0}),void e.update(c);c=JY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,rX((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},lX=JU,uX=Hq,fX=Vq;var dX=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&fX(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&uX(o,r.anchorNode)&&uX(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(lX.acceptSelection(i,s))}},pX=JU;var hX=function(e,t){e.setMode("composite"),e.update(pX.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},gX=aK;var vX=function(e){var t=e.getSelection();return t.isCollapsed()?null:gX(e.getCurrentContent(),t)},yX=vX;var mX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(yX(e._latestEditorState))};var bX=o$,wX=JU,xX=EG,CX=vX,SX=LG,_X=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var OX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(_X(i)){var a=i;n=SX(xX.getScrollParent(a))}var s=CX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=bX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return wX.push(e,t,"remove-range")}(r))}),0)}};var kX=function(e,t){e.setMode("drag"),t.preventDefault()};var EX=function(e){e._internalDrag=!0,e.setMode("drag")},jX=JU,AX=fZ;var TX=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),AX.isBrowser("Chrome < 60.0.3081.0")?e.update(jX.forceSelection(n,o)):e.update(jX.acceptSelection(n,o))}},MX=BV,PX=55296,DX=57343,LX=/[\uD800-\uDFFF]/;function IX(e){return PX<=e&&e<=DX}function RX(e){return LX.test(e)}function NX(e,t){return 1+IX(e.charCodeAt(t))}function BX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!RX(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=NX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=NX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=NX(e,i);return e.substring(o,i)}var FX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=NX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:NX,hasSurrogateUnit:RX,isCodeUnitInSurrogateRange:IX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?MX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):MX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return PX<=n&&n<=56319&&56320<=r&&r<=DX},strlen:function(e){if(!RX(e))return e.length;for(var t=0,n=0;n<e.length;n+=NX(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return BX(e,t=t<n?t:n,r)},substr:BX},zX=FX,HX=xY;function VX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var KX="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];VX.apply(void 0,[t].concat(r))}}:HX,$X=KX,UX=$X;var WX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&UX(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},ZX=o$,qX=L$("draft_tree_data_support");var GX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(qX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(qX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(c.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return ZX.removeRange(o,i,n)},YX=JU,XX=zX,JX=WX,QX=GX;var eJ=function(e){var t=QX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return JX(e,i?XX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return YX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},tJ=o$,nJ=MZ,rJ=JU,oJ=rq.notEmptyKey,iJ=mZ,aJ=eJ,sJ=TU,cJ=fZ.isEngine("Gecko");var lJ=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,l=e._latestEditorState,u=sJ(iJ(r)),f=nJ.decode(u),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,y=g.end,m=l.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(v,y);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,S,_,O=l.getSelection(),k=O.merge({anchorOffset:v,focusOffset:y,isBackward:!1}),E=b.getEntityAt(v),j=oJ(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=tJ.replaceText(m,k,c,b.getInlineStyleAt(v),A?b.getEntityAt(v):null);if(cJ)x=n.anchorOffset,C=n.focusOffset,_=(S=v+Math.min(x,C))+Math.abs(x-C),x=S,C=_;else{var P=c.length-w.length;S=O.getStartOffset(),_=O.getEndOffset(),x=o?_+P:S,C=_+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:C})});e.update(rJ.push(l,D,T))}else{var L=t.nativeEvent.inputType;if(L){var I=function(e,t){return"deleteContentBackward"===e?aJ(t):t}(L,l);if(I!==l)return e.restoreEditorDOM(),void e.update(I)}}}},uJ=PZ;var fJ=function(e){return e.which===uJ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},dJ=fJ,pJ=fZ.isPlatform("Mac OS X"),hJ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return pJ&&e.altKey},usesMacOSHeuristics:function(){return pJ},hasCommandModifier:function(e){return pJ?!!e.metaKey&&!e.altKey:hJ.isCtrlKeyCommand(e)},isSoftNewlineEvent:dJ},gJ=hJ,vJ=o$,yJ=JU,mJ=aK,bJ=TU,wJ=null,xJ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=bJ(r),wJ=mJ(t,r);var s=vJ.removeRange(t,r,"forward");return s===t?e:yJ.push(e,s,"remove-range")},paste:function(e){if(!wJ)return e;var t=vJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),wJ);return yJ.push(e,t,"insert-fragment")}},CJ=BV;var SJ=fZ.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?CJ(!1,"Found an unexpected detached subtree when getting range client rects."):CJ(!1)}:function(e){return Array.from(e.getClientRects())},_J=SJ,OJ=zX,kJ=dZ,EJ=_J,jJ=BV;function AJ(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function TJ(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var MJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?jJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):jJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=kJ(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?jJ(!1,"Missing document.body"):jJ(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);AJ(EJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?jJ(!1,"Found unexpected detached subtree when traversing."):jJ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&OJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!AJ(EJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=TJ(i=i.childNodes[c])}return e.setStart(r,o),e},PJ=JU,DJ=MJ,LJ=GZ,IJ=WX,RJ=GX;var NJ=function(e,t){var n=RJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return IJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=DJ(r),LJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:PJ.push(e,n,"remove-range")},BJ="['‘’]",FJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),zJ=new RegExp("^(?:"+FJ+")*(?:"+BJ+"|(?!"+FJ+").)*(?:(?!"+FJ+").)"),HJ=new RegExp("(?:(?!"+FJ+").)(?:"+BJ+"|(?!"+FJ+").)*(?:"+FJ+")*$");function VJ(e,t){var n=t?HJ.exec(e):zJ.exec(e);return n?n[0]:e}var KJ={getBackward:function(e){return VJ(e,!0)},getForward:function(e){return VJ(e,!1)}},$J=KJ,UJ=JU,WJ=WX,ZJ=GX;var qJ=function(e){var t=ZJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return WJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=$J.getBackward(o);return WJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:UJ.push(e,t,"remove-range")},GJ=$X;var YJ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&GJ(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},XJ=KJ,JJ=JU,QJ=YJ,eQ=GX;var tQ=function(e){var t=eQ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=XJ.getForward(o);return QJ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:JJ.push(e,t,"remove-range")},nQ=o$,rQ=JU;var oQ=JU;var iQ=JU;var aQ=JU,sQ=zX,cQ=YJ,lQ=GX;var uQ=function(e){var t=lQ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return cQ(e,i?sQ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return aQ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},fQ=o$,dQ=JU,pQ=aK;var hQ=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=pQ(a,r),l=fQ.removeRange(a,r,"backward"),u=l.getSelectionAfter(),f=u.getAnchorOffset()-1,d=u.merge({anchorOffset:f,focusOffset:f}),p=fQ.replaceWithFragment(l,d,c),h=dQ.push(e,p,"insert-fragment");return dQ.acceptSelection(h,o)},gQ=JU;var vQ=function(e,t,n){var r=gQ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(gQ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(gQ.set(r,{nativelyRenderedContent:o}))}},yQ=o$,mQ=JU,bQ=PZ,wQ=xJ,xQ=fZ,CQ=LY,SQ=NJ,_Q=qJ,OQ=tQ,kQ=function(e){var t=nQ.splitBlock(e.getCurrentContent(),e.getSelection());return rQ.push(e,t,"split-block")},EQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return oQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},jQ=function(e){var t=e.getSelection(),n=t.getStartKey();return iQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},AQ=eJ,TQ=uQ,MQ=hQ,PQ=vQ,DQ=gJ.isOptionKeyCommand,LQ=xQ.isBrowser("Chrome");var IQ=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case bQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&CQ(e.props.handleReturn(t,r)))return;break;case bQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case bQ.TAB:if(o("onTab"))return;break;case bQ.UP:if(o("onUpArrow"))return;break;case bQ.RIGHT:if(o("onRightArrow"))return;break;case bQ.DOWN:if(o("onDownArrow"))return;break;case bQ.LEFT:if(o("onLeftArrow"))return;break;case bQ.SPACE:LQ&&DQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!CQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return mQ.redo(t);case"delete":return TQ(t);case"delete-word":return OQ(t);case"backspace":return AQ(t);case"backspace-word":return _Q(t);case"backspace-to-start-of-line":return SQ(t,n);case"split-block":return kQ(t);case"transpose-characters":return MQ(t);case"move-selection-to-start-of-block":return jQ(t);case"move-selection-to-end-of-block":return EQ(t);case"secondary-cut":return wQ.cut(t);case"secondary-paste":return wQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else PQ(t,r,e.update);else if(n===bQ.SPACE&&LQ&&DQ(t)){var s=yQ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(mQ.push(r,s,"insert-characters"))}};var RQ=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),NQ=RQ,BQ=BV,FQ=fZ.isBrowser("IE <= 9");var zQ=function(e){var t,n=null;return!FQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?BQ(!1,"Missing doc.documentElement"):BQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},HQ=pZ;var VQ=function(e){return!(!e||!e.ownerDocument)&&(HQ(e)&&"A"===e.nodeName)},KQ=pZ;var $Q,UQ=function(e){return!(!e||!e.ownerDocument)&&(KQ(e)&&"IMG"===e.nodeName)};function WQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZQ(e,t,n[t])}))}return e}function ZQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qQ=JH,GQ=pV,YQ=EV,XQ=TW,JQ=M$,QQ=NQ,e1=EW,t1=qV,n1=zQ,r1=L$,o1=zH,i1=o1.List,a1=o1.Map,s1=o1.OrderedSet,c1=VQ,l1=Iq,u1=LZ,f1=UQ,d1=r1("draft_tree_data_support"),p1=new RegExp("\r","g"),h1=new RegExp("\n","g"),g1=new RegExp("^\n","g"),v1=new RegExp(" ","g"),y1=new RegExp(" ?","g"),m1=new RegExp("​?","g"),b1=["bold","bolder","500","600","700","800","900"],w1=["light","lighter","normal","100","200","300","400"],x1=["className","href","rel","target","title"],C1=["alt","className","height","src","width"],S1=(ZQ($Q={},e1("public/DraftStyleDefault/depth0"),0),ZQ($Q,e1("public/DraftStyleDefault/depth1"),1),ZQ($Q,e1("public/DraftStyleDefault/depth2"),2),ZQ($Q,e1("public/DraftStyleDefault/depth3"),3),ZQ($Q,e1("public/DraftStyleDefault/depth4"),4),$Q),_1=a1({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),O1=function(e){if(u1(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},k1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(S1).some((function(n){e.classList.contains(n)&&(t=S1[n])})),t},E1=function(e){if(!c1(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new QQ(t.href);return!0}catch(e){return!1}},j1=function(e){if(!f1(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},A1=function(e,t){if(!u1(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){b1.indexOf(r)>=0?e.add("BOLD"):w1.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},T1=function(e){return"ul"===e||"ol"===e},M1=function(){function e(e,t){ZQ(this,"characterList",i1()),ZQ(this,"currentBlockType","unstyled"),ZQ(this,"currentDepth",0),ZQ(this,"currentEntity",null),ZQ(this,"currentText",""),ZQ(this,"wrapper",null),ZQ(this,"blockConfigs",[]),ZQ(this,"contentBlocks",[]),ZQ(this,"entityMap",JQ),ZQ(this,"blockTypeMap",void 0),ZQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=i1(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=JQ,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],s1())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(d1?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=WQ({key:e.key||t1(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:i1(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=i1(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||T1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;T1(i)&&(this.wrapper=i,T1(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(j1(o))this._addImgNode(o,t);else if(E1(o))this._addAnchorNode(o,n,t);else{var l=t;_1.has(i)&&(l=l.add(_1.get(i))),l=A1(o,l);var u=O1(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!d1&&u1(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=k1(p,this.currentDepth)}var h=t1(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=qQ.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=i1()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(g1,"")).replace(h1," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){l1(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(f1(e)){var n=e,r={};C1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),r1("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(c1(e)){var r=e,o={};x1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new QQ(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=i1(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new YQ(WQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return i1(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new GQ(WQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=i1(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),P1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:XQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n1)(e=e.trim().replace(p1,"").replace(v1," ").replace(y1,"").replace(m1,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),a1(t)}(t);return new M1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function D1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L1=pV,I1=EV,R1=P1,N1=qV,B1=zQ,F1=L$,z1=zH,H1=R$,V1=z1.List,K1=z1.Repeat,$1=F1("draft_tree_data_support"),U1=$1?I1:L1,W1={processHTML:function(e,t){return R1(e,B1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=H1(r);var i=N1(),a={key:i,type:n,text:r,characterList:V1(K1(t,r.length))};if($1&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new U1(a)),e}),[])}};var Z1=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},q1=o$,G1=JU,Y1=Z1,X1=TU,J1={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return J1.toggleInlineStyle(e,"BOLD");case"italic":return J1.toggleInlineStyle(e,"ITALIC");case"underline":return J1.toggleInlineStyle(e,"UNDERLINE");case"code":return J1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return J1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return J1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=q1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=G1.push(e,t,"insert-characters");return G1.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return G1.push(e,a,"remove-range")}var s=J1.tryToRemoveBlockStyle(e);return s?G1.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=q1.removeRange(n,a,"forward");return s!==n?G1.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var l=Y1(i,r,e.shiftKey?-1:1,n);return G1.push(t,l,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=X1(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var l=i.getBlockForKey(r).getType()===t?"unstyled":t;return G1.push(e,q1.setBlockType(i,a,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?J1.toggleBlockType(e,"code-block"):J1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return G1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?q1.removeInlineStyle(i,n,t):q1.applyInlineStyle(i,n,t),G1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=q1.applyEntity(e.getCurrentContent(),t,n);return G1.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return q1.setBlockType(o,t,"unstyled")}return null}},Q1=J1,e0=/\r\n?|\n/g;var t0=VH,n0=JH,r0=AY,o0=o$,i0=W1,a0=JU,s0=Q1,c0=aq,l0=DY,u0=LY,f0=function(e){return e.split(e0)};function d0(e,t,n){var r=o0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return a0.push(e,r.set("entityMap",n),"insert-fragment")}var p0=function(e,t){t.preventDefault();var n=new r0(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&u0(e.props.handlePastedFiles(r)))return;return void l0(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=f0(t),i=n0.create({style:n.getCurrentInlineStyle(),entity:c0(n.getCurrentContent(),n.getSelection())}),a=s0.getCurrentBlockType(n),s=i0.processText(r,i,a),c=t0.createFromArray(s),l=o0.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(a0.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!u0(e.props.handlePastedText(a,s,c))){if(a&&(i=f0(a)),!e.props.stripPastedStyles){var u,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(u=s)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(d0(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(d0(e._latestEditorState,f));if(s){var d=i0.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=t0.createFromArray(p);return void e.update(d0(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=n0.create({style:c.getCurrentInlineStyle(),entity:c0(c.getCurrentContent(),c.getSelection())}),y=s0.getCurrentBlockType(c),m=i0.processText(i,v,y),b=t0.createFromArray(m);e.update(d0(e._latestEditorState,b))}}},h0=fZ,g0=cX,v0=dX,y0=hX,m0=mX,b0=OX,w0=kX,x0=EX,C0=TX,S0=lJ,_0=IQ,O0=p0,k0=nq,E0=h0.isBrowser("Chrome"),j0=h0.isBrowser("Firefox"),A0=E0||j0?k0:function(e){},T0={onBeforeInput:g0,onBlur:v0,onCompositionStart:y0,onCopy:m0,onCut:b0,onDragOver:w0,onDragStart:x0,onFocus:C0,onInput:S0,onKeyDown:_0,onPaste:O0,onSelect:k0,onMouseUp:A0,onKeyUp:A0},M0=r.unstable_flushControlled;var P0=t,D0=EW,L0=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=D0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return P0.createElement("div",{className:t},P0.createElement("div",{className:D0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(P0.Component),I0=L0,R0=gJ,N0=PZ,B0=fZ,F0=B0.isPlatform("Mac OS X"),z0=F0&&B0.isBrowser("Firefox < 29"),H0=R0.hasCommandModifier,V0=R0.isCtrlKeyCommand;function K0(e){return F0&&e.altKey||V0(e)}var $0=function(e){switch(e.keyCode){case 66:return H0(e)?"bold":null;case 68:return V0(e)?"delete":null;case 72:return V0(e)?"backspace":null;case 73:return H0(e)?"italic":null;case 74:return H0(e)?"code":null;case 75:return F0&&V0(e)?"secondary-cut":null;case 77:case 79:return V0(e)?"split-block":null;case 84:return F0&&V0(e)?"transpose-characters":null;case 85:return H0(e)?"underline":null;case 87:return F0&&V0(e)?"backspace-word":null;case 89:return V0(e)?F0?"secondary-paste":"redo":null;case 90:return function(e){return H0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case N0.RETURN:return"split-block";case N0.DELETE:return function(e){return!F0&&e.shiftKey?null:K0(e)?"delete-word":"delete"}(e);case N0.BACKSPACE:return function(e){return H0(e)&&F0?"backspace-to-start-of-line":K0(e)?"backspace-word":"backspace"}(e);case N0.LEFT:return z0&&H0(e)?"move-selection-to-start-of-block":null;case N0.RIGHT:return z0&&H0(e)?"move-selection-to-end-of-block":null;default:return null}},U0=lT;function W0(){return W0=U0||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}function Z0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G0(e,t,n[t])}))}return e}function q0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var X0=TW,J0=MW,Q0=_q,e2=pY,t2=qY,n2=T0,r2=M0,o2=I0,i2=Rq,a2=JU,s2=t,c2=vG,l2=EG,u2=EW,f2=qV,d2=$0,p2=LG,h2=L$,g2=BV,v2=LZ,y2=TU,m2=fZ.isBrowser("IE"),b2=!m2,w2={edit:n2,composite:Q0,drag:t2,cut:null,render:null},x2=!1,C2=function(e){function t(){return e.apply(this,arguments)||this}Y0(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(s2.Component),S2=function(e){function t(t){var n;return G0(q0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),G0(q0(n),"_clipboard",void 0),G0(q0(n),"_handler",void 0),G0(q0(n),"_dragCount",void 0),G0(q0(n),"_internalDrag",void 0),G0(q0(n),"_editorKey",void 0),G0(q0(n),"_placeholderAccessibilityID",void 0),G0(q0(n),"_latestEditorState",void 0),G0(q0(n),"_latestCommittedEditorState",void 0),G0(q0(n),"_pendingStateFromBeforeInput",void 0),G0(q0(n),"_onBeforeInput",void 0),G0(q0(n),"_onBlur",void 0),G0(q0(n),"_onCharacterData",void 0),G0(q0(n),"_onCompositionEnd",void 0),G0(q0(n),"_onCompositionStart",void 0),G0(q0(n),"_onCopy",void 0),G0(q0(n),"_onCut",void 0),G0(q0(n),"_onDragEnd",void 0),G0(q0(n),"_onDragOver",void 0),G0(q0(n),"_onDragStart",void 0),G0(q0(n),"_onDrop",void 0),G0(q0(n),"_onInput",void 0),G0(q0(n),"_onFocus",void 0),G0(q0(n),"_onKeyDown",void 0),G0(q0(n),"_onKeyPress",void 0),G0(q0(n),"_onKeyUp",void 0),G0(q0(n),"_onMouseDown",void 0),G0(q0(n),"_onMouseUp",void 0),G0(q0(n),"_onPaste",void 0),G0(q0(n),"_onSelect",void 0),G0(q0(n),"editor",void 0),G0(q0(n),"editorContainer",void 0),G0(q0(n),"focus",void 0),G0(q0(n),"blur",void 0),G0(q0(n),"setMode",void 0),G0(q0(n),"exitCurrentMode",void 0),G0(q0(n),"restoreEditorDOM",void 0),G0(q0(n),"setClipboard",void 0),G0(q0(n),"getClipboard",void 0),G0(q0(n),"getEditorKey",void 0),G0(q0(n),"update",void 0),G0(q0(n),"onDragEnter",void 0),G0(q0(n),"onDragLeave",void 0),G0(q0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),G0(q0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=l2.getScrollParent(o),a=e||p2(i),s=a.x,c=a.y;v2(o)||("production"!==process.env.NODE_ENV?g2(!1,"editorNode is not an HTMLElement"):g2(!1)),o.focus(),i===window?window.scrollTo(s,c):c2.setTop(i,c),r||n.update(a2.forceSelection(t,t.getSelection()))}})),G0(q0(n),"blur",(function(){var e=n.editor;e&&(v2(e)||("production"!==process.env.NODE_ENV?g2(!1,"editorNode is not an HTMLElement"):g2(!1)),e.blur())})),G0(q0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Z0({},w2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=Z0({},w2,{edit:a});n._handler=s[e]})),G0(q0(n),"exitCurrentMode",(function(){n.setMode("edit")})),G0(q0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),G0(q0(n),"setClipboard",(function(e){n._clipboard=e})),G0(q0(n),"getClipboard",(function(){return n._clipboard})),G0(q0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),G0(q0(n),"onDragEnter",(function(){n._dragCount++})),G0(q0(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||f2(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Y0(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(r2?r2((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:y2(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return s2.createElement(o2,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,l=e.textAlignment,u=e.textDirectionality,f=u2({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Z0({},J0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:u};return s2.createElement("div",{className:f},this._renderPlaceholder(),s2.createElement("div",{className:u2("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},s2.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:u2({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:d,spellCheck:b2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},s2.createElement(C2,{editor:this,editorState:a}),s2.createElement(e2,W0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!x2&&h2("draft_ods_enabled")&&(x2=!0,i2.initODS()),this.setMode("edit"),m2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(s2.Component);G0(S2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:X0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:d2,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var _2=S2,O2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},k2=O2,E2=zX.strlen;var j2=zX,A2=QH,T2=function(e,t){return e===t},M2=function(e){return!!e},P2=[];var D2=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return A2(o,T2,M2,(function(t,o){var i=e.getText();r.push({offset:j2.strlen(i.slice(0,t)),length:j2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(P2,n.toJS())};function L2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I2=pV,R2=EV,N2=O2,B2=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:E2(i.slice(0,r)),length:E2(i.slice(r,o)),key:Number(t[k2.stringify(a)])})})),n},F2=D2,z2=BV,H2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:F2(e),entityRanges:B2(e,t),data:e.getData().toObject()}},V2=function(e,t,n,r){if(e instanceof I2)n.push(H2(e,t));else{e instanceof R2||("production"!==process.env.NODE_ENV?z2(!1,"block is not a BlockNode"):z2(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L2(e,t,n[t])}))}return e}({},H2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},K2=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=N2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),V2(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(N2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function $2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){U2(e,t,n[t])}))}return e}function U2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W2=qV,Z2=BV,q2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},G2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Z2(!1,"Invalid raw state"):Z2(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Z2(!1,"Invalid tree raw block"):Z2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=$2({},e);q2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?$2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,$2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=q2(e),o=e.depth||0,i=$2({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:W2(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),$2({},e,{blocks:t})}},Y2=$X,X2={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Y2(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Y2(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Y2(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Y2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Y2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Y2(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Y2(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),l=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==process.env.NODE_ENV&&Y2(!0,"%s has no first child",r),!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Y2(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},J2=X2,Q2=JH,e5=zH.List;var t5=function(e,t){var n=e.map((function(e,n){var r=t[n];return Q2.create({style:e,entity:r})}));return e5(n)},n5=zX.substr;var r5=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=n5(e,0,t.offset).length,o=r+n5(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},o5=zX,i5=zH.OrderedSet,a5=o5.substr,s5=i5();var c5=function(e,t){var n=Array(e.length).fill(s5);return t&&t.forEach((function(t){for(var r=a5(e,0,t.offset).length,o=r+a5(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function l5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u5(e,t,n[t])}))}return e}function u5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f5=pV,d5=EV,p5=oU,h5=M$,g5=G2,v5=J2,y5=D$,m5=t5,b5=r5,w5=c5,x5=qV,C5=zH,S5=BV,_5=L$("draft_tree_data_support"),O5=C5.List,k5=C5.Map,E5=C5.OrderedMap,j5=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||x5(),data:k5(o),characterList:A5(e,t)}},A5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return m5(w5(n,o||[]),b5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return l5({},e,{key:t[e.key]})}))))},T5=function(e){return l5({},e,{key:e.key||x5()})},M5=function(e,t,n){var r=t.map((function(e){return l5({},e,{parentRef:n})}));return e.concat(r.reverse())},P5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=_5&&!n?g5.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!_5)return function(e,t){return E5(e.map((function(e){var n=new f5(j5(e,t));return[n.getKey(),n]})))}(n?g5.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(T5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S5(!1));var i=r.children.map(T5),a=new d5(l5({},j5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:O5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=M5([],i,a);s.length>0;){var c=s.pop(),l=c.parentRef,u=l.getChildKeys(),f=u.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S5(!1));break}var p=c.children.map(T5),h=new d5(l5({},j5(c,t),{parent:l.getKey(),children:O5(p.map((function(e){return e.key}))),prevSibling:0===f?null:u.get(f-1),nextSibling:f===u.size-1?null:u.get(f+1)}));n=n.set(h.getKey(),h),s=M5(s,p,h)}return n}),E5())}(r,t);return"production"!==process.env.NODE_ENV&&(v5.isValidTree(o)||("production"!==process.env.NODE_ENV?S5(!1,"Should be a valid tree"):S5(!1))),o},D5=_J;var L5=function(e){var t=D5(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var l=t[c];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},I5=L5;var R5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=I5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},N5={Editor:_2,EditorBlock:dY,EditorState:JU,CompositeDecorator:OW,Entity:M$,EntityInstance:x$,BlockMapBuilder:VH,CharacterMetadata:JH,ContentBlock:pV,ContentState:oU,RawDraftContentState:{},SelectionState:D$,AtomicBlockUtils:CW,KeyBindingUtil:gJ,Modifier:o$,RichUtils:Q1,DefaultDraftBlockRenderMap:TW,DefaultDraftInlineStyle:MW,convertFromHTML:P1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentState"):S5(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=h5.__create(o,i,a||{})})),n}(e),n=P5(e,t),r=n.isEmpty()?new y5:y5.createEmpty(n.first().getKey());return new p5({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:K2,genKey:qV,getDefaultKeyBinding:$0,getVisibleSelectionRect:R5};const B5="FOUND_FIELD",F5="NOT_FOUND",z5="IMMUTABLE",H5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),V5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},K5=new N5.CompositeDecorator([{strategy:(e,t,n)=>V5(e,t,n,B5),component:({children:t})=>e.jsx(H5,{children:t})},{strategy:(e,t,n)=>V5(e,t,n,F5),component:({children:t})=>e.jsx(H5,{error:!0,children:t})}]),$5=(e,t,n)=>{const r=ut.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},U5=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:l}=$5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?B5:F5,mutability:z5,data:{id:i}}}o.text+=a}return N5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return N5.EditorState.createWithContent(r,K5)},W5=(e,t=!0)=>{const n=e.getCurrentContent(),r=N5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ut.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},Z5=e=>{const t=W5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},q5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new N5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return N5.EditorState.forceSelection(e,o)},G5=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},Y5=e=>!!e||null!=e&&""!==e,X5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:l,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:null!=n?n:0,borderBottomRightRadius:null!=n?n:0,cursor:u?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),an,cn,sn),J5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Q5=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),e9=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var t9={Container:X5,Wrapper:J5,Label:Q5,Description:e9,useInputFocus:G5,isInputFilled:Y5};const n9=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:l,mergeFields:u=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:v,borderless:y=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:S,label:_,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,I=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>U5(o,u,w))),{focused:B,handleFocus:F,handleBlur:z}=G5(s,l),[H,V]=t.useState(!1),K=t.useRef(null),$=t.useRef(),U=null!=v?v:g,W=U?U-(y?0:_?29:11):void 0,Z=e=>{N(e);const t=(e=>Z5(e).some((e=>e.type===F5)))(e);V(t);const n=W5(e),r=e.getLastChangeType();i&&i(n,t,r)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=$5(e,t,r),l=c?B5:F5,u=i.createEntity(l,z5,{id:o}).getLastCreatedEntityKey(),f=N5.Modifier.insertText(i,a,s,void 0,u),d=N5.EditorState.push(n,f,"insert-characters");return N5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,u,R,w);Z(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=q5(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:G})));t.useEffect((()=>{W5(R)!==o&&(e=>{const t=R.getSelection(),n=U5(e,u,w),r=q5(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),t.useEffect((()=>{$.current=u}),[]),t.useEffect((()=>{const{current:e}=$,t=ut.isEqual(e,u),n=Z5(R);if(!t&&n.length>0){$.current=u;const e=U5(o,u,w);Z(e)}}),[u]);return e.jsxs(r9,{onClick:e=>{b||e.stopPropagation();R.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:y||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:S,filled:Y5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!_,hideEditor:!Y5(o)&&!!_&&!B,children:[e.jsxs(J5,{readOnly:b,children:[_&&e.jsx(Q5,{filled:Y5(o),focused:B,disabled:O,children:_}),e.jsx(N5.Editor,Object.assign({ref:K,editorState:R,onChange:Z,placeholder:f,readOnly:b,handleReturn:e=>{const t=N5.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=N5.convertFromRaw({blocks:[o],entityMap:{}}),a=N5.EditorState.createWithContent(i,K5).getCurrentContent().getBlockMap(),s=N5.Modifier.replaceWithFragment(n,r,a);return N5.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:F,onBlur:z},I))]}),d&&e.jsx(e9,{invalid:p,children:d})]})})),r9=W(X5)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var o9={exports:{}};o9.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,c],f=0;(l=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=l(i),s=l(n(7)),c=n(12);function l(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 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}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),l=s.phoneNumber,u=void 0===l?"":l,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:u,cursorPosition:d,key:t}),r.props.onChange(u)}},f(r,n)}return function(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)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(u(e={},i,(function(e){return t.textInput=e})),u(e,"type","tel"),u(e,"value",n),u(e,"onKeyDown",this.handleKeyDown),u(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var u=e(a,l,r,o,i+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var f=u(a,l,r,o,i+"."+l,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],l=m(c);if("object"!==l)return new h("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var f in u){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,l,u,d,p,g,v){if(d=d||f,g=g||u,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=d+":"+u;!r[y]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[y]=!0,a++)}return null==l[u]?c?null===l[u]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,p,g)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!y(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
38
|
+
*/;const TH=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(MH,{onClick:()=>{lz(r),i(!0)},copied:o,children:o?e.jsx(fn,{name:"check-circle",color:a.success}):e.jsx(fn,{name:"copy",color:s})})},MH=W.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),PH=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(DH,Object.assign({},i,{children:[e.jsx(LH,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(IH,{children:r}),e.jsx(TH,{content:r})]}))},DH=W.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),LH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),IH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),RH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),cn),NH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),BH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),FH=W.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var zH={exports:{}};zH.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return s(e)?e:q(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,y=1<<v,m=y-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function _(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,L=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=R||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!U(e)}function K(e){return e&&"function"==typeof e.next}function $(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(R&&e[R]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():K(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):K(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?q(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ye(o[1],e)&&(n||ye(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function _e(){}function Oe(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._iterable),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):H()}))},be.prototype.equals=function(e){return e instanceof be?ye(this._value,e._value):me(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(Ce,n),t(Se,Ce),t(_e,Ce),t(Oe,Ce),Ce.Keyed=Se,Ce.Indexed=_e,Ce.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Re)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function $e(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t($e,Se),$e.prototype.toString=function(){return this.__toString("Map {","}")},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return it(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},$e.prototype.remove=function(e){return it(this,e,b)},$e.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},$e.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,Cn(e),t,n);return r===b?void 0:r},$e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},$e.prototype.merge=function(){return dt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},$e.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},$e.prototype.mergeDeep=function(){return dt(this,pt,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},$e.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},$e.prototype.sort=function(e){return Vt(fn(this,e))},$e.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new et(this,e,t)},$e.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},$e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},$e.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=$e.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(S(s),S(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new _);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ye(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ye(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function vt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,l=o?b:e.get(c,b),u=vt(l,t,n,r);return u===l?e:u===b?e.remove(c):(o?ot():e).set(c,u)}function yt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return lt(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[yt(i&o-1)].get(e+v,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,l=this.bitmap,u=0!=(l&c);if(!u&&o===b)return this;var f=yt(l&c-1),d=this.nodes,p=u?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!u&&h&&d.length>=Ct)return ft(e,d,l,s,h);if(u&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(u&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,y=u?h?l:l^c:l|c,w=u?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=y,this.nodes=w,this):new Ye(e,y,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+v,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,l=this.nodes,u=l[s];if(c&&!u)return this;var f=at(u,e,t+v,n,r,o,i,a);if(f===u)return this;var d=this.count;if(u){if(!f&&--d<St)return ut(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(S(a),S(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===u)return new Qe(e,this.keyHash,c[1^l]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ye(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),ct(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=y/4,Ct=y/2,St=y/4;function _t(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(r),r>0&&r<y?Dt(0,r,v,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(_t,_e),_t.of=function(){return this(arguments)},_t.prototype.toString=function(){return this.__toString("List [","]")},_t.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},_t.prototype.set=function(e,t){return It(this,e,t)},_t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},_t.prototype.insert=function(e,t){return this.splice(e,0,t)},_t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},_t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},_t.prototype.pop=function(){return Ft(this,0,-1)},_t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},_t.prototype.shift=function(){return Ft(this,1)},_t.prototype.merge=function(){return zt(this,void 0,arguments)},_t.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},_t.prototype.mergeDeep=function(){return zt(this,pt,arguments)},_t.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},_t.prototype.setSize=function(e){return Ft(this,0,e)},_t.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},_t.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?H():z(e,n++,t)}))},_t.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},_t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},_t.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=_t.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=qe.setIn,Et.deleteIn=Et.removeIn=qe.removeIn,Et.update=qe.update,Et.updateIn=qe.updateIn,Et.mergeIn=qe.mergeIn,Et.mergeDeepIn=qe.mergeDeepIn,Et.withMutations=qe.withMutations,Et.asMutable=qe.asMutable,Et.asImmutable=qe.asImmutable,Et.wasAltered=qe.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>y&&(l=y),function(){if(c===l)return Mt;var e=t?--l:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>y&&(u=y),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(l===u)return Mt;var n=t?--u:l++;s=a(c&&c[n],o-v,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Lt(){return At||(At=Dt(0,0,v))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Rt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var l=e&&e.array[s],u=Rt(l,t,n-v,r,o,i);return u===l?e:((a=Nt(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(S(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=v;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,u=0;a+u<0;)l=new jt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=v);u&&(a+=u,o+=u,s+=u,i+=u);for(var f=Ht(i),d=Ht(s);d>=1<<c+v;)l=new jt(l&&l.array.length?[l]:[],r),c+=v;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),y=c;y>v;y-=v){var b=f>>>y&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>v&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,c=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(u=0;l;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(u+=(1<<c)*w),c-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,c,a-u)),l&&d<f&&(l=l.removeAfter(r,c,d-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],l=o(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<y?0:e-1>>>v<<v}function Vt(e){return null==e?Ut():Kt(e)?e:Ut().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return Ue(e)&&u(e)}function $t(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ut(){return Tt||(Tt=$t(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):$t(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?D:L,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(o,r?l:s++,u,i)}}))},o}function tn(e,t,n){var r=$e().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(u(e)?Vt():$e()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=bn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?r===I?e:z(r,c,l,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,l=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return r||o===L?e:z(o,l++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],u=f[1],c&&(c=t.call(n,u,i,a))}while(c);return o===I?e:z(o,i,u,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new te(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,l){var u=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?c(e,l+1):!1===r(e,n?o:i++,u)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===I&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,c++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):c(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),$(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?q:c(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=$(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=$(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=$e(i)},o=r.prototype=Object.create(_n);return o.constructor=r,r}t(Vt,$e),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ut()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?$t(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?yn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?yn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,q),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var _n=Sn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Rn():Tn(e)&&!u(e)?e:Rn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}_n[g]=_n.remove,_n.deleteIn=_n.removeIn=qe.removeIn,_n.merge=qe.merge,_n.mergeWith=qe.mergeWith,_n.mergeIn=qe.mergeIn,_n.mergeDeep=qe.mergeDeep,_n.mergeDeepWith=qe.mergeDeepWith,_n.mergeDeepIn=qe.mergeDeepIn,_n.setIn=qe.setIn,_n.update=qe.update,_n.updateIn=qe.updateIn,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&u(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=qe.withMutations,Dn.asMutable=qe.asMutable,Dn.asImmutable=qe.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn(Ut()))}function Kn(e){return null==e?Gn():$n(e)?e:Gn().unshiftAll(e)}function $n(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,_e),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Kn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return _e.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Kn.isStack=$n;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Kn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(s(this)?this.valueSeq():this)},toList:function(){return _t(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ye(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,ln(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ye(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(_e,o.prototype),Yn(Oe,i.prototype);var lr={Iterable:n,Seq:Z,Collection:Ce,Map:$e,OrderedMap:Vt,List:_t,Stack:Kn,Set:An,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ye,fromJS:pe};return lr}();var HH=zH.exports,VH=HH.OrderedMap,KH={createFromArray:function(e){return VH(e.map((function(e){return[e.getKey(),e]})))}};var $H=HH,UH=$H.Map,WH=$H.OrderedSet,ZH=$H.Record,qH=WH(),GH={style:qH,entity:null},YH=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return XH;var t=UH({style:qH,entity:null}).merge(e),n=JH.get(t);if(n)return n;var o=new r(t);return JH=JH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?WH(t):t,entity:Array.isArray(n)?WH(n):n})},r}(ZH(GH)),XH=new YH,JH=UH([[UH(GH),XH]]);YH.EMPTY=XH;var QH=YH;var eV=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var tV=QH,nV=eV,rV=HH,oV=rV.List,iV=rV.Map,aV=rV.OrderedSet,sV=rV.Record,cV=rV.Repeat,lV=aV(),uV=sV({key:"",type:"unstyled",text:"",characterList:oV(),depth:0,data:iV()}),fV=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=oV(cV(tV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():lV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){nV(this.getCharacterList(),dV,e,t)},o.findEntityRanges=function(e,t){nV(this.getCharacterList(),pV,e,t)},r}(uV);function dV(e,t){return e.getStyle()===t.getStyle()}function pV(e,t){return e.getEntity()===t.getEntity()}var hV=fV;var gV=QH,vV=eV,yV=HH,mV=yV.List,bV=yV.Map,wV=yV.OrderedSet,xV=yV.Record,CV=yV.Repeat,SV=wV(),_V={parent:null,characterList:mV(),data:bV(),depth:0,key:"",text:"",type:"unstyled",children:mV(),prevSibling:null,nextSibling:null},OV=function(e,t){return e.getStyle()===t.getStyle()},kV=function(e,t){return e.getEntity()===t.getEntity()},EV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_V;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=mV(CV(gV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():SV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){vV(this.getCharacterList(),OV,e,t)},o.findEntityRanges=function(e,t){vV(this.getCharacterList(),kV,e,t)},r}(xV(_V)),jV=EV,AV=QH,TV=HH.Map;function MV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(TV([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=c):(o=t===i?a:0,l=t===s?c:e.getLength());for(var u,f=e.getCharacterList();o<l;)u=f.get(o),f=f.set(o,r?AV.applyStyle(u,n):AV.removeStyle(u,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var PV={add:function(e,t,n){return MV(e,t,n,!0)},remove:function(e,t,n){return MV(e,t,n,!1)}},DV=QH;var LV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,DV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},IV=HH;var RV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(IV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return LV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},NV={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c||(c=s),l=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:c!==r&&c--),{start:c,end:l}}},BV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var FV=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(BV(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},zV=FV;var HV=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?zV(!1,"Entity key not found in this range."):zV(!1)),n},VV=NV,KV=HV,$V=FV;function UV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),l=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===l)return n;var f=KV(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?$V(!1,"There should only be one entity range within this removal range."):$V(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=VV.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var WV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var l=r;if(s&&s===c)l=UV(e,t,l,o,s,!0,!0);else if(s&&c){var u=UV(e,t,l,o,s,!1,!0),f=UV(e,n,l,o,c,!1,!1);l=l.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=UV(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=UV(e,n,l,o,c,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},ZV={},qV=Math.pow(2,24);var GV=function(){for(var e;void 0===e||ZV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*qV).toString(32);return ZV[e]=!0,e},YV=jV,XV=GV,JV=HH.OrderedMap,QV=function(e){return e.first()instanceof YV?function(e){var t,n={};return JV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),l=r.getParentKey(),u=XV();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return JV(e.toArray().map((function(e){var t=XV();return[t,e.set("key",t)]})))}(e)},eK=QH,tK=eV,nK=FV;function rK(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,l=function(e,t,n){var r;return tK(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?nK(!1,"Removal range must exist within character list."):nK(!1)),r}(r,s,n),u=l.start,f=l.end;u<f;)c=r.get(u),r=r.set(u,eK.applyEntity(c,null)),u++;return t.set("characterList",r)}return t}var oK=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=rK(r,s,a);c!==s&&(o[i]=c);var l=t.getEndKey(),u=t.getEndOffset(),f=n.get(l);i===l&&(f=c);var d=rK(r,f,u);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},iK=QV,aK=oK,sK=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=aK(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),l=s.indexOf(o)+1;return iK(a.slice(c,l).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var cK=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},lK=KH,uK=jV,fK=cK,dK=FV,pK=QV,hK=HH.List,gK=function(e,t,n,r,o,i){var a=n.first()instanceof uK,s=[],c=r.size,l=n.get(o),u=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=lK.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var u=e.get(s).getChildKeys(),f=u.indexOf(o)+1,d=u.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],hK(d))}}))}(g,0,l,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},vK=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?dK(!1,"`insertFragment` should only be called with a collapsed selection state."):dK(!1));var o=e.getBlockMap(),i=pK(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof uK&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?dK(!1,"`insertFragment` should not be called when a container node is selected."):dK(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),l=s.getCharacterList(),u=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:fK(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,t,o,i.first(),a,s,r):gK(e,t,o,i,a,s)},yK=cK,mK=FV,bK=HH.Repeat;var wK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?mK(!1,"`insertText` should only be called with a collapsed range."):mK(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),l=c.getText(),u=c.merge({text:l.slice(0,s)+n+l.slice(s,c.getLength()),characterList:yK(c.getCharacterList(),bK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},xK=HH.Map;var CK=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(xK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},SK=jV,_K=function(e,t){if(!(e instanceof SK))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},OK=jV,kK=_K,EK=HH;EK.List;var jK=EK.Map,AK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},TK=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},MK=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},PK=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},DK=function(e,t,n,r){return e.withMutations((function(o){if(AK(t.getKey(),o,(function(e){return e.merge({nextSibling:MK(e,o,r),prevSibling:PK(e,o,r)})})),AK(n.getKey(),o,(function(e){return e.merge({nextSibling:MK(e,o,r),prevSibling:PK(e,o,r)})})),TK(t.getKey(),r).forEach((function(e){return AK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:MK(e,o,r),prevSibling:PK(e,o,r)})}))})),AK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),AK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:MK(e,o,r)})})),AK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:PK(e,o,r)})})),AK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),TK(n.getKey(),r).forEach((function(e){AK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:MK(e,o,r),prevSibling:PK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=kK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?kK(o,t):null}return n}(n,r).forEach((function(e){return AK(e,o,(function(e){return e.merge({nextSibling:MK(e,o,r),prevSibling:PK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();AK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),AK(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){AK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);AK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}AK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},LK=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},IK=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),l=r.get(a),u=c instanceof OK,f=[];if(u){var d=l.getChildKeys(),p=TK(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(TK(kK(l,r),r))}n=c===l?LK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=u&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?jK([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(jK([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return u&&c!==l&&(v=DK(v,c,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},RK=jV,NK=GV,BK=HH,FK=FV,zK=CK,HK=BK.List,VK=BK.Map,KK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},$K=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?FK(!1,"Selection range must be collapsed."):FK(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return zK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),l=NK(),u=o instanceof RK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:c.slice(s),data:VK()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?FK(!1,"ContentBlockNode must not have children"):FK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();KK(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:HK(i)})})),KK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),KK(r,e,(function(e){return e.merge({nextSibling:o})})),KK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},UK=QH,WK=PV,ZK=RV,qK=WV,GK=sK,YK=vK,XK=wK,JK=FV,QK=CK,e$=oK,t$=IK,n$=$K,r$=HH.OrderedSet,o$={replaceText:function(e,t,n,r,o){var i=e$(e,t),a=t$(i,t),s=UK.create({style:r||r$(),entity:o||null});return XK(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?JK(!1,"Target range must be collapsed for `insertText`."):JK(!1)),o$.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=GK(e,t),o=o$.removeRange(e,t,"backward");return o$.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=e$(e,t),i=t$(o,t);return YK(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),l=i.getEntityAt(s),u=a.getEntityAt(c-1);if(r===o&&l&&l===u){var f=qK(e.getEntityMap(),i,a,t,n);return t$(e,f)}var d=e$(e,t);return t$(d,t)},splitBlock:function(e,t){var n=e$(e,t),r=t$(n,t);return n$(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return WK.add(e,t,n)},removeInlineStyle:function(e,t,n){return WK.remove(e,t,n)},setBlockType:function(e,t,n){return QK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return QK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return QK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=e$(e,t);return ZK(r,t,n)}},i$=o$;var a$=function(e){return Object.keys(e).map((function(t){return e[t]}))};function s$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c$=eV,l$=a$,u$=HH,f$=u$.List,d$=u$.Repeat,p$=u$.Record,h$=function(){return!0},g$=p$({start:null,end:null}),v$=p$({start:null,end:null,decoratorKey:null,leaves:null}),y$={generate:function(e,t,n){var r=t.getLength();if(!r)return f$.of(new v$({start:0,end:0,decoratorKey:null,leaves:f$.of(new g$({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):f$(d$(null,r)),a=t.getCharacterList();return c$(i,b$,h$,(function(e,t){o.push(new v$({start:e,end:t,decoratorKey:i.get(e),leaves:m$(a.slice(e,t).toList(),e)}))})),f$(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new v$(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s$(e,t,n[t])}))}return e}({},n,{leaves:null!=t?f$(Array.isArray(t)?t:l$(t)).map((function(e){return g$(e)})):null}))}};function m$(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return c$(r,b$,h$,(function(e,r){n.push(new g$({start:e+t,end:r+t}))})),f$(n)}function b$(e,t){return e===t}var w$=y$;var x$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,HH.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),C$=x$;var S$=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function _$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O$=C$,k$=FV,E$=S$,j$=(0,HH.Map)(),A$=E$();function T$(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var M$={getLastCreatedEntityKey:function(){return T$("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),M$.__getLastCreatedEntityKey()},create:function(e,t,n){return T$("DraftEntity.create","contentState.createEntity"),M$.__create(e,t,n)},add:function(e){return T$("DraftEntity.add","contentState.addEntity"),M$.__add(e)},get:function(e){return T$("DraftEntity.get","contentState.getEntity"),M$.__get(e)},__getAll:function(){return j$},__loadWithEntities:function(e){j$=e,A$=E$()},mergeData:function(e,t){return T$("DraftEntity.mergeData","contentState.mergeEntityData"),M$.__mergeData(e,t)},replaceData:function(e,t){return T$("DraftEntity.replaceData","contentState.replaceEntityData"),M$.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return A$},__create:function(e,t,n){return M$.__add(new O$({type:e,mutability:t,data:n||{}}))},__add:function(e){return A$=E$(),j$=j$.set(A$,e),A$},__get:function(e){var t=j$.get(e);return t||("production"!==process.env.NODE_ENV?k$(!1,"Unknown DraftEntity key: %s.",e):k$(!1)),t},__mergeData:function(e,t){var n=M$.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_$(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return j$=j$.set(e,o),o},__replaceData:function(e,t){var n=M$.__get(e).set("data",t);return j$=j$.set(e,n),n}},P$=M$;var D$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,HH.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),L$=D$,I$=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},R$=new RegExp("\r","g");var N$=function(e){return e.replace(R$,"")};function B$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F$(e,t,n[t])}))}return e}function F$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z$=KH,H$=QH,V$=hV,K$=jV,$$=P$,U$=L$,W$=GV,Z$=a$,q$=I$,G$=HH,Y$=N$,X$=G$.List,J$=G$.Record,Q$=G$.Repeat,eU=G$.Map,tU=G$.OrderedMap,nU=J$({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),rU=q$("draft_tree_data_support")?K$:V$,oU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return $$},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return $$.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return $$.__create(e,t,n),this},o.mergeEntityData=function(e,t){return $$.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return $$.__replaceData(e,t),this},o.addEntity=function(e){return $$.__add(e),this},o.getEntity=function(e){return $$.__get(e)},o.getAllEntities=function(){return $$.__getAll()},o.loadWithEntities=function(e){return $$.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=z$.createFromArray(n),i=o.isEmpty()?new U$:U$.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||$$,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=Y$(e),new rU({key:W$(),text:e,type:"unstyled",characterList:X$(Q$(H$.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(B$({},e,{blockMap:tU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new U$(e.selectionBefore),selectionAfter:new U$(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new rU(B$({},e,{data:eU(e.data),characterList:null!=t?X$((Array.isArray(t)?t:Z$(t)).map((function(e){return H$.fromJS(e)}))):void 0}))},r}(nU),iU=oU,aU=FV,sU="LTR",cU="RTL",lU=null;function uU(e){return e===sU||e===cU}function fU(e){return uU(e)||("production"!==process.env.NODE_ENV?aU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):aU(!1)),e===sU?"ltr":"rtl"}function dU(e){lU=e}var pU={NEUTRAL:"NEUTRAL",LTR:sU,RTL:cU,isStrong:uU,getHTMLDir:fU,getHTMLDirIfDifferent:function(e,t){return uU(e)||("production"!==process.env.NODE_ENV?aU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):aU(!1)),uU(t)||("production"!==process.env.NODE_ENV?aU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):aU(!1)),e===t?null:fU(e)},setGlobalDir:dU,initGlobalDir:function(){dU(sU)},getGlobalDir:function(){return lU||this.initGlobalDir(),lU||("production"!==process.env.NODE_ENV?aU(!1,"Global direction not set."):aU(!1)),lU}},hU=pU,gU=FV,vU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",yU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",mU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+vU+yU+"]"),bU=new RegExp("["+vU+yU+"]");function wU(e){var t=mU.exec(e);return null==t?null:t[0]}function xU(e){var t=wU(e);return null==t?hU.NEUTRAL:bU.exec(t)?hU.RTL:hU.LTR}function CU(e,t){if(t=t||hU.NEUTRAL,!e.length)return t;var n=xU(e);return n===hU.NEUTRAL?t:n}function SU(e,t){return t||(t=hU.getGlobalDir()),hU.isStrong(t)||("production"!==process.env.NODE_ENV?gU(!1,"Fallback direction must be a strong direction"):gU(!1)),CU(e,t)}var _U={firstStrongChar:wU,firstStrongCharDir:xU,resolveBlockDir:CU,getDirection:SU,isDirectionLTR:function(e,t){return SU(e,t)===hU.LTR},isDirectionRTL:function(e,t){return SU(e,t)===hU.RTL}};function OU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU,EU=_U,jU=pU,AU=FV,TU=function(){function e(e){OU(this,"_defaultDir",void 0),OU(this,"_lastDir",void 0),e?jU.isStrong(e)||("production"!==process.env.NODE_ENV?AU(!1,"Default direction must be a strong direction (LTR or RTL)"):AU(!1)):e=jU.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=EU.getDirection(e,this._lastDir),this._lastDir},e}(),MU=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},PU=TU,DU=HH,LU=MU,IU=DU.OrderedMap;function RU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NU(e,t,n[t])}))}return e}function NU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BU=w$,FU=iU,zU={getDirectionMap:function(e,t){kU?kU.reset():kU=new PU;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return LU(kU).getDirection(e.getText())})),o=IU(n.keySeq().zip(r));return null!=t&&DU.is(t,o)?t:o}},HU=L$,VU=HH,KU=VU.OrderedSet,$U=VU.Record,UU=VU.Stack,WU=VU.OrderedMap,ZU=VU.List,qU=$U({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:UU(),selection:null,treeMap:null,undoStack:UU()}),GU=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(FU.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:UU(),redoStack:UU(),decorator:n||null,selection:HU.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=RU({},e,{treeMap:XU(n,e.decorator),directionMap:zU.getDirectionMap(n)});return new t(new qU(r))},t.fromJS=function(e){return new t(new qU(RU({},e,{directionMap:null!=e.directionMap?WU(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?KU(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?FU.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?UU(e.redoStack.map((function(e){return FU.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new HU(e.selection):e.selection,treeMap:null!=e.treeMap?WU(e.treeMap).map((function(e){return ZU(e).map((function(e){return BU.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?UU(e.undoStack.map((function(e){return FU.fromJS(e)}))):e.undoStack,currentContent:FU.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return BU.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):XU(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return BU.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){NU(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return JU(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return JU(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return YU(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),YU(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new HU({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=zU.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),l=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var f={currentContent:l,directionMap:i,undoStack:c,redoStack:UU(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=zU.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=zU.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function YU(e,t,n){return GU.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function XU(e,t){return e.getBlockMap().map((function(n){return BU.generate(e,n,t)})).toOrderedMap()}function JU(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):KU()}var QU=GU,eW=jV,tW=_K,nW=HH,rW=FV,oW=nW.OrderedMap,iW=nW.List,aW=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},sW=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),l=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){aW(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),aW(u,e,(function(e){return e.merge({nextSibling:l})})),aW(l,e,(function(e){return e.merge({prevSibling:u})})),aW(d,e,(function(e){return e.merge({prevSibling:a})})),aW(p,e,(function(e){return e.merge({nextSibling:a})})),aW(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:iW(o)})})),aW(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function cW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lW(e,t,n[t])}))}return e}function lW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uW=KH,fW=QH,dW=hV,pW=jV,hW=i$,gW=QU,vW=GV,yW=HH,mW=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?rW(!1,"Replacing blocks is not supported."):rW(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?rW(!1,"Block cannot be moved next to itself."):rW(!1));var a=e.getBlockMap(),s=t instanceof eW,c=[t],l=a.delete(i);s&&(c=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=tW(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var u=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=oW();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?rW(!1,"Block cannot be moved next to itself."):rW(!1)),p=u.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?rW(!1,"Block cannot be moved next to itself."):rW(!1)),p=u.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:sW(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},bW=I$("draft_tree_data_support"),wW=bW?pW:dW,xW=yW.List,CW=yW.Repeat,SW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=hW.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=hW.splitBlock(i,a),c=s.getSelectionAfter(),l=hW.setBlockType(s,c,"atomic"),u=fW.create({entity:t}),f={key:vW(),type:"atomic",text:n,characterList:xW(CW(u,n.length))},d={key:vW(),type:"unstyled"};bW&&(f=cW({},f,{nextSibling:d.key}),d=cW({},d,{prevSibling:f.key}));var p=[new wW(f),new wW(d)],h=uW.createFromArray(p),g=hW.replaceWithFragment(l,c,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return gW.push(e,v,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=mW(i,t,s,r)}else{var c=hW.removeRange(i,n,"backward"),l=c.getSelectionAfter(),u=c.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=mW(c,t,u,"before");else if(l.getEndOffset()===u.getLength())o=mW(c,t,u,"after");else{var f=hW.splitBlock(c,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=mW(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return gW.push(e,h,"move-block")}};var _W=HH.List,OW=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),_W(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var kW=OW;function EW(e){return e.replace(/\//g,"-")}var jW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(EW).join(" "):Array.prototype.map.call(arguments,EW).join(" ")},AW=t,TW=jW,MW=(0,HH.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:AW.createElement("ul",{className:TW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:AW.createElement("ol",{className:TW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:AW.createElement("pre",{className:TW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),PW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},DW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="major",l="model",u="name",f="type",d="vendor",p="version",h="architecture",g="console",v="mobile",y="tablet",m="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",_="BlackBerry",O="Browser",k="Chrome",E="Firefox",j="Google",A="Huawei",T="LG",M="Microsoft",P="Motorola",D="Opera",L="Samsung",I="Sharp",R="Sony",N="Xiaomi",B="Zebra",F="Facebook",z="Chromium OS",H="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===s&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,s,c,l,u,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)u=l[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):r:this[c[0]]=u?c[1].call(this,u,c[2]):r:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):r):this[c]=u||r;f+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(K(t[n][o],e))return"?"===n?r:n}else if(K(t[n],e))return"?"===n?r:n;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,F],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,L],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,L],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,C],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,C],[f,y]],[/(macintosh);/i],[l,[d,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,A],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,A],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,P],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,T],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,T],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,v]],[/(pixel c)\b/i],[l,[d,j],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,j],[f,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,R],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,R],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,x],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,x],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,_],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,v]],[/(nexus 9)/i],[l,[d,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[f,y]],[/(surface duo)/i],[l,[d,M],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,v]],[/(u304aa)/i],[l,[d,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,y]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,y]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,v]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[d,l,[f,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,v]],[/smart-tv.+(samsung)/i],[d,[f,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,L],[f,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,m]],[/(apple) ?tv/i],[d,[l,C+" TV"],[f,m]],[/crkey/i],[[l,k+"cast"],[d,j],[f,m]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,x],[f,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,m]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,R],[f,m]],[/(mitv-\w{5}) bui/i],[l,[d,N],[f,m]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,U],[l,U],[f,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,g]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[l,[d,R],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,g]],[/((pebble))app/i],[d,l,[f,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,C],[f,b]],[/droid.+; (glass) \d/i],[l,[d,j],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,b]],[/(quest( 2| pro)?)/i],[l,[d,F],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,x],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,m=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,x=g&&g.userAgent==m;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,m,w.browser),t[c]=typeof(e=t[p])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,m,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,W.call(e,m,w.device),x&&!e[f]&&b&&b.mobile&&(e[f]=v),x&&"Macintosh"==e[l]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[l]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return m},this.setUA=function(e){return m=typeof e===s&&e.length>500?U(e,500):e,this},this.setUA(m),this};Y.VERSION="0.7.37",Y.BROWSER=V([u,p,c]),Y.CPU=V([h]),Y.DEVICE=V([l,d,f,g,v,m,y,b,w]),Y.ENGINE=Y.OS=V([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:st)}(DW,DW.exports);var LW="Unknown",IW={"Mac OS":"Mac OS X"};var RW,NW=(new(0,DW.exports)).getResult(),BW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(NW.browser.version),FW={browserArchitecture:NW.cpu.architecture||LW,browserFullVersion:NW.browser.version||LW,browserMinorVersion:BW.minor||LW,browserName:NW.browser.name||LW,browserVersion:NW.browser.major||LW,deviceName:NW.device.model||LW,engineName:NW.engine.name||LW,engineVersion:NW.engine.version||LW,platformArchitecture:NW.cpu.architecture||LW,platformName:(RW=NW.os.name,IW[RW]||RW||LW),platformVersion:NW.os.version||LW,platformFullVersion:NW.os.version||LW},zW=FV,HW=/\./,VW=/\|\|/,KW=/\s+\-\s+/,$W=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,UW=/^(\d*)(.*)/;function WW(e,t){var n=e.split(VW);return n.length>1?n.some((function(e){return rZ.contains(e,t)})):function(e,t){var n=e.split(KW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?zW(!1,'the "-" operator expects exactly 2 operands'):zW(!1)),1===n.length)return ZW(n[0],t);var r=n[0],o=n[1];return JW(r)&&JW(o)||("production"!==process.env.NODE_ENV?zW(!1,'operands to the "-" operator must be simple (no modifiers)'):zW(!1)),ZW(">="+r,t)&&ZW("<="+o,t)}(e=n[0].trim(),t)}function ZW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(HW),r=YW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return qW(n,i);case"<=":return function(e,t){var n=nZ(e,t);return-1===n||0===n}(n,i);case">=":return GW(n,i);case">":return function(e,t){return 1===nZ(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);XW(i)&&(r[o]=i+1+"");return GW(e,n)&&qW(e,r)}(n,i);default:return function(e,t){return 0===nZ(e,t)}(n,i)}}function qW(e,t){return-1===nZ(e,t)}function GW(e,t){var n=nZ(e,t);return 1===n||0===n}function YW(e){var t=e.split(HW),n=t[0].match($W);return n||("production"!==process.env.NODE_ENV?zW(!1,"expected regex to match but it did not"):zW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function XW(e){return!isNaN(e)&&isFinite(e)}function JW(e){return!YW(e).modifier}function QW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function eZ(e,t){var n=e.match(UW)[1],r=t.match(UW)[1],o=parseInt(n,10),i=parseInt(r,10);return XW(o)&&XW(i)&&o!==i?tZ(o,i):tZ(e,t)}function tZ(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?zW(!1,'"a" and "b" must be of the same type'):zW(!1)),e>t?1:e<t?-1:0}function nZ(e,t){for(var n=function(e,t){QW(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return QW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=eZ(r[i],o[i]);if(a)return a}return 0}var rZ={contains:function(e,t){return WW(e.trim(),t.trim())}},oZ=rZ,iZ=Object.prototype.hasOwnProperty;var aZ=function(e,t,n){if(!e)return null;var r={};for(var o in e)iZ.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var sZ=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},cZ=FW,lZ=oZ;function uZ(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,lZ.contains(o,t))}function fZ(e){return"Windows"===cZ.platformName?e.replace(/^\s*NT/,""):e}var dZ=aZ({isBrowser:function(e){return uZ(cZ.browserName,cZ.browserFullVersion,e)},isBrowserArchitecture:function(e){return uZ(cZ.browserArchitecture,null,e)},isDevice:function(e){return uZ(cZ.deviceName,null,e)},isEngine:function(e){return uZ(cZ.engineName,cZ.engineVersion,e)},isPlatform:function(e){return uZ(cZ.platformName,cZ.platformFullVersion,e,fZ)},isPlatformArchitecture:function(e){return uZ(cZ.platformArchitecture,null,e)}},sZ);var pZ=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var hZ=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},gZ=hZ;var vZ=function e(t){if(gZ(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},yZ=pZ,mZ=vZ;var bZ=function(e){for(var t=e;t&&t!==yZ(e).documentElement;){var n=mZ(t);if(null!=n)return n;t=t.parentNode}return null};var wZ=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function xZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CZ=dZ,SZ=bZ,_Z=wZ,OZ=FV,kZ=MU,EZ=HH.Map,jZ={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},AZ=CZ.isBrowser("IE <= 11"),TZ=function(){function e(e){var t=this;xZ(this,"observer",void 0),xZ(this,"container",void 0),xZ(this,"mutations",void 0),xZ(this,"onCharData",void 0),this.container=e,this.mutations=EZ();var n=_Z(e);n.MutationObserver&&!AZ?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?OZ(!1,"Expected target to be an instance of Node"):OZ(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,jZ):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=EZ(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return AZ?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=kZ(SZ(e.target));this.mutations=this.mutations.set(n,t)}},e}(),MZ="-",PZ={encode:function(e,t,n){return e+MZ+t+MZ+n},decode:function(e){var t=e.split(MZ).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(MZ),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},DZ={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},LZ={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var IZ=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},RZ=FV,NZ=IZ;var BZ=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?RZ(!1,"Missing editorNode"):RZ(!1)),NZ(t.firstChild)||("production"!==process.env.NODE_ENV?RZ(!1,"editorNode.firstChild is not an HTMLElement"):RZ(!1)),t.firstChild},FZ=PZ,zZ=MU;var HZ=function(e,t,n,r,o){var i=zZ(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=FZ.decode(t),s=a.blockKey,c=e.getBlockTree(s),l=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),u=FZ.decode(r),f=u.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,y=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===y)return i;var m=!1;if(s===f){var b=l.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:y,isBackward:m})},VZ=bZ,KZ=vZ,$Z=HZ,UZ=FV,WZ=hZ,ZZ=MU;function qZ(e,t,n){var r=t,o=VZ(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?UZ(!1,"Unknown node in selection range."):UZ(!1)),e===r)&&(r=r.firstChild,WZ(r)||("production"!==process.env.NODE_ENV?UZ(!1,"Invalid DraftEditorContents node."):UZ(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?UZ(!1,"Invalid DraftEditorContents structure."):UZ(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(WZ(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||KZ(e.firstChild));)e=e.firstChild;return e}(r);i=ZZ(KZ(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,l=null;if(KZ(s)){var u=function(e){for(;e.lastChild&&(WZ(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||KZ(e.lastChild));)e=e.lastChild;return e}(s);c=ZZ(KZ(u)),l=GZ(u)}else c=ZZ(o),l=GZ(s);return{key:c,offset:l}}function GZ(e){var t=e.textContent;return"\n"===t?0:t.length}var YZ=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:$Z(e,ZZ(VZ(n)),r,ZZ(VZ(o)),i),needsRecovery:!1};var c=null,l=null,u=!0;return a?(c={key:ZZ(VZ(n)),offset:r},l=qZ(t,o,i)):s?(l={key:ZZ(VZ(o)),offset:i},c=qZ(t,n,r)):(c=qZ(t,n,r),l=qZ(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:$Z(e,c.key,c.offset,l.key,l.offset),needsRecovery:u}},XZ=YZ;var JZ=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:XZ(e,t,r,o,i,a)},QZ=LZ,eq=QU,tq=BZ,nq=JZ;var rq=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();QZ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=nq(n,tq(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?eq.forceSelection(n,o):eq.acceptSelection(n,o),e.update(n))}};var oq={notEmptyKey:function(e){return null!=e&&""!=e}},iq=oq.notEmptyKey;function aq(e,t){return iq(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var sq=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:aq(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),aq(e.getEntityMap(),n)},cq=TZ,lq=i$,uq=PZ,fq=QU,dq=DZ,pq=rq,hq=BZ,gq=JZ,vq=sq,yq=MU,mq=dZ.isBrowser("IE"),bq=!1,wq=!1,xq=null;var Cq,Sq,_q={onCompositionStart:function(e){wq=!0,function(e){xq||(xq=new cq(hq(e))).start()}(e)},onCompositionEnd:function(e){bq=!1,wq=!1,setTimeout((function(){bq||_q.resolveComposition(e)}),20)},onSelect:pq,onKeyDown:function(e,t){if(!wq)return _q.resolveComposition(e),void e._onKeyDown(t);t.which!==dq.RIGHT&&t.which!==dq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===dq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!wq){var t=yq(xq).stopAndFlushMutations();xq=null,bq=!0;var n=fq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=uq.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),l=c.start,u=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:u,isBackward:!1}),d=vq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=lq.replaceText(r,f,e,p,d),n=fq.set(n,{currentContent:r})}));var o=gq(n,hq(e)).selectionState;e.restoreEditorDOM();var i=mq?fq.forceSelection(n,o):fq.acceptSelection(n,o);e.update(fq.push(i,r,"insert-characters"))}else e.update(n)}}},Oq=_q;function kq(){if(Sq)return Cq;Sq=1;var e=uT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=PZ,o=t,i=_U,a=pU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,l=e.decorator,u=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),v=l.getComponentForKey(u),y=l.getPropsForKey(u),m=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(v,n({},y,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return Cq=s}function Eq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aq=t,Tq=FV,Mq=hZ,Pq=dZ.isBrowser("IE <= 11");var Dq=function(e){var t,n;function r(t){var n;return jq(Eq(n=e.call(this,t)||this),"_forceFlag",void 0),jq(Eq(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Mq(t)||("production"!==process.env.NODE_ENV?Tq(!1,"node is not an Element"):Tq(!1));var r=t;return n?!function(e){return Pq?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},Pq?Aq.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Aq.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Pq?Aq.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Aq.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Aq.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Aq.Component),Lq=Dq,Iq=hZ;var Rq=function(e){return!(!e||!e.ownerDocument)&&(Iq(e)&&"BR"===e.nodeName)},Nq={initODS:function(){},handleExtensionCausedError:function(){}};var Bq=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},Fq=Bq;var zq=function(e){return Fq(e)&&3==e.nodeType},Hq=zq;var Vq=function e(t,n){return!(!t||!n)&&(t===n||!Hq(t)&&(Hq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Kq=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},$q=Nq,Uq=LZ,Wq=Vq,Zq=Kq,qq=pZ,Gq=FV,Yq=hZ,Xq=dZ.isBrowser("IE");function Jq(e,t){if(!e)return"[empty]";var n=Qq(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Yq(n)||("production"!==process.env.NODE_ENV?Gq(!1,"Node must be an Element if it is not a text node."):Gq(!1)),n.outerHTML)}function Qq(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return qq(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(Qq(i[a],t));return o}function eG(e,t){for(var n=e,r=n;n;){if(Yq(n)&&r.hasAttribute("contenteditable"))return Jq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function tG(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function nG(e,t,n,r){var o=Zq();if(e.extend&&null!=t&&Wq(o,t)){n>tG(t)&&Uq.logSelectionStateFailure({anonymizedDom:eG(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw Uq.logSelectionStateFailure({anonymizedDom:eG(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function rG(e,t,n,r){var o=qq(t).createRange();if(n>tG(t)&&(Uq.logSelectionStateFailure({anonymizedDom:eG(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),$q.handleExtensionCausedError()),o.setStart(t,n),Xq)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var oG=function(e,t,n,r,o){var i=qq(t);if(Wq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),l=e.getFocusKey(),u=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=l,c=u,l=d,u=p,f=!1}var h=s===n&&r<=c&&o>=c,g=l===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),rG(a,t,c-r,e),void nG(a,t,u-r,e);if(f){if(g&&(a.removeAllRanges(),rG(a,t,u-r,e)),h){var v=a.focusNode,y=a.focusOffset;a.removeAllRanges(),rG(a,t,c-r,e),nG(a,v,y,e)}}else h&&(a.removeAllRanges(),rG(a,t,c-r,e)),g&&nG(a,t,u-r,e)}},iG=uT;var aG,sG,cG=Lq,lG=t,uG=FV,fG=Rq,dG=oG,pG=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?uG(!1,"Missing node"):uG(!1));var c,l=s.firstChild;l||("production"!==process.env.NODE_ENV?uG(!1,"Missing child"):uG(!1)),l.nodeType===Node.TEXT_NODE?c=l:fG(l)?c=s:(c=l.firstChild)||("production"!==process.env.NODE_ENV?uG(!1,"Missing targetNode"):uG(!1)),dG(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?uG(!1,"Missing leafNode"):uG(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),iG(e,r,n)}),{});if(i){var l=i(s,t);c=iG(c,l)}return lG.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},lG.createElement(cG,null,n))},r}(lG.Component),hG=pG;function gG(){if(sG)return aG;sG=1;var e=kq(),n=hG,r=PZ,o=t,i=jW;HH.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,l=t.customStyleMap,u=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,v=a.getKey(),y=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(v,i,t),u=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:u,selection:p?h:null,forceSelection:d,text:y.slice(u,f),styleSet:a.getInlineStyleAt(u),customStyleMap:l,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:s,decorator:u,decoratorKey:g,direction:f,leafSet:t,text:y,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return aG=a}function vG(e,t){return!!t&&(e===t.documentElement||e===t.body)}var yG={getTop:function(e){var t=e.ownerDocument;return vG(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;vG(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return vG(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;vG(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},mG=/-(.)/g;var bG=function(e){return e.replace(mG,(function(e,t){return t.toUpperCase()}))},wG=/([A-Z])/g;var xG=function(e){return e.replace(wG,"-$1").toLowerCase()},CG=bG,SG=xG;function _G(e){return null==e?e:String(e)}var OG=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return _G(n.getPropertyValue(SG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return _G(n.getPropertyValue(SG(t)));if("display"===t)return"none"}return e.currentStyle?_G("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[CG(t)]):_G(e.style&&e.style[CG(t)])};function kG(e,t){var n=EG.get(e,t);return"auto"===n||"scroll"===n}var EG={get:OG,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(kG(e,"overflow")||kG(e,"overflowY")||kG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},jG=EG,AG=Vq;var TG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!AG(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var MG=function(e){var t=TG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},PG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var DG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:PG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},LG=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var IG=function(e){var t=DG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=LG(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function RG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function NG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function BG(){return{width:window.innerWidth||RG(),height:window.innerHeight||NG()}}BG.withoutScrollbars=function(){return{width:RG(),height:NG()}};var FG,zG,HG,VG,KG=BG;function $G(){if(zG)return FG;zG=1;var e=uT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=gG(),a=PZ,s=t,c=yG,l=jG,u=MG,f=IG,d=KG,p=FV,h=IZ;HH.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},y=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=f(o);if(o===window){var a=u(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,l=t.blockRendererFn,u=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,_=t.selection,O=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=y(i,l),g=d.CustomComponent||w,b=v(i,c),x=b.Element,C=b.wrapperTemplate,S=m(i,p,o,u,d,null),_=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,S,s.createElement(g,_))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var l,u=n.reverse()[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=y(o,l),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:S,hasSelection:g(_,E),selection:_,tree:O});if(o.getParentKey())return M;var P=v(o,c).Element,D=m(o,p,j,u,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return FG=b}var UG=uT;function WG(){return WG=UG||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WG.apply(this,arguments)}var ZG,qG,GG,YG,XG=hG,JG=PZ,QG=t,eY=yG,tY=jG,nY=_U,rY=pU,oY=jW,iY=MG,aY=IG,sY=KG,cY=FV,lY=IZ,uY=MU,fY=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},dY=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||fY(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=tY.getScrollParent(n),i=aY(o);if(o===window){var a=iY(n);(r=a.y+a.height-sY().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{lY(n)||("production"!==process.env.NODE_ENV?cY(!1,"blockNode is not an HTMLElement"):cY(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&eY.setTop(o,eY.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=fY(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var l=c.size-1,u=c.map((function(a,c){var u=JG.encode(n,s,c),f=a.get("start"),d=a.get("end");return QG.createElement(XG,{key:u,offsetKey:u,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return u;if(!e.props.decorator)return u;var d=uY(e.props.decorator),p=d.getComponentForKey(f);if(!p)return u;var h=d.getPropsForKey(f),g=JG.encode(n,s,0),v=c.first().get("start"),y=c.last().get("end"),m=r.slice(v,y),b=t.getEntityAt(a.get("start")),w=rY.getHTMLDirIfDifferent(nY.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:v,end:y,blockKey:n,entityKey:b,offsetKey:g};return QG.createElement(p,WG({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=oY({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return QG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(QG.Component),pY=dY;var hY=I$("draft_tree_data_support")?function(){if(VG)return HG;VG=1;var e=uT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=$G(),o=PZ,i=t,a=MU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var l=c.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,l=e.customStyleMap,u=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),y=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:u,customStyleMap:l,decorator:y,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return HG=s}():function(){if(YG)return GG;YG=1;var e=uT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=pY,a=PZ,s=t,c=jW,l=(qG||(qG=1,ZG=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),ZG),u=MU,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,y=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=m.getBlocksAsArray(),_=[],O=null,k=null,E=0;E<S.length;E++){var j=S[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var I=y||C.get(A),R=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:v,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,H=j.getDepth(),V="";if(c&&(V=c(j)),"li"===z)V=l(V,f(T,H,k!==F||null===O||H>O,I));var K=P||i,$={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:A};void 0!==L&&($=r({},$,{contentEditable:L,suppressContentEditableWarning:!0}));var U=s.createElement(z,$,s.createElement(K,n({},N,{key:A})));_.push({block:U,wrapperTemplate:F,key:A,offsetKey:R}),O=F?j.getDepth():null,k=F}for(var W=[],Z=0;Z<_.length;){var q=_[Z];if(q.wrapperTemplate){var G=[];do{G.push(_[Z].block),Z++}while(Z<_.length&&_[Z].wrapperTemplate===q.wrapperTemplate);var Y=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return GG=d}(),gY={isImage:function(e){return"image"===vY(e)[0]},isJpeg:function(e){var t=vY(e);return gY.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function vY(e){return e.split("/")}var yY=gY,mY=FV;var bY=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?mY(!1,"toArray: Array-like object expected"):mY(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?mY(!1,"toArray: Object needs a length property"):mY(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?mY(!1,"toArray: Object should have keys for indices"):mY(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?mY(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):mY(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function wY(e){return function(){return e}}var xY=function(){};xY.thatReturns=wY,xY.thatReturnsFalse=wY(!1),xY.thatReturnsTrue=wY(!0),xY.thatReturnsNull=wY(null),xY.thatReturnsThis=function(){return this},xY.thatReturnsArgument=function(e){return e};var CY=xY,SY=yY,_Y=bY,OY=CY,kY=new RegExp("\r\n","g"),EY={"text/rtf":1,"text/html":1};function jY(e){if("file"==e.kind)return e.getAsFile()}var AY=function(){function e(e){this.data=e,this.types=e.types?_Y(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return EY[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(kY,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!SY.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(jY).filter(OY.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),TY=AY,MY=FV,PY=/\.textClipping$/,DY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var LY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in DY))return void t("");if(""===e.type){var n="";return PY.test(e.name)&&(n=e.name.replace(PY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?MY(!1,'We should be calling "FileReader.readAsText" which returns a string'):MY(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var IY=function(e){return"handled"===e||!0===e},RY=TY,NY=i$,BY=QU,FY=bZ,zY=pZ,HY=LY,VY=HZ,KY=wZ,$Y=IY,UY=MU;var WY={onDragEnd:function(e){e.exitCurrentMode(),ZY(e)},onDrop:function(e,t){var n=new RY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=zY(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=UY(n),r=UY(r);var a=UY(FY(n));return VY(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&$Y(e.props.handleDroppedFiles(o,i)))return;HY(i,(function(t){t&&e.update(qY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&$Y(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=NY.moveText(e.getCurrentContent(),e.getSelection(),t);return BY.push(e,n,"insert-fragment")}(r,o)):e.update(qY(r,o,n.getText()))),ZY(e)}}}};function ZY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:KY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function qY(e,t,n){var r=NY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return BY.push(e,r,"insert-fragment")}var GY=WY;var YY=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},l=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}}("undefined"==typeof self?st:self);var XY=st.setImmediate,JY=i$,QY=QU,eX=sq,tX=IY,nX=YY,rX=MU,oX=XY,iX="'",aX="/",sX=dZ.isBrowser("Firefox");function cX(e,t,n,r,o){var i=JY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return QY.push(e,i,"insert-characters",o)}var lX=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&tX(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(cX(n,r,n.getCurrentInlineStyle(),eX(n.getCurrentContent(),n.getSelection()),!0));var s,c=cX(n,r,n.getCurrentInlineStyle(),eX(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=nX(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=c.getBlockTree(a);l=u.size!==f.size||u.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),l=n.get("start"),u=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||c!==u||null!=f&&u-l!=s-o}))}if(l||(s=r,l=sX&&(s==iX||s==aX)),l||(l=rX(c.getDirectionMap()).get(a)!==rX(n.getDirectionMap()).get(a)),l)return t.preventDefault(),c=QY.set(c,{forceSelection:!0}),void e.update(c);c=QY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,oX((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},uX=QU,fX=Vq,dX=Kq;var pX=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&dX(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&fX(o,r.anchorNode)&&fX(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(uX.acceptSelection(i,s))}},hX=QU;var gX=function(e,t){e.setMode("composite"),e.update(hX.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},vX=sK;var yX=function(e){var t=e.getSelection();return t.isCollapsed()?null:vX(e.getCurrentContent(),t)},mX=yX;var bX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(mX(e._latestEditorState))};var wX=i$,xX=QU,CX=jG,SX=yX,_X=IG,OX=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var kX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(OX(i)){var a=i;n=_X(CX.getScrollParent(a))}var s=SX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=wX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return xX.push(e,t,"remove-range")}(r))}),0)}};var EX=function(e,t){e.setMode("drag"),t.preventDefault()};var jX=function(e){e._internalDrag=!0,e.setMode("drag")},AX=QU,TX=dZ;var MX=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),TX.isBrowser("Chrome < 60.0.3081.0")?e.update(AX.forceSelection(n,o)):e.update(AX.acceptSelection(n,o))}},PX=FV,DX=55296,LX=57343,IX=/[\uD800-\uDFFF]/;function RX(e){return DX<=e&&e<=LX}function NX(e){return IX.test(e)}function BX(e,t){return 1+RX(e.charCodeAt(t))}function FX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!NX(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=BX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=BX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=BX(e,i);return e.substring(o,i)}var zX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=BX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:BX,hasSurrogateUnit:NX,isCodeUnitInSurrogateRange:RX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?PX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):PX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return DX<=n&&n<=56319&&56320<=r&&r<=LX},strlen:function(e){if(!NX(e))return e.length;for(var t=0,n=0;n<e.length;n+=BX(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return FX(e,t=t<n?t:n,r)},substr:FX},HX=zX,VX=CY;function KX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var $X="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];KX.apply(void 0,[t].concat(r))}}:VX,UX=$X,WX=UX;var ZX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&WX(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},qX=i$,GX=I$("draft_tree_data_support");var YX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(GX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(GX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(c.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return qX.removeRange(o,i,n)},XX=QU,JX=HX,QX=ZX,eJ=YX;var tJ=function(e){var t=eJ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return QX(e,i?JX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return XX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},nJ=i$,rJ=PZ,oJ=QU,iJ=oq.notEmptyKey,aJ=bZ,sJ=tJ,cJ=MU,lJ=dZ.isEngine("Gecko");var uJ=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,l=e._latestEditorState,u=cJ(aJ(r)),f=rJ.decode(u),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,y=g.end,m=l.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(v,y);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,S,_,O=l.getSelection(),k=O.merge({anchorOffset:v,focusOffset:y,isBackward:!1}),E=b.getEntityAt(v),j=iJ(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=nJ.replaceText(m,k,c,b.getInlineStyleAt(v),A?b.getEntityAt(v):null);if(lJ)x=n.anchorOffset,C=n.focusOffset,_=(S=v+Math.min(x,C))+Math.abs(x-C),x=S,C=_;else{var P=c.length-w.length;S=O.getStartOffset(),_=O.getEndOffset(),x=o?_+P:S,C=_+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:C})});e.update(oJ.push(l,D,T))}else{var L=t.nativeEvent.inputType;if(L){var I=function(e,t){return"deleteContentBackward"===e?sJ(t):t}(L,l);if(I!==l)return e.restoreEditorDOM(),void e.update(I)}}}},fJ=DZ;var dJ=function(e){return e.which===fJ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},pJ=dJ,hJ=dZ.isPlatform("Mac OS X"),gJ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return hJ&&e.altKey},usesMacOSHeuristics:function(){return hJ},hasCommandModifier:function(e){return hJ?!!e.metaKey&&!e.altKey:gJ.isCtrlKeyCommand(e)},isSoftNewlineEvent:pJ},vJ=gJ,yJ=i$,mJ=QU,bJ=sK,wJ=MU,xJ=null,CJ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=wJ(r),xJ=bJ(t,r);var s=yJ.removeRange(t,r,"forward");return s===t?e:mJ.push(e,s,"remove-range")},paste:function(e){if(!xJ)return e;var t=yJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),xJ);return mJ.push(e,t,"insert-fragment")}},SJ=FV;var _J=dZ.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?SJ(!1,"Found an unexpected detached subtree when getting range client rects."):SJ(!1)}:function(e){return Array.from(e.getClientRects())},OJ=_J,kJ=HX,EJ=pZ,jJ=OJ,AJ=FV;function TJ(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function MJ(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var PJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?AJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):AJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=EJ(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?AJ(!1,"Missing document.body"):AJ(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);TJ(jJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?AJ(!1,"Found unexpected detached subtree when traversing."):AJ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&kJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!TJ(jJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=MJ(i=i.childNodes[c])}return e.setStart(r,o),e},DJ=QU,LJ=PJ,IJ=YZ,RJ=ZX,NJ=YX;var BJ=function(e,t){var n=NJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return RJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=LJ(r),IJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:DJ.push(e,n,"remove-range")},FJ="['‘’]",zJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),HJ=new RegExp("^(?:"+zJ+")*(?:"+FJ+"|(?!"+zJ+").)*(?:(?!"+zJ+").)"),VJ=new RegExp("(?:(?!"+zJ+").)(?:"+FJ+"|(?!"+zJ+").)*(?:"+zJ+")*$");function KJ(e,t){var n=t?VJ.exec(e):HJ.exec(e);return n?n[0]:e}var $J={getBackward:function(e){return KJ(e,!0)},getForward:function(e){return KJ(e,!1)}},UJ=$J,WJ=QU,ZJ=ZX,qJ=YX;var GJ=function(e){var t=qJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return ZJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=UJ.getBackward(o);return ZJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:WJ.push(e,t,"remove-range")},YJ=UX;var XJ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&YJ(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},JJ=$J,QJ=QU,eQ=XJ,tQ=YX;var nQ=function(e){var t=tQ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=JJ.getForward(o);return eQ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:QJ.push(e,t,"remove-range")},rQ=i$,oQ=QU;var iQ=QU;var aQ=QU;var sQ=QU,cQ=HX,lQ=XJ,uQ=YX;var fQ=function(e){var t=uQ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return lQ(e,i?cQ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return sQ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},dQ=i$,pQ=QU,hQ=sK;var gQ=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=hQ(a,r),l=dQ.removeRange(a,r,"backward"),u=l.getSelectionAfter(),f=u.getAnchorOffset()-1,d=u.merge({anchorOffset:f,focusOffset:f}),p=dQ.replaceWithFragment(l,d,c),h=pQ.push(e,p,"insert-fragment");return pQ.acceptSelection(h,o)},vQ=QU;var yQ=function(e,t,n){var r=vQ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(vQ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(vQ.set(r,{nativelyRenderedContent:o}))}},mQ=i$,bQ=QU,wQ=DZ,xQ=CJ,CQ=dZ,SQ=IY,_Q=BJ,OQ=GJ,kQ=nQ,EQ=function(e){var t=rQ.splitBlock(e.getCurrentContent(),e.getSelection());return oQ.push(e,t,"split-block")},jQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return iQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},AQ=function(e){var t=e.getSelection(),n=t.getStartKey();return aQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},TQ=tJ,MQ=fQ,PQ=gQ,DQ=yQ,LQ=vJ.isOptionKeyCommand,IQ=CQ.isBrowser("Chrome");var RQ=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case wQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&SQ(e.props.handleReturn(t,r)))return;break;case wQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case wQ.TAB:if(o("onTab"))return;break;case wQ.UP:if(o("onUpArrow"))return;break;case wQ.RIGHT:if(o("onRightArrow"))return;break;case wQ.DOWN:if(o("onDownArrow"))return;break;case wQ.LEFT:if(o("onLeftArrow"))return;break;case wQ.SPACE:IQ&&LQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!SQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return bQ.redo(t);case"delete":return MQ(t);case"delete-word":return kQ(t);case"backspace":return TQ(t);case"backspace-word":return OQ(t);case"backspace-to-start-of-line":return _Q(t,n);case"split-block":return EQ(t);case"transpose-characters":return PQ(t);case"move-selection-to-start-of-block":return AQ(t);case"move-selection-to-end-of-block":return jQ(t);case"secondary-cut":return xQ.cut(t);case"secondary-paste":return xQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else DQ(t,r,e.update);else if(n===wQ.SPACE&&IQ&&LQ(t)){var s=mQ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(bQ.push(r,s,"insert-characters"))}};var NQ=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),BQ=NQ,FQ=FV,zQ=dZ.isBrowser("IE <= 9");var HQ=function(e){var t,n=null;return!zQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?FQ(!1,"Missing doc.documentElement"):FQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},VQ=hZ;var KQ=function(e){return!(!e||!e.ownerDocument)&&(VQ(e)&&"A"===e.nodeName)},$Q=hZ;var UQ,WQ=function(e){return!(!e||!e.ownerDocument)&&($Q(e)&&"IMG"===e.nodeName)};function ZQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qQ(e,t,n[t])}))}return e}function qQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GQ=QH,YQ=hV,XQ=jV,JQ=MW,QQ=P$,e1=BQ,t1=jW,n1=GV,r1=HQ,o1=I$,i1=HH,a1=i1.List,s1=i1.Map,c1=i1.OrderedSet,l1=KQ,u1=Rq,f1=IZ,d1=WQ,p1=o1("draft_tree_data_support"),h1=new RegExp("\r","g"),g1=new RegExp("\n","g"),v1=new RegExp("^\n","g"),y1=new RegExp(" ","g"),m1=new RegExp(" ?","g"),b1=new RegExp("​?","g"),w1=["bold","bolder","500","600","700","800","900"],x1=["light","lighter","normal","100","200","300","400"],C1=["className","href","rel","target","title"],S1=["alt","className","height","src","width"],_1=(qQ(UQ={},t1("public/DraftStyleDefault/depth0"),0),qQ(UQ,t1("public/DraftStyleDefault/depth1"),1),qQ(UQ,t1("public/DraftStyleDefault/depth2"),2),qQ(UQ,t1("public/DraftStyleDefault/depth3"),3),qQ(UQ,t1("public/DraftStyleDefault/depth4"),4),UQ),O1=s1({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),k1=function(e){if(f1(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},E1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(_1).some((function(n){e.classList.contains(n)&&(t=_1[n])})),t},j1=function(e){if(!l1(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new e1(t.href);return!0}catch(e){return!1}},A1=function(e){if(!d1(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},T1=function(e,t){if(!f1(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){w1.indexOf(r)>=0?e.add("BOLD"):x1.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},M1=function(e){return"ul"===e||"ol"===e},P1=function(){function e(e,t){qQ(this,"characterList",a1()),qQ(this,"currentBlockType","unstyled"),qQ(this,"currentDepth",0),qQ(this,"currentEntity",null),qQ(this,"currentText",""),qQ(this,"wrapper",null),qQ(this,"blockConfigs",[]),qQ(this,"contentBlocks",[]),qQ(this,"entityMap",QQ),qQ(this,"blockTypeMap",void 0),qQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=a1(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=QQ,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],c1())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(p1?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ZQ({key:e.key||n1(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:a1(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=a1(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||M1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;M1(i)&&(this.wrapper=i,M1(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(A1(o))this._addImgNode(o,t);else if(j1(o))this._addAnchorNode(o,n,t);else{var l=t;O1.has(i)&&(l=l.add(O1.get(i))),l=T1(o,l);var u=k1(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!p1&&f1(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=E1(p,this.currentDepth)}var h=n1(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=GQ.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=a1()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(v1,"")).replace(g1," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){u1(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(d1(e)){var n=e,r={};S1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),o1("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(l1(e)){var r=e,o={};C1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new e1(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=a1(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new XQ(ZQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return a1(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new YQ(ZQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=a1(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),D1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r1)(e=e.trim().replace(h1,"").replace(y1," ").replace(m1,"").replace(b1,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),s1(t)}(t);return new P1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function L1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I1=hV,R1=jV,N1=D1,B1=GV,F1=HQ,z1=I$,H1=HH,V1=N$,K1=H1.List,$1=H1.Repeat,U1=z1("draft_tree_data_support"),W1=U1?R1:I1,Z1={processHTML:function(e,t){return N1(e,F1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=V1(r);var i=B1(),a={key:i,type:n,text:r,characterList:K1($1(t,r.length))};if(U1&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new W1(a)),e}),[])}};var q1=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},G1=i$,Y1=QU,X1=q1,J1=MU,Q1={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return Q1.toggleInlineStyle(e,"BOLD");case"italic":return Q1.toggleInlineStyle(e,"ITALIC");case"underline":return Q1.toggleInlineStyle(e,"UNDERLINE");case"code":return Q1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Q1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return Q1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=G1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Y1.push(e,t,"insert-characters");return Y1.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Y1.push(e,a,"remove-range")}var s=Q1.tryToRemoveBlockStyle(e);return s?Y1.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=G1.removeRange(n,a,"forward");return s!==n?Y1.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var l=X1(i,r,e.shiftKey?-1:1,n);return Y1.push(t,l,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=J1(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var l=i.getBlockForKey(r).getType()===t?"unstyled":t;return Y1.push(e,G1.setBlockType(i,a,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?Q1.toggleBlockType(e,"code-block"):Q1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Y1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?G1.removeInlineStyle(i,n,t):G1.applyInlineStyle(i,n,t),Y1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=G1.applyEntity(e.getCurrentContent(),t,n);return Y1.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return G1.setBlockType(o,t,"unstyled")}return null}},e0=Q1,t0=/\r\n?|\n/g;var n0=KH,r0=QH,o0=TY,i0=i$,a0=Z1,s0=QU,c0=e0,l0=sq,u0=LY,f0=IY,d0=function(e){return e.split(t0)};function p0(e,t,n){var r=i0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s0.push(e,r.set("entityMap",n),"insert-fragment")}var h0=function(e,t){t.preventDefault();var n=new o0(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&f0(e.props.handlePastedFiles(r)))return;return void u0(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=d0(t),i=r0.create({style:n.getCurrentInlineStyle(),entity:l0(n.getCurrentContent(),n.getSelection())}),a=c0.getCurrentBlockType(n),s=a0.processText(r,i,a),c=n0.createFromArray(s),l=i0.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(s0.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!f0(e.props.handlePastedText(a,s,c))){if(a&&(i=d0(a)),!e.props.stripPastedStyles){var u,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(u=s)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(p0(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(p0(e._latestEditorState,f));if(s){var d=a0.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=n0.createFromArray(p);return void e.update(p0(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=r0.create({style:c.getCurrentInlineStyle(),entity:l0(c.getCurrentContent(),c.getSelection())}),y=c0.getCurrentBlockType(c),m=a0.processText(i,v,y),b=n0.createFromArray(m);e.update(p0(e._latestEditorState,b))}}},g0=dZ,v0=lX,y0=pX,m0=gX,b0=bX,w0=kX,x0=EX,C0=jX,S0=MX,_0=uJ,O0=RQ,k0=h0,E0=rq,j0=g0.isBrowser("Chrome"),A0=g0.isBrowser("Firefox"),T0=j0||A0?E0:function(e){},M0={onBeforeInput:v0,onBlur:y0,onCompositionStart:m0,onCopy:b0,onCut:w0,onDragOver:x0,onDragStart:C0,onFocus:S0,onInput:_0,onKeyDown:O0,onPaste:k0,onSelect:E0,onMouseUp:T0,onKeyUp:T0},P0=r.unstable_flushControlled;var D0=t,L0=jW,I0=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=L0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return D0.createElement("div",{className:t},D0.createElement("div",{className:L0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(D0.Component),R0=I0,N0=vJ,B0=DZ,F0=dZ,z0=F0.isPlatform("Mac OS X"),H0=z0&&F0.isBrowser("Firefox < 29"),V0=N0.hasCommandModifier,K0=N0.isCtrlKeyCommand;function $0(e){return z0&&e.altKey||K0(e)}var U0=function(e){switch(e.keyCode){case 66:return V0(e)?"bold":null;case 68:return K0(e)?"delete":null;case 72:return K0(e)?"backspace":null;case 73:return V0(e)?"italic":null;case 74:return V0(e)?"code":null;case 75:return z0&&K0(e)?"secondary-cut":null;case 77:case 79:return K0(e)?"split-block":null;case 84:return z0&&K0(e)?"transpose-characters":null;case 85:return V0(e)?"underline":null;case 87:return z0&&K0(e)?"backspace-word":null;case 89:return K0(e)?z0?"secondary-paste":"redo":null;case 90:return function(e){return V0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case B0.RETURN:return"split-block";case B0.DELETE:return function(e){return!z0&&e.shiftKey?null:$0(e)?"delete-word":"delete"}(e);case B0.BACKSPACE:return function(e){return V0(e)&&z0?"backspace-to-start-of-line":$0(e)?"backspace-word":"backspace"}(e);case B0.LEFT:return H0&&V0(e)?"move-selection-to-start-of-block":null;case B0.RIGHT:return H0&&V0(e)?"move-selection-to-end-of-block":null;default:return null}},W0=uT;function Z0(){return Z0=W0||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}function q0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Y0(e,t,n[t])}))}return e}function G0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var J0=MW,Q0=PW,e2=Oq,t2=hY,n2=GY,r2=M0,o2=P0,i2=R0,a2=Nq,s2=QU,c2=t,l2=yG,u2=jG,f2=jW,d2=GV,p2=U0,h2=IG,g2=I$,v2=FV,y2=IZ,m2=MU,b2=dZ.isBrowser("IE"),w2=!b2,x2={edit:r2,composite:e2,drag:n2,cut:null,render:null},C2=!1,S2=function(e){function t(){return e.apply(this,arguments)||this}X0(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(c2.Component),_2=function(e){function t(t){var n;return Y0(G0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Y0(G0(n),"_clipboard",void 0),Y0(G0(n),"_handler",void 0),Y0(G0(n),"_dragCount",void 0),Y0(G0(n),"_internalDrag",void 0),Y0(G0(n),"_editorKey",void 0),Y0(G0(n),"_placeholderAccessibilityID",void 0),Y0(G0(n),"_latestEditorState",void 0),Y0(G0(n),"_latestCommittedEditorState",void 0),Y0(G0(n),"_pendingStateFromBeforeInput",void 0),Y0(G0(n),"_onBeforeInput",void 0),Y0(G0(n),"_onBlur",void 0),Y0(G0(n),"_onCharacterData",void 0),Y0(G0(n),"_onCompositionEnd",void 0),Y0(G0(n),"_onCompositionStart",void 0),Y0(G0(n),"_onCopy",void 0),Y0(G0(n),"_onCut",void 0),Y0(G0(n),"_onDragEnd",void 0),Y0(G0(n),"_onDragOver",void 0),Y0(G0(n),"_onDragStart",void 0),Y0(G0(n),"_onDrop",void 0),Y0(G0(n),"_onInput",void 0),Y0(G0(n),"_onFocus",void 0),Y0(G0(n),"_onKeyDown",void 0),Y0(G0(n),"_onKeyPress",void 0),Y0(G0(n),"_onKeyUp",void 0),Y0(G0(n),"_onMouseDown",void 0),Y0(G0(n),"_onMouseUp",void 0),Y0(G0(n),"_onPaste",void 0),Y0(G0(n),"_onSelect",void 0),Y0(G0(n),"editor",void 0),Y0(G0(n),"editorContainer",void 0),Y0(G0(n),"focus",void 0),Y0(G0(n),"blur",void 0),Y0(G0(n),"setMode",void 0),Y0(G0(n),"exitCurrentMode",void 0),Y0(G0(n),"restoreEditorDOM",void 0),Y0(G0(n),"setClipboard",void 0),Y0(G0(n),"getClipboard",void 0),Y0(G0(n),"getEditorKey",void 0),Y0(G0(n),"update",void 0),Y0(G0(n),"onDragEnter",void 0),Y0(G0(n),"onDragLeave",void 0),Y0(G0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Y0(G0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=u2.getScrollParent(o),a=e||h2(i),s=a.x,c=a.y;y2(o)||("production"!==process.env.NODE_ENV?v2(!1,"editorNode is not an HTMLElement"):v2(!1)),o.focus(),i===window?window.scrollTo(s,c):l2.setTop(i,c),r||n.update(s2.forceSelection(t,t.getSelection()))}})),Y0(G0(n),"blur",(function(){var e=n.editor;e&&(y2(e)||("production"!==process.env.NODE_ENV?v2(!1,"editorNode is not an HTMLElement"):v2(!1)),e.blur())})),Y0(G0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=q0({},x2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=q0({},x2,{edit:a});n._handler=s[e]})),Y0(G0(n),"exitCurrentMode",(function(){n.setMode("edit")})),Y0(G0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Y0(G0(n),"setClipboard",(function(e){n._clipboard=e})),Y0(G0(n),"getClipboard",(function(){return n._clipboard})),Y0(G0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Y0(G0(n),"onDragEnter",(function(){n._dragCount++})),Y0(G0(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||d2(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}X0(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(o2?o2((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:m2(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return c2.createElement(i2,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,l=e.textAlignment,u=e.textDirectionality,f=f2({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:q0({},Q0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:u};return c2.createElement("div",{className:f},this._renderPlaceholder(),c2.createElement("div",{className:f2("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},c2.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:f2({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:d,spellCheck:w2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},c2.createElement(S2,{editor:this,editorState:a}),c2.createElement(t2,Z0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!C2&&g2("draft_ods_enabled")&&(C2=!0,a2.initODS()),this.setMode("edit"),b2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(c2.Component);Y0(_2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:J0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:p2,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var O2=_2,k2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},E2=k2,j2=HX.strlen;var A2=HX,T2=eV,M2=function(e,t){return e===t},P2=function(e){return!!e},D2=[];var L2=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return T2(o,M2,P2,(function(t,o){var i=e.getText();r.push({offset:A2.strlen(i.slice(0,t)),length:A2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(D2,n.toJS())};function I2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R2=hV,N2=jV,B2=k2,F2=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:j2(i.slice(0,r)),length:j2(i.slice(r,o)),key:Number(t[E2.stringify(a)])})})),n},z2=L2,H2=FV,V2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:z2(e),entityRanges:F2(e,t),data:e.getData().toObject()}},K2=function(e,t,n,r){if(e instanceof R2)n.push(V2(e,t));else{e instanceof N2||("production"!==process.env.NODE_ENV?H2(!1,"block is not a BlockNode"):H2(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){I2(e,t,n[t])}))}return e}({},V2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},$2=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=B2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),K2(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(B2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function U2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){W2(e,t,n[t])}))}return e}function W2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z2=GV,q2=FV,G2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Y2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?q2(!1,"Invalid raw state"):q2(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?q2(!1,"Invalid tree raw block"):q2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=U2({},e);G2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?U2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,U2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=G2(e),o=e.depth||0,i=U2({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:Z2(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),U2({},e,{blocks:t})}},X2=UX,J2={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&X2(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&X2(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&X2(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&X2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&X2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&X2(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&X2(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),l=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==process.env.NODE_ENV&&X2(!0,"%s has no first child",r),!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&X2(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},Q2=J2,e5=QH,t5=HH.List;var n5=function(e,t){var n=e.map((function(e,n){var r=t[n];return e5.create({style:e,entity:r})}));return t5(n)},r5=HX.substr;var o5=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=r5(e,0,t.offset).length,o=r+r5(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},i5=HX,a5=HH.OrderedSet,s5=i5.substr,c5=a5();var l5=function(e,t){var n=Array(e.length).fill(c5);return t&&t.forEach((function(t){for(var r=s5(e,0,t.offset).length,o=r+s5(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function u5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f5(e,t,n[t])}))}return e}function f5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d5=hV,p5=jV,h5=iU,g5=P$,v5=Y2,y5=Q2,m5=L$,b5=n5,w5=o5,x5=l5,C5=GV,S5=HH,_5=FV,O5=I$("draft_tree_data_support"),k5=S5.List,E5=S5.Map,j5=S5.OrderedMap,A5=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||C5(),data:E5(o),characterList:T5(e,t)}},T5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return b5(x5(n,o||[]),w5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return u5({},e,{key:t[e.key]})}))))},M5=function(e){return u5({},e,{key:e.key||C5()})},P5=function(e,t,n){var r=t.map((function(e){return u5({},e,{parentRef:n})}));return e.concat(r.reverse())},D5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=O5&&!n?v5.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!O5)return function(e,t){return j5(e.map((function(e){var n=new d5(A5(e,t));return[n.getKey(),n]})))}(n?v5.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(M5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?_5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):_5(!1));var i=r.children.map(M5),a=new p5(u5({},A5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:k5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=P5([],i,a);s.length>0;){var c=s.pop(),l=c.parentRef,u=l.getChildKeys(),f=u.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?_5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):_5(!1));break}var p=c.children.map(M5),h=new p5(u5({},A5(c,t),{parent:l.getKey(),children:k5(p.map((function(e){return e.key}))),prevSibling:0===f?null:u.get(f-1),nextSibling:f===u.size-1?null:u.get(f+1)}));n=n.set(h.getKey(),h),s=P5(s,p,h)}return n}),j5())}(r,t);return"production"!==process.env.NODE_ENV&&(y5.isValidTree(o)||("production"!==process.env.NODE_ENV?_5(!1,"Should be a valid tree"):_5(!1))),o},L5=OJ;var I5=function(e){var t=L5(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var l=t[c];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},R5=I5;var N5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=R5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},B5={Editor:O2,EditorBlock:pY,EditorState:QU,CompositeDecorator:kW,Entity:P$,EntityInstance:C$,BlockMapBuilder:KH,CharacterMetadata:QH,ContentBlock:hV,ContentState:iU,RawDraftContentState:{},SelectionState:L$,AtomicBlockUtils:SW,KeyBindingUtil:vJ,Modifier:i$,RichUtils:e0,DefaultDraftBlockRenderMap:MW,DefaultDraftInlineStyle:PW,convertFromHTML:D1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?_5(!1,"invalid RawDraftContentState"):_5(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=g5.__create(o,i,a||{})})),n}(e),n=D5(e,t),r=n.isEmpty()?new m5:m5.createEmpty(n.first().getKey());return new h5({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:$2,genKey:GV,getDefaultKeyBinding:U0,getVisibleSelectionRect:N5};const F5="FOUND_FIELD",z5="NOT_FOUND",H5="IMMUTABLE",V5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),K5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},$5=new B5.CompositeDecorator([{strategy:(e,t,n)=>K5(e,t,n,F5),component:({children:t})=>e.jsx(V5,{children:t})},{strategy:(e,t,n)=>K5(e,t,n,z5),component:({children:t})=>e.jsx(V5,{error:!0,children:t})}]),U5=(e,t,n)=>{const r=ut.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},W5=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:l}=U5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?F5:z5,mutability:H5,data:{id:i}}}o.text+=a}return B5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return B5.EditorState.createWithContent(r,$5)},Z5=(e,t=!0)=>{const n=e.getCurrentContent(),r=B5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ut.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},q5=e=>{const t=Z5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},G5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new B5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return B5.EditorState.forceSelection(e,o)},Y5=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},X5=e=>!!e||null!=e&&""!==e,J5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:l,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:null!=n?n:0,borderBottomRightRadius:null!=n?n:0,cursor:u?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),an,cn,sn),Q5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),e9=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),t9=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var n9={Container:J5,Wrapper:Q5,Label:e9,Description:t9,useInputFocus:Y5,isInputFilled:X5};const r9=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:l,mergeFields:u=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:v,borderless:y=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:S,label:_,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,I=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>W5(o,u,w))),{focused:B,handleFocus:F,handleBlur:z}=Y5(s,l),[H,V]=t.useState(!1),K=t.useRef(null),$=t.useRef(),U=null!=v?v:g,W=U?U-(y?0:_?29:11):void 0,Z=e=>{N(e);const t=(e=>q5(e).some((e=>e.type===z5)))(e);V(t);const n=Z5(e),r=e.getLastChangeType();i&&i(n,t,r)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=U5(e,t,r),l=c?F5:z5,u=i.createEntity(l,H5,{id:o}).getLastCreatedEntityKey(),f=B5.Modifier.insertText(i,a,s,void 0,u),d=B5.EditorState.push(n,f,"insert-characters");return B5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,u,R,w);Z(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=G5(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:G})));t.useEffect((()=>{Z5(R)!==o&&(e=>{const t=R.getSelection(),n=W5(e,u,w),r=G5(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),t.useEffect((()=>{$.current=u}),[]),t.useEffect((()=>{const{current:e}=$,t=ut.isEqual(e,u),n=q5(R);if(!t&&n.length>0){$.current=u;const e=W5(o,u,w);Z(e)}}),[u]);return e.jsxs(o9,{onClick:e=>{b||e.stopPropagation();R.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:y||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:S,filled:X5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!_,hideEditor:!X5(o)&&!!_&&!B,children:[e.jsxs(Q5,{readOnly:b,children:[_&&e.jsx(e9,{filled:X5(o),focused:B,disabled:O,children:_}),e.jsx(B5.Editor,Object.assign({ref:K,editorState:R,onChange:Z,placeholder:f,readOnly:b,handleReturn:e=>{const t=B5.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=B5.convertFromRaw({blocks:[o],entityMap:{}}),a=B5.EditorState.createWithContent(i,$5).getCurrentContent().getBlockMap(),s=B5.Modifier.replaceWithFragment(n,r,a);return B5.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:F,onBlur:z},I))]}),d&&e.jsx(t9,{invalid:p,children:d})]})})),o9=W(J5)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var i9={exports:{}};i9.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,c],f=0;(l=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=l(i),s=l(n(7)),c=n(12);function l(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 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}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),l=s.phoneNumber,u=void 0===l?"":l,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:u,cursorPosition:d,key:t}),r.props.onChange(u)}},f(r,n)}return function(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)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(u(e={},i,(function(e){return t.textInput=e})),u(e,"type","tel"),u(e,"value",n),u(e,"onKeyDown",this.handleKeyDown),u(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var u=e(a,l,r,o,i+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var f=u(a,l,r,o,i+"."+l,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],l=m(c);if("object"!==l)return new h("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var f in u){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,l,u,d,p,g,v){if(d=d||f,g=g||u,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=d+":"+u;!r[y]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[y]=!0,a++)}return null==l[u]?c?null===l[u]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,p,g)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!y(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
39
39
|
/*
|
|
40
40
|
object-assign
|
|
41
41
|
(c) Sindre Sorhus
|
|
42
42
|
@license MIT
|
|
43
43
|
*/
|
|
44
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var i9=o9.exports;const a9=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(fn,Object.assign({},n,r))},s9=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:S,height:_,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,hideControls:H,onChange:V,onClick:K,onClear:$,onFocus:U,onBlur:W}=r,Z=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Y}=G5(U,W,!F&&!B),X=t.useRef(null),{color:J}=n.useTheme(),[Q,ee]=t.useState(h?50:void 0),te=t.useRef(null),ne={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},re={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&(null==te?void 0:te.current)){const{current:e}=te;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&ee(t+3)}}),[h,R,s,te]);const oe=h?R||s:R,ie=(!!R||"number"==typeof R)&&$&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===i9.normalize(R)){const{current:n}=X;if(n){const r=i9.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ae=()=>{q||G()},se=()=>{q&&Y()},ce=()=>{ae(),(null==X?void 0:X.current)&&X.current.select()};t.useImperativeHandle(o,(()=>({focus:ae,blur:se,hasFocus:q,select:ce}))),t.useEffect((()=>{var e;q&&(null===(e=X.current)||void 0===e||e.focus())}),[q]);return e.jsxs(X5,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:S,height:_,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ae(),K&&K(e)},pointer:z,readOnly:B},ne,re,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&a9(g,{marginRight:8}),e.jsxs(J5,{readOnly:B||F,children:[h&&e.jsx(u9,{ref:te,fontSize:C,children:oe}),a&&!h&&e.jsx(Q5,{htmlFor:i||a,filled:Y5(R),focused:q,disabled:N,children:a}),e.jsx(c9,Object.assign({id:i||a,ref:X,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=i9.normalize(t);if(n.length>10)return;const r=i9.format(n);V&&V(e,r,n)}else V&&V(e)},onFocus:G,onBlur:Y,disabled:N,hide:!(Y5(R)||!a||q||h),width:Q,fontSize:C,hideControls:H},Z))]}),v&&a9(v),f&&e.jsx(pc,{}),ie&&e.jsx(l9,{onClick:$,children:e.jsx(fn,{name:"close-circle-outline",color:J.brand})}),u&&e.jsx(e9,{invalid:y,children:u})]}))})),c9=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),l9=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),u9=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),f9=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),d9=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:_,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:$,filter:U,restrictInput:W,inputRef:Z,optionsParent:q}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&$){null===(e=(Z||ae).current)||void 0===e||e.focus()}}),[ee,$]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,q?[q,`${q} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:_z(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&le(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""!==h&&null!=h||he()}),[h]);const ve=()=>{const e=Vs(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=f9(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Ws(g||[],{search:$,filter:U,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:$?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=qs(g||[],v,ge,le,{selected:me,search:$,filter:U,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,Se=c(G,["onClear","phone"]);return e.jsx(p9,Object.assign({textOnly:C,altTrigger:!!L,width:S,height:_,focused:ne,search:$},ce,{children:e.jsxs(h9,{ref:ue,children:[L?e.jsx(g9,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(y9,{shake:oe,children:e.jsx(s9,Object.assign({},Se,{ref:Z||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!$,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||ae).current)||void 0===t?void 0:t.hasFocus;$?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!($&&(!i||r))?ge(o,e):$&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),$&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))}),ee&&we.length>0&&e.jsx(Ks,{containerRef:be,parentSelector:q,width:!L&&!C||q?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};d9.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u})=>{const f=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||f9(i)||"",value:t};r&&r(o,e)};return e.jsx(Ks.Item,{id:u,contentPosition:a,color:s,onClick:f,accented:c,children:i})};const p9=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),h9=W.div({position:"relative",width:"100%",height:"inherit"}),g9=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),v9=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),y9=W.div((({shake:e})=>({"& input":{animation:e?`${v9} .5s linear`:void 0}}))),m9=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);m9.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const b9=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(Dz,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(Iz,{children:r}),e.jsx(Lz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},w9=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(Dz,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(Iz,{children:o}),e.jsx(Lz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},x9=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(C9,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&a9(r,{marginRight:4,size:"small"}),n,o&&a9(o,{marginLeft:4,size:"small"})]}))},C9=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),S9=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(_9,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};S9.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(O9,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},S9.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(k9,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},S9.Input=s9,S9.Dropdown=d9,S9.Radio=b9,S9.Toggle=w9,S9.Checkbox=Rz,S9.Label=x9;const _9=W(m9)({boxSizing:"border-box"}),O9=W(m9)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),k9=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),E9=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),j9=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),A9=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),T9=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),M9=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),P9=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(D9,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Vs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),D9=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})),sn),L9=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),I9=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),R9=W.div({marginLeft:"auto",marginRight:8});P9.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(L9,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),P9.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Vs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(I9,{backgroundColor:d,children:[e.jsxs(L9,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx(R9,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const N9=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(z9,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(H9,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},B9=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),F9=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));N9.Header=B9,N9.Body=F9;const z9=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),H9=W.div({width:"100%"}),V9=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),K9=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),$9=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),U9=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k,zIndex:E})=>{const j=at(u?()=>null:c,i),A={padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k},T=Vs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),M=e.jsx(q9,{color:f,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,zIndex:E,children:e.jsxs(W9,Object.assign({ref:j,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},A,{children:[T,l&&e.jsx(Z9,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),P=document.querySelector(o||"#root");return i&&P?r.createPortal(M,P):null};U9.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),U9.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),U9.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),U9.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const W9=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),Z9=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),q9=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,position:o,top:i,bottom:a,right:s,left:c,zIndex:l})=>({position:o||"absolute",top:i||(c||a||s?void 0:0),left:c||(i||a||s?void 0:0),bottom:a,right:s,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:l||100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),G9=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:_,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&_(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const $=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];O(t)}}),A&&!D,[l]);const U=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${_z()}`),[]),Z=t.useMemo((()=>`multi-select-list-${_z()}`),[]),q=p?l.length>=p:void 0,G=m||!A||q,Y=()=>{const t=e.jsxs(Q9,{id:Z,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(e3,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(x9,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(d9,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:$,onError:e=>P(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(Y9,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(X9,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(J9,{collapse:z,children:u}):Y(),e.jsxs(t3,{children:[p&&!b&&e.jsx(r3,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(n3,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),Y9=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),X9=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),J9=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Q9=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),e3=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),t3=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),n3=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),r3=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),o3=e=>e?+e:0,i3=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),a3=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),s3=W(a3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),c3=W(a3)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),l3=W.span((({theme:e})=>({color:e.scale6}))),u3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(f3,Object.assign({size:n},u,{children:[e.jsx(d3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(p3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},f3=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),d3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),p3=W(d3)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),h3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),cn),g3=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var v3,y3={exports:{}};v3=y3,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){u&&o&&c&&(u(l),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,c=!0,l=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),s=!1;return i.onload=i.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,v(e)}}function g(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function m(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function _(e){if(e.g){var t=u(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function k(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){s(e.c,"body",e.a)}function A(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=A(e=new m(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=A(e=new m(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=A(e=new m("serif",w(this.a))),this.j.a.style.cssText=e,e=A(e=new m("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var P={D:"serif",C:"sans-serif"},D=null;function L(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function I(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function R(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=L()&&I(e,o,i)),t?r()-e.A>=e.w?L()&&I(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){R(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),R(this)};var F=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):_(e.a))}function H(e){this.j=e,this.a=new k,this.h=0,this.f=this.g=!0}function V(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===r.length&&a)_(t.a);else{t.f+=r.length,a&&(t.j=a);var c,u=[];for(c=0;c<r.length;c++){var f=r[c],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new T(n(t.g,t),n(t.h,t),t.c,f,t.s,d):new M(n(t.g,t),n(t.h,t),t.c,f,t.s,e,d),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),l(t.f,r,o)}O(t,"fontinactive",e),z(this)},H.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new B(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new m(c,n))):a.push(new m(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],h(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new m(r[0],c[l]));else s.push(new m(r[0]));g(a,(function(){e(s,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":Y[u],null==(f=f[1])||""==f)f="4";else var f=G[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new m(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new m(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new m(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new H(window);ne.a.c.custom=function(e,t){return new $(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new K(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};v3.exports?v3.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var m3=ct(y3.exports);const b3=W.div(an),w3=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),x3=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),C3=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),S3=W.div({display:"flex",flexDirection:"column"}),_3=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),O3=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),k3=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),E3=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),j3=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),A3=t.createContext({}),T3=(t,n,r)=>{const o="th"===n?M3:P3,i=r?{style:r}:{};return Vs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},M3=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),P3=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),D3=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),L3=W(m9)({alignItems:"center",padding:"8px 24px"},sn),I3=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),R3=W(m9)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),sn),N3=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},B3=W.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:N3(e||n),alignItems:N3(r),flexDirection:t,gap:o}))),F3=W(B3)((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),z3=W(B3)((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),H3=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(A3.Provider,{value:p,children:e.jsx(V3,Object.assign({},a,{children:d}))})};H3.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(A3),u=o||l||"equal";return e.jsx(D3,{alignToScrollBody:a,children:e.jsx(L3,Object.assign({as:"tr",columns:u},s,{children:T3(r,"th",i)}))})},H3.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:l,direction:u,gap:f,sorted:d,sortKey:p}=r,h=c(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,v]=t.useState(d||"inactive"),{color:y}=n.useTheme(),{activeColumn:m,setActiveColumn:b}=t.useContext(A3),w=p||d,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(v(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==d&&"desc"!==d||S(d)}),[]),t.useEffect((()=>{d&&v(d)}),[d]),t.useEffect((()=>{const e=!m&&d;p&&m&&m.key!==p&&"inactive"!==g&&!e&&v("inactive")}),[m,g]),e.jsxs(z3,Object.assign({onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:u,contentPosition:a,justify:s,align:l,gap:f,active:C,sorting:!!w},h,{children:[o,w?e.jsx(fn,{name:x,marginLeft:8,size:"small",color:C?y.brand:void 0,inheritColor:!C}):null]}))},H3.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(A3);return e.jsx(I3,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},H3.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(A3),u=o||l||"equal";return e.jsx(R3,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:T3(r,"td",a)}))},H3.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:l,padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h}=t,g=c(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const v={padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h};return e.jsx(F3,Object.assign({direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!l&&!n},v,g,{children:n||l}))};const V3=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),K3=t.forwardRef(((e,n)=>t.createElement(se.span,Z({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[$3,U3]=q("Tooltip",[Qo]),W3=Qo(),Z3=700,q3="tooltip.open",[G3,Y3]=$3("TooltipProvider"),X3="Tooltip",[J3,Q3]=$3(X3),e4="TooltipTrigger",t4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Q3(e4,r),a=Y3(e4,r),s=W3(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(hi,Z({asChild:!0},s),t.createElement(se.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),n4="TooltipPortal",[r4,o4]=$3(n4,{forceMount:void 0}),i4="TooltipContent",a4=t.forwardRef(((e,n)=>{const r=o4(i4,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=Q3(i4,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(u4,Z({side:i},a,{ref:n})):t.createElement(s4,Z({side:i},a,{ref:n})))})),s4=t.forwardRef(((e,n)=>{const r=Q3(i4,e.__scopeTooltip),o=Y3(i4,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(u4,Z({},e,{ref:a}))})),[c4,l4]=$3(X3,{isInside:!1}),u4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=Q3(i4,r),u=W3(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(q3,f),()=>document.removeEventListener(q3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(gi,Z({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(c4,{scope:r,isInside:!0},t.createElement(K3,{id:l.contentId,role:"tooltip"},i||o))))}));const f4=e=>{const{__scopeTooltip:n,delayDuration:r=Z3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement(G3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},d4=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=Y3(X3,e.__scopeTooltip),u=W3(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(q3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(pi,u,t.createElement(J3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?S():x()}),[l.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},p4=t4,h4=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=Q3(n4,n);return t.createElement(r4,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(yi,{asChild:!0,container:i},o)))},g4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=W3(r);return l4("TooltipArrow",r).isInside?null:t.createElement(vi,Z({},i,o,{ref:n}))})),v4=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(f4,{children:e.jsxs(d4,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(p4,{asChild:!0,children:e.jsx(m4,Object.assign({},w,{children:n}))}),e.jsx(h4,{container:y,children:!p&&e.jsxs(y4,{side:Xs(i).side,align:Xs(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(g4,{className:"tooltip-arrow",width:12,height:8})]})})]})})},y4=W(a4,{shouldForwardProp:e=>Js(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),m4=W.div({display:"inline-flex"}),b4=W.div((({theme:e})=>({color:e.tooltip.color.default}))),w4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));v4.Header=b4,v4.Body=w4;const x4=W.div((({gap:e=8})=>({display:"flex",gap:e})),cn),C4=W.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),S4="#0074F4",_4="#FF6068",O4="#FF9900",k4="#F0BB00",E4="#00C242",j4="#001D32",A4="#FFFFFF",T4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:S4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,S4),brandTint1:fr(.9,S4),brandTint2:fr(.8,S4),brandTint3:fr(.7,S4),brandTint4:fr(.6,S4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:_4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,_4),errorTint1:fr(.9,_4),errorTint2:fr(.8,_4),warning:O4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,O4),warningTint1:fr(.9,O4),warningTint2:fr(.8,O4),alert:k4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,k4),alertTint1:fr(.9,k4),alertTint2:fr(.8,k4),success:E4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,E4),successTint1:fr(.9,E4),successTint2:fr(.8,E4),grayscale0:fr(.95,j4),grayscale1:fr(.9,j4),grayscale2:fr(.8,j4),grayscale3:fr(.7,j4),grayscale4:fr(.6,j4),grayscale5:fr(.5,j4),grayscale6:fr(.4,j4),grayscale7:fr(.3,j4),grayscale8:fr(.2,j4),grayscale9:fr(.1,j4),grayscale10:j4,contrast0:fr(.95,A4),contrast1:fr(.9,A4),contrast2:fr(.8,A4),contrast3:fr(.7,A4),contrast4:fr(.6,A4),contrast5:fr(.5,A4),contrast6:fr(.4,A4),contrast7:fr(.3,A4),contrast8:fr(.2,A4),contrast9:fr(.1,A4),contrast10:A4},M4="#FFFFFF",P4={scale0:T4.grayscale0,scale1:T4.grayscale1,scale2:T4.grayscale2,scale3:T4.grayscale3,scale4:T4.grayscale4,scale5:T4.grayscale5,scale6:T4.grayscale6,scale7:T4.grayscale7,scale8:T4.grayscale8,scale9:T4.grayscale9,scale10:T4.grayscale10,accent:T4.brand,accentShade:T4.brandShade1,background0:M4,background1:M4,background2:M4,background3:M4,background4:M4,background5:M4};var D4={color:T4,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:L4}=D4;var I4={small:{height:28,iconSize:18,font:L4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:L4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:L4.size.lg,padding:14,iconOnlyPadding:6}};const R4="#FFFFFF",N4=T4.grayscale0,B4=T4.grayscale1,F4=T4.grayscale2,z4=T4.grayscale3,H4=T4.grayscale4,V4=T4.grayscale6,K4=T4.grayscale8,$4=T4.grayscale9,U4=T4.grayscale10,W4=Object.assign(Object.assign(Object.assign({},D4),P4),{name:"light",button:Object.assign(Object.assign({},I4),{primary:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineBackground:{default:T4.brandTint0,hover:T4.brandTint1,active:T4.brandTint2},border:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},divider:F4},secondary:{color:{default:U4,hover:U4,active:U4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:B4,hover:F4,active:z4},outlineBackground:{default:B4,hover:F4,active:z4},border:{default:F4,hover:F4,active:F4},divider:F4},positive:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},outlineBackground:{default:T4.successTint0,hover:T4.successTint1,active:T4.successTint2},border:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},divider:F4},negative:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},outlineBackground:{default:T4.errorTint0,hover:T4.errorTint1,active:T4.errorTint2},border:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},divider:F4},caution:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},outlineBackground:{default:T4.warningTint0,hover:T4.warningTint1,active:T4.warningTint2},border:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},divider:F4},subtle:{color:{default:T4.brand,hover:T4.brand,active:T4.brand},outlineColor:{default:T4.brand,hover:T4.brand,active:T4.brand},secondaryColor:{default:U4,hover:U4,active:U4},positiveColor:{default:T4.success,hover:T4.success,active:T4.success},negativeColor:{default:T4.error,hover:T4.error,active:T4.error},cautionColor:{default:T4.warning,hover:T4.warning,active:T4.warning},background:{default:"transparent",hover:B4,active:F4},outlineBackground:{default:"transparent",hover:B4,active:F4},border:{default:"transparent",hover:F4,active:F4},divider:F4},link:{color:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineColor:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},secondaryColor:{default:K4,hover:$4,active:U4},positiveColor:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},negativeColor:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},cautionColor:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:H4,hover:H4,active:H4},outlineColor:{default:H4,hover:H4,active:H4},background:{default:B4,hover:B4,active:B4},outlineBackground:{default:N4,hover:N4,active:N4},border:{default:B4,hover:B4,active:B4},divider:B4},color:{default:R4}}),calendar:{background:{container:T4.contrast10,hover:B4,active:T4.brand,activeHover:T4.brandShade1},color:{disabled:H4,default:U4,active:T4.contrast10,current:T4.brand,outside:V4,weekday:K4,monthYear:K4,iconDefault:H4,iconHover:U4}},defaultBorder:`1px solid ${B4}`,formControl:{color:{default:K4,hover:U4,active:T4.brand,activeHover:T4.brandShade1,disabled:H4}},input:{borderRadius:4,background:{default:N4,hover:B4,focused:B4,disabled:N4},color:{default:U4,disabled:H4,placeholder:V4,description:V4,descriptionError:T4.error},borderColor:{default:V4,hover:K4,focused:T4.brand,disabled:H4,error:T4.error},labelColor:{default:K4,hover:K4,filled:V4,focused:T4.brand,disabled:H4}},menu:{background:R4},menuItem:{borderColor:T4.brand,background:{active:N4,hover:B4,inactive:"transparent"},color:{active:U4,hover:U4,inactive:V4}},modal:{background:T4.contrast10,color:{header:U4,body:V4}},options:{background:T4.contrast10},optionItem:{background:{active:B4,inactive:"transparent"},color:{active:U4,inactive:U4,accent:T4.brand}},table:{color:{header:V4,body:U4},borderColor:B4},toast:{color:U4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:K4,info:T4.brand,success:T4.success,warning:T4.warning,error:T4.error}},toggle:{slider:T4.contrast10},tooltip:{background:"#FFF",color:{default:U4,subtext:V4}}}),Z4={scale0:T4.contrast0,scale1:T4.contrast1,scale2:T4.contrast2,scale3:T4.contrast3,scale4:T4.contrast4,scale5:T4.contrast5,scale6:T4.contrast6,scale7:T4.contrast7,scale8:T4.contrast8,scale9:T4.contrast9,scale10:T4.contrast10,accent:T4.brandDark,accentShade:T4.brandDarkShade1,background0:T4.brandBackground0,background1:T4.brandBackground1,background2:T4.brandBackground2,background3:T4.brandBackground3,background4:T4.brandBackground4,background5:T4.brandBackground5},q4=T4.contrast0,G4=T4.contrast1,Y4=T4.contrast2,X4=T4.contrast3,J4=T4.contrast4,Q4=T4.contrast6,e6=T4.contrast8,t6=T4.contrast9,n6=T4.contrast10,r6=T4.brandDark,o6={light:W4,dark:Object.assign(Object.assign(Object.assign({},D4),Z4),{name:"dark",button:Object.assign(Object.assign({},I4),{primary:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineBackground:{default:T4.brandTint0,hover:T4.brandTint1,active:T4.brandTint2},border:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},divider:Y4},secondary:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:G4,hover:Y4,active:X4},outlineBackground:{default:G4,hover:Y4,active:X4},border:{default:Y4,hover:Y4,active:Y4},divider:Y4},positive:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},outlineBackground:{default:T4.successTint0,hover:T4.successTint1,active:T4.successTint2},border:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},divider:Y4},negative:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},outlineBackground:{default:T4.errorTint0,hover:T4.errorTint1,active:T4.errorTint2},border:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},divider:Y4},caution:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},outlineBackground:{default:T4.warningTint0,hover:T4.warningTint1,active:T4.warningTint2},border:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},divider:Y4},subtle:{color:{default:T4.brand,hover:T4.brand,active:T4.brand},outlineColor:{default:T4.brand,hover:T4.brand,active:T4.brand},secondaryColor:{default:n6,hover:n6,active:n6},positiveColor:{default:T4.success,hover:T4.success,active:T4.success},negativeColor:{default:T4.error,hover:T4.error,active:T4.error},cautionColor:{default:T4.warning,hover:T4.warning,active:T4.warning},background:{default:"transparent",hover:G4,active:Y4},outlineBackground:{default:"transparent",hover:G4,active:Y4},border:{default:"transparent",hover:Y4,active:Y4},divider:Y4},link:{color:{default:T4.brandShade2,hover:T4.brandShade1,active:T4.brand},outlineColor:{default:T4.brandShade2,hover:T4.brandShade1,active:T4.brand},secondaryColor:{default:e6,hover:t6,active:n6},positiveColor:{default:T4.successShade2,hover:T4.successShade1,active:T4.success},negativeColor:{default:T4.errorShade2,hover:T4.errorShade1,active:T4.error},cautionColor:{default:T4.warningShade2,hover:T4.warningShade1,active:T4.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:J4,hover:J4,active:J4},outlineColor:{default:J4,hover:J4,active:J4},background:{default:G4,hover:G4,active:G4},outlineBackground:{default:q4,hover:q4,active:q4},border:{default:G4,hover:G4,active:G4},divider:G4},color:{default:"#FFFFFF"}}),calendar:{background:{container:T4.brandBackground3,hover:G4,active:T4.brand,activeHover:T4.brandShade1},color:{disabled:J4,default:n6,active:n6,current:r6,outside:Q4,weekday:e6,monthYear:e6,iconDefault:J4,iconHover:n6}},defaultBorder:`1px solid ${G4}`,formControl:{color:{default:e6,hover:n6,active:T4.brand,activeHover:T4.brandShade1,disabled:J4}},input:{borderRadius:4,background:{default:q4,hover:G4,focused:G4,disabled:q4},color:{default:n6,disabled:J4,placeholder:Q4,description:Q4,descriptionError:T4.error},borderColor:{default:Q4,hover:e6,focused:r6,disabled:J4,error:T4.error},labelColor:{default:e6,hover:e6,filled:Q4,focused:r6,disabled:J4}},menu:{background:T4.brandBackground2},menuItem:{borderColor:T4.brand,background:{active:q4,hover:G4,inactive:"transparent"},color:{active:n6,hover:n6,inactive:Q4}},modal:{background:T4.brandBackground3,color:{header:n6,body:Q4}},options:{background:T4.brandBackground3},optionItem:{background:{active:G4,inactive:"transparent"},color:{active:n6,inactive:n6,accent:r6}},table:{color:{header:Q4,body:n6},borderColor:G4},toast:{color:n6,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:e6,info:T4.brand,success:T4.success,warning:T4.warning,error:T4.error}},toggle:{slider:T4.brandBackground0},tooltip:{background:T4.brandBackground4,color:{default:n6,subtext:Q4}}})};exports.Accordion=hn,exports.Audio=Tc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(fz,Object.assign({},y,{children:[e.jsx(uz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(VB,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(CN,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(HN,{stroke:m,tickMargin:4,tickFormatter:e=>d?Kc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(KN,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Kc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),pz(),o&&e.jsx(Bm,{content:e.jsx(hz,{})}),i.map((({key:t,color:n},r)=>e.jsx(PI,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=xc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>iz(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=az(("prev"===e?sz:GB)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?ez(sz(e,{months:1})):az("future"===n?GB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?sz:GB)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return UB(e).getDay()}(az(e,1)),n=QF(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(ez(f)),s=v(az(f,1));let u=!1;const d=nz(e,n),p=tz(e,r);(i&&d||a&&p)&&(u=!0);const h=tz(e,o)||nz(e,s),g=sF(e,c),y=sF(e,l);return{date:JF(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(Oz,{noShadow:s,children:[e.jsxs(kz,{children:[e.jsx(Ez,{children:YF(f,"MMMM y")}),e.jsxs(jz,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(Mz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(Pz,{children:t[0]},t)))}),e.jsx(Az,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(Tz,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},_z())))})]})},exports.Checkbox=Rz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},_=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(MH,{method:x,url:_}):e.jsx(jH,{code:_,language:w,theme:"dark"===h?tH.oceanicNext:tH.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(IH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(RH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(NH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(AH,{content:_})]}))})},exports.DocTable=BH,exports.DraftEditor=n9,exports.Dropdown=d9,exports.DropdownMenu=Qs,exports.Form=S9,exports.Grid=m9,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(E9,{opacity:l,prevNext:o.length>1,children:[e.jsx(j9,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(A9,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(T9,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(A9,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=M9,exports.Input=s9,exports.InputUtils=t9,exports.Label=x9,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(fz,Object.assign({},s,{children:[e.jsx(uz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(HB,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(CN,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(HN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(KN,{stroke:f,tickMargin:4,tickFormatter:e=>Kc(e)}),pz(),i&&e.jsx(Bm,{content:e.jsx(hz,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(FN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=P9,exports.Message=N9,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs($9,{children:[e.jsx(K9,{}),e.jsx(V9,{color:n,style:r,children:t}),e.jsx(K9,{})]}),exports.Modal=U9,exports.MultiSelect=G9,exports.Notification=$B,exports.Options=Ks,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(o3(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,o3(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(i3,Object.assign({width:s},l,{children:[e.jsx(s3,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(s3,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(l3,{children:"... "}):"",e.jsx(c3,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(l3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(s3,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(s3,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(fz,Object.assign({width:n,height:n},a,{children:e.jsxs(KB,{width:n,height:n,children:[e.jsx(iL,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(rx,{fill:t.color||"#999"},t.name)))}),s&&pz()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=8,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(u3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(h3,Object.assign({width:o,height:i||s},p,{children:e.jsx(g3,{color:n,width:h})}))},exports.Radio=b9,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,m3.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=Ec,exports.Spacer=b3,exports.Spinner=pc,exports.Table=H3,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=c(t,["items","activeItem","itemWidth","itemGap","onChange"]);const l=n.filter((e=>!1!==e.visible));return e.jsx(x4,Object.assign({gap:i},s,{children:l.map((t=>{const{id:n,label:i,icon:s,iconColor:l,iconPosition:u}=t,f=c(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(C4,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},f,{children:[s&&e.jsx(fn,{name:s,size:"small",color:l,inheritColor:!l}),i]}),n)}))}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=w9,exports.Tooltip=v4,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},_=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(E3,{children:t.header}),e.jsx(j3,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),k=!(s&&c);return e.jsxs(w3,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(x3,{children:i}),e.jsxs(C3,{children:[!l&&e.jsxs(S3,{children:[k&&e.jsx(_3,{children:y.length>0&&!s&&e.jsx(xc,{small:!0,outline:!0,onClick:()=>_("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(O3,{children:y.map((t=>e.jsxs(k3,{onClick:()=>S(t,"select"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(S3,{children:[k&&!l&&e.jsx(_3,{children:b.length>0&&!c&&!l&&e.jsx(xc,{small:!0,outline:!0,secondary:!0,onClick:()=>_("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(O3,{children:b.map((t=>e.jsxs(k3,{onClick:()=>S(t,"remove"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=T4,exports.copyToClipboard=cz,exports.darkScale=Z4,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,l=YF(n,"EEEE"),u=YF(n,"MMM d"),f=YF(n,"MMM d, y"),d=YF(n,"h:mm aaa"),p=rz(n),h=function(e){return+UB(e)>Date.now()}(n),g=function(e){return sF(e,aF(e))}(n),v=function(e){return sF(e,oz(aF(e),1))}(n),y=function(e){return sF(e,ZB(aF(e),1))}(n),m=fF(c,n),b=dF(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.lightScale=P4,exports.marginProps=cn,exports.numberWithCommas=lz,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=o6,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(U9,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(U9.Header,{children:n}),r&&e.jsx(U9.Text,{children:r}),s&&e.jsx(U9.Body,{marginTop:4,marginBottom:8,children:e.jsx(s9,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(U9.Footer,{children:[e.jsx(xc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(xc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=an;
|
|
44
|
+
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var a9=i9.exports;const s9=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(fn,Object.assign({},n,r))},c9=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:S,height:_,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,hideControls:H,onChange:V,onClick:K,onClear:$,onFocus:U,onBlur:W}=r,Z=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Y}=Y5(U,W,!F&&!B),X=t.useRef(null),{color:J}=n.useTheme(),[Q,ee]=t.useState(h?50:void 0),te=t.useRef(null),ne={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},re={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&(null==te?void 0:te.current)){const{current:e}=te;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&ee(t+3)}}),[h,R,s,te]);const oe=h?R||s:R,ie=(!!R||"number"==typeof R)&&$&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===a9.normalize(R)){const{current:n}=X;if(n){const r=a9.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ae=()=>{q||G()},se=()=>{q&&Y()},ce=()=>{ae(),(null==X?void 0:X.current)&&X.current.select()};t.useImperativeHandle(o,(()=>({focus:ae,blur:se,hasFocus:q,select:ce}))),t.useEffect((()=>{var e;q&&(null===(e=X.current)||void 0===e||e.focus())}),[q]);return e.jsxs(J5,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:S,height:_,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ae(),K&&K(e)},pointer:z,readOnly:B},ne,re,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&s9(g,{marginRight:8}),e.jsxs(Q5,{readOnly:B||F,children:[h&&e.jsx(f9,{ref:te,fontSize:C,children:oe}),a&&!h&&e.jsx(e9,{htmlFor:i||a,filled:X5(R),focused:q,disabled:N,children:a}),e.jsx(l9,Object.assign({id:i||a,ref:X,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=a9.normalize(t);if(n.length>10)return;const r=a9.format(n);V&&V(e,r,n)}else V&&V(e)},onFocus:G,onBlur:Y,disabled:N,hide:!(X5(R)||!a||q||h),width:Q,fontSize:C,hideControls:H},Z))]}),v&&s9(v),f&&e.jsx(pc,{}),ie&&e.jsx(u9,{onClick:$,children:e.jsx(fn,{name:"close-circle-outline",color:J.brand})}),u&&e.jsx(t9,{invalid:y,children:u})]}))})),l9=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),u9=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),f9=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),d9=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),p9=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:_,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:$,filter:U,restrictInput:W,inputRef:Z,optionsParent:q}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&$){null===(e=(Z||ae).current)||void 0===e||e.focus()}}),[ee,$]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,q?[q,`${q} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:Oz(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}ee&&le(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""!==h&&null!=h||he()}),[h]);const ve=()=>{const e=Vs(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=d9(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Ws(g||[],{search:$,filter:U,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:$?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=qs(g||[],v,ge,le,{selected:me,search:$,filter:U,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,Se=c(G,["onClear","phone"]);return e.jsx(h9,Object.assign({textOnly:C,altTrigger:!!L,width:S,height:_,focused:ne,search:$},ce,{children:e.jsxs(g9,{ref:ue,children:[L?e.jsx(v9,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(m9,{shake:oe,children:e.jsx(c9,Object.assign({},Se,{ref:Z||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!$,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||ae).current)||void 0===t?void 0:t.hasFocus;$?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!($&&(!i||r))?ge(o,e):$&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),$&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))}),ee&&we.length>0&&e.jsx(Ks,{containerRef:be,parentSelector:q,width:!L&&!C||q?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};p9.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u,section:f})=>{const d=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||d9(i)||"",value:t};r&&r(o,e)};return e.jsx(Ks.Item,{id:u,contentPosition:a,color:s,onClick:d,accented:c,section:f,children:i})};const h9=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),g9=W.div({position:"relative",width:"100%",height:"inherit"}),v9=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),y9=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),m9=W.div((({shake:e})=>({"& input":{animation:e?`${y9} .5s linear`:void 0}}))),b9=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);b9.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const w9=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(Lz,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(Rz,{children:r}),e.jsx(Iz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},x9=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(Lz,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(Rz,{children:o}),e.jsx(Iz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},C9=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(S9,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&s9(r,{marginRight:4,size:"small"}),n,o&&s9(o,{marginLeft:4,size:"small"})]}))},S9=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),_9=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(O9,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};_9.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(k9,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},_9.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(E9,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},_9.Input=c9,_9.Dropdown=p9,_9.Radio=w9,_9.Toggle=x9,_9.Checkbox=Nz,_9.Label=C9;const O9=W(b9)({boxSizing:"border-box"}),k9=W(b9)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),E9=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),j9=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),A9=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),T9=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),M9=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),P9=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),D9=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(L9,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Vs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),L9=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})),sn),I9=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),R9=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),N9=W.div({marginLeft:"auto",marginRight:8});D9.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(I9,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),D9.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Vs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(R9,{backgroundColor:d,children:[e.jsxs(I9,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx(N9,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const B9=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(H9,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(V9,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},F9=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),z9=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));B9.Header=F9,B9.Body=z9;const H9=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),V9=W.div({width:"100%"}),K9=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),$9=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),U9=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),W9=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k,zIndex:E})=>{const j=at(u?()=>null:c,i),A={padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k},T=Vs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),M=e.jsx(G9,{color:f,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,zIndex:E,children:e.jsxs(Z9,Object.assign({ref:j,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},A,{children:[T,l&&e.jsx(q9,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),P=document.querySelector(o||"#root");return i&&P?r.createPortal(M,P):null};W9.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),W9.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),W9.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),W9.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const Z9=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),q9=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),G9=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,position:o,top:i,bottom:a,right:s,left:c,zIndex:l})=>({position:o||"absolute",top:i||(c||a||s?void 0:0),left:c||(i||a||s?void 0:0),bottom:a,right:s,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:l||100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),Y9=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:_,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&_(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const $=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];O(t)}}),A&&!D,[l]);const U=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${Oz()}`),[]),Z=t.useMemo((()=>`multi-select-list-${Oz()}`),[]),q=p?l.length>=p:void 0,G=m||!A||q,Y=()=>{const t=e.jsxs(e3,{id:Z,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(t3,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(C9,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(p9,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:$,onError:e=>P(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(X9,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(J9,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(Q9,{collapse:z,children:u}):Y(),e.jsxs(n3,{children:[p&&!b&&e.jsx(o3,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(r3,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),X9=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),J9=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),Q9=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),e3=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),t3=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),n3=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),r3=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),o3=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),i3=e=>e?+e:0,a3=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),s3=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),c3=W(s3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),l3=W(s3)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),u3=W.span((({theme:e})=>({color:e.scale6}))),f3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(d3,Object.assign({size:n},u,{children:[e.jsx(p3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(h3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},d3=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),p3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),h3=W(p3)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),g3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),cn),v3=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var y3,m3={exports:{}};y3=m3,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){u&&o&&c&&(u(l),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,c=!0,l=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),s=!1;return i.onload=i.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,v(e)}}function g(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function m(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function _(e){if(e.g){var t=u(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function k(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){s(e.c,"body",e.a)}function A(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=A(e=new m(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=A(e=new m(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=A(e=new m("serif",w(this.a))),this.j.a.style.cssText=e,e=A(e=new m("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var P={D:"serif",C:"sans-serif"},D=null;function L(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function I(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function R(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=L()&&I(e,o,i)),t?r()-e.A>=e.w?L()&&I(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){R(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),R(this)};var F=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):_(e.a))}function H(e){this.j=e,this.a=new k,this.h=0,this.f=this.g=!0}function V(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===r.length&&a)_(t.a);else{t.f+=r.length,a&&(t.j=a);var c,u=[];for(c=0;c<r.length;c++){var f=r[c],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new T(n(t.g,t),n(t.h,t),t.c,f,t.s,d):new M(n(t.g,t),n(t.h,t),t.c,f,t.s,e,d),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),l(t.f,r,o)}O(t,"fontinactive",e),z(this)},H.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new B(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new m(c,n))):a.push(new m(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],h(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new m(r[0],c[l]));else s.push(new m(r[0]));g(a,(function(){e(s,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":Y[u],null==(f=f[1])||""==f)f="4";else var f=G[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new m(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new m(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new m(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new H(window);ne.a.c.custom=function(e,t){return new $(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new K(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};y3.exports?y3.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var b3=ct(m3.exports);const w3=W.div(an),x3=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),C3=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),S3=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),_3=W.div({display:"flex",flexDirection:"column"}),O3=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),k3=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),E3=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),j3=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),A3=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),T3=t.createContext({}),M3=(t,n,r)=>{const o="th"===n?P3:D3,i=r?{style:r}:{};return Vs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},P3=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),D3=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),L3=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),I3=W(b9)({alignItems:"center",padding:"8px 24px"},sn),R3=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),N3=W(b9)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),sn),B3=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},F3=W.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:B3(e||n),alignItems:B3(r),flexDirection:t,gap:o}))),z3=W(F3)((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),H3=W(F3)((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),V3=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(T3.Provider,{value:p,children:e.jsx(K3,Object.assign({},a,{children:d}))})};V3.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(T3),u=o||l||"equal";return e.jsx(L3,{alignToScrollBody:a,children:e.jsx(I3,Object.assign({as:"tr",columns:u},s,{children:M3(r,"th",i)}))})},V3.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:l,direction:u,gap:f,sorted:d,sortKey:p}=r,h=c(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,v]=t.useState(d||"inactive"),{color:y}=n.useTheme(),{activeColumn:m,setActiveColumn:b}=t.useContext(T3),w=p||d,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(v(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==d&&"desc"!==d||S(d)}),[]),t.useEffect((()=>{d&&v(d)}),[d]),t.useEffect((()=>{const e=!m&&d;p&&m&&m.key!==p&&"inactive"!==g&&!e&&v("inactive")}),[m,g]),e.jsxs(H3,Object.assign({onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:u,contentPosition:a,justify:s,align:l,gap:f,active:C,sorting:!!w},h,{children:[o,w?e.jsx(fn,{name:x,marginLeft:8,size:"small",color:C?y.brand:void 0,inheritColor:!C}):null]}))},V3.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(T3);return e.jsx(R3,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},V3.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(T3),u=o||l||"equal";return e.jsx(N3,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:M3(r,"td",a)}))},V3.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:l,padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h}=t,g=c(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const v={padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h};return e.jsx(z3,Object.assign({direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!l&&!n},v,g,{children:n||l}))};const K3=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),$3=t.forwardRef(((e,n)=>t.createElement(se.span,Z({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[U3,W3]=q("Tooltip",[Qo]),Z3=Qo(),q3=700,G3="tooltip.open",[Y3,X3]=U3("TooltipProvider"),J3="Tooltip",[Q3,e4]=U3(J3),t4="TooltipTrigger",n4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=e4(t4,r),a=X3(t4,r),s=Z3(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(hi,Z({asChild:!0},s),t.createElement(se.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),r4="TooltipPortal",[o4,i4]=U3(r4,{forceMount:void 0}),a4="TooltipContent",s4=t.forwardRef(((e,n)=>{const r=i4(a4,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=e4(a4,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(f4,Z({side:i},a,{ref:n})):t.createElement(c4,Z({side:i},a,{ref:n})))})),c4=t.forwardRef(((e,n)=>{const r=e4(a4,e.__scopeTooltip),o=X3(a4,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(f4,Z({},e,{ref:a}))})),[l4,u4]=U3(J3,{isInside:!1}),f4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=e4(a4,r),u=Z3(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(G3,f),()=>document.removeEventListener(G3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(gi,Z({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(l4,{scope:r,isInside:!0},t.createElement($3,{id:l.contentId,role:"tooltip"},i||o))))}));const d4=e=>{const{__scopeTooltip:n,delayDuration:r=q3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement(Y3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},p4=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=X3(J3,e.__scopeTooltip),u=Z3(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(G3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(pi,u,t.createElement(Q3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?S():x()}),[l.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},h4=n4,g4=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=e4(r4,n);return t.createElement(o4,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(yi,{asChild:!0,container:i},o)))},v4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Z3(r);return u4("TooltipArrow",r).isInside?null:t.createElement(vi,Z({},i,o,{ref:n}))})),y4=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(d4,{children:e.jsxs(p4,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(h4,{asChild:!0,children:e.jsx(b4,Object.assign({},w,{children:n}))}),e.jsx(g4,{container:y,children:!p&&e.jsxs(m4,{side:Xs(i).side,align:Xs(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(v4,{className:"tooltip-arrow",width:12,height:8})]})})]})})},m4=W(s4,{shouldForwardProp:e=>Js(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),b4=W.div({display:"inline-flex"}),w4=W.div((({theme:e})=>({color:e.tooltip.color.default}))),x4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));y4.Header=w4,y4.Body=x4;const C4=W.div((({gap:e=8})=>({display:"flex",gap:e})),cn),S4=W.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),_4="#0074F4",O4="#FF6068",k4="#FF9900",E4="#F0BB00",j4="#00C242",A4="#001D32",T4="#FFFFFF",M4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:_4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,_4),brandTint1:fr(.9,_4),brandTint2:fr(.8,_4),brandTint3:fr(.7,_4),brandTint4:fr(.6,_4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:O4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,O4),errorTint1:fr(.9,O4),errorTint2:fr(.8,O4),warning:k4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,k4),warningTint1:fr(.9,k4),warningTint2:fr(.8,k4),alert:E4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,E4),alertTint1:fr(.9,E4),alertTint2:fr(.8,E4),success:j4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,j4),successTint1:fr(.9,j4),successTint2:fr(.8,j4),grayscale0:fr(.95,A4),grayscale1:fr(.9,A4),grayscale2:fr(.8,A4),grayscale3:fr(.7,A4),grayscale4:fr(.6,A4),grayscale5:fr(.5,A4),grayscale6:fr(.4,A4),grayscale7:fr(.3,A4),grayscale8:fr(.2,A4),grayscale9:fr(.1,A4),grayscale10:A4,contrast0:fr(.95,T4),contrast1:fr(.9,T4),contrast2:fr(.8,T4),contrast3:fr(.7,T4),contrast4:fr(.6,T4),contrast5:fr(.5,T4),contrast6:fr(.4,T4),contrast7:fr(.3,T4),contrast8:fr(.2,T4),contrast9:fr(.1,T4),contrast10:T4},P4="#FFFFFF",D4={scale0:M4.grayscale0,scale1:M4.grayscale1,scale2:M4.grayscale2,scale3:M4.grayscale3,scale4:M4.grayscale4,scale5:M4.grayscale5,scale6:M4.grayscale6,scale7:M4.grayscale7,scale8:M4.grayscale8,scale9:M4.grayscale9,scale10:M4.grayscale10,accent:M4.brand,accentShade:M4.brandShade1,background0:P4,background1:P4,background2:P4,background3:P4,background4:P4,background5:P4};var L4={color:M4,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:I4}=L4;var R4={small:{height:28,iconSize:18,font:I4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:I4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:I4.size.lg,padding:14,iconOnlyPadding:6}};const N4="#FFFFFF",B4=M4.grayscale0,F4=M4.grayscale1,z4=M4.grayscale2,H4=M4.grayscale3,V4=M4.grayscale4,K4=M4.grayscale6,$4=M4.grayscale8,U4=M4.grayscale9,W4=M4.grayscale10,Z4=Object.assign(Object.assign(Object.assign({},L4),D4),{name:"light",button:Object.assign(Object.assign({},R4),{primary:{color:{default:N4,hover:N4,active:N4},outlineColor:{default:W4,hover:W4,active:W4},background:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},outlineBackground:{default:M4.brandTint0,hover:M4.brandTint1,active:M4.brandTint2},border:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},divider:z4},secondary:{color:{default:W4,hover:W4,active:W4},outlineColor:{default:W4,hover:W4,active:W4},background:{default:F4,hover:z4,active:H4},outlineBackground:{default:F4,hover:z4,active:H4},border:{default:z4,hover:z4,active:z4},divider:z4},positive:{color:{default:N4,hover:N4,active:N4},outlineColor:{default:W4,hover:W4,active:W4},background:{default:M4.success,hover:M4.successShade1,active:M4.successShade2},outlineBackground:{default:M4.successTint0,hover:M4.successTint1,active:M4.successTint2},border:{default:M4.success,hover:M4.successShade1,active:M4.successShade2},divider:z4},negative:{color:{default:N4,hover:N4,active:N4},outlineColor:{default:W4,hover:W4,active:W4},background:{default:M4.error,hover:M4.errorShade1,active:M4.errorShade2},outlineBackground:{default:M4.errorTint0,hover:M4.errorTint1,active:M4.errorTint2},border:{default:M4.error,hover:M4.errorShade1,active:M4.errorShade2},divider:z4},caution:{color:{default:N4,hover:N4,active:N4},outlineColor:{default:W4,hover:W4,active:W4},background:{default:M4.warning,hover:M4.warningShade1,active:M4.warningShade2},outlineBackground:{default:M4.warningTint0,hover:M4.warningTint1,active:M4.warningTint2},border:{default:M4.warning,hover:M4.warningShade1,active:M4.warningShade2},divider:z4},subtle:{color:{default:M4.brand,hover:M4.brand,active:M4.brand},outlineColor:{default:M4.brand,hover:M4.brand,active:M4.brand},secondaryColor:{default:W4,hover:W4,active:W4},positiveColor:{default:M4.success,hover:M4.success,active:M4.success},negativeColor:{default:M4.error,hover:M4.error,active:M4.error},cautionColor:{default:M4.warning,hover:M4.warning,active:M4.warning},background:{default:"transparent",hover:F4,active:z4},outlineBackground:{default:"transparent",hover:F4,active:z4},border:{default:"transparent",hover:z4,active:z4},divider:z4},link:{color:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},outlineColor:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},secondaryColor:{default:$4,hover:U4,active:W4},positiveColor:{default:M4.success,hover:M4.successShade1,active:M4.successShade2},negativeColor:{default:M4.error,hover:M4.errorShade1,active:M4.errorShade2},cautionColor:{default:M4.warning,hover:M4.warningShade1,active:M4.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:V4,hover:V4,active:V4},outlineColor:{default:V4,hover:V4,active:V4},background:{default:F4,hover:F4,active:F4},outlineBackground:{default:B4,hover:B4,active:B4},border:{default:F4,hover:F4,active:F4},divider:F4},color:{default:N4}}),calendar:{background:{container:M4.contrast10,hover:F4,active:M4.brand,activeHover:M4.brandShade1},color:{disabled:V4,default:W4,active:M4.contrast10,current:M4.brand,outside:K4,weekday:$4,monthYear:$4,iconDefault:V4,iconHover:W4}},defaultBorder:`1px solid ${F4}`,formControl:{color:{default:$4,hover:W4,active:M4.brand,activeHover:M4.brandShade1,disabled:V4}},input:{borderRadius:4,background:{default:B4,hover:F4,focused:F4,disabled:B4},color:{default:W4,disabled:V4,placeholder:K4,description:K4,descriptionError:M4.error},borderColor:{default:K4,hover:$4,focused:M4.brand,disabled:V4,error:M4.error},labelColor:{default:$4,hover:$4,filled:K4,focused:M4.brand,disabled:V4}},menu:{background:N4},menuItem:{borderColor:M4.brand,background:{active:B4,hover:F4,inactive:"transparent"},color:{active:W4,hover:W4,inactive:K4}},modal:{background:M4.contrast10,color:{header:W4,body:K4}},options:{background:M4.contrast10},optionItem:{background:{active:F4,inactive:"transparent"},color:{active:W4,inactive:W4,accent:M4.brand}},table:{color:{header:K4,body:W4},borderColor:F4},toast:{color:W4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:$4,info:M4.brand,success:M4.success,warning:M4.warning,error:M4.error}},toggle:{slider:M4.contrast10},tooltip:{background:"#FFF",color:{default:W4,subtext:K4}}}),q4={scale0:M4.contrast0,scale1:M4.contrast1,scale2:M4.contrast2,scale3:M4.contrast3,scale4:M4.contrast4,scale5:M4.contrast5,scale6:M4.contrast6,scale7:M4.contrast7,scale8:M4.contrast8,scale9:M4.contrast9,scale10:M4.contrast10,accent:M4.brandDark,accentShade:M4.brandDarkShade1,background0:M4.brandBackground0,background1:M4.brandBackground1,background2:M4.brandBackground2,background3:M4.brandBackground3,background4:M4.brandBackground4,background5:M4.brandBackground5},G4=M4.contrast0,Y4=M4.contrast1,X4=M4.contrast2,J4=M4.contrast3,Q4=M4.contrast4,e6=M4.contrast6,t6=M4.contrast8,n6=M4.contrast9,r6=M4.contrast10,o6=M4.brandDark,i6={light:Z4,dark:Object.assign(Object.assign(Object.assign({},L4),q4),{name:"dark",button:Object.assign(Object.assign({},R4),{primary:{color:{default:r6,hover:r6,active:r6},outlineColor:{default:r6,hover:r6,active:r6},background:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},outlineBackground:{default:M4.brandTint0,hover:M4.brandTint1,active:M4.brandTint2},border:{default:M4.brand,hover:M4.brandShade1,active:M4.brandShade2},divider:X4},secondary:{color:{default:r6,hover:r6,active:r6},outlineColor:{default:r6,hover:r6,active:r6},background:{default:Y4,hover:X4,active:J4},outlineBackground:{default:Y4,hover:X4,active:J4},border:{default:X4,hover:X4,active:X4},divider:X4},positive:{color:{default:r6,hover:r6,active:r6},outlineColor:{default:r6,hover:r6,active:r6},background:{default:M4.success,hover:M4.successShade1,active:M4.successShade2},outlineBackground:{default:M4.successTint0,hover:M4.successTint1,active:M4.successTint2},border:{default:M4.success,hover:M4.successShade1,active:M4.successShade2},divider:X4},negative:{color:{default:r6,hover:r6,active:r6},outlineColor:{default:r6,hover:r6,active:r6},background:{default:M4.error,hover:M4.errorShade1,active:M4.errorShade2},outlineBackground:{default:M4.errorTint0,hover:M4.errorTint1,active:M4.errorTint2},border:{default:M4.error,hover:M4.errorShade1,active:M4.errorShade2},divider:X4},caution:{color:{default:r6,hover:r6,active:r6},outlineColor:{default:r6,hover:r6,active:r6},background:{default:M4.warning,hover:M4.warningShade1,active:M4.warningShade2},outlineBackground:{default:M4.warningTint0,hover:M4.warningTint1,active:M4.warningTint2},border:{default:M4.warning,hover:M4.warningShade1,active:M4.warningShade2},divider:X4},subtle:{color:{default:M4.brand,hover:M4.brand,active:M4.brand},outlineColor:{default:M4.brand,hover:M4.brand,active:M4.brand},secondaryColor:{default:r6,hover:r6,active:r6},positiveColor:{default:M4.success,hover:M4.success,active:M4.success},negativeColor:{default:M4.error,hover:M4.error,active:M4.error},cautionColor:{default:M4.warning,hover:M4.warning,active:M4.warning},background:{default:"transparent",hover:Y4,active:X4},outlineBackground:{default:"transparent",hover:Y4,active:X4},border:{default:"transparent",hover:X4,active:X4},divider:X4},link:{color:{default:M4.brandShade2,hover:M4.brandShade1,active:M4.brand},outlineColor:{default:M4.brandShade2,hover:M4.brandShade1,active:M4.brand},secondaryColor:{default:t6,hover:n6,active:r6},positiveColor:{default:M4.successShade2,hover:M4.successShade1,active:M4.success},negativeColor:{default:M4.errorShade2,hover:M4.errorShade1,active:M4.error},cautionColor:{default:M4.warningShade2,hover:M4.warningShade1,active:M4.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Q4,hover:Q4,active:Q4},outlineColor:{default:Q4,hover:Q4,active:Q4},background:{default:Y4,hover:Y4,active:Y4},outlineBackground:{default:G4,hover:G4,active:G4},border:{default:Y4,hover:Y4,active:Y4},divider:Y4},color:{default:"#FFFFFF"}}),calendar:{background:{container:M4.brandBackground3,hover:Y4,active:M4.brand,activeHover:M4.brandShade1},color:{disabled:Q4,default:r6,active:r6,current:o6,outside:e6,weekday:t6,monthYear:t6,iconDefault:Q4,iconHover:r6}},defaultBorder:`1px solid ${Y4}`,formControl:{color:{default:t6,hover:r6,active:M4.brand,activeHover:M4.brandShade1,disabled:Q4}},input:{borderRadius:4,background:{default:G4,hover:Y4,focused:Y4,disabled:G4},color:{default:r6,disabled:Q4,placeholder:e6,description:e6,descriptionError:M4.error},borderColor:{default:e6,hover:t6,focused:o6,disabled:Q4,error:M4.error},labelColor:{default:t6,hover:t6,filled:e6,focused:o6,disabled:Q4}},menu:{background:M4.brandBackground2},menuItem:{borderColor:M4.brand,background:{active:G4,hover:Y4,inactive:"transparent"},color:{active:r6,hover:r6,inactive:e6}},modal:{background:M4.brandBackground3,color:{header:r6,body:e6}},options:{background:M4.brandBackground2},optionItem:{background:{active:Y4,inactive:"transparent"},color:{active:r6,inactive:r6,accent:o6}},table:{color:{header:e6,body:r6},borderColor:Y4},toast:{color:r6,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:t6,info:M4.brand,success:M4.success,warning:M4.warning,error:M4.error}},toggle:{slider:M4.brandBackground0},tooltip:{background:M4.brandBackground4,color:{default:r6,subtext:e6}}})};exports.Accordion=hn,exports.Audio=Tc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(dz,Object.assign({},y,{children:[e.jsx(fz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(KB,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(SN,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(VN,{stroke:m,tickMargin:4,tickFormatter:e=>d?Kc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx($N,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Kc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),hz(),o&&e.jsx(Bm,{content:e.jsx(gz,{})}),i.map((({key:t,color:n},r)=>e.jsx(DI,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=xc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>az(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=sz(("prev"===e?cz:YB)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?tz(cz(e,{months:1})):sz("future"===n?YB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?cz:YB)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return WB(e).getDay()}(sz(e,1)),n=ez(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(tz(f)),s=v(sz(f,1));let u=!1;const d=rz(e,n),p=nz(e,r);(i&&d||a&&p)&&(u=!0);const h=nz(e,o)||rz(e,s),g=cF(e,c),y=cF(e,l);return{date:QF(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(kz,{noShadow:s,children:[e.jsxs(Ez,{children:[e.jsx(jz,{children:XF(f,"MMMM y")}),e.jsxs(Az,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(Pz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(Dz,{children:t[0]},t)))}),e.jsx(Tz,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(Mz,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},Oz())))})]})},exports.Checkbox=Nz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},_=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(PH,{method:x,url:_}):e.jsx(AH,{code:_,language:w,theme:"dark"===h?nH.oceanicNext:nH.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(RH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(NH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(BH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(TH,{content:_})]}))})},exports.DocTable=FH,exports.DraftEditor=r9,exports.Dropdown=p9,exports.DropdownMenu=Qs,exports.Form=_9,exports.Grid=b9,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(j9,{opacity:l,prevNext:o.length>1,children:[e.jsx(A9,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(T9,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(M9,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(T9,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=P9,exports.Input=c9,exports.InputUtils=n9,exports.Label=C9,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(dz,Object.assign({},s,{children:[e.jsx(fz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(VB,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(SN,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(VN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx($N,{stroke:f,tickMargin:4,tickFormatter:e=>Kc(e)}),hz(),i&&e.jsx(Bm,{content:e.jsx(gz,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(zN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=D9,exports.Message=B9,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(U9,{children:[e.jsx($9,{}),e.jsx(K9,{color:n,style:r,children:t}),e.jsx($9,{})]}),exports.Modal=W9,exports.MultiSelect=Y9,exports.Notification=UB,exports.Options=Ks,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(i3(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,i3(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(a3,Object.assign({width:s},l,{children:[e.jsx(c3,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(c3,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(u3,{children:"... "}):"",e.jsx(l3,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(u3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(c3,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(c3,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(dz,Object.assign({width:n,height:n},a,{children:e.jsxs($B,{width:n,height:n,children:[e.jsx(aL,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(rx,{fill:t.color||"#999"},t.name)))}),s&&hz()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=8,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(f3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(g3,Object.assign({width:o,height:i||s},p,{children:e.jsx(v3,{color:n,width:h})}))},exports.Radio=w9,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,b3.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=Ec,exports.Spacer=w3,exports.Spinner=pc,exports.Table=V3,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=c(t,["items","activeItem","itemWidth","itemGap","onChange"]);const l=n.filter((e=>!1!==e.visible));return e.jsx(C4,Object.assign({gap:i},s,{children:l.map((t=>{const{id:n,label:i,icon:s,iconColor:l,iconPosition:u}=t,f=c(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(S4,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},f,{children:[s&&e.jsx(fn,{name:s,size:"small",color:l,inheritColor:!l}),i]}),n)}))}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=x9,exports.Tooltip=y4,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},_=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(j3,{children:t.header}),e.jsx(A3,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),k=!(s&&c);return e.jsxs(x3,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(C3,{children:i}),e.jsxs(S3,{children:[!l&&e.jsxs(_3,{children:[k&&e.jsx(O3,{children:y.length>0&&!s&&e.jsx(xc,{small:!0,outline:!0,onClick:()=>_("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(k3,{children:y.map((t=>e.jsxs(E3,{onClick:()=>S(t,"select"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(_3,{children:[k&&!l&&e.jsx(O3,{children:b.length>0&&!c&&!l&&e.jsx(xc,{small:!0,outline:!0,secondary:!0,onClick:()=>_("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(k3,{children:b.map((t=>e.jsxs(E3,{onClick:()=>S(t,"remove"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=M4,exports.copyToClipboard=lz,exports.darkScale=q4,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,l=XF(n,"EEEE"),u=XF(n,"MMM d"),f=XF(n,"MMM d, y"),d=XF(n,"h:mm aaa"),p=oz(n),h=function(e){return+WB(e)>Date.now()}(n),g=function(e){return cF(e,sF(e))}(n),v=function(e){return cF(e,iz(sF(e),1))}(n),y=function(e){return cF(e,qB(sF(e),1))}(n),m=dF(c,n),b=pF(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.lightScale=D4,exports.marginProps=cn,exports.numberWithCommas=uz,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=i6,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(W9,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(W9.Header,{children:n}),r&&e.jsx(W9.Text,{children:r}),s&&e.jsx(W9.Body,{marginTop:4,marginBottom:8,children:e.jsx(c9,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(W9.Footer,{children:[e.jsx(xc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(xc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=an;
|
|
45
45
|
//# sourceMappingURL=index.js.map
|