@access-ci/ui 0.19.0-beta6 → 0.19.1
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/README.md +14 -0
- package/dist/{access-ci-ui-react-Il8i7n0w.js → access-ci-ui-react-DBM8Z2Gd.js} +4 -4
- package/dist/access-ci-ui-react.js +1 -1
- package/dist/access-ci-ui-react.umd.cjs +18 -18
- package/dist/access-ci-ui.bundle.js +31 -31
- package/dist/access-ci-ui.js +1 -1
- package/dist/access-ci-ui.umd.cjs +51 -51
- package/dist/{access-qa-bot-D9sVXy-S.js → access-qa-bot-BHGE7Oub.js} +44 -46
- package/dist/{access-qa-bot---JI33m1.js → access-qa-bot-ChysYfDA.js} +1825 -1827
- package/dist/{icon-CtTuTcKc.js → icon-BoS957qu.js} +1 -1
- package/dist/{index-Cd0N_Dlu.js → index-DENOJGFb.js} +4 -4
- package/dist/{resource-group-detail-BhKRF1Ub.js → resource-group-detail-BIjgipYz.js} +2 -2
- package/dist/{resource-group-detail-D9uSq1WL.js → resource-group-detail-BJk__qB6.js} +1 -1
- package/dist/{resource-home-Brj8YVsH.js → resource-home-CU9-W9SO.js} +1 -1
- package/dist/{resource-home-ugxsPvhn.js → resource-home-fzRBmcd1.js} +2 -2
- package/package.json +2 -2
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
(function(ge,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/client"),require("react-dom/server")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-dom/client","react-dom/server"],m):(ge=typeof globalThis<"u"?globalThis:ge||self,m(ge.AccessCiUi={},ge.jsxRuntime,ge.React,ge.ReactDOM,ge.ReactDOMClient,ge.ReactDOMServer))})(this,(function(ge,m,x,lp,cp,up){"use strict";function dp(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const F=dp(x),Ap="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='%231a5b6e'%20className='bi%20bi-house-door-fill'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%2014.5v-3.505c0-.245.25-.495.5-.495h2c.25%200%20.5.25.5.5v3.5a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5v-7a.5.5%200%200%200-.146-.354L13%205.793V2.5a.5.5%200%200%200-.5-.5h-1a.5.5%200%200%200-.5.5v1.293L8.354%201.146a.5.5%200%200%200-.708%200l-6%206A.5.5%200%200%200%201.5%207.5v7a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5'/%3e%3c/svg%3e";function qi({expandWidth:t=!1,homeTitle:e="ACCESS Home",homeUrl:n="https://access-ci.org/",items:r=[],topBorder:o=!1}){if(!(!r||!r.length))return m.jsxs("ul",{className:`breadcrumbs ${t?"expand":""} ${o?"top-border":""}`,children:[m.jsx("li",{className:"home",children:m.jsx("a",{href:n,title:e,children:m.jsx("img",{src:Ap,alt:e,height:"14"})})},"home"),r.map(i=>m.jsx("li",{className:i.classes||"",children:i.href||i.onClick?m.jsx("a",{href:i.href,onClick:i.onClick,children:i.name}):i.name},i.name))]})}const hp=x.createContext(null),Gi={didCatch:!1,error:null};class Bl extends x.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Gi}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:n}=this.state;n!==null&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Gi))}componentDidCatch(e,n){this.props.onError?.(e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&fp(e.resetKeys,o)&&(this.props.onReset?.({next:o,prev:e.resetKeys,reason:"keys"}),this.setState(Gi))}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=e;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=x.createElement(r,l);else if(o!==void 0)a=o;else throw s}return x.createElement(hp.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function fp(t=[],e=[]){return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}const pp=x.lazy(()=>Promise.resolve().then(()=>cw).then(t=>({default:t.QABot})));let Tl=class extends x.Component{render(){const{welcome:e,isLoggedIn:n,open:r,onOpenChange:o,apiKey:i,embedded:s,loginUrl:a,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:d,qaEndpoint:A,ratingEndpoint:h}=this.props,f=i||void 0||null;if(!f)return console.error("QA Bot: No valid API key provided"),null;const g=n!==void 0?n:document.cookie.split("; ").includes("SESSaccesscisso=1");return m.jsx(Bl,{children:m.jsx(x.Suspense,{fallback:null,children:m.jsx(pp,{welcome:e,isLoggedIn:g,open:r,onOpenChange:o,embedded:s===!0,apiKey:f,loginUrl:a,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:d,qaEndpoint:A,ratingEndpoint:h})})})}};const Il=[{name:"Researchers",href:"https://access-ci.org/get-started/for-researchers/"},{name:"Educators",href:"https://access-ci.org/get-started/for-educators/"},{name:"Graduate Students",href:"https://access-ci.org/get-started/for-graduate-students/"},{name:"Resource Providers",href:"https://access-ci.org/get-started/for-resource-providers/"},{name:"CI Community",href:"https://access-ci.org/get-started/for-programs-organizations/"}],Ml=[{name:"ACCESS Home",href:"https://access-ci.org/",classes:"icon icon-home"},{name:"Allocations",href:"https://allocations.access-ci.org/",classes:"track"},{name:"Resources",href:"https://allocations.access-ci.org/resources",classes:"track"},{name:"Events & Trainings",href:"https://support.access-ci.org/events",classes:"track"},{name:"Support",href:"https://support.access-ci.org/",classes:"track"},{name:"News",href:"https://access-ci.org/news/",classes:"track"},{name:"About",href:"https://access-ci.org/about/",classes:"track grow"},{name:"Find info for you",classes:"highlight",items:Il},{name:"Search",href:"https://support.access-ci.org/find",classes:"icon icon-search"}],_l={name:"My ACCESS",items:[{name:"Allocations",href:"https://allocations.access-ci.org/requests"},{name:"Community Persona",href:"https://support.access-ci.org/community-persona"},{name:"Edit Profile",href:"https://allocations.access-ci.org/profile"},{name:"Publications",href:"https://allocations.access-ci.org/publications"},{name:"Share with ORCID",href:"https://allocations.access-ci.org/orcid"},{name:"Log out",href:"https://cilogon.org/logout/?skin=access"}]},Ol={name:"Login",items:[{name:"Login",href:"https://cilogon.org/?skin=access"},{name:"Questions",href:"https://identity.access-ci.org/"},{name:"Register",href:"https://identity.access-ci.org/new-user"},{name:"Reset Password",href:"https://identity.access-ci.org/password-reset"}]},gp=[{className:"bluesky",href:"https://bsky.app/profile/accessforci.bsky.social",name:"Bluesky"},{className:"youtube",href:"https://www.youtube.com/c/ACCESSforCI",name:"YouTube"},{className:"facebook",href:"https://www.facebook.com/ACCESSforCI",name:"Facebook"},{className:"linkedin",href:"https://www.linkedin.com/company/accessforci/",name:"LinkedIn"}],mp=[{href:"https://access-ci.org/acceptable-use/",name:"Acceptable Use"},{href:"https://access-ci.org/about/acknowledging-access/",name:"Acknowledging ACCESS"},{href:"https://access-ci.org/code-of-conduct/",name:"Code of Conduct"},{href:"https://access-ci.org/glossary/",name:"Glossary"},{href:"https://access-ci.org/privacy-policy",name:"Privacy Policy"},{href:"https://operations.access-ci.org/report-security-incident",name:"Report a Security Incident"},{href:"https://access-ci.org/site-map/",name:"Site Map"}],bp="https://www.nsf.gov/awardsearch/show-award/",Er=({number:t})=>m.jsxs("a",{href:`${bp}?AWD_ID=${t}`,children:["#",t]}),yo=({className:t=null,items:e})=>m.jsx("ul",{className:t,children:e.map(({className:n,name:r,href:o})=>m.jsx("li",{children:m.jsx("a",{className:n,href:o,children:r})},o))}),vp="data:image/png;base64,iVBORw0KGgoAA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NZiI3kAgGEJDI0bjuWInwHo/1f+riuv3VuQEj9LpJ3xXT0Z7O5Jy8HR3Mm2zbWjXuGRAFZqfPTAYO5jw+PGVbmCfS4Xci2Af3m7w8s+1u0+/psVaylj7yCENAvhIpN3kMk7B6SU9x8ORjxb4M/3DefvGpssdDiuuB3AA4ySowTpkRgXfmiXDeAf11wdfhzAfADjhysFRNfVvZRpewE0C+4ik3dhO2ILgJHDcb6rPr3P/vwHmz/PhcwDMI5USfxRYFWNNWuzLoDuw+sk6BnG/Fuk5KdyYcCwuATwHA4jI/7NmyYSeJUPiqPjkOPktz4nqBLcTZkPQhBwLm1Gyd5XqyQ5KrH+HxrcNQ3TMpBIW8gVHC6EzBy9K0eB9U+P/qGB3NB44eDAaB4F0zWEkMbRu3IUWP/0GJ807x5JGE/nCg7gLdU5dvSuHB1Hx/8P4/8D9B8zcoSATacAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDgtMTdUMTY6MTI6MTUtMDQ6MDBuCuvkAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA4LTE3VDE2OjEyOjE1LTA0OjAwH1dTWAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=",yp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20id='Layer_1'%20viewBox='0%200%20269.14%2041.37'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20x1='14.99'%20y1='25.59'%20x2='42.38'%20y2='-1.8'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e47637'%3e%3c/stop%3e%3cstop%20offset='.88'%20stop-color='%23ffcc52'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='87.72'%20y1='26.66'%20x2='112.87'%20y2='1.51'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-3'%20x1='233.69'%20y1='10.21'%20x2='195.89'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-4'%20x1='45.84'%20y1='29.07'%20x2='82.09'%20y2='29.07'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.18'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='.81'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-5'%20x1='43.22'%20y1='20.68'%20x2='68.03'%20y2='20.68'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.22'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-6'%20x1='165.05'%20y1='35.98'%20x2='194.21'%20y2='35.98'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-7'%20x1='123.91'%20y1='11.68'%20x2='160.35'%20y2='11.68'%20xlink:href='%23linear-gradient-2'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-8'%20x1='269.14'%20y1='20.69'%20x2='234.79'%20y2='20.69'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23038596'%3e%3c/stop%3e%3cstop%20offset='.82'%20stop-color='%2366d6d6'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-9'%20x1='271.07'%20y1='10.21'%20x2='233.26'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-10'%20y1='20.36'%20x2='191.15'%20y2='20.36'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-11'%20y1='5.3'%20y2='5.3'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cpolygon%20points='44.62%20.43%202.5%207.94%2030.06%2040.66%2044.62%20.43'%20style='fill:url(%23linear-gradient);'%3e%3c/polygon%3e%3crect%20x='15.25'%20y='17.07'%20width='8.79'%20height='8.79'%20transform='translate(23.41%20-7.39)%20rotate(49.9)'%20style='fill:%23fff;'%3e%3c/rect%3e%3crect%20x='8.52'%20y='22.74'%20width='8.79'%20height='8.79'%20transform='translate(25.35%20-.23)%20rotate(49.9)'%20style='fill:%231a5b6e;'%3e%3c/rect%3e%3crect%20x='1.8'%20y='28.4'%20width='8.79'%20height='8.79'%20transform='translate(27.29%206.93)%20rotate(49.9)'%20style='fill:%23f07537;'%3e%3c/rect%3e%3crect%20x='2.86'%20y='16.01'%20width='8.79'%20height='8.79'%20transform='translate(18.19%201.71)%20rotate(49.9)'%20style='fill:%2348c0b9;'%3e%3c/rect%3e%3crect%20x='14.19'%20y='29.46'%20width='8.79'%20height='8.79'%20transform='translate(32.51%20-2.17)%20rotate(49.9)'%20style='fill:%23008597;'%3e%3c/rect%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25h-14.5l-2.51,7.25h-10.82L57.66,.67h12.6Zm-10.65,24.03h8.37l-4.18-11.93-4.18,11.93Z'%3e%3c/path%3e%3cpath%20d='M103.46,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S92.25,0,103.52,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M84.42,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-2);'%3e%3c/path%3e%3cpath%20d='M143.01,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S131.8,0,143.07,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M203.38,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-3);'%3e%3c/path%3e%3cpath%20d='M211.97,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25L59.62,.67h10.65Zm-2.29,24.03'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M194.21,.67V9.92h-18.46v5.97h15.28v9.03h-15.28v6.52h18.46v9.26h-29.16V.67h29.16Z'%20style='fill:%23008597;'%3e%3c/path%3e%3c/g%3e%3cpolygon%20points='82.09%2033.45%2078.93%2024.7%2067.98%2024.7%2059.61%2024.7%2048.99%2024.7%2045.84%2033.45%2082.09%2033.45'%20style='fill:url(%23linear-gradient-4);'%3e%3c/polygon%3e%3cpath%20d='M68.03,.67l-13.99,40.03h-10.82L57.66,.67h10.37Zm-8.42,24.03l4.18-11.93-4.18,11.93Z'%20style='fill:url(%23linear-gradient-5);'%3e%3c/path%3e%3cpolygon%20points='165.05%2031.35%20165.05%2040.61%20175.76%2040.61%20176.66%2040.61%20194.21%2040.61%20194.21%2031.35%20165.05%2031.35'%20style='fill:url(%23linear-gradient-6);'%3e%3c/polygon%3e%3cpolygon%20points='175.75%2015.39%20165.05%2015.39%20165.05%20.74%20175.75%20.67%20175.75%2015.39'%20style='fill:%23008597;'%3e%3c/polygon%3e%3cpath%20d='M124.03,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-7);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-8);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-9);'%3e%3c/path%3e%3cpolygon%20points='165.05%2015.73%20165.05%2024.99%20175.76%2024.99%20176.66%2024.99%20191.15%2024.99%20191.15%2015.73%20165.05%2015.73'%20style='fill:url(%23linear-gradient-10);'%3e%3c/polygon%3e%3cpath%20d='M249.34,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpolygon%20points='165.05%20.67%20165.05%209.92%20175.76%209.92%20176.66%209.92%20194.21%209.92%20194.21%20.67%20165.05%20.67'%20style='fill:url(%23linear-gradient-11);'%3e%3c/polygon%3e%3c/g%3e%3c/svg%3e",Ll=({nsfUrl:t="https://www.nsf.gov",placement:e="header",siteName:n="",siteUrl:r="/"})=>m.jsxs("div",{className:`logo logo-${e}`,children:[m.jsx("a",{className:"nsf",href:t,children:m.jsx("img",{className:"nsf-logo",src:vp,alt:"National Science Foundation"})}),m.jsx("div",{className:"divider"}),m.jsxs("a",{className:"access",href:r,children:[m.jsx("img",{className:"access-logo",src:yp,alt:"ACCESS"}),n&&e=="header"?m.jsx("span",{className:`name name-${n.toLocaleLowerCase().replace(" ","-")}`,children:n}):null]})]}),Ki=(t=900)=>document.body.clientWidth>=t?"desktop":"mobile",Fl=(t=900)=>{const[e,n]=x.useState(Ki(t));return x.useEffect(()=>{window.addEventListener("resize",()=>n(Ki(t)))},[]),e},Ql=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,Nl={},wo={},wp=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,headers:o=void 0,method:i="GET"}={body:null,cache:!0,corsProxy:!1,headers:void 0,method:"GET"})=>{const s=`${t}|${e}`;if(n&&s in Nl)return Nl[s];if(s in wo)return wo[s];const a=fetch(r?`https://corsproxy.io/?${encodeURIComponent(t)}`:t,{body:e,headers:o,method:i}).then(l=>{if(delete wo[t],l.status<200||l.status>299)return{error:{status:l.status}};try{return l.json()}catch(c){return{error:{message:c}}}});return wo[s]=a,a},Ke=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,defaultValue:o=null,headers:i=void 0,method:s="GET"}={body:null,cache:!0,corsProxy:!1,defaultValue:null,headers:void 0,method:"GET"})=>{const[a,l]=x.useState(o);let c=!1;return Array.isArray(t)||(t=t?[t]:[],c=!0),x.useEffect(()=>{t.length&&(async()=>{const u=await Promise.all(t.map(A=>wp(A,{body:e,cache:n,corsProxy:r,headers:i,method:s}))),d=c?u[0]:u;l(d)})()},[t.join(" ")]),a},zl=()=>{const t=Ke("https://operations-api.access-ci.org/wh2/cider/v1/access-active-groups/type/resource-catalog.access-ci.org/");return Xi([t],({results:e})=>{const{active_groups:n,feature_categories:r,features:o,organizations:i,resources:s}=e,a=[{tagCategoryId:-1,name:"Resource Provider",tags:[]}],l=[-1];for(let g of r)[100,102,103].includes(g.feature_category_id)&&(a.push({tagCategoryId:g.feature_category_id,name:g.feature_category_name,tags:[]}),l.push(g.feature_category_id));a.sort((g,p)=>g.name.localeCompare(p.name));const c=o.filter(g=>l.includes(g.feature_category_id)).map(g=>({tagId:g.feature_id,name:g.feature_name,tagCategoryId:g.feature_category_id})),u={};for(let g of i)c.push({tagId:g.organization_id*-1,name:g.organization_name,tagCategoryId:-1,iconUri:g.organization_favicon_url||null}),u[g.organization_id]=g;c.sort((g,p)=>g.name.localeCompare(p.name));const d=c.map(g=>g.tagId),A=[{resourceCategoryId:1,name:"Compute & Storage Resources",resourceGroups:[],resourceGroupIds:[]},{resourceCategoryId:2,name:"Program & Other Resources",resourceGroups:[],resourceGroupIds:[]}],h=n.filter(g=>g.rollup_info_resourceids).map(g=>({infoGroupId:g.info_groupid,name:g.group_descriptive_name,description:g.group_description,infoResourceIds:g.rollup_info_resourceids,imageUri:g.group_logo_url?`https://cider.access-ci.org/public/groups/${g.group_logo_url.match(/[0-9]+/)[0]}/logo`:null,tagIds:[...g.rollup_organization_ids.map(p=>p*-1).filter(p=>d.includes(p)),...g.rollup_feature_ids.filter(p=>d.includes(p))],resourceCategoryId:g.rollup_feature_ids.includes(137)?2:1,accessAllocated:g.rollup_feature_ids.includes(139),organizations:g.rollup_organization_ids.map(p=>u[p]).filter(p=>p),resources:s.filter(p=>g.rollup_info_resourceids.includes(p.info_resourceid))})),f=h.find(g=>g.infoGroupId==="cloudbank.access-ci.org");if(f)for(const g of["Amazon Web Services","Google Cloud","IBM Cloud","Microsoft Azure"])h.push({...f,infoGroupId:`${g.toLowerCase().replaceAll(" ","-")}${f.infoGroupId}`,parentInfoGroupId:f.infoGroupId,name:g});return h.sort((g,p)=>g.name.localeCompare(p.name)),kp({resourceCategories:A,resourceGroups:h,tags:c,tagCategories:a})})},Cr=(t,e=null)=>{const n=zl();return n&&n.resourceGroups.find(r=>r.infoGroupId==t)||e},xp=(t,e=[])=>{const n=Ke(`https://operations-api.access-ci.org/wh2/cider/v1/access-active/info_groupid/${t}/?format=json`);return n&&!n.error?n.results:e},Xi=(t,e,n=null)=>x.useMemo(()=>{if(!t.length)return n;for(let r of t)if(!r||r.error)return n;return e.apply(null,t)},t),kp=({resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r})=>{const o={};for(let a of r)a.tags=[],o[a.tagCategoryId]=a;const i={};for(let a of n)a.tagCategory=o[a.tagCategoryId],a.tagCategory.tags.push(a),a.resources=[],i[a.tagId]=a;const s={};for(let a of t)a.resourceGroups=[],s[a.resourceCategoryId]=a;for(let a of e)a.resourceCategory=s[a.resourceCategoryId],a.resourceCategory.resourceGroups.push(a),a.tags=a.tagIds.map(l=>i[l]);return{resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r}},Ep=({resourceGroups:t,tags:e,tagCategories:n},r)=>{const o=new Set,i=new Set,s=new Set,a=new Set(r);for(let u of e)a.has(u.tagId)&&s.add(u.tagCategoryId);const l=n.filter(({tagCategoryId:u})=>s.has(u)),c=new Set(e.filter(u=>!s.has(u.tagCategoryId)).map(u=>u.tagId));for(let u of t){let d=!0;for(let A of l){let h=!1;for(let f of A.tags)if(a.has(f.tagId)&&u.tags.includes(f)){h=!0;break}if(!h){d=!1;break}}if(d){i.add(u.infoGroupId),o.add(u.resourceCategoryId);for(let A of u.tagIds)c.delete(A)}}return{disabledTagIds:c,resourceCategoryIds:o,infoGroupIds:i,tagCategoryIds:s,tagIds:a}},Rl=t=>{let e=t.match(/href="([^"]+)"/);return e?e[1]:null},Ji=t=>t.replace(/(<[^>]+>)/g,"").replace(/ /g," "),Zi=t=>{const e=[];for(let n of t.split(/(\<\/p\>)|[\n\r]+/g)){if(!n)continue;const r=Array.from(n.matchAll(/<a([^>]+)>([^<]+)<\/a>/g)),o=n.split(/<a[^<]+<\/a>/g),i=[];for(;o.length>0;){i.push(Ji(o.shift()));let s=r.shift();if(s){let a=Rl(s[1]);a&&i.push(m.jsx("a",{href:a,children:s[2]}))}}e.push(m.jsx("p",{children:i},n))}return e},Cp=({showAfterScroll:t=300})=>{const[e,n]=x.useState(!1);return x.useEffect(()=>{window.addEventListener("scroll",()=>n(Ql()>=t))},[]),m.jsx("button",{className:`scroll-to-top ${e?"visible":""}`,title:"Return to Top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"Return to Top"})},Sp=(t={})=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"container",children:[m.jsxs("div",{className:"upper",children:[m.jsxs("div",{className:"about",children:[m.jsxs("p",{className:"awards",children:["ACCESS is an advanced computing and data resource program supported by the U.S. National Science Foundation (NSF) under the Office of Advanced Cyberinfrastructure awards"," ",m.jsx(Er,{number:2138259}),", ",m.jsx(Er,{number:2138286}),","," ",m.jsx(Er,{number:2138307}),", ",m.jsx(Er,{number:2137603})," and"," ",m.jsx(Er,{number:2138296}),"."]}),m.jsx("p",{className:"disclaimer",children:"Any opinions, findings, conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of NSF."}),m.jsx("a",{className:"contact",href:"https://access-ci.org/contact/",children:"Contact ACCESS"}),m.jsx(yo,{className:"social",items:gp})]}),m.jsxs("div",{className:"personas",children:[m.jsx("p",{children:"For:"}),m.jsx(yo,{items:Il})]})]}),m.jsxs("div",{className:"lower",children:[m.jsx(Ll,{siteName:"ACCESS",siteUrl:"https://access-ci.org",placement:"footer"}),m.jsx(yo,{className:"links",items:mp})]})]}),m.jsx(Cp,{...t})]}),Pp=(t={})=>m.jsx("div",{className:"container",children:m.jsx(Ll,{...t})}),Ul=({autoOpenMode:t,classes:e="",href:n="",html:r="",items:o,mode:i,name:s,onClick:a,open:l,parentId:c="root",setOpen:u})=>{const d=x.useId(),A=l[c]==d,h=A||t==i,f=()=>u({...l,[c]:A?null:d});if(r)return m.jsx("div",{dangerouslySetInnerHTML:{__html:r}});if(n||a)return m.jsx("a",{href:n||"#",onClick:a,className:`item ${e||""}`,children:s});if(o)return m.jsxs(m.Fragment,{children:[s&&m.jsx("button",{"aria-expanded":h,"aria-controls":d,className:`item ${h?"expanded":"collapsed"}`,onClick:f,children:s}),m.jsx("ul",{className:e,id:d,hidden:!h,"aria-hidden":!h,children:o.map(({autoOpenMode:g,classes:p,href:y,html:w,items:v,name:b,onClick:E})=>m.jsx("li",{className:p||"",children:m.jsx(Ul,{autoOpenMode:g,href:y,html:w,items:v,mode:i,name:b,onClick:E,open:l,parentId:d,setOpen:u})},b||w))})]})},jl=({classes:t,items:e,name:n})=>{const r=x.useRef(null),o=Fl(1280),[i,s]=x.useState({});x.useEffect(()=>{r.current&&(document.body.addEventListener("click",l=>{const c=r.current.getRootNode()?.host;l.target!==c&&Ki()=="desktop"&&s({})}),r.current.addEventListener("keydown",({key:l})=>{l=="Escape"&&s({})}))},[]);const a=t?.includes("universal")?"ACCESS universal navigation":t?.includes("site")?`${n}`:n;return m.jsx("nav",{className:`menu ${t||""}`,"aria-label":a,ref:r,children:m.jsx(Ul,{autoOpenMode:"desktop",items:e,mode:o,name:n,open:i,setOpen:s})})},Dp=({items:t,siteName:e=""})=>{const n=Fl(768),r=t.map(({name:o,href:i,items:s,onClick:a})=>{if(n=="mobile")for(;!i;)i=s[0].href,s=s[0];return i||a?m.jsx("div",{className:"column",children:m.jsx("h3",{children:m.jsx("a",{href:i,onClick:a,children:o})})},o):m.jsxs("div",{className:"column",children:[m.jsx("h3",{children:o}),m.jsx(yo,{items:s})]},o)});return m.jsxs("nav",{className:"footer",children:[m.jsxs("h2",{children:["ACCESS ",e]}),m.jsx("div",{className:"columns",children:r})]})},Bp=({items:t,isLoggedIn:e,loginUrl:n,logoutUrl:r,siteName:o})=>{if(e===void 0&&(e=document.cookie.split("; ").includes("SESSaccesscisso=1")),t===void 0){const i={...e?_l:Ol};i.items=i.items.map(a=>({...a,href:a.name=="Login"&&n||a.name=="Log out"&&r||a.href})),t=[...Ml,i];let s=t.find(a=>(a.href||"").replace(/\/$/,"")==document.location.href.replace(/\/$/,""));o&&!s&&(s=t.find(a=>a.name==o)),s&&(s.classes+=" active")}return m.jsx(jl,{classes:"universal",items:t,name:"ACCESS Menu"})},Tp=({items:t,siteName:e})=>m.jsx(jl,{classes:"site",items:t,name:`${e} Menu`});var Vl="popstate";function Hl(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Ip(t={}){function e(r,o){let i=o.state?.masked,{pathname:s,search:a,hash:l}=i||r.location;return $i("",{pathname:s,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:Sr(o)}return _p(e,n,null,t)}function Ce(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function It(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Mp(){return Math.random().toString(36).substring(2,10)}function Wl(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function $i(t,e,n=null,r,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Xn(e):e,state:n,key:e&&e.key||r||Mp(),unstable_mask:o}}function Sr({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Xn(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function _p(t,e,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function d(){a="POP";let p=u(),y=p==null?null:p-c;c=p,l&&l({action:a,location:g.location,delta:y})}function A(p,y){a="PUSH";let w=Hl(p)?p:$i(g.location,p,y);c=u()+1;let v=Wl(w,c),b=g.createHref(w.unstable_mask||w);try{s.pushState(v,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:a,location:g.location,delta:1})}function h(p,y){a="REPLACE";let w=Hl(p)?p:$i(g.location,p,y);c=u();let v=Wl(w,c),b=g.createHref(w.unstable_mask||w);s.replaceState(v,"",b),i&&l&&l({action:a,location:g.location,delta:0})}function f(p){return Op(p)}let g={get action(){return a},get location(){return t(o,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Vl,d),l=p,()=>{o.removeEventListener(Vl,d),l=null}},createHref(p){return e(o,p)},createURL:f,encodeLocation(p){let y=f(p);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:A,replace:h,go(p){return s.go(p)}};return g}function Op(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Sr(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Yl(t,e,n="/"){return Lp(t,e,n,!1)}function Lp(t,e,n,r){let o=typeof e=="string"?Xn(e):e,i=$t(o.pathname||"/",n);if(i==null)return null;let s=ql(t);Fp(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=qp(i);a=Wp(s[l],c,r)}return a}function ql(t,e=[],n=[],r="",o=!1){let i=(s,a,l=o,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Ce(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let d=Mt([r,u.relativePath]),A=n.concat(u);s.children&&s.children.length>0&&(Ce(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),ql(s.children,e,A,d,l)),!(s.path==null&&!s.index)&&e.push({path:d,score:Vp(d,s.index),routesMeta:A})};return t.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))i(s,a);else for(let l of Gl(s.path))i(s,a,!0,l)}),e}function Gl(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Gl(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Fp(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Hp(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Qp=/^:[\w-]+$/,Np=3,zp=2,Rp=1,Up=10,jp=-2,Kl=t=>t==="*";function Vp(t,e){let n=t.split("/"),r=n.length;return n.some(Kl)&&(r+=jp),e&&(r+=zp),n.filter(o=>!Kl(o)).reduce((o,i)=>o+(Qp.test(i)?Np:i===""?Rp:Up),r)}function Hp(t,e){return t.length===e.length&&t.slice(0,-1).every((r,o)=>r===e[o])?t[t.length-1]-e[e.length-1]:0}function Wp(t,e,n=!1){let{routesMeta:r}=t,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?e:e.slice(i.length)||"/",d=xo({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),A=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=xo({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:Mt([i,d.pathname]),pathnameBase:Jp(Mt([i,d.pathnameBase])),route:A}),d.pathnameBase!=="/"&&(i=Mt([i,d.pathnameBase]))}return s}function xo(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Yp(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:d},A)=>{if(u==="*"){let f=a[A]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const h=a[A];return d&&!h?c[u]=void 0:c[u]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:t}}function Yp(t,e=!1,n=!0){It(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l,c,u)=>{if(r.push({paramName:a,isOptional:l!=null}),l){let d=u.charAt(c+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function qp(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return It(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function $t(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var Gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kp(t,e="/"){let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?Xn(t):t,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=Xl(n.substring(1),"/"):i=Xl(n,e)):i=e,{pathname:i,search:Zp(r),hash:$p(o)}}function Xl(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function es(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xp(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Jl(t){let e=Xp(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function ts(t,e,n,r=!1){let o;typeof t=="string"?o=Xn(t):(o={...t},Ce(!o.pathname||!o.pathname.includes("?"),es("?","pathname","search",o)),Ce(!o.pathname||!o.pathname.includes("#"),es("#","pathname","hash",o)),Ce(!o.search||!o.search.includes("#"),es("#","search","hash",o)));let i=t===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=e.length-1;if(!r&&s.startsWith("..")){let A=s.split("/");for(;A[0]==="..";)A.shift(),d-=1;o.pathname=A.join("/")}a=d>=0?e[d]:"/"}let l=Kp(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var Mt=t=>t.join("/").replace(/\/\/+/g,"/"),Jp=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Zp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,$p=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,eg=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function tg(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function ng(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Zl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $l(t,e){let n=t;if(typeof n!="string"||!Gp.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Zl)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),a=$t(s.pathname,e);s.origin===i.origin&&a!=null?n=a+s.search+s.hash:o=!0}catch{It(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ec=["POST","PUT","PATCH","DELETE"];new Set(ec);var rg=["GET",...ec];new Set(rg);var Jn=F.createContext(null);Jn.displayName="DataRouter";var ko=F.createContext(null);ko.displayName="DataRouterState";var og=F.createContext(!1),tc=F.createContext({isTransitioning:!1});tc.displayName="ViewTransition";var ig=F.createContext(new Map);ig.displayName="Fetchers";var sg=F.createContext(null);sg.displayName="Await";var ft=F.createContext(null);ft.displayName="Navigation";var Pr=F.createContext(null);Pr.displayName="Location";var _t=F.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var ns=F.createContext(null);ns.displayName="RouteError";var nc="REACT_ROUTER_ERROR",ag="REDIRECT",lg="ROUTE_ERROR_RESPONSE";function cg(t){if(t.startsWith(`${nc}:${ag}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function ug(t){if(t.startsWith(`${nc}:${lg}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new eg(e.status,e.statusText,e.data)}catch{}}function dg(t,{relative:e}={}){Ce(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=F.useContext(ft),{hash:o,pathname:i,search:s}=Br(t,{relative:e}),a=i;return n!=="/"&&(a=i==="/"?n:Mt([n,i])),r.createHref({pathname:a,search:s,hash:o})}function Dr(){return F.useContext(Pr)!=null}function pn(){return Ce(Dr(),"useLocation() may be used only in the context of a <Router> component."),F.useContext(Pr).location}var rc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oc(t){F.useContext(ft).static||F.useLayoutEffect(t)}function Ag(){let{isDataRoute:t}=F.useContext(_t);return t?Sg():hg()}function hg(){Ce(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let t=F.useContext(Jn),{basename:e,navigator:n}=F.useContext(ft),{matches:r}=F.useContext(_t),{pathname:o}=pn(),i=JSON.stringify(Jl(r)),s=F.useRef(!1);return oc(()=>{s.current=!0}),F.useCallback((l,c={})=>{if(It(s.current,rc),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=ts(l,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Mt([e,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[e,n,i,o,t])}F.createContext(null);function fg(){let{matches:t}=F.useContext(_t),e=t[t.length-1];return e?e.params:{}}function Br(t,{relative:e}={}){let{matches:n}=F.useContext(_t),{pathname:r}=pn(),o=JSON.stringify(Jl(n));return F.useMemo(()=>ts(t,JSON.parse(o),r,e==="path"),[t,o,r,e])}function pg(t,e){return ic(t,e)}function ic(t,e,n){Ce(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=F.useContext(ft),{matches:o}=F.useContext(_t),i=o[o.length-1],s=i?i.params:{},a=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let p=c&&c.path||"";lc(a,!c||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
1
|
+
(function(ge,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/client"),require("react-dom/server")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-dom/client","react-dom/server"],m):(ge=typeof globalThis<"u"?globalThis:ge||self,m(ge.AccessCiUi={},ge.jsxRuntime,ge.React,ge.ReactDOM,ge.ReactDOMClient,ge.ReactDOMServer))})(this,(function(ge,m,x,lp,cp,up){"use strict";function dp(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const F=dp(x),Ap="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='%231a5b6e'%20className='bi%20bi-house-door-fill'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%2014.5v-3.505c0-.245.25-.495.5-.495h2c.25%200%20.5.25.5.5v3.5a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5v-7a.5.5%200%200%200-.146-.354L13%205.793V2.5a.5.5%200%200%200-.5-.5h-1a.5.5%200%200%200-.5.5v1.293L8.354%201.146a.5.5%200%200%200-.708%200l-6%206A.5.5%200%200%200%201.5%207.5v7a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5'/%3e%3c/svg%3e";function qi({expandWidth:t=!1,homeTitle:e="ACCESS Home",homeUrl:n="https://access-ci.org/",items:r=[],topBorder:o=!1}){if(!(!r||!r.length))return m.jsxs("ul",{className:`breadcrumbs ${t?"expand":""} ${o?"top-border":""}`,children:[m.jsx("li",{className:"home",children:m.jsx("a",{href:n,title:e,children:m.jsx("img",{src:Ap,alt:e,height:"14"})})},"home"),r.map(i=>m.jsx("li",{className:i.classes||"",children:i.href||i.onClick?m.jsx("a",{href:i.href,onClick:i.onClick,children:i.name}):i.name},i.name))]})}const hp=x.createContext(null),Gi={didCatch:!1,error:null};class Bl extends x.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Gi}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:n}=this.state;n!==null&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Gi))}componentDidCatch(e,n){this.props.onError?.(e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&fp(e.resetKeys,o)&&(this.props.onReset?.({next:o,prev:e.resetKeys,reason:"keys"}),this.setState(Gi))}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=e;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=x.createElement(r,l);else if(o!==void 0)a=o;else throw s}return x.createElement(hp.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function fp(t=[],e=[]){return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}const pp=x.lazy(()=>Promise.resolve().then(()=>cw).then(t=>({default:t.QABot})));let Tl=class extends x.Component{render(){const{welcome:e,isLoggedIn:n,open:r,onOpenChange:o,apiKey:i,embedded:s,loginUrl:a,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:d,qaEndpoint:A,ratingEndpoint:h}=this.props,f=i||void 0||null;if(!f)return console.error("QA Bot: No valid API key provided"),null;const g=n!==void 0?n:document.cookie.split("; ").includes("SESSaccesscisso=1");return m.jsx(Bl,{children:m.jsx(x.Suspense,{fallback:null,children:m.jsx(pp,{welcome:e,isLoggedIn:g,open:r,onOpenChange:o,embedded:s===!0,apiKey:f,loginUrl:a,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:d,qaEndpoint:A,ratingEndpoint:h})})})}};const Il=[{name:"Researchers",href:"https://access-ci.org/get-started/for-researchers/"},{name:"Educators",href:"https://access-ci.org/get-started/for-educators/"},{name:"Graduate Students",href:"https://access-ci.org/get-started/for-graduate-students/"},{name:"Resource Providers",href:"https://access-ci.org/get-started/for-resource-providers/"},{name:"CI Community",href:"https://access-ci.org/get-started/for-programs-organizations/"}],Ml=[{name:"ACCESS Home",href:"https://access-ci.org/",classes:"icon icon-home"},{name:"Allocations",href:"https://allocations.access-ci.org/",classes:"track"},{name:"Resources",href:"https://allocations.access-ci.org/resources",classes:"track"},{name:"Events & Trainings",href:"https://support.access-ci.org/events",classes:"track"},{name:"Support",href:"https://support.access-ci.org/",classes:"track"},{name:"News",href:"https://access-ci.org/news/",classes:"track"},{name:"About",href:"https://access-ci.org/about/",classes:"track grow"},{name:"Find info for you",classes:"highlight",items:Il},{name:"Search",href:"https://support.access-ci.org/find",classes:"icon icon-search"}],_l={name:"My ACCESS",items:[{name:"Allocations",href:"https://allocations.access-ci.org/requests"},{name:"Community Persona",href:"https://support.access-ci.org/community-persona"},{name:"Edit Profile",href:"https://allocations.access-ci.org/profile"},{name:"Publications",href:"https://allocations.access-ci.org/publications"},{name:"Share with ORCID",href:"https://allocations.access-ci.org/orcid"},{name:"Log out",href:"https://cilogon.org/logout/?skin=access"}]},Ol={name:"Login",items:[{name:"Login",href:"https://cilogon.org/?skin=access"},{name:"Questions",href:"https://identity.access-ci.org/"},{name:"Register",href:"https://identity.access-ci.org/new-user"},{name:"Reset Password",href:"https://identity.access-ci.org/password-reset"}]},gp=[{className:"bluesky",href:"https://bsky.app/profile/accessforci.bsky.social",name:"Bluesky"},{className:"youtube",href:"https://www.youtube.com/c/ACCESSforCI",name:"YouTube"},{className:"facebook",href:"https://www.facebook.com/ACCESSforCI",name:"Facebook"},{className:"linkedin",href:"https://www.linkedin.com/company/accessforci/",name:"LinkedIn"}],mp=[{href:"https://access-ci.org/acceptable-use/",name:"Acceptable Use"},{href:"https://access-ci.org/about/acknowledging-access/",name:"Acknowledging ACCESS"},{href:"https://access-ci.org/code-of-conduct/",name:"Code of Conduct"},{href:"https://access-ci.org/glossary/",name:"Glossary"},{href:"https://access-ci.org/privacy-policy",name:"Privacy Policy"},{href:"https://operations.access-ci.org/report-security-incident",name:"Report a Security Incident"},{href:"https://access-ci.org/site-map/",name:"Site Map"}],bp="https://www.nsf.gov/awardsearch/show-award/",Er=({number:t})=>m.jsxs("a",{href:`${bp}?AWD_ID=${t}`,children:["#",t]}),yo=({className:t=null,items:e})=>m.jsx("ul",{className:t,children:e.map(({className:n,name:r,href:o})=>m.jsx("li",{children:m.jsx("a",{className:n,href:o,children:r})},o))}),vp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AABv5klEQVR42u29d5gkVb0+/p5zKnTunp48m3NiWWDJCCJJAREJ14DoNV/1ioqo1wRmr2K46upVMcuiCCIIkgTJYdllE5tnw8xODj3TuSuec35/VOfpWYLu/r7cZ8/z1HZtd09VdZ23PuH9hAMcHUfH0XF0vFoGOXoLDj36t9zEmBo4G1J2mNmDSI08l0yn+v/xuvdssY7enemHcvQWHHo4xrgi3NC1TA2+QQgXY4nxLSPjmXUAjgLrKLBe+bDyg5Qy3acHO5ltOxgcNwNDI3nt6J059KBHb8GL3CCm6wQkKiUHpQyapgcUhepH78xRYP2TwPLFqBJoJaBgjCEUDIYCPiV+uM43tP1mDG3/PT0KrP+fxtjeu+nQjlu69j75+Uu33fu2wzbRVPEvpoqvRQKglCISjsaCPnbyr78+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RlADIwMjItMDgtMTdUMTY6MTI6MTUtMDQ6MDBuCuvkAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA4LTE3VDE2OjEyOjE1LTA0OjAwH1dTWAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=",yp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20id='Layer_1'%20viewBox='0%200%20269.14%2041.37'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20x1='14.99'%20y1='25.59'%20x2='42.38'%20y2='-1.8'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e47637'%3e%3c/stop%3e%3cstop%20offset='.88'%20stop-color='%23ffcc52'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='87.72'%20y1='26.66'%20x2='112.87'%20y2='1.51'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-3'%20x1='233.69'%20y1='10.21'%20x2='195.89'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-4'%20x1='45.84'%20y1='29.07'%20x2='82.09'%20y2='29.07'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.18'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='.81'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-5'%20x1='43.22'%20y1='20.68'%20x2='68.03'%20y2='20.68'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.22'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-6'%20x1='165.05'%20y1='35.98'%20x2='194.21'%20y2='35.98'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-7'%20x1='123.91'%20y1='11.68'%20x2='160.35'%20y2='11.68'%20xlink:href='%23linear-gradient-2'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-8'%20x1='269.14'%20y1='20.69'%20x2='234.79'%20y2='20.69'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23038596'%3e%3c/stop%3e%3cstop%20offset='.82'%20stop-color='%2366d6d6'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-9'%20x1='271.07'%20y1='10.21'%20x2='233.26'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-10'%20y1='20.36'%20x2='191.15'%20y2='20.36'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-11'%20y1='5.3'%20y2='5.3'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cpolygon%20points='44.62%20.43%202.5%207.94%2030.06%2040.66%2044.62%20.43'%20style='fill:url(%23linear-gradient);'%3e%3c/polygon%3e%3crect%20x='15.25'%20y='17.07'%20width='8.79'%20height='8.79'%20transform='translate(23.41%20-7.39)%20rotate(49.9)'%20style='fill:%23fff;'%3e%3c/rect%3e%3crect%20x='8.52'%20y='22.74'%20width='8.79'%20height='8.79'%20transform='translate(25.35%20-.23)%20rotate(49.9)'%20style='fill:%231a5b6e;'%3e%3c/rect%3e%3crect%20x='1.8'%20y='28.4'%20width='8.79'%20height='8.79'%20transform='translate(27.29%206.93)%20rotate(49.9)'%20style='fill:%23f07537;'%3e%3c/rect%3e%3crect%20x='2.86'%20y='16.01'%20width='8.79'%20height='8.79'%20transform='translate(18.19%201.71)%20rotate(49.9)'%20style='fill:%2348c0b9;'%3e%3c/rect%3e%3crect%20x='14.19'%20y='29.46'%20width='8.79'%20height='8.79'%20transform='translate(32.51%20-2.17)%20rotate(49.9)'%20style='fill:%23008597;'%3e%3c/rect%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25h-14.5l-2.51,7.25h-10.82L57.66,.67h12.6Zm-10.65,24.03h8.37l-4.18-11.93-4.18,11.93Z'%3e%3c/path%3e%3cpath%20d='M103.46,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S92.25,0,103.52,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M84.42,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-2);'%3e%3c/path%3e%3cpath%20d='M143.01,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S131.8,0,143.07,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M203.38,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-3);'%3e%3c/path%3e%3cpath%20d='M211.97,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25L59.62,.67h10.65Zm-2.29,24.03'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M194.21,.67V9.92h-18.46v5.97h15.28v9.03h-15.28v6.52h18.46v9.26h-29.16V.67h29.16Z'%20style='fill:%23008597;'%3e%3c/path%3e%3c/g%3e%3cpolygon%20points='82.09%2033.45%2078.93%2024.7%2067.98%2024.7%2059.61%2024.7%2048.99%2024.7%2045.84%2033.45%2082.09%2033.45'%20style='fill:url(%23linear-gradient-4);'%3e%3c/polygon%3e%3cpath%20d='M68.03,.67l-13.99,40.03h-10.82L57.66,.67h10.37Zm-8.42,24.03l4.18-11.93-4.18,11.93Z'%20style='fill:url(%23linear-gradient-5);'%3e%3c/path%3e%3cpolygon%20points='165.05%2031.35%20165.05%2040.61%20175.76%2040.61%20176.66%2040.61%20194.21%2040.61%20194.21%2031.35%20165.05%2031.35'%20style='fill:url(%23linear-gradient-6);'%3e%3c/polygon%3e%3cpolygon%20points='175.75%2015.39%20165.05%2015.39%20165.05%20.74%20175.75%20.67%20175.75%2015.39'%20style='fill:%23008597;'%3e%3c/polygon%3e%3cpath%20d='M124.03,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-7);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-8);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-9);'%3e%3c/path%3e%3cpolygon%20points='165.05%2015.73%20165.05%2024.99%20175.76%2024.99%20176.66%2024.99%20191.15%2024.99%20191.15%2015.73%20165.05%2015.73'%20style='fill:url(%23linear-gradient-10);'%3e%3c/polygon%3e%3cpath%20d='M249.34,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpolygon%20points='165.05%20.67%20165.05%209.92%20175.76%209.92%20176.66%209.92%20194.21%209.92%20194.21%20.67%20165.05%20.67'%20style='fill:url(%23linear-gradient-11);'%3e%3c/polygon%3e%3c/g%3e%3c/svg%3e",Ll=({nsfUrl:t="https://www.nsf.gov",placement:e="header",siteName:n="",siteUrl:r="/"})=>m.jsxs("div",{className:`logo logo-${e}`,children:[m.jsx("a",{className:"nsf",href:t,children:m.jsx("img",{className:"nsf-logo",src:vp,alt:"National Science Foundation"})}),m.jsx("div",{className:"divider"}),m.jsxs("a",{className:"access",href:r,children:[m.jsx("img",{className:"access-logo",src:yp,alt:"ACCESS",role:"img"}),n&&e=="header"?m.jsx("span",{className:`name name-${n.toLocaleLowerCase().replace(" ","-")}`,children:n}):null]})]}),Ki=(t=900)=>document.body.clientWidth>=t?"desktop":"mobile",Fl=(t=900)=>{const[e,n]=x.useState(Ki(t));return x.useEffect(()=>{window.addEventListener("resize",()=>n(Ki(t)))},[]),e},Ql=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,Nl={},wo={},wp=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,headers:o=void 0,method:i="GET"}={body:null,cache:!0,corsProxy:!1,headers:void 0,method:"GET"})=>{const s=`${t}|${e}`;if(n&&s in Nl)return Nl[s];if(s in wo)return wo[s];const a=fetch(r?`https://corsproxy.io/?${encodeURIComponent(t)}`:t,{body:e,headers:o,method:i}).then(l=>{if(delete wo[t],l.status<200||l.status>299)return{error:{status:l.status}};try{return l.json()}catch(c){return{error:{message:c}}}});return wo[s]=a,a},Ke=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,defaultValue:o=null,headers:i=void 0,method:s="GET"}={body:null,cache:!0,corsProxy:!1,defaultValue:null,headers:void 0,method:"GET"})=>{const[a,l]=x.useState(o);let c=!1;return Array.isArray(t)||(t=t?[t]:[],c=!0),x.useEffect(()=>{t.length&&(async()=>{const u=await Promise.all(t.map(A=>wp(A,{body:e,cache:n,corsProxy:r,headers:i,method:s}))),d=c?u[0]:u;l(d)})()},[t.join(" ")]),a},zl=()=>{const t=Ke("https://operations-api.access-ci.org/wh2/cider/v1/access-active-groups/type/resource-catalog.access-ci.org/");return Xi([t],({results:e})=>{const{active_groups:n,feature_categories:r,features:o,organizations:i,resources:s}=e,a=[{tagCategoryId:-1,name:"Resource Provider",tags:[]}],l=[-1];for(let g of r)[100,102,103].includes(g.feature_category_id)&&(a.push({tagCategoryId:g.feature_category_id,name:g.feature_category_name,tags:[]}),l.push(g.feature_category_id));a.sort((g,p)=>g.name.localeCompare(p.name));const c=o.filter(g=>l.includes(g.feature_category_id)).map(g=>({tagId:g.feature_id,name:g.feature_name,tagCategoryId:g.feature_category_id})),u={};for(let g of i)c.push({tagId:g.organization_id*-1,name:g.organization_name,tagCategoryId:-1,iconUri:g.organization_favicon_url||null}),u[g.organization_id]=g;c.sort((g,p)=>g.name.localeCompare(p.name));const d=c.map(g=>g.tagId),A=[{resourceCategoryId:1,name:"Compute & Storage Resources",resourceGroups:[],resourceGroupIds:[]},{resourceCategoryId:2,name:"Program & Other Resources",resourceGroups:[],resourceGroupIds:[]}],h=n.filter(g=>g.rollup_info_resourceids).map(g=>({infoGroupId:g.info_groupid,name:g.group_descriptive_name,description:g.group_description,infoResourceIds:g.rollup_info_resourceids,imageUri:g.group_logo_url?`https://cider.access-ci.org/public/groups/${g.group_logo_url.match(/[0-9]+/)[0]}/logo`:null,tagIds:[...g.rollup_organization_ids.map(p=>p*-1).filter(p=>d.includes(p)),...g.rollup_feature_ids.filter(p=>d.includes(p))],resourceCategoryId:g.rollup_feature_ids.includes(137)?2:1,accessAllocated:g.rollup_feature_ids.includes(139),organizations:g.rollup_organization_ids.map(p=>u[p]).filter(p=>p),resources:s.filter(p=>g.rollup_info_resourceids.includes(p.info_resourceid))})),f=h.find(g=>g.infoGroupId==="cloudbank.access-ci.org");if(f)for(const g of["Amazon Web Services","Google Cloud","IBM Cloud","Microsoft Azure"])h.push({...f,infoGroupId:`${g.toLowerCase().replaceAll(" ","-")}${f.infoGroupId}`,parentInfoGroupId:f.infoGroupId,name:g});return h.sort((g,p)=>g.name.localeCompare(p.name)),kp({resourceCategories:A,resourceGroups:h,tags:c,tagCategories:a})})},Cr=(t,e=null)=>{const n=zl();return n&&n.resourceGroups.find(r=>r.infoGroupId==t)||e},xp=(t,e=[])=>{const n=Ke(`https://operations-api.access-ci.org/wh2/cider/v1/access-active/info_groupid/${t}/?format=json`);return n&&!n.error?n.results:e},Xi=(t,e,n=null)=>x.useMemo(()=>{if(!t.length)return n;for(let r of t)if(!r||r.error)return n;return e.apply(null,t)},t),kp=({resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r})=>{const o={};for(let a of r)a.tags=[],o[a.tagCategoryId]=a;const i={};for(let a of n)a.tagCategory=o[a.tagCategoryId],a.tagCategory.tags.push(a),a.resources=[],i[a.tagId]=a;const s={};for(let a of t)a.resourceGroups=[],s[a.resourceCategoryId]=a;for(let a of e)a.resourceCategory=s[a.resourceCategoryId],a.resourceCategory.resourceGroups.push(a),a.tags=a.tagIds.map(l=>i[l]);return{resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r}},Ep=({resourceGroups:t,tags:e,tagCategories:n},r)=>{const o=new Set,i=new Set,s=new Set,a=new Set(r);for(let u of e)a.has(u.tagId)&&s.add(u.tagCategoryId);const l=n.filter(({tagCategoryId:u})=>s.has(u)),c=new Set(e.filter(u=>!s.has(u.tagCategoryId)).map(u=>u.tagId));for(let u of t){let d=!0;for(let A of l){let h=!1;for(let f of A.tags)if(a.has(f.tagId)&&u.tags.includes(f)){h=!0;break}if(!h){d=!1;break}}if(d){i.add(u.infoGroupId),o.add(u.resourceCategoryId);for(let A of u.tagIds)c.delete(A)}}return{disabledTagIds:c,resourceCategoryIds:o,infoGroupIds:i,tagCategoryIds:s,tagIds:a}},Rl=t=>{let e=t.match(/href="([^"]+)"/);return e?e[1]:null},Ji=t=>t.replace(/(<[^>]+>)/g,"").replace(/ /g," "),Zi=t=>{const e=[];for(let n of t.split(/(\<\/p\>)|[\n\r]+/g)){if(!n)continue;const r=Array.from(n.matchAll(/<a([^>]+)>([^<]+)<\/a>/g)),o=n.split(/<a[^<]+<\/a>/g),i=[];for(;o.length>0;){i.push(Ji(o.shift()));let s=r.shift();if(s){let a=Rl(s[1]);a&&i.push(m.jsx("a",{href:a,children:s[2]}))}}e.push(m.jsx("p",{children:i},n))}return e},Cp=({showAfterScroll:t=300})=>{const[e,n]=x.useState(!1);return x.useEffect(()=>{window.addEventListener("scroll",()=>n(Ql()>=t))},[]),m.jsx("button",{className:`scroll-to-top ${e?"visible":""}`,title:"Return to Top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"Return to Top"})},Sp=(t={})=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"container",children:[m.jsxs("div",{className:"upper",children:[m.jsxs("div",{className:"about",children:[m.jsxs("p",{className:"awards",children:["ACCESS is an advanced computing and data resource program supported by the U.S. National Science Foundation (NSF) under the Office of Advanced Cyberinfrastructure awards"," ",m.jsx(Er,{number:2138259}),", ",m.jsx(Er,{number:2138286}),","," ",m.jsx(Er,{number:2138307}),", ",m.jsx(Er,{number:2137603})," and"," ",m.jsx(Er,{number:2138296}),"."]}),m.jsx("p",{className:"disclaimer",children:"Any opinions, findings, conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of NSF."}),m.jsx("a",{className:"contact",href:"https://access-ci.org/contact/",children:"Contact ACCESS"}),m.jsx(yo,{className:"social",items:gp})]}),m.jsxs("div",{className:"personas",children:[m.jsx("p",{children:"For:"}),m.jsx(yo,{items:Il})]})]}),m.jsxs("div",{className:"lower",children:[m.jsx(Ll,{siteName:"ACCESS",siteUrl:"https://access-ci.org",placement:"footer"}),m.jsx(yo,{className:"links",items:mp})]})]}),m.jsx(Cp,{...t})]}),Pp=(t={})=>m.jsx("div",{className:"container",children:m.jsx(Ll,{...t})}),Ul=({autoOpenMode:t,classes:e="",href:n="",html:r="",items:o,mode:i,name:s,onClick:a,open:l,parentId:c="root",setOpen:u})=>{const d=x.useId(),A=l[c]==d,h=A||t==i,f=()=>u({...l,[c]:A?null:d});if(r)return m.jsx("div",{dangerouslySetInnerHTML:{__html:r}});if(n||a)return m.jsx("a",{href:n||"#",onClick:a,className:`item ${e||""}`,children:s});if(o)return m.jsxs(m.Fragment,{children:[s&&m.jsx("button",{"aria-expanded":h,"aria-controls":d,className:`item ${h?"expanded":"collapsed"}`,onClick:f,children:s}),m.jsx("ul",{className:e,id:d,hidden:!h,"aria-hidden":!h,children:o.map(({autoOpenMode:g,classes:p,href:v,html:w,items:y,name:b,onClick:E})=>m.jsx("li",{className:p||"",children:m.jsx(Ul,{autoOpenMode:g,href:v,html:w,items:y,mode:i,name:b,onClick:E,open:l,parentId:d,setOpen:u})},b||w))})]})},jl=({classes:t,items:e,name:n})=>{const r=x.useRef(null),o=Fl(1280),[i,s]=x.useState({});x.useEffect(()=>{r.current&&(document.body.addEventListener("click",l=>{const c=r.current.getRootNode()?.host;l.target!==c&&Ki()=="desktop"&&s({})}),r.current.addEventListener("keydown",({key:l})=>{l=="Escape"&&s({})}))},[]);const a=t?.includes("universal")?"ACCESS universal navigation":t?.includes("site")?`${n}`:n;return m.jsx("nav",{className:`menu ${t||""}`,"aria-label":a,ref:r,children:m.jsx(Ul,{autoOpenMode:"desktop",items:e,mode:o,name:n,open:i,setOpen:s})})},Dp=({items:t,siteName:e=""})=>{const n=Fl(768),r=t.map(({name:o,href:i,items:s,onClick:a})=>{if(n=="mobile")for(;!i;)i=s[0].href,s=s[0];return i||a?m.jsx("div",{className:"column",children:m.jsx("h3",{children:m.jsx("a",{href:i,onClick:a,children:o})})},o):m.jsxs("div",{className:"column",children:[m.jsx("h3",{children:o}),m.jsx(yo,{items:s})]},o)});return m.jsxs("nav",{className:"footer",children:[m.jsxs("h2",{children:["ACCESS ",e]}),m.jsx("div",{className:"columns",children:r})]})},Bp=({items:t,isLoggedIn:e,loginUrl:n,logoutUrl:r,siteName:o})=>{if(e===void 0&&(e=document.cookie.split("; ").includes("SESSaccesscisso=1")),t===void 0){const i={...e?_l:Ol};i.items=i.items.map(a=>({...a,href:a.name=="Login"&&n||a.name=="Log out"&&r||a.href})),t=[...Ml,i];let s=t.find(a=>(a.href||"").replace(/\/$/,"")==document.location.href.replace(/\/$/,""));o&&!s&&(s=t.find(a=>a.name==o)),s&&(s.classes+=" active")}return m.jsx(jl,{classes:"universal",items:t,name:"ACCESS Menu"})},Tp=({items:t,siteName:e})=>m.jsx(jl,{classes:"site",items:t,name:`${e} Menu`});var Vl="popstate";function Hl(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Ip(t={}){function e(r,o){let i=o.state?.masked,{pathname:s,search:a,hash:l}=i||r.location;return $i("",{pathname:s,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:Sr(o)}return _p(e,n,null,t)}function Ce(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function It(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Mp(){return Math.random().toString(36).substring(2,10)}function Wl(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function $i(t,e,n=null,r,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Xn(e):e,state:n,key:e&&e.key||r||Mp(),unstable_mask:o}}function Sr({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Xn(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function _p(t,e,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function d(){a="POP";let p=u(),v=p==null?null:p-c;c=p,l&&l({action:a,location:g.location,delta:v})}function A(p,v){a="PUSH";let w=Hl(p)?p:$i(g.location,p,v);c=u()+1;let y=Wl(w,c),b=g.createHref(w.unstable_mask||w);try{s.pushState(y,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:a,location:g.location,delta:1})}function h(p,v){a="REPLACE";let w=Hl(p)?p:$i(g.location,p,v);c=u();let y=Wl(w,c),b=g.createHref(w.unstable_mask||w);s.replaceState(y,"",b),i&&l&&l({action:a,location:g.location,delta:0})}function f(p){return Op(p)}let g={get action(){return a},get location(){return t(o,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Vl,d),l=p,()=>{o.removeEventListener(Vl,d),l=null}},createHref(p){return e(o,p)},createURL:f,encodeLocation(p){let v=f(p);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:A,replace:h,go(p){return s.go(p)}};return g}function Op(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Sr(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Yl(t,e,n="/"){return Lp(t,e,n,!1)}function Lp(t,e,n,r){let o=typeof e=="string"?Xn(e):e,i=$t(o.pathname||"/",n);if(i==null)return null;let s=ql(t);Fp(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=qp(i);a=Wp(s[l],c,r)}return a}function ql(t,e=[],n=[],r="",o=!1){let i=(s,a,l=o,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Ce(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let d=Mt([r,u.relativePath]),A=n.concat(u);s.children&&s.children.length>0&&(Ce(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),ql(s.children,e,A,d,l)),!(s.path==null&&!s.index)&&e.push({path:d,score:Vp(d,s.index),routesMeta:A})};return t.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))i(s,a);else for(let l of Gl(s.path))i(s,a,!0,l)}),e}function Gl(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Gl(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Fp(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Hp(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Qp=/^:[\w-]+$/,Np=3,zp=2,Rp=1,Up=10,jp=-2,Kl=t=>t==="*";function Vp(t,e){let n=t.split("/"),r=n.length;return n.some(Kl)&&(r+=jp),e&&(r+=zp),n.filter(o=>!Kl(o)).reduce((o,i)=>o+(Qp.test(i)?Np:i===""?Rp:Up),r)}function Hp(t,e){return t.length===e.length&&t.slice(0,-1).every((r,o)=>r===e[o])?t[t.length-1]-e[e.length-1]:0}function Wp(t,e,n=!1){let{routesMeta:r}=t,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?e:e.slice(i.length)||"/",d=xo({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),A=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=xo({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:Mt([i,d.pathname]),pathnameBase:Jp(Mt([i,d.pathnameBase])),route:A}),d.pathnameBase!=="/"&&(i=Mt([i,d.pathnameBase]))}return s}function xo(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Yp(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:d},A)=>{if(u==="*"){let f=a[A]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const h=a[A];return d&&!h?c[u]=void 0:c[u]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:t}}function Yp(t,e=!1,n=!0){It(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l,c,u)=>{if(r.push({paramName:a,isOptional:l!=null}),l){let d=u.charAt(c+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function qp(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return It(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function $t(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var Gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kp(t,e="/"){let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?Xn(t):t,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=Xl(n.substring(1),"/"):i=Xl(n,e)):i=e,{pathname:i,search:Zp(r),hash:$p(o)}}function Xl(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function es(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xp(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Jl(t){let e=Xp(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function ts(t,e,n,r=!1){let o;typeof t=="string"?o=Xn(t):(o={...t},Ce(!o.pathname||!o.pathname.includes("?"),es("?","pathname","search",o)),Ce(!o.pathname||!o.pathname.includes("#"),es("#","pathname","hash",o)),Ce(!o.search||!o.search.includes("#"),es("#","search","hash",o)));let i=t===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=e.length-1;if(!r&&s.startsWith("..")){let A=s.split("/");for(;A[0]==="..";)A.shift(),d-=1;o.pathname=A.join("/")}a=d>=0?e[d]:"/"}let l=Kp(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var Mt=t=>t.join("/").replace(/\/\/+/g,"/"),Jp=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Zp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,$p=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,eg=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function tg(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function ng(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Zl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $l(t,e){let n=t;if(typeof n!="string"||!Gp.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Zl)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),a=$t(s.pathname,e);s.origin===i.origin&&a!=null?n=a+s.search+s.hash:o=!0}catch{It(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ec=["POST","PUT","PATCH","DELETE"];new Set(ec);var rg=["GET",...ec];new Set(rg);var Jn=F.createContext(null);Jn.displayName="DataRouter";var ko=F.createContext(null);ko.displayName="DataRouterState";var og=F.createContext(!1),tc=F.createContext({isTransitioning:!1});tc.displayName="ViewTransition";var ig=F.createContext(new Map);ig.displayName="Fetchers";var sg=F.createContext(null);sg.displayName="Await";var ft=F.createContext(null);ft.displayName="Navigation";var Pr=F.createContext(null);Pr.displayName="Location";var _t=F.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var ns=F.createContext(null);ns.displayName="RouteError";var nc="REACT_ROUTER_ERROR",ag="REDIRECT",lg="ROUTE_ERROR_RESPONSE";function cg(t){if(t.startsWith(`${nc}:${ag}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function ug(t){if(t.startsWith(`${nc}:${lg}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new eg(e.status,e.statusText,e.data)}catch{}}function dg(t,{relative:e}={}){Ce(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=F.useContext(ft),{hash:o,pathname:i,search:s}=Br(t,{relative:e}),a=i;return n!=="/"&&(a=i==="/"?n:Mt([n,i])),r.createHref({pathname:a,search:s,hash:o})}function Dr(){return F.useContext(Pr)!=null}function pn(){return Ce(Dr(),"useLocation() may be used only in the context of a <Router> component."),F.useContext(Pr).location}var rc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oc(t){F.useContext(ft).static||F.useLayoutEffect(t)}function Ag(){let{isDataRoute:t}=F.useContext(_t);return t?Sg():hg()}function hg(){Ce(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let t=F.useContext(Jn),{basename:e,navigator:n}=F.useContext(ft),{matches:r}=F.useContext(_t),{pathname:o}=pn(),i=JSON.stringify(Jl(r)),s=F.useRef(!1);return oc(()=>{s.current=!0}),F.useCallback((l,c={})=>{if(It(s.current,rc),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=ts(l,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Mt([e,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[e,n,i,o,t])}F.createContext(null);function fg(){let{matches:t}=F.useContext(_t),e=t[t.length-1];return e?e.params:{}}function Br(t,{relative:e}={}){let{matches:n}=F.useContext(_t),{pathname:r}=pn(),o=JSON.stringify(Jl(n));return F.useMemo(()=>ts(t,JSON.parse(o),r,e==="path"),[t,o,r,e])}function pg(t,e){return ic(t,e)}function ic(t,e,n){Ce(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=F.useContext(ft),{matches:o}=F.useContext(_t),i=o[o.length-1],s=i?i.params:{},a=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let p=c&&c.path||"";lc(a,!c||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
2
|
|
|
3
|
-
Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let u=pn(),d;if(e){let p=typeof e=="string"?Xn(e):e;Ce(l==="/"||p.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${p.pathname}" was given in the \`location\` prop.`),d=p}else d=u;let A=d.pathname||"/",h=A;if(l!=="/"){let p=l.replace(/^\//,"").split("/");h="/"+A.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=Yl(t,{pathname:h});It(c||f!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),It(f==null||f[f.length-1].route.element!==void 0||f[f.length-1].route.Component!==void 0||f[f.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=yg(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:Mt([l,r.encodeLocation?r.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:Mt([l,r.encodeLocation?r.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,n);return e&&g?F.createElement(Pr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},g):g}function gg(){let t=Cg(),e=tg(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:i},"ErrorBoundary")," or"," ",F.createElement("code",{style:i},"errorElement")," prop on your route.")),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},e),n?F.createElement("pre",{style:o},n):null,s)}var mg=F.createElement(gg,null),sc=class extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=ug(t.digest);n&&(t=n)}let e=t!==void 0?F.createElement(_t.Provider,{value:this.props.routeContext},F.createElement(ns.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?F.createElement(bg,{error:t},e):e}};sc.contextType=og;var rs=new WeakMap;function bg({children:t,error:e}){let{basename:n}=F.useContext(ft);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=cg(e.digest);if(r){let o=rs.get(e);if(o)throw o;let i=$l(r.location,n);if(Zl&&!rs.get(e))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw rs.set(e,s),s}return F.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function vg({routeContext:t,match:e,children:n}){let r=F.useContext(Jn);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),F.createElement(_t.Provider,{value:t},n)}function yg(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r?.errors;if(i!=null){let u=o.findIndex(d=>d.route.id&&i?.[d.route.id]!==void 0);Ce(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,a=-1;if(n&&r){s=r.renderFallback;for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:A,errors:h}=r,f=d.route.loader&&!A.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||f){n.isStatic&&(s=!0),a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}}let l=n?.onError,c=r&&l?(u,d)=>{l(u,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ng(r.matches),errorInfo:d})}:void 0;return o.reduceRight((u,d,A)=>{let h,f=!1,g=null,p=null;r&&(h=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||mg,s&&(a<0&&A===0?(lc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===A&&(f=!0,p=d.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,A+1)),w=()=>{let v;return h?v=g:f?v=p:d.route.Component?v=F.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,F.createElement(vg,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:v})};return r&&(d.route.ErrorBoundary||d.route.errorElement||A===0)?F.createElement(sc,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):w()},null)}function os(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wg(t){let e=F.useContext(Jn);return Ce(e,os(t)),e}function xg(t){let e=F.useContext(ko);return Ce(e,os(t)),e}function kg(t){let e=F.useContext(_t);return Ce(e,os(t)),e}function is(t){let e=kg(t),n=e.matches[e.matches.length-1];return Ce(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Eg(){return is("useRouteId")}function Cg(){let t=F.useContext(ns),e=xg("useRouteError"),n=is("useRouteError");return t!==void 0?t:e.errors?.[n]}function Sg(){let{router:t}=wg("useNavigate"),e=is("useNavigate"),n=F.useRef(!1);return oc(()=>{n.current=!0}),F.useCallback(async(o,i={})=>{It(n.current,rc),n.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var ac={};function lc(t,e,n){!e&&!ac[t]&&(ac[t]=!0,It(!1,n))}F.memo(Pg);function Pg({routes:t,future:e,state:n,isStatic:r,onError:o}){return ic(t,void 0,{state:n,isStatic:r,onError:o})}function ss(t){Ce(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Dg({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){Ce(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),l=F.useMemo(()=>({basename:a,navigator:o,static:i,unstable_useTransitions:s,future:{}}),[a,o,i,s]);typeof n=="string"&&(n=Xn(n));let{pathname:c="/",search:u="",hash:d="",state:A=null,key:h="default",unstable_mask:f}=n,g=F.useMemo(()=>{let p=$t(c,a);return p==null?null:{location:{pathname:p,search:u,hash:d,state:A,key:h,unstable_mask:f},navigationType:r}},[a,c,u,d,A,h,r,f]);return It(g!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:F.createElement(ft.Provider,{value:l},F.createElement(Pr.Provider,{children:e,value:g}))}function Bg({children:t,location:e}){return pg(as(t),e)}function as(t,e=[]){let n=[];return F.Children.forEach(t,(r,o)=>{if(!F.isValidElement(r))return;let i=[...e,o];if(r.type===F.Fragment){n.push.apply(n,as(r.props.children,i));return}Ce(r.type===ss,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ce(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=as(r.props.children,i)),n.push(s)}),n}var Eo="get",Co="application/x-www-form-urlencoded";function So(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Tg(t){return So(t)&&t.tagName.toLowerCase()==="button"}function Ig(t){return So(t)&&t.tagName.toLowerCase()==="form"}function Mg(t){return So(t)&&t.tagName.toLowerCase()==="input"}function _g(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Og(t,e){return t.button===0&&(!e||e==="_self")&&!_g(t)}var Po=null;function Lg(){if(Po===null)try{new FormData(document.createElement("form"),0),Po=!1}catch{Po=!0}return Po}var Fg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ls(t){return t!=null&&!Fg.has(t)?(It(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):t}function Qg(t,e){let n,r,o,i,s;if(Ig(t)){let a=t.getAttribute("action");r=a?$t(a,e):null,n=t.getAttribute("method")||Eo,o=ls(t.getAttribute("enctype"))||Co,i=new FormData(t)}else if(Tg(t)||Mg(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(r=l?$t(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||Eo,o=ls(t.getAttribute("formenctype"))||ls(a.getAttribute("enctype"))||Co,i=new FormData(a,t),!Lg()){let{name:c,type:u,value:d}=t;if(u==="image"){let A=c?`${c}.`:"";i.append(`${A}x`,"0"),i.append(`${A}y`,"0")}else c&&i.append(c,d)}}else{if(So(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Eo,r=null,o=Co,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cs(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ng(t,e,n,r){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:e&&$t(o.pathname,e)==="/"?o.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function zg(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rg(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ug(t,e,n){let r=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await zg(i,n);return s.links?s.links():[]}return[]}));return Wg(r.flat(1).filter(Rg).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cc(t,e,n,r,o,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,a=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function jg(t,e,{includeHydrateFallback:n}={}){return Vg(t.map(r=>{let o=e.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Vg(t){return[...new Set(t)]}function Hg(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Wg(t,e){let n=new Set;return new Set(e),t.reduce((r,o)=>{let i=JSON.stringify(Hg(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function uc(){let t=F.useContext(Jn);return cs(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Yg(){let t=F.useContext(ko);return cs(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var us=F.createContext(void 0);us.displayName="FrameworkContext";function dc(){let t=F.useContext(us);return cs(t,"You must render this element inside a <HydratedRouter> element"),t}function qg(t,e){let n=F.useContext(us),[r,o]=F.useState(!1),[i,s]=F.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=e,A=F.useRef(null);F.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let g=y=>{y.forEach(w=>{s(w.isIntersecting)})},p=new IntersectionObserver(g,{threshold:.5});return A.current&&p.observe(A.current),()=>{p.disconnect()}}},[t]),F.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let h=()=>{o(!0)},f=()=>{o(!1),s(!1)};return n?t!=="intent"?[i,A,{}]:[i,A,{onFocus:Tr(a,h),onBlur:Tr(l,f),onMouseEnter:Tr(c,h),onMouseLeave:Tr(u,f),onTouchStart:Tr(d,h)}]:[!1,A,{}]}function Tr(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Gg({page:t,...e}){let{router:n}=uc(),r=F.useMemo(()=>Yl(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?F.createElement(Xg,{page:t,matches:r,...e}):null}function Kg(t){let{manifest:e,routeModules:n}=dc(),[r,o]=F.useState([]);return F.useEffect(()=>{let i=!1;return Ug(t,e,n).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,n]),r}function Xg({page:t,matches:e,...n}){let r=pn(),{future:o,manifest:i,routeModules:s}=dc(),{basename:a}=uc(),{loaderData:l,matches:c}=Yg(),u=F.useMemo(()=>cc(t,e,c,i,r,"data"),[t,e,c,i,r]),d=F.useMemo(()=>cc(t,e,c,i,r,"assets"),[t,e,c,i,r]),A=F.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let g=new Set,p=!1;if(e.forEach(w=>{let v=i.routes[w.route.id];!v||!v.hasLoader||(!u.some(b=>b.route.id===w.route.id)&&w.route.id in l&&s[w.route.id]?.shouldRevalidate||v.hasClientLoader?p=!0:g.add(w.route.id))}),g.size===0)return[];let y=Ng(t,a,o.unstable_trailingSlashAwareDataRequests,"data");return p&&g.size>0&&y.searchParams.set("_routes",e.filter(w=>g.has(w.route.id)).map(w=>w.route.id).join(",")),[y.pathname+y.search]},[a,o.unstable_trailingSlashAwareDataRequests,l,r,i,u,e,t,s]),h=F.useMemo(()=>jg(d,i),[d,i]),f=Kg(d);return F.createElement(F.Fragment,null,A.map(g=>F.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),h.map(g=>F.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:p})=>F.createElement("link",{key:g,nonce:n.nonce,...p,crossOrigin:p.crossOrigin??n.crossOrigin})))}function Jg(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var Zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zg&&(window.__reactRouterVersion="7.13.1")}catch{}function $g({basename:t,children:e,unstable_useTransitions:n,window:r}){let o=F.useRef();o.current==null&&(o.current=Ip({window:r,v5Compat:!0}));let i=o.current,[s,a]=F.useState({action:i.action,location:i.location}),l=F.useCallback(c=>{n===!1?a(c):F.startTransition(()=>a(c))},[n]);return F.useLayoutEffect(()=>i.listen(l),[i,l]),F.createElement(Dg,{basename:t,children:e,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Ac=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hc=F.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,unstable_mask:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:A,unstable_defaultShouldRevalidate:h,...f},g){let{basename:p,navigator:y,unstable_useTransitions:w}=F.useContext(ft),v=typeof u=="string"&&Ac.test(u),b=$l(u,p);u=b.to;let E=dg(u,{relative:o}),k=pn(),P=null;if(a){let O=ts(a,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);p!=="/"&&(O.pathname=O.pathname==="/"?p:Mt([p,O.pathname])),P=y.createHref(O)}let[D,I,T]=qg(r,f),M=rm(u,{replace:s,unstable_mask:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:A,unstable_defaultShouldRevalidate:h,unstable_useTransitions:w});function B(O){e&&e(O),O.defaultPrevented||M(O)}let _=!(b.isExternal||i),N=F.createElement("a",{...f,...T,href:(_?P:void 0)||b.absoluteURL||E,onClick:_?B:e,ref:Jg(g,I),target:c,"data-discover":!v&&n==="render"?"true":void 0});return D&&!v?F.createElement(F.Fragment,null,N,F.createElement(Gg,{page:E})):N});hc.displayName="Link";var em=F.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},u){let d=Br(s,{relative:c.relative}),A=pn(),h=F.useContext(ko),{navigator:f,basename:g}=F.useContext(ft),p=h!=null&&lm(d)&&a===!0,y=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,w=A.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(w=w.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&g&&(v=$t(v,g)||v);const b=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=w===y||!o&&w.startsWith(y)&&w.charAt(b)==="/",k=v!=null&&(v===y||!o&&v.startsWith(y)&&v.charAt(y.length)==="/"),P={isActive:E,isPending:k,isTransitioning:p},D=E?e:void 0,I;typeof r=="function"?I=r(P):I=[r,E?"active":null,k?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let T=typeof i=="function"?i(P):i;return F.createElement(hc,{...c,"aria-current":D,className:I,ref:u,style:T,to:s,viewTransition:a},typeof l=="function"?l(P):l)});em.displayName="NavLink";var tm=F.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Eo,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:A,...h},f)=>{let{unstable_useTransitions:g}=F.useContext(ft),p=sm(),y=am(a,{relative:c}),w=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Ac.test(a),b=E=>{if(l&&l(E),E.defaultPrevented)return;E.preventDefault();let k=E.nativeEvent.submitter,P=k?.getAttribute("formmethod")||s,D=()=>p(k||E.currentTarget,{fetcherKey:e,method:P,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:A});g&&n!==!1?F.startTransition(()=>D()):D()};return F.createElement("form",{ref:f,method:w,action:y,onSubmit:r?l:b,...h,"data-discover":!v&&t==="render"?"true":void 0})});tm.displayName="Form";function nm(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fc(t){let e=F.useContext(Jn);return Ce(e,nm(t)),e}function rm(t,{target:e,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Ag(),d=pn(),A=Br(t,{relative:s});return F.useCallback(h=>{if(Og(h,e)){h.preventDefault();let f=n!==void 0?n:Sr(d)===Sr(A),g=()=>u(t,{replace:f,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l});c?F.startTransition(()=>g()):g()}},[d,u,A,n,r,o,e,t,i,s,a,l,c])}var om=0,im=()=>`__${String(++om)}__`;function sm(){let{router:t}=fc("useSubmit"),{basename:e}=F.useContext(ft),n=Eg(),r=t.fetch,o=t.navigate;return F.useCallback(async(i,s={})=>{let{action:a,method:l,encType:c,formData:u,body:d}=Qg(i,e);if(s.navigate===!1){let A=s.fetcherKey||im();await r(A,n,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await o(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,e,n])}function am(t,{relative:e}={}){let{basename:n}=F.useContext(ft),r=F.useContext(_t);Ce(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Br(t||".",{relative:e})},s=pn();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let u=a.toString();i.search=u?`?${u}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Mt([n,i.pathname])),Sr(i)}function lm(t,{relative:e}={}){let n=F.useContext(tc);Ce(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fc("useViewTransitionState"),o=Br(t,{relative:e});if(!n.isTransitioning)return!1;let i=$t(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=$t(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xo(o.pathname,s)!=null||xo(o.pathname,i)!=null}const cm=x.lazy(()=>Promise.resolve().then(()=>MS)),um=x.lazy(()=>Promise.resolve().then(()=>zS));function dm({accessId:t,baseUri:e="/resources",isLoggedIn:n,qaBotApiKey:r,showTitle:o=!0,title:i="Resources"}){const[s,a]=x.useState(!1);return m.jsxs(x.Suspense,{fallback:null,children:[m.jsx($g,{children:m.jsx(Bl,{children:m.jsxs(Bg,{children:[m.jsx(ss,{path:e,element:m.jsx(um,{baseUri:e,title:i,setBotOpen:a,showTitle:o})}),m.jsx(ss,{path:`${e}/:infoGroupId`,element:m.jsx(cm,{baseUri:e})})]})})}),m.jsx(Tl,{accessId:t,apiKey:r,embedded:!1,isLoggedIn:n,onOpenChange:a,open:s,welcome:"Welcome to the ACCESS Q&A Bot!"})]})}const Am=({headings:t=[],idPrefix:e="",smoothScroll:n=!0})=>{const[r,o]=x.useState(-1);let i;const s=[];if(t.forEach(a=>{a.tagName=="H1"?i=a:a.tagName=="H2"&&(s.push(a),a.id||(a.id=e+a.textContent.replace(/[^A-Za-z0-9]+/g,"-").toLowerCase()))}),x.useEffect(()=>{s.length&&window.addEventListener("scroll",function(){const a=Ql()+window.innerHeight*.1;let l=-1;s.forEach((c,u)=>{if(c.offsetTop<a)return l=u,!1}),o(l)})},[]),!!s.length)return m.jsxs("div",{className:"toc",children:[i&&m.jsx("h2",{children:i.textContent}),s.length>0&&m.jsx("ul",{children:s.map((a,l)=>m.jsx("li",{children:m.jsx("a",{href:`#${a.id}`,className:l==r?"active":"",onClick:c=>{n&&(c.preventDefault(),window.scrollTo({top:a.offsetTop,behavior:"smooth"}),history.pushState(null,null,`#${a.id}`))},children:a.textContent})}))})]})},en=":host,:root{--contrast: #232323;--contrast-2: #3f3f3f;--contrast-3: #707070;--contrast-6: #999999;--contrast-7: #d9d9d9;--contrast-8: #dfdfdf;--contrast-9: #e5e5e5;--green-400: #288654;--red-400: #a70000;--orange-200: #f6d8ca;--orange-400: #f07537;--teal-050: #ecf9f8;--teal-100: #cee8e9;--teal-200: #b0dadb;--teal-400: #48c0b9;--teal-600: #107180;--teal-700: #1a5b6e;--yellow-200: #fce5ab;--yellow-400: #ffc42d;--color: white;--padding: 30px;--offset: 0px;--outline: white;color:var(--contrast)}:host,:host button,:root,:root button{font-family:Archivo,sans-serif}.container{margin:0 auto;padding:0 var(--padding);width:var(--width)}.visually-hidden{border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}@media(min-width:600px){:host,:root{--padding: calc((100% - var(--width)) / 2);--offset: 7px;--width: 540px}}@media(min-width:768px){:host,:root{--width: 712px}}@media(min-width:900px){:host,:root{--width: 840px}}@media(min-width:1024px){:host,:root{--width: 940px}}@media(min-width:1280px){:host,:root{--padding: 10px;--offset: 0px;--width: 1180px}}",hm='ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:14px;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}',fm=`:root{color:#232323;font-family:Archivo,sans-serif;font-size:16px}h1{font-size:36px;font-stretch:70%;font-weight:500;margin-top:60px}h2{font-size:22px;font-weight:800;margin-top:36px}h3{color:var(--teal-700);font-size:18px;font-weight:800}a{color:var(--contrast);font-weight:800;text-decoration:underline}a:active,a:focus,a:hover{color:var(--teal-600);text-decoration:none}ol,p,ul{font-size:1.125rem;line-height:1.875rem;margin:0 0 1.25rem}li{margin-bottom:.5rem}.btn{background-color:var(--teal-700);border:4px solid var(--teal-700);color:#fff;display:inline-block;font-family:Archivo,sans-serif;font-size:16px;font-weight:600;line-height:24px;padding:6px 12px;text-decoration:none;text-transform:uppercase}.secondary{background-color:var(--yellow-400);border-color:var(--yellow-400);color:var(--contrast)}.danger{background-color:var(--red-400);border-color:var(--red-400)}.lg{font-size:20px;line-height:30px;padding:8px 16px}.btn.active,.btn:active,.btn:focus,.btn:hover{background-color:#fff;border-color:var(--contrast);color:var(--contrast);cursor:pointer}.btn-clear,.btn-clear.active,.btn-clear:active,.btn-clear:focus,.btn-clear:hover{background-color:transparent;border-color:transparent;color:var(--contrast)}.btn:disabled{background-color:var(--contrast-8);border-color:var(--contrast-8);color:var(--contrast-3)}.btn .bi{vertical-align:middle}.btn+.btn{margin-left:10px}.table{border-top:1px solid var(--contrast);border-collapse:collapse;width:100%}.table td,.table th{border-bottom:1px solid var(--contrast);padding:16px}.table thead th{text-align:left}.table tbody th{text-align:right}input,select{border:1px solid var(--contrast-8);border-radius:0;color:var(--contrast);font-size:1rem;padding:6px 12px}select{appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");background-position:right 12px center;background-repeat:no-repeat;padding:6px 36px 6px 12px}.intro{font-size:24px}`,pm=`:host{background-color:#fbfbfb}.container{color:var(--contrast)}a{color:var(--teal-600);font-weight:800;text-decoration:none}a:active,a:focus,a:hover{text-decoration:underline}.about{padding-top:25px}.awards{font-size:15px;line-height:21px;margin:0 0 20px}.disclaimer{font-size:12px;line-height:18px;margin:0 0 15px}.contact{font-size:16px;font-stretch:70%;text-transform:uppercase}.social{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;list-style-type:none;margin:0;padding:20px 0 10px}.social li{margin:0 35px 0 0;padding:0}.social li:last-child{margin:-10px}.social a{background-size:contain;background-repeat:no-repeat;display:block;height:25px;text-indent:-999999px;width:25px}.bluesky{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' class='bi bi-bluesky' viewBox='0 0 16 16'><path d='M3.468 1.948C5.303 3.325 7.276 6.118 8 7.616c.725-1.498 2.698-4.29 4.532-5.668C13.855.955 16 .186 16 2.632c0 .489-.28 4.105-.444 4.692-.572 2.04-2.653 2.561-4.504 2.246 3.236.551 4.06 2.375 2.281 4.2-3.376 3.464-4.852-.87-5.23-1.98-.07-.204-.103-.3-.103-.218 0-.081-.033.014-.102.218-.379 1.11-1.855 5.444-5.231 1.98-1.778-1.825-.955-3.65 2.28-4.2-1.85.315-3.932-.205-4.503-2.246C.28 6.737 0 3.12 0 2.632 0 .186 2.145.955 3.468 1.948'/></svg>")}.youtube{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z'/></svg>")}.facebook{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951'/></svg>")}a.linkedin{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z'/></svg>")}.lower{border-top:1px solid var(--contrast-9);padding:10px 0 60px}.links{display:flex;flex-direction:row;flex-wrap:wrap;list-style-type:none;margin:20px 0 0;padding:0}.links li{padding:0 20px 10px 0}.links li:last-child{padding-right:0}.links a{font-size:12px;font-weight:600}.scroll-to-top{background-color:#00000080;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' stroke='white' stroke-width='1' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z'/></svg>");background-position:center;background-repeat:no-repeat;background-size:13px;border:0 none transparent;bottom:30px;cursor:pointer;display:block;height:40px;opacity:0;position:fixed;right:30px;text-indent:-999999px;transition:opacity .25s ease-out;width:40px;z-index:100}.scroll-to-top.visible{opacity:1}.personas{box-sizing:border-box;font-size:15px;padding:20px 0}.personas p{margin:0}.personas ul{list-style-type:none;margin:5px 0;padding:0}.personas li{padding:3px 0}@media(min-width:1024px){.lower{align-items:start;display:flex;flex-direction:row;justify-content:space-between}.links{margin-top:0}}@media(min-width:900px){.upper{display:flex;flex-direction:row;justify-content:space-between}.upper>*{width:calc((var(--width) - 20px) / 2)}.about{padding:40px 0 30px}.awards{font-size:18px;line-height:24px}.personas{font-size:18px;padding:40px calc(((var(--width) - 140px) / 8) + 20px) 30px}}`,gm=".container{box-sizing:content-box;height:84px;padding-top:20px}@media(min-width:900px){.container{height:144px;padding-top:52px}}",pc=`.logo{align-items:start;display:flex;flex-direction:row}.nsf-logo{height:49px}.access-logo{height:23px;margin-top:12px}.access,.nsf{display:block;text-decoration:none}.divider{border-right:2px solid #bbbbbb;height:40px;margin:4px 15px 0 12px;width:0}.name{color:var(--teal-700);display:block;font-size:17.5px;font-stretch:80%;font-weight:200;line-height:1;margin:3px 0 0;text-align:right}.name:before{content:"";display:inline-block;height:0;margin:0 5px 0 0;width:0}.name-allocations:before{border-bottom:12px solid var(--orange-400);border-left:12px solid transparent}.name-coordination-office:before{background-color:var(--teal-400);border-radius:6px;height:12px;margin:0 6px 0 0;width:12px}.name-metrics:before{background-image:url("data:image/svg+xml;utf8,<svg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg' width='12'><circle cx='12' cy='0' r='12' fill='%23008496' /></svg>");background-size:cover;height:12px;margin:0 2px 0 0;width:12px}.name-operations:before{border-top:12px solid var(--yellow-400);border-right:12px solid transparent}.name-support:before{background-color:var(--teal-700);height:12px;margin:0 6px 0 0;width:12px}.logo-footer .nsf-logo{height:40px}.logo-footer .divider{height:34px;margin:3px 11px 0 9px}.logo-footer .access-logo{margin-top:10px;height:21px;width:auto}@media(min-width:900px){.nsf-logo{height:82px}.divider{height:70px;margin:6px 23px 0 20px}.access-logo{height:auto;margin-top:22px;width:253px}.name{font-size:30px}.name-allocations:before{border-bottom:20px solid var(--orange-400);border-left:20px solid transparent}.name-metrics:before{height:20px;margin:0 4px 0 0;width:20px}.name-operations:before{border-top:20px solid var(--yellow-400);border-right:20px solid transparent}.name-coordination-office:before{border-radius:9.5px;height:19px;width:19px}.name-support:before{height:19px;margin:0 7px 0 0;width:19px}}`,ds=`.menu{--icon-caret-down-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-teal: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23107180' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>")}.universal{--background: var(--teal-700);--border: rgba(19, 133, 151, .35)}.site{--background: var(--teal-600);--border: #157688}.site ul ul{--border: rgba(19, 133, 151, .35)}.menu ul,.menu li{list-style-type:none;margin:0;padding:0}.menu a{text-decoration:none}.item{background:transparent;border:0 none transparent;border-radius:0;box-sizing:border-box;cursor:pointer;display:block;text-align:left;width:100%}.item{font-size:14px;font-weight:600;line-height:21px;padding:13.5px var(--padding) 13.5px}.menu>ul>li>.item{font-weight:800}.item,.menu li:last-child li:last-child>.item{border-bottom:1px solid var(--border)}.menu li.highlight button.item,.menu li:last-child>.item,.menu>.collapsed{border-bottom:0 none transparent}.expanded{border-bottom-width:2px}.menu button.item{position:relative}.menu>button.item{font-weight:500;padding:13.5px var(--padding) 13.5px;text-transform:uppercase}.menu button.item:after{background-image:var(--icon-caret-down-light);background-repeat:no-repeat;background-size:18px;content:"";display:block;height:18px;right:calc(var(--padding) + var(--offset));position:absolute;top:15px;width:18px}.menu button.item.expanded:after{transform:rotate(180deg)}.menu .highlight button.item:after{background-image:var(--icon-caret-down-dark)}.menu button.item,.menu ul li{background-color:var(--background)}.menu button.item,.menu ul li a{color:var(--color)}.menu ul li li{background-color:#fff}.menu ul li li a{color:#138597}.icon>.item{background-position:calc(var(--padding) + var(--offset)) center;background-repeat:no-repeat;background-size:14px 14px;text-indent:-99999px}.icon-home>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5'/></svg>")}.icon-search>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>")}.track .item{text-transform:uppercase;padding-top:4px;padding-bottom:4px}.track:first-child .item{padding-top:17px}.track.grow .item{padding-bottom:21px}.track .item{border-bottom:0 none transparent}.highlight button.item{background-color:var(--yellow-400);color:var(--contrast)}.footer{background-color:var(--teal-700);padding:50px var(--padding) 36px;color:#fff}.footer h2{font-size:14px;font-weight:600;margin:0 auto 20px;text-transform:uppercase;width:var(--width)}.columns{margin:0 auto;width:var(--width)}.column{padding-bottom:14px}.footer a,.footer a:visited{color:#fff;text-decoration:none}.footer a:active,.footer a:focus,.footer a:hover{color:var(--teal-100);text-decoration:underline}.footer h3{font-size:14px;font-weight:800;margin:0}.footer ul{margin:0;padding:0}.footer li{font-size:14px;font-weight:600;list-style-type:none;padding:14px 0 0}@media(min-width:768px){.columns{display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 0}.column{padding-bottom:40px;padding-right:20px;width:calc((var(--width) - 60px) / 4)}.column:nth-child(4),.column:last-child{padding-right:0}}@media(min-width:1280px){.site{--background: white;--color: var(--teal-600);--outline: var(--teal-700);--padding: 20px;border-bottom:1px solid #d9d9d9;border-top:3px solid var(--teal-700)}.site>ul{justify-content:end}.menu>button.item{display:none}.menu>ul{display:flex;flex-direction:row;margin:0 auto;width:calc(var(--width) + (2 * var(--padding)))}.item,.track .item,.track:first-child .item,.track.grow .item{border-bottom:0 none transparent;padding-top:12px;padding-bottom:12px}.site .item{font-size:16px}.grow{flex:1 0 auto}.universal{background-color:var(--teal-700)}.universal>ul>li:first-child{margin-left:-10px}.universal>ul>li:last-child{margin-right:-10px}.universal li button.item{--padding: 20px}.icon>.item{background-position:center center;width:56px}.menu button.item:after,.menu button.item.expanded:after,.menu .highlight button.item:after,.menu .highlight button.item.expanded:after{display:inline-block;margin-left:5px;position:static;vertical-align:middle}.menu button.item:after{background-image:var(--icon-caret-down-teal)}.universal button.item:after{background-image:var(--icon-caret-down-light)}.menu button.item.expanded:after,.menu button.item.item:active:after,.menu button.item.item:focus:after,.menu button.item.item:hover:after{background-image:var(--icon-caret-down-light)}.menu>ul>li{display:flex;flex-direction:row;justify-content:start;position:relative}.menu>ul>li.grow>.item{flex:0 1 0}.menu>ul>li.active>.item,.menu>ul>li>.expanded,.menu>ul>li>.item:active,.menu>ul>li>.item:focus,.menu>ul>li>.item:hover{background-color:var(--teal-600);color:#fff;outline:0 none transparent}.menu>ul>li>.item:focus-visible{outline:3px solid var(--outline);outline-offset:-3px;z-index:1000}.menu>ul ul{background-color:var(--teal-600);padding:10px 0;position:absolute;right:0;top:48px;z-index:9999}.menu>ul ul li{background-color:var(--teal-600)}.menu>ul ul .item{color:#fff;white-space:nowrap;padding:5px 20px}.menu>ul ul .item:active,.menu>ul ul .item:focus,.menu>ul ul .item:hover{color:#cee8e9;outline:0 none transparent;text-decoration:underline}.menu>ul ul .item:focus-visible{outline:3px solid white;outline-offset:-3px;z-index:1000}.menu>ul>li>.item{line-height:24px}}@media(min-width:1280px){.columns{flex-wrap:nowrap;padding:10px 0 0}.column{padding-bottom:72px;width:calc((var(--width) - 120px) / 7)}.column:nth-child(4){padding-right:20px}}`,mm='@import"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css";.glide{position:relative;width:100%;box-sizing:border-box}.glide *{box-sizing:inherit}.glide__track{overflow:hidden}.glide__slides{position:relative;width:100%;list-style:none;backface-visibility:hidden;transform-style:preserve-3d;touch-action:pan-Y;overflow:hidden;margin:0;padding:0;white-space:nowrap;display:flex;flex-wrap:nowrap;will-change:transform}.glide__slides--dragging{-webkit-user-select:none;user-select:none}.glide__slide{width:100%;height:100%;flex-shrink:0;white-space:normal;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.glide__slide a{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.glide__arrows,.glide__bullets{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.glide--rtl{direction:rtl}.glide__arrow{position:absolute;display:block;top:50%;z-index:2;color:#fff;text-transform:uppercase;padding:9px 12px;background-color:transparent;border:2px solid rgba(255,255,255,.5);border-radius:4px;box-shadow:0 .25em .5em #0000001a;text-shadow:0 .25em .5em rgba(0,0,0,.1);opacity:1;cursor:pointer;transition:opacity .15s ease,border .3s ease-in-out;transform:translateY(-50%);line-height:1}.glide__arrow:focus{outline:none}.glide__arrow:hover{border-color:#fff}.glide__arrow--left{left:2em}.glide__arrow--right{right:2em}.glide__arrow--disabled{opacity:.33}.glide__bullets{position:absolute;z-index:2;bottom:2em;left:50%;display:inline-flex;list-style:none;transform:translate(-50%)}.glide__bullet{background-color:#ffffff80;width:9px;height:9px;padding:0;border-radius:50%;border:2px solid transparent;transition:all .3s ease-in-out;cursor:pointer;line-height:0;box-shadow:0 .25em .5em #0000001a;margin:0 .25em}.glide__bullet:focus{outline:none}.glide__bullet:hover,.glide__bullet:focus{border:2px solid #fff;background-color:#ffffff80}.glide__bullet--active{background-color:#fff}.glide--swipeable{cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.glide--dragging{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.accordion{margin:0 0 16px}.accordion-heading{margin:0}.accordion-heading button{background-color:var(--teal-050);border:0 none transparent;color:var(--teal-700);cursor:pointer;display:block;font-size:16px;font-weight:800;padding:16px 40px 16px 20px;position:relative;text-align:left;width:100%}.accordion-heading button .icon{position:absolute;right:20px;top:16px}.accordion-content{padding:16px 20px 0}.alert{align-items:center;background-color:var(--yellow-200);border-radius:10px;display:flex;flex-direction:row;margin-bottom:20px;padding:20px}.alert i{margin-right:20px}ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:14px;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}.carousel{margin-bottom:1rem;width:var(--width)}.slide-inner{background-color:var(--contrast-9);display:flex;flex-direction:column}.slide-image img{display:block;width:100%}.slide-text{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:20px}.slide-text h2{font-size:16px;line-height:1.1;margin:0 0 .25rem}.slide-text a{font-size:14px;line-height:1.1}.slide-text p{font-size:14px;line-height:1.2;margin-bottom:.5rem}.glide__arrow{align-items:center;background-color:var(--contrast-3);border:0 none transparent;border-radius:15px;display:flex;justify-content:center;height:30px;padding:8px;width:30px}.glide__arrow:active,.glide__arrow:hover{background-color:var(--teal-700)}.glide__arrow svg{fill:#fff}.glide__arrow--left{margin-left:-66px}.glide__arrow--right{margin-right:-66px}@media(min-width:768px){.slide-inner{flex-direction:row}.slide-image img{width:calc((var(--width) - 20px) / 2)}}@media(min-width:1024px){.slide-image img{width:calc((var(--width) - 40px) / 3)}}@media(min-width:1280px){.slide-text h2{font-size:18px}.slide-text a{font-size:16px}.slide-text p{font-size:16px;line-height:1.2;margin-bottom:.5rem}}.highlight{background-color:var(--yellow-200);padding:2px 0}.header-components{margin-bottom:2rem}.button-group .btn{display:block;margin:0 0 10px}.card{border:5px solid var(--contrast);padding:20px}@media(min-width:768px){.flex-header{align-items:center;display:flex;justify-content:space-between}.header-components{margin-bottom:0}.button-group{display:flex}.button-group .btn{display:flex;margin:0 10px 0 0}}@media(min-width:1024px){.cards{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.card{flex:1 0 20%;margin:0}}.donut-chart svg path{cursor:pointer}.donut-chart .center-text{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;line-height:1.2}.donut-chart .center-text *{cursor:default;display:block;margin-bottom:.25rem;text-align:center}.donut-chart .center-text .percent{color:var(--contrast-2);font-size:.7rem}.donut-chart .top-items{list-style-type:none;margin:0;padding:0}.donut-chart .top-items li{align-items:center;display:flex;flex-direction:row;font-size:1rem;line-height:1.2;margin-bottom:5px}.donut-chart .symbol{border-radius:8px;display:inline-block;height:16px;margin-right:5px;vertical-align:text-top;width:16px}.expand-text{margin-bottom:1rem;position:relative}.expand-text.contracted{max-height:5.3rem;overflow:hidden}.expand-text button{background-color:#fff;border:0 none transparent;color:var(--teal-700);cursor:pointer;font-size:1rem;font-weight:700}.expand-text.contracted button{background:linear-gradient(to right,#fff0,#fff 50% 100%);position:absolute;right:0;text-align:right;bottom:0;width:12rem}.grid{border-top:1px solid var(--contrast);max-width:100%;margin-bottom:1rem;overflow:scroll;position:relative}.grid table{border-collapse:separate;border-spacing:0;border-top:0 none transparent;margin-bottom:0;position:relative}.grid th{position:sticky;top:0;z-index:10}.grid th,.grid td{background-color:#fff}.grid th:last-child,.grid td:last-child{border-right:0 none transparent}.grid th.important,.grid td.important{background-color:#f8f9fa}.grid th.input,.grid td.input{background-color:var(--teal-200)}.grid .edited td,.grid .edited select{background-color:#faf1d7}.grid .edited td.important,.grid .edited select.important{background-color:#fbeeca}.grid .disabled td,.grid .disabled select{background-color:#ddd}.grid .disabled td.important,.grid .disabled select.important{background-color:#ccc}.grid tbody tr:last-child th,.grid tbody tr:last-child td{border-bottom:0 none transparent}.icon{height:1em;margin-right:5px;vertical-align:text-bottom}.info-tip{background-color:transparent;border:0 none transparent}.tippy-box[data-theme~=access]{background-color:var(--teal-700);border-radius:0;color:#fff;font-weight:400;padding:5px}.tippy-box[data-theme~=access][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--teal-700)}.mini-bar{flex:0 0 auto;position:relative;width:100px}.mini-bar .bar{background-color:#ddd;height:1em}.filters-outer{float:right;position:relative}.filters-inner{background-color:#fff;border:4px solid var(--contrast);padding:20px;position:absolute;right:0;top:41px;width:calc(var(--width) * .4)}.filters-inner h2{font-size:16px;margin:0 0 1rem}.filters-inner ul.tags{margin-bottom:1rem}.btn-filters{position:relative}.btn-filters .active-tag-count{background-color:var(--orange-400);border-radius:10px;color:#fff;display:block;font-size:12px;height:20px;line-height:20px;top:-10px;position:absolute;text-align:center;right:-10px;width:20px}.btn-filters.active{z-index:100}.btn-filters.active:after{background-color:#fff;bottom:-4px;content:"";display:block;height:4px;left:0;position:absolute;width:100%}.event:not(:last-child){margin-bottom:1.5rem}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{align-items:center;background-color:var(--teal-700);color:#fff;display:none;flex:0 0 auto;flex-direction:column;font-weight:800;justify-content:center;height:calc((var(--width) - 140px) / 8);text-decoration:none;width:calc((var(--width) - 140px) / 8)}.event-icon span{display:block}.event-icon span:nth-child(2){font-size:2rem}.event-metadata{margin-bottom:1rem}.event-metadata i:not(:first-child){margin-left:1rem}@media(min-width:768px){.event{display:flex;flex-direction:row}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{display:flex;margin-right:20px}.event h3{margin-top:0}}@media(min-width:900px){.event-icon span:nth-child(2){font-size:3rem}}.carousel-projects .glide__slide{font-size:16px}.carousel-projects h3{margin:0 0 .25rem}.carousel-projects .project-metadata{margin-bottom:.5rem}.carousel-projects .project-meta{display:inline-block;font-weight:700;line-height:1.1;margin-right:1rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.carousel-projects .project-meta .bi{vertical-align:middle}.metrics-overview strong{background-color:var(--yellow-200);font-size:1.2rem;padding:2px;white-space:nowrap}.metrics-overview .bi{vertical-align:middle}.metrics-overview .btn{font-size:1rem}.metrics-disclaimer{font-size:.9rem;line-height:1.2;margin:.5rem 0}.metrics-disclaimer .bi{vertical-align:middle}.resource-group{align-items:flex-start;clear:both;display:flex;flex-direction:column;margin-bottom:20px}.resource-group-image{--image-width: 100%;align-items:center;background-color:var(--contrast-9);border:1px solid var(--contrast);color:var(--contrast-8);display:flex;flex:0 0 auto;flex-direction:column;font-size:5rem;justify-content:center;margin:20px 0;min-height:calc(var(--image-width) / 3 * 2);position:relative;width:var(--image-width)}.resource-group-image:active,.resource-group-image:focus,.resource-group-image:hover{color:var(--contrast-8)}.resource-group-image>img{display:block;width:100%}.image-type-logo{display:flex;flex-direction:column;justify-content:center;min-height:120px}.image-type-logo>*{margin:10px;width:calc(100% - 20px)}.resource-group-text *:first-child{margin-top:0}.resource-group-detail{margin-bottom:70px;width:var(--width)}.resource-group-feature-image{margin-top:60px;width:100%}.resource-group-description:after{clear:both;content:"";display:block}@media(min-width:768px){.resource-group{flex-direction:row;margin-bottom:40px}.resource-group-image{--image-width: calc((var(--width) - 140px) / 4 + 20px);margin:0 20px 0 0}}@media(min-width:900px){.resource-group-feature-image{float:right;margin:0 0 0 20px;width:calc(((var(--width) - 140px) / 8) * 3 + 40px)}}#resource-navigation{display:flex;flex-direction:column;gap:10px}@media(min-width:1024px){#resource-navigation{flex-direction:row;gap:20px}}#resource-news{background-color:var(--teal-100);padding:20px}#resource-news h2{font-size:1.2rem;font-weight:200;margin:0 0 .5rem}#resource-news ul{list-style-type:none;margin:0;padding:0}#resource-news li{font-size:1rem;line-height:1.3;margin:0 0 .5rem;padding:0}@media(min-width:1024px){#resource-news{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}}ul.resource-pathways{display:flex;flex-direction:column;gap:10px;list-style-type:none;margin:0;padding:0;width:100%}ul.resource-pathways li{margin:0;width:100%}ul.resource-pathways li a{align-items:flex-start;border:5px solid transparent;box-sizing:border-box;display:flex;height:100%;flex-direction:row;justify-content:flex-start;line-height:1.3;padding:20px;text-decoration:none}ul.resource-pathways a>.bi{font-size:2rem;margin-bottom:1rem}ul.resource-pathways li a>.detail{display:flex;flex-direction:column;margin-left:20px}ul.resource-pathways .title{font-size:1.2rem}ul.resource-pathways .description{font-size:1rem;font-weight:400}ul.resource-pathways .login{font-size:.9rem;font-style:italic;font-weight:400;margin-top:.25rem}ul.resource-pathways .login .bi{vertical-align:middle}.resource-pathway-0{background-color:var(--yellow-400)}.resource-pathway-1{background-color:var(--teal-600)}.resource-pathway-1 a{color:#fff}.resource-pathway-2{background-color:var(--orange-400)}.resource-pathway-3{background-color:var(--teal-200)}ul.resource-pathways li a:active,ul.resource-pathways li a:focus,ul.resource-pathways li a:hover{background-color:#fff;border:5px solid var(--contrast);color:var(--contrast)}@media(min-width:1024px){ul.resource-pathways{flex-direction:row;gap:20px}ul.resource-pathways li{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}ul.resource-pathways li a{flex-direction:column}ul.resource-pathways li a>.detail{margin-left:0}}.scroll-text{position:relative}.scroll-text:after{background-color:red;background:linear-gradient(to bottom,#fff0,#fff 50% 100%);bottom:0;content:"";display:block;height:2rem;left:0;position:absolute;width:100%;z-index:99999}.scroll-text-inner{padding-bottom:2rem;overflow-y:scroll}.search{position:relative}.search input{padding-right:35px}.search .btn-clear{position:absolute;right:-5px;top:-6px}.section-navigation{border-bottom:1px solid var(--contrast-8);border-top:1px solid var(--contrast-8);display:flex;flex-direction:row;margin:20px 0}.section-navigation h2{flex:0 0 auto;font-size:1rem;font-weight:400;margin:20px 0}.section-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;padding:10px 0}.section-navigation li{line-height:1;list-style-type:none;flex:0 0 auto;font-size:1rem;margin:10px 0 10px 20px;padding:0}ul.tags{margin:0;padding:0}li.tag{display:inline-block;list-style-type:none;margin:0 5px 5px 0;max-width:100%}.tag button{background-color:var(--teal-100);border:1px solid var(--teal-400);border-radius:8px;color:var(--contrast);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;line-height:18px;max-width:100%;overflow:hidden;padding:3px 7px;text-align:left;text-decoration:none;text-overflow:ellipsis;text-wrap:nowrap}.tag button:hover{background-color:var(--teal-200);color:var(--contrast)}.tag button:disabled{background-color:var(--contrast-9);border-color:var(--contrast-6);color:var(--contrast-3)}.tag.active button{border-color:var(--orange-400);background-color:var(--orange-200)}',bm=".toc{background-color:var(--teal-600);color:#fff;padding:20px;position:sticky;top:50px}h2{font-size:16px;font-weight:800;margin:0 0 16px}ul{margin:0;padding:0 0 0 20px}li{line-height:1.125;list-style-type:none;margin:0;padding:9px 0}a{color:#fff;font-size:16px;font-weight:600;text-decoration:underline;text-decoration-color:transparent}a :active,a:focus,a:hover{color:var(--teal-100);text-decoration-color:var(--teal-100)}@media(min-width:768px){a.active{color:var(--teal-100)}}@media(min-width:900px){.toc{padding:32px}}",gc='.rcb-chat-header-container{padding:12px;color:#fff;border-bottom:1px solid #ccc;display:flex;justify-content:space-between;max-height:55px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;width:30px;height:30px;border-radius:50%;margin-right:12px}.rcb-message-prompt-container.visible{position:sticky;bottom:0;margin:auto;display:flex;align-items:center;justify-content:center;opacity:1;animation:rcb-animation-pop-in .3s ease-in-out;pointer-events:auto}.rcb-message-prompt-container.hidden{opacity:0;height:0px;visibility:hidden;pointer-events:none}.rcb-message-prompt-text{padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border:.5px solid #adadad;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:right;margin-right:16px}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-user-avatar{margin-left:-10px;margin-right:6px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:left;margin-left:16px}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-bot-avatar{margin-left:6px;margin-right:-10px}.rcb-typing-indicator{display:flex;align-items:center}.rcb-dot{width:8px;height:8px;border-radius:50%;background-color:#ccc;margin-right:4px;animation:rcb-animation-bot-typing 1s infinite}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{position:relative;height:100%;width:100%;padding-bottom:16px;overflow-x:hidden;overflow-y:scroll;touch-action:pan-y}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;padding-top:12px;margin-left:16px;flex-wrap:wrap;gap:10px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{display:flex;align-items:center;gap:5px;border-width:.5px;border-style:solid;border-radius:10px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out;overflow:hidden}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{display:inline-flex;margin-left:10px;align-items:center;cursor:pointer}.rcb-checkbox-mark{width:20px;height:20px;background-color:#f2f2f2;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;transition:all .3s ease;margin-right:10px;cursor:pointer}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{text-align:center;display:inline-block;align-items:center;border-width:.5px;border-style:solid;border-radius:10px;font-size:24px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{padding-top:12px;margin-left:16px;max-width:70%;display:flex;flex-wrap:wrap;gap:10px}.rcb-options-offset{margin-left:50px!important}.rcb-options{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:20px;font-size:14px;border-width:.5px;border-style:solid;cursor:pointer;transition:background-color .3s ease;animation:rcb-animation-options-entry .5s ease-out;overflow:hidden}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;max-height:45px}.rcb-line-break-text{padding:6px 12px;color:#adadad;font-size:12px}.rcb-spinner-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-spinner{width:22px;height:22px;border-radius:50%;border:4px solid #f3f3f3;animation:rcb-animation-spin 1s linear infinite}.rcb-chat-input{padding:8px 16px;border-top:1px solid #ccc;display:flex;align-items:center;background-color:#fff}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{flex:1;padding:8px;border:none;border-radius:4px;outline:none;font-size:16px;resize:none;height:auto;min-height:38px;overflow-y:scroll;font-family:inherit;background-color:#fff;color:#000;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:transparent}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{padding:12px 16px 8px 10px;border-top:1px solid #ccc;max-height:55px;display:flex;justify-content:space-between;align-items:flex-end;font-size:12px;background-color:#f2f2f2;color:#000}.rcb-chat-footer{display:flex;flex-direction:row}.rcb-toggle-button{display:flex;flex-direction:row;position:fixed;bottom:20px;right:20px;z-index:9999;width:75px;height:75px;border-radius:50%;border:none;cursor:pointer;box-shadow:0 2px 4px #0003}.rcb-toggle-button.rcb-button-hide{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}.rcb-toggle-button.rcb-button-show{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-toggle-icon{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat;margin:auto;border-radius:inherit}.rcb-badge{position:absolute;top:-6px;right:-6px;border-radius:50%;background-color:red;color:#fff;height:25px;width:25px;display:flex;justify-content:center;align-items:center}.rcb-chat-tooltip{position:fixed;padding:16px;border-radius:20px;box-shadow:0 2px 6px #0003;white-space:nowrap;cursor:pointer;font-size:20px;transition:transform .3s ease;z-index:9999}.rcb-chat-tooltip-tail{content:"";position:absolute;top:50%;right:-10px;margin-top:-10px;border-width:10px 0 10px 10px;border-style:solid}.rcb-chat-tooltip.rcb-tooltip-hide{opacity:0;visibility:hidden;animation:rcb-animation-tooltip-out .5s ease-in-out}.rcb-chat-tooltip.rcb-tooltip-show{opacity:1;visibility:visible;animation:rcb-animation-tooltip-in .5s ease-in-out}.rcb-toast-prompt{padding:6px 12px;border-radius:5px;color:#7a7a7a;font-size:12px;text-align:center;background-color:#fff;border:.5px solid #7a7a7a;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999;width:100%;margin-top:6px;animation:rcb-animation-pop-in .3s ease-in-out}.rcb-toast-prompt-container{position:absolute;left:50%;transform:translate(-50%);bottom:0;margin:auto;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;opacity:1;animation:popIn .3s ease-in-out;pointer-events:auto;margin-top:200}.rcb-media-display-image-container,.rcb-media-display-video-container{margin-top:8px;margin-right:16px;border-radius:22px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{width:100%;height:auto;border-radius:22px;object-fit:cover}.rcb-media-display-video{width:100%;height:auto;border-radius:22px;background-color:#000}.rcb-media-display-audio{margin-top:8px;margin-right:16px;width:100%;height:auto;border-radius:22px}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-enabled,.rcb-attach-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center}.rcb-attach-button-enabled input[type=file],.rcb-attach-button-disabled input[type=file]{position:absolute;width:100%;height:100%;display:none}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-attach-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-attach-icon-enabled,.rcb-attach-icon-disabled{display:inline-block;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat;background-size:cover;transition:background-image .3s ease}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-enabled,.rcb-emoji-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center;cursor:pointer}.rcb-emoji-icon-enabled,.rcb-emoji-icon-disabled{position:relative;display:inline-block;background-size:cover;font-size:20px;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-emoji-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-emoji-button-popup{position:absolute;width:158px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:8px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;transform:translateY(calc(-100% - 30px))}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-audio-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-audio-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-close-chat-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;margin-left:5px;cursor:pointer}.rcb-close-chat-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-close-chat-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-notification-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-notification-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-notification-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-voice-button-enabled,.rcb-voice-button-disabled{display:inline-flex;align-items:center;justify-content:center;text-transform:uppercase;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;height:32px;width:32px;margin-left:8px;transition:all .3s ease;background-color:#fff}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid rgb(61,0,0)}.rcb-voice-button-disabled{border:1px;border-style:solid;border-color:#0003}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{width:60%;height:60%;background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{display:inline-flex;justify-content:center;text-transform:uppercase;border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;transition:background-color .3s ease;height:32px;width:51px;margin-left:8px}.rcb-send-icon{width:50%;height:50%;transform:translateY(20%);background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-view-history-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-view-history-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border-color:#adadad;border-width:.5px;border-style:solid;max-width:60%;cursor:pointer;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{position:fixed;right:20px;bottom:20px;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#fff;transition:all .3s ease;overflow:hidden;display:flex;flex-direction:column;width:375px;height:550px}.rcb-window-embedded .rcb-chat-window{position:relative;opacity:1;visibility:visible;right:auto;bottom:auto}.rcb-window-open .rcb-chat-window{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-window-close .rcb-chat-window{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}@keyframes rcb-animation-expand{0%{transform:translate(100%,100%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-collapse{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(100%,100%) scale(0);opacity:0}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{transform:translate(-100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-user-message-entry{0%{transform:translate(100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.1);opacity:1}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes rcb-animation-options-entry{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'+".rcb-chat-notification-badge,.rcb-notification-badge{display:none!important}.rcb-chat-window .rcb-bot-avatar{background-size:contain;border-radius:0;background-position:center;background-repeat:no-repeat}.rcb-toggle-icon{background-size:62%!important;background-position:calc(50% - 1px) calc(50% + 2px);background-repeat:no-repeat;background-color:transparent!important}.rcb-chat-button-icon{background-size:contain;background-position:center;background-repeat:no-repeat}.rcb-chat-window{width:550px!important;height:800px!important;max-height:80vh!important;max-width:100%}.rcb-chat-window .rcb-chat-header{display:flex;flex-direction:row;align-items:center;font-weight:700}.rcb-chat-footer-container{align-items:center!important;font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}@media(max-width:768px){.rcb-chat-window{width:550px!important;max-width:calc(100vw - 40px)!important;max-height:calc(100vh - 100px)!important}}@media(max-width:480px){.rcb-chat-window{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 80px)!important;left:10px!important;right:10px!important;bottom:10px!important}.rcb-chat-footer-container{font-size:9px!important}}.rcb-options-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:16px;padding:0}.rcb-options{border:1px solid #d0d0d0;background-color:#fff;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .2s ease;text-align:center;font-size:14px;font-weight:400;color:#107180;width:auto;flex:0 0 auto;box-sizing:border-box}.rcb-options:hover{background-color:#e8f4f8;border-color:#107180;transform:translateY(-1px);box-shadow:0 2px 4px #10718033}.rcb-options:active{background-color:#107180;border-color:#107180;color:#fff;transform:translateY(0)}.rcb-chat-header-container{font-size:14px}.rcb-options{border:1px solid #d0d0d0!important}.rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}"+".rcb-chat-header-container span{font-size:16px!important;font-weight:600!important}",vm=({children:t})=>{const e=x.useRef(null),[n,r]=x.useState(null);return x.useEffect(()=>{if(e.current&&!n&&!e.current.shadowRoot){const o=e.current.attachShadow({mode:"open"}),i=document.createElement("div");o.appendChild(i),r(i)}},[n]),m.jsx("div",{ref:e,children:n?lp.createPortal(t,n):null})},tn=(t,e)=>n=>m.jsxs(vm,{children:[m.jsx(t,{...n}),e.map(r=>m.jsx("style",{children:r},r))]}),mc=tn(qi,[en,hm]),bc=tn(Sp,[en,pm,pc]),vc=tn(Dp,[en,ds]),yc=tn(Pp,[en,pc,gm]),wc=tn(Tl,[en,gc]),xc=tn(dm,[en,fm,mm,gc]),kc=tn(Tp,[en,ds]),Ec=tn(Am,[en,bm]),Cc=tn(Bp,[en,ds]),nn=t=>(e={})=>cp.createRoot(e.target).render(m.jsx(x.StrictMode,{children:m.jsx(t,{...e})})),ym=nn(mc),wm=nn(bc),xm=nn(vc),km=nn(yc),Em=nn(wc),Cm=nn(xc),Sm=nn(kc),Pm=nn(Ec),Dm=nn(Cc);function Sc(t,e){e===void 0&&(e={});var n=e.insertAt;if(t&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Sc('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const Se={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Pc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Dc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 0 637 637",ref:e,...t},F.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),F.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Bc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),Bm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),Tm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),Im=x.forwardRef((t,e)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:e,...t},F.createElement("g",{strokeLinecap:"round",strokeWidth:10},F.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),Mm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),_m=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),Om=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Tc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),Lm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),Fm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Ic={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Dc},header:{title:m.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/","_blank","noopener,noreferrer"),children:"Tan Jin"}),showAvatar:!0,avatar:Pc,buttons:[Se.NOTIFICATION_BUTTON,Se.AUDIO_BUTTON,Se.CLOSE_CHAT_BUTTON],closeChatIcon:Im},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Bm,iconDisabled:Tm,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAA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AMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:Lm,iconDisabled:Fm},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:Mm,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[Se.VOICE_MESSAGE_BUTTON,Se.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Pc,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:_m,iconDisabled:Om},footer:{text:m.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com","_blank","noopener,noreferrer"),children:[m.jsx("span",{children:"Powered By "},0),m.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:m.jsx(Dc,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),m.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[Se.FILE_ATTACHMENT_BUTTON,Se.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Bc,iconDisabled:Bc,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Tc,iconDisabled:Tc,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbSaveChatHistory:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Mc=x.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),se=()=>x.useContext(Mc),Qm=({children:t,settings:e=Ic,setSyncedSettings:n,syncedSettingsRef:r})=>m.jsx(Mc.Provider,{value:{settings:e,setSyncedSettings:n,syncedSettingsRef:r},children:t}),_c={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Oc=x.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),ye=()=>x.useContext(Oc),Nm=({children:t,styles:e=_c,setSyncedStyles:n,syncedStylesRef:r})=>m.jsx(Oc.Provider,{value:{styles:e,setSyncedStyles:n,syncedStylesRef:r},children:t}),zm=({buttons:t})=>{var e,n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u={backgroundImage:`linear-gradient(to right, ${(e=l.general)==null?void 0:e.secondaryColor},
|
|
4
|
-
${(n=l.general)==null?void 0:n.primaryColor})`,...c.headerStyle};return m.jsxs("div",{style:u,className:"rcb-chat-header-container",children:[m.jsxs("div",{className:"rcb-chat-header",children:[((r=l.header)==null?void 0:r.showAvatar)&&m.jsx("div",{style:{backgroundImage:`url("${(o=l.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),x.isValidElement((i=l.header)==null?void 0:i.title)?(s=l.header)==null?void 0:s.title:m.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(a=l.header)==null?void 0:a.title})]}),m.jsx("div",{className:"rcb-chat-header",children:t?.map((d,A)=>m.jsx(x.Fragment,{children:d},A))})]})},Lc=x.createContext({}),_e=()=>x.useContext(Lc),Rm=({children:t,botIdRef:e,flowRef:n})=>{const r=x.useRef(null),o=x.useRef(""),i=x.useRef(null),s=x.useRef(new Map),a=x.useRef(null),l=x.useRef(""),c=x.useRef(!1),u=x.useRef(null),d=x.useRef(null),A=x.useRef(null);return m.jsx(Lc.Provider,{value:{botIdRef:e,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:s,chatBodyRef:a,paramsInputRef:l,keepVoiceOnRef:c,audioContextRef:u,audioBufferRef:d,gainNodeRef:A,prevInputRef:o},children:t})},it=t=>{const[e,n]=x.useState(t),r=x.useRef(t);return[e,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Fc=x.createContext({}),Le=()=>x.useContext(Fc),Um=({children:t,settings:e})=>{var n,r,o,i,s,a;const[l,c,u]=it(!1),[d,A,h]=it(((n=e?.chatWindow)==null?void 0:n.defaultOpen)??!1),[f,g,p]=it(((r=e?.audio)==null?void 0:r.defaultToggledOn)??!1),[y,w,v]=it(((o=e?.voice)==null?void 0:o.defaultToggledOn)??!1),[b,E,k]=it(((i=e?.notification)==null?void 0:i.defaultToggledOn)??!0),[P,D]=x.useState(!1),[I,T]=x.useState(!1),[M,B,_]=it(!1),[N,O,R]=it(!0),[Q,U,C]=it(!1),[G,S]=x.useState(!1),[X,V]=x.useState(!1),[j,W]=x.useState(0),[K,$]=x.useState(0),[le,oe]=x.useState(!1),[pe,De]=x.useState(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[Xe,Ie]=x.useState(((a=window.visualViewport)==null?void 0:a.width)??window.innerWidth);return m.jsx(Fc.Provider,{value:{isBotTyping:l,setSyncedIsBotTyping:c,syncedIsBotTypingRef:u,isChatWindowOpen:d,setSyncedIsChatWindowOpen:A,syncedIsChatWindowOpenRef:h,audioToggledOn:f,setSyncedAudioToggledOn:g,syncedAudioToggledOnRef:p,voiceToggledOn:y,setSyncedVoiceToggledOn:w,syncedVoiceToggledOnRef:v,notificationsToggledOn:b,setSyncedNotificationsToggledOn:E,syncedNotificationsToggledOnRef:k,isLoadingChatHistory:P,setIsLoadingChatHistory:D,hasChatHistoryLoaded:I,setHasChatHistoryLoaded:T,isScrolling:M,setSyncedIsScrolling:B,syncedIsScrollingRef:_,textAreaDisabled:N,setSyncedTextAreaDisabled:O,syncedTextAreaDisabledRef:R,textAreaSensitiveMode:Q,setSyncedTextAreaSensitiveMode:U,syncedTextAreaSensitiveModeRef:C,hasInteractedPage:G,setHasInteractedPage:S,hasFlowStarted:X,setHasFlowStarted:V,unreadCount:j,setUnreadCount:W,inputLength:K,setInputLength:$,blockAllowsAttachment:le,setBlockAllowsAttachment:oe,viewportHeight:pe,setViewportHeight:De,viewportWidth:Xe,setViewportWidth:Ie},children:t})};var q=(t=>(t.START_SPEAK_AUDIO="rcb-start-speak-audio",t.TOGGLE_AUDIO="rcb-toggle-audio",t.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",t.TOGGLE_VOICE="rcb-toggle-voice",t.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",t.PRE_INJECT_MESSAGE="rcb-pre-inject-message",t.POST_INJECT_MESSAGE="rcb-post-inject-message",t.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",t.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",t.START_STREAM_MESSAGE="rcb-start-stream-message",t.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",t.STOP_STREAM_MESSAGE="rcb-stop-stream-message",t.REMOVE_MESSAGE="rcb-remove-message",t.SAVE_CHAT_HISTORY="rcb-save-chat-history",t.LOAD_CHAT_HISTORY="rcb-load-chat-history",t.CHANGE_PATH="rcb-change-path",t.SHOW_TOAST="rcb-show-toast",t.DISMISS_TOAST="rcb-dismiss-toast",t.USER_SUBMIT_TEXT="rcb-user-submit-text",t.USER_UPLOAD_FILE="rcb-user-upload-file",t.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",t.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",t.POST_LOAD_CHATBOT="rcb-post-load-chatbot",t.PRE_PROCESS_BLOCK="rcb-pre-process-block",t.POST_PROCESS_BLOCK="rcb-post-process-block",t))(q||{});const jm={[q.START_SPEAK_AUDIO]:!0,[q.TOGGLE_AUDIO]:!0,[q.TOGGLE_VOICE]:!0,[q.TOGGLE_NOTIFICATIONS]:!0,[q.TOGGLE_CHAT_WINDOW]:!0,[q.PRE_INJECT_MESSAGE]:!0,[q.POST_INJECT_MESSAGE]:!1,[q.PRE_LOAD_CHATBOT]:!0,[q.POST_LOAD_CHATBOT]:!1,[q.START_SIMULATE_STREAM_MESSAGE]:!0,[q.STOP_SIMULATE_STREAM_MESSAGE]:!1,[q.START_STREAM_MESSAGE]:!0,[q.CHUNK_STREAM_MESSAGE]:!0,[q.STOP_STREAM_MESSAGE]:!0,[q.REMOVE_MESSAGE]:!0,[q.SAVE_CHAT_HISTORY]:!0,[q.LOAD_CHAT_HISTORY]:!0,[q.CHANGE_PATH]:!0,[q.SHOW_TOAST]:!0,[q.DISMISS_TOAST]:!0,[q.USER_SUBMIT_TEXT]:!0,[q.USER_UPLOAD_FILE]:!0,[q.TEXT_AREA_CHANGE_VALUE]:!0,[q.PRE_PROCESS_BLOCK]:!0,[q.POST_PROCESS_BLOCK]:!0},As=async(t,e,n)=>{const r=new CustomEvent(t,{detail:e,cancelable:jm[t]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Qc=x.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ir=()=>x.useContext(Qc),Vm=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Qc.Provider,{value:{paths:e,setSyncedPaths:n,syncedPathsRef:r},children:t})},Pt=()=>{const{botIdRef:t}=_e(),{syncedPathsRef:e}=Ir(),n=x.useCallback(()=>e.current.length>0?e.current.at(-1)??null:null,[]),r=x.useCallback(()=>e.current.length>1?e.current.at(-2)??null:null,[]);return{dispatchRcbEvent:x.useCallback(async(o,i)=>{const s={botId:t.current,currPath:n(),prevPath:r()};return await As(o,s,i)},[t])}},st=()=>{const{settings:t}=se(),{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:a,setSyncedIsBotTyping:l,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:d}=Le(),{chatBodyRef:A}=_e(),{dispatchRcbEvent:h}=Pt(),f=x.useCallback(()=>{if(!A.current)return!1;const v=A.current.getBoundingClientRect(),b=window.innerHeight??document.documentElement.clientHeight,E=window.innerWidth??document.documentElement.clientWidth;return v.top>=0&&v.left>=0&&v.bottom<=b&&v.right<=E},[A]),g=x.useCallback(async v=>{var b;v!==d.current&&((b=t.event)!=null&&b.rcbToggleChatWindow&&(await h(q.TOGGLE_CHAT_WINDOW,{currState:d.current,newState:!d.current})).defaultPrevented||n(E=>(E||a(0),!E)))},[d]),p=x.useCallback(async v=>{v!==u.current&&l(b=>!b)},[u]),y=x.useCallback((v,b,E,k)=>(v/=k/2)<1?E/2*v*v+b:-E/2*(--v*(v-2)-1)+b,[]),w=x.useCallback((v=0)=>{if(!A.current)return;const b=A.current.scrollHeight-A.current.clientHeight;if(v<=0)return A.current.scrollTop=b,void c(!1);const E=A.current.scrollTop,k=b-E;let P=0;const D=()=>{if(!A.current)return;P+=20;const I=y(P,E,k,v);A.current.scrollTop=I,P<v?requestAnimationFrame(D):c(!1)};D()},[A]);return{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,toggleChatWindow:g,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:p,scrollToBottom:w,getIsChatBotVisible:f}},Hm=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{unreadCount:i,isScrolling:s}=Le(),{chatBodyRef:a}=_e(),{scrollToBottom:l}=st(),[c,u]=x.useState(!1),d={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatMessagePromptHoveredStyle};return m.jsx("div",{className:"rcb-message-prompt-container "+(a.current&&(A=r.chatWindow)!=null&&A.showMessagePrompt&&s&&i>0?"visible":"hidden"),children:m.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?d:{...o.chatMessagePromptStyle},onMouseDown:h=>{h.preventDefault(),l(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var A},Nc=x.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),hs=()=>x.useContext(Nc),Wm=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Nc.Provider,{value:{messages:e,setSyncedMessages:n,syncedMessagesRef:r},children:t})},Ym=({message:t,isNewSender:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u=typeof t.content=="string",d=t.content,A=t.contentWrapper?m.jsx(t.contentWrapper,{children:d}):d,h={backgroundColor:(n=l.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=l.userBubble)!=null&&r.showAvatar?"65%":"70%",...c.userBubbleStyle},f=(o=l.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",g=((i=l.userBubble)==null?void 0:i.showAvatar)&&e,p="rcb-user-message"+(!e&&(s=l.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return m.jsxs("div",{className:"rcb-user-message-container",children:[u?m.jsx("div",{style:h,className:`${p} ${f}`,children:A}):m.jsx(m.Fragment,{children:A}),g&&m.jsx("div",{style:{backgroundImage:`url("${(a=l.userBubble)==null?void 0:a.avatar}")`},className:"rcb-message-user-avatar"})]})},qm=({message:t,isNewSender:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u=typeof t.content=="string",d=t.content,A=t.contentWrapper?m.jsx(t.contentWrapper,{children:d}):d,h={backgroundColor:(n=l.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=l.botBubble)!=null&&r.showAvatar?"65%":"70%",...c.botBubbleStyle},f=(o=l.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",g=((i=l.botBubble)==null?void 0:i.showAvatar)&&e,p="rcb-bot-message"+(!e&&(s=l.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return m.jsxs("div",{className:"rcb-bot-message-container",children:[g&&m.jsx("div",{style:{backgroundImage:`url("${(a=l.botBubble)==null?void 0:a.avatar}")`},className:"rcb-message-bot-avatar"}),u?m.jsx("div",{style:h,className:`${p} ${f}`,children:A}):m.jsx(m.Fragment,{children:A})]})},Gm=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),i=(t=r.botBubble)!=null&&t.animate?"rcb-bot-message-entry":"";return m.jsxs("div",{className:"rcb-bot-message-container",children:[((e=r.botBubble)==null?void 0:e.showAvatar)&&m.jsx("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),m.jsx("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:m.jsxs("div",{className:"rcb-typing-indicator",style:{...o?.rcbTypingIndicatorContainerStyle},children:[m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}})]})})]})},Km=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{messages:i}=hs(),{scrollToBottom:s}=st(),{isBotTyping:a,syncedIsScrollingRef:l}=Le(),{chatBodyRef:c}=_e(),u={...o?.bodyStyle,scrollbarWidth:(t=r.chatWindow)!=null&&t.showScrollbar?"auto":"none"};return x.useEffect(()=>{l.current||s()},[(e=c.current)==null?void 0:e.scrollHeight]),m.jsxs("div",{style:u,className:"rcb-chat-body-container",ref:c,children:[i.map((d,A)=>{const h=(f=>f===0||i[f].sender!==i[f-1].sender)(A);return d.sender.toUpperCase()==="USER"?m.jsx(Ym,{message:d,isNewSender:h},A):d.sender.toUpperCase()==="BOT"?m.jsx(qm,{message:d,isNewSender:h},A):m.jsx("div",{children:d.content},A)}),a&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&m.jsx(Gm,{}),m.jsx(Hm,{})]})},Xm=({checkboxes:t,checkedItems:e,path:n})=>{var r,o,i,s,a,l,c,u,d,A,h;const{settings:f}=se(),{styles:g}=ye(),{paths:p}=Ir(),{handleSubmitText:y}=$n(),[w,v]=x.useState(new Set),[b,E]=x.useState(!1),k={cursor:b?`url("${(r=f.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=f.general)==null?void 0:o.primaryColor,borderColor:(i=f.general)==null?void 0:i.primaryColor,...g.botCheckboxRowStyle},P={cursor:b||w.size<t.min?`url("${(s=f.general)==null?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:(a=f.general)==null?void 0:a.primaryColor,borderColor:(l=f.general)==null?void 0:l.primaryColor,...g.botCheckboxNextStyle},D={cursor:b?`url("${(c=f.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...g.botCheckMarkStyle},I={cursor:b?`url("${(u=f.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(d=f.general)==null?void 0:d.primaryColor,backgroundColor:(A=f.general)==null?void 0:A.primaryColor,...g.botCheckMarkSelectedStyle};return x.useEffect(()=>{p.length>0&&p[p.length-1]!==n&&E(!t.reusable)},[p]),m.jsxs("div",{className:"rcb-checkbox-container "+((h=f.botBubble)!=null&&h.showAvatar?"rcb-checkbox-offset":""),children:[t.items.map(T=>m.jsx("div",{onMouseDown:M=>{M.preventDefault(),(B=>{b||v(_=>{const N=new Set(_);if(N.has(B))e.delete(B),N.delete(B);else{if(w.size==t.max)return _;e.add(B),N.add(B)}return N})})(T)},style:k,className:"rcb-checkbox-row-container",children:m.jsxs("div",{className:"rcb-checkbox-row",children:[m.jsx("div",{style:w.has(T)?I:D,className:"rcb-checkbox-mark"}),m.jsx("div",{className:"rcb-checkbox-label",children:T})]})},T)),m.jsx("div",{style:P,className:"rcb-checkbox-next-button",onMouseDown:T=>{var M;if(T.preventDefault(),b||w.size<t.min)return;const B=Array.from(e).join(", ");let _;E(!t.reusable),_=t.sendOutput!=null?t.sendOutput:((M=f.chatInput)==null?void 0:M.sendCheckboxOutput)??!0,y(B,_)}})]})},Jm=async(t,e)=>{const n=t.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=e.currPath,s=m.jsx(Xm,{checkboxes:r,checkedItems:o,path:i});await e.injectMessage(s)},Zm=async(t,e)=>{const n=t.function;if(!n)return;const r=n(e);return r instanceof Promise?await r:r},$m=async(t,e,n)=>{const r=t.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await e.simulateStreamMessage(r):await e.injectMessage(r)));let o=r(e);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await e.simulateStreamMessage(o):await e.injectMessage(o))},e0=({options:t,path:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),{paths:u}=Ir(),{handleSubmitText:d}=$n(),[A,h]=x.useState([]),[f,g]=x.useState(!1),p={cursor:f?`url("${(n=l.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=l.general)==null?void 0:r.primaryColor,borderColor:(o=l.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...c.botOptionStyle},y={color:"#fff",borderColor:(i=l.general)==null?void 0:i.primaryColor,backgroundColor:(s=l.general)==null?void 0:s.primaryColor,...c.botOptionHoveredStyle};return x.useEffect(()=>{u.length>0&&u[u.length-1]!==e&&g(!t.reusable)},[u]),m.jsx("div",{className:"rcb-options-container "+((a=l.botBubble)!=null&&a.showAvatar?"rcb-options-offset":""),children:t.items.map((w,v)=>{const b=A[v]&&!f;return m.jsx("div",{className:"rcb-options",style:b?y:p,onMouseEnter:()=>(E=>{h(k=>{const P=[...k];return P[E]=!0,P})})(v),onMouseLeave:()=>(E=>{h(k=>{const P=[...k];return P[E]=!1,P})})(v),onMouseDown:E=>{var k;if(E.preventDefault(),f)return;let P;g(!t.reusable),P=t.sendOutput!=null?t.sendOutput:((k=l.chatInput)==null?void 0:k.sendOptionOutput)??!0,d(w,P)},children:w},w)})})},t0=async(t,e)=>{const n=t.options;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=e.currPath,i=m.jsx(e0,{options:r,path:o});await e.injectMessage(i)},n0=async(t,e)=>{const n=t.component;if(n){if(typeof n=="function"){let r=n(e);return r instanceof Promise&&(r=await r),r?void await e.injectMessage(r):void 0}await e.injectMessage(n)}},r0=async(t,e,n,r)=>{const o=t.transition;let i;if(typeof o=="function"?(i=o(e),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const s=setTimeout(async()=>{const a=await r(t);a&&await Rc(a,e)},i.duration);i.interruptable&&(n.current=s)},o0=async(t,e,n)=>{const r=t.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},zc=async(t,e,n)=>{const r=t.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},Rc=async(t,e)=>{if(!t)throw new Error("Block is not valid.");const n=Object.keys(t);for(const r of n)r==="function"&&await Zm(t,e);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let s=i(o);if(s instanceof Promise&&(s=await s),!s)return!1;const a=s;return await o.goToPath(a),!0})(t,e)},i0=()=>{var t;const{settings:e}=se(),{styles:n}=ye();return m.jsx("div",{className:"rcb-line-break-container",children:m.jsx("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(t=e.chatHistory)==null?void 0:t.chatHistoryLineBreakText})})},s0=()=>{var t;const{settings:e}=se(),{styles:n}=ye(),r={borderTop:`4px solid ${(t=e.general)==null?void 0:t.primaryColor}`,...n.loadingSpinnerStyle};return m.jsx("div",{className:"rcb-spinner-container",children:m.jsx("div",{style:r,className:"rcb-spinner"})})},Do=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(t){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(e==="x"?n:3&n|8).toString(16)});throw console.error(t),new Error("crypto.getRandomValues is also not available")}},gn=(t,e)=>({id:Do(),content:t,sender:e,type:typeof t=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let mn,Uc=!1,Bo="rcb-history",To=30,jc=!1,Io=[];const Mr=()=>Io,fs=t=>{Vc(t),Io=t},Vc=t=>{mn&&mn.setItem(Bo,JSON.stringify(t))},ps=t=>{var e,n,r,o,i;mn=((n=(e=t.chatHistory)==null?void 0:e.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Bo=(r=t.chatHistory)==null?void 0:r.storageKey,To=(o=t.chatHistory)==null?void 0:o.maxEntries,jc=(i=t.chatHistory)==null?void 0:i.disabled,Io=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(mn.getItem(Bo))},a0=t=>x.isValidElement(t.content)?structuredClone({id:t.id,content:up.renderToString(t.content),type:t.type,sender:t.sender.toUpperCase(),timestamp:t.timestamp,tags:t.tags}):t,Hc=(t,e,n)=>{const r=new DOMParser().parseFromString(t,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var s;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const a=o.tagName.toLowerCase();let l=Array.from(o.attributes).reduce((c,u)=>{const d=u.name.toLowerCase();if(d==="style"){const A=u.value.split(";").filter(f=>f.trim()!==""),h={};A.forEach(f=>{const[g,p]=f.split(":").map(w=>w.trim()),y=g.replace(/-([a-z])/g,(w,v)=>v.toUpperCase());h[y]=p}),c[d]=h}else a!=="audio"&&a!=="video"||d!=="controls"||u.value!==""?c[d]=u.value:c[d]="true";return c},{});if(Object.prototype.hasOwnProperty.call(l,"class")){const c=o.classList;l.className=c.toString(),delete l.class,(s=e.botBubble)!=null&&s.showAvatar&&(l=l0(c,l)),l=c0(c,l,e,n),l=u0(c,l,e,n),l=d0(c,l,e,n),l=A0(c,l,e,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(a))return x.createElement(a,{key:i,...l});{const c=Hc(o.innerHTML,e,n);return x.createElement(a,{key:i,...l},...c)}}})},l0=(t,e)=>((t.contains("rcb-options-container")||t.contains("rcb-checkbox-container"))&&(e.className=`${t.toString()} rcb-options-offset`),e),c0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-options")&&(e.style={...e.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botOptionStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botOptionStyle}),e},u0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-checkbox-row-container")&&(e.style={...e.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxRowStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),e},d0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-checkbox-next-button")&&(e.style={...e.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxNextStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),e},A0=(t,e,n,r)=>{var o,i;return(t.contains("rcb-media-display-image-container")||t.contains("rcb-media-display-video-container"))&&(e.style={...e.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),e},gs=()=>{const{settings:t}=se(),{notificationsToggledOn:e,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Le(),{audioBufferRef:a,audioContextRef:l,gainNodeRef:c}=_e(),{dispatchRcbEvent:u}=Pt(),d=x.useCallback(async()=>{var h,f;const g=(h=t.notification)==null?void 0:h.sound;l.current=new AudioContext;const p=l.current.createGain();let y;if(p.gain.value=((f=t.notification)==null?void 0:f.volume)??.2,c.current=p,g!=null&&g.startsWith("data:audio")){const w=atob(g.split(",")[1]),v=new ArrayBuffer(w.length),b=new Uint8Array(v);for(let E=0;E<w.length;E++)b[E]=w.charCodeAt(E);y=v}else y=await(await fetch(g)).arrayBuffer();a.current=await l.current.decodeAudioData(y)},[t.notification]),A=x.useCallback(()=>{var h;if((h=t.notification)!=null&&h.disabled||!s.current||!r||!l.current||!a.current)return;const f=l.current.createBufferSource();f.buffer=a.current,f.connect(c.current).connect(l.current.destination),f.start()},[t.notification,s,r,l,a,c]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:e,toggleNotifications:x.useCallback(async h=>{var f;h!==s.current&&((f=t.event)!=null&&f.rcbToggleNotifications&&(await u(q.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(g=>!g))},[s]),playNotificationSound:A,setUpNotifications:d}},h0=(t,e)=>{var n,r,o,i;((s,a,l,c,u)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const d=new window.SpeechSynthesisUtterance;d.text=s,d.lang=a,d.rate=c,d.volume=u;let A=!1;for(const h of l){const f=window.speechSynthesis.getVoices().find(g=>g.name===h);if(f){d.voice=f,window.speechSynthesis.speak(d),A=!0;break}}A||window.speechSynthesis.speak(d)})(e,(n=t.audio)==null?void 0:n.language,(r=t.audio)==null?void 0:r.voiceNames,(o=t.audio)==null?void 0:o.rate,(i=t.audio)==null?void 0:i.volume)},Wc=()=>{const{settings:t}=se(),{audioToggledOn:e,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Le(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async a=>{var l;a!==r.current&&((l=t.event)!=null&&l.rcbToggleAudio&&(await o(q.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),s=x.useCallback(async a=>{var l,c;if((l=t.audio)!=null&&l.disabled||!r.current)return;let u=a;if((c=t.event)!=null&&c.rcbStartSpeakAudio){const d=await o(q.START_SPEAK_AUDIO,{textToRead:u});if(d.defaultPrevented)return;u=d.data.textToRead}h0(t,u)},[t,r]);return{audioToggledOn:e,speakAudio:s,toggleAudio:i}},Mn=()=>{var t,e,n;const{settings:r}=se(),{messages:o,setSyncedMessages:i,syncedMessagesRef:s}=hs(),{setSyncedIsBotTyping:a,setUnreadCount:l,syncedIsScrollingRef:c,syncedIsChatWindowOpenRef:u}=Le(),{streamMessageMap:d,chatBodyRef:A,paramsInputRef:h}=_e(),{scrollToBottom:f,getIsChatBotVisible:g}=st(),{dispatchRcbEvent:p}=Pt(),{speakAudio:y}=Wc(),{playNotificationSound:w}=gs(),v=x.useCallback(async B=>{var _,N;if((_=r.event)!=null&&_.rcbSaveChatHistory){const O=await p(q.SAVE_CHAT_HISTORY,{messages:B});if(O.defaultPrevented)return;B=((N=O.data)==null?void 0:N.messages)??B}await(async O=>{if(jc||!mn)return;const R=[];for(let U=O.length-1;U>=0;U--){const C=O[U];if(C.sender.toUpperCase()!=="SYSTEM"&&(C.content!==""&&R.unshift(C),R.length===To))break}let Q=R.map(a0);if(!Uc&&Q.length<To){const U=To-Q.length;Q=[...Io.slice(-U),...Q]}Vc(Q)})(B)},[p,(t=r.event)==null?void 0:t.rcbSaveChatHistory]),b=x.useCallback((B,_=!1)=>{var N,O;v(B);let R=!0;const Q=B[B.length-1];if(!Q)return;const U=Q.sender.toUpperCase();U==="USER"&&(R=!1),(N=r.general)!=null&&N.embedded&&g()&&(R=!1),(u.current&&!c.current||_)&&(R=!1),R&&w(),!_&&(U!=="USER"&&(O=r.chatWindow)!=null&&O.autoJumpToBottom||U==="USER"||!c.current)&&setTimeout(()=>f(),1)},[r,A,u,c,w,f,g]),E=x.useCallback(async(B,_="BOT",N=null)=>{var O,R,Q,U,C;if(typeof B!="string")throw new Error("Content must be of type string to simulate stream.");_=_.toUpperCase();let G=gn(B,_);if((O=r.event)!=null&&O.rcbStartSimulateStreamMessage){const $=await p(q.START_SIMULATE_STREAM_MESSAGE,{message:G});if($.defaultPrevented)return null;N=$.data.simulateStreamChunker||N,G=$.data.message}a(!1);let S=30;S=_==="BOT"?(R=r.botBubble)==null?void 0:R.streamSpeed:(Q=r.userBubble)==null?void 0:Q.streamSpeed;const X={...G,content:""};i($=>[...$,X]),b(s.current);let V=G.content;N&&(V=N(V));let j=0;const W=V.length;G.sender.toUpperCase()==="BOT"&&(u.current||(U=r.general)!=null&&U.embedded)&&typeof G.content=="string"&&G.content.trim()!==""&&y(G.content);const K=new Promise($=>{const le=setInterval(()=>{if(j>=W)return clearInterval(le),void $();i(oe=>{const pe=[...oe];for(let De=pe.length-1;De>=0;De--)if(pe[De].id===X.id){const Xe=V[j];Xe&&(X.content+=Xe,pe[De]=X),j++;break}return pe})},S)});return(c.current||!u.current)&&l($=>$+1),await K,v(s.current),(C=r.event)!=null&&C.rcbStopSimulateStreamMessage&&await p(q.STOP_SIMULATE_STREAM_MESSAGE,{message:G}),_==="USER"&&(h.current=B),G},[r,p,b,s,h,a,l,u,y]),k=x.useCallback(async(B,_="BOT")=>{var N,O,R;_=_.toUpperCase();let Q=gn(B,_);if((N=r.event)!=null&&N.rcbPreInjectMessage){const U=await p(q.PRE_INJECT_MESSAGE,{message:Q});if(U.defaultPrevented)return null;Q=U.data.message}return Q.sender.toUpperCase()==="BOT"&&(u.current||(O=r.general)!=null&&O.embedded)&&typeof Q.content=="string"&&Q.content.trim()!==""&&y(Q.content),(c.current||!u.current)&&l(U=>U+1),(R=r.event)!=null&&R.rcbPostInjectMessage&&await p(q.POST_INJECT_MESSAGE,{message:Q}),i(U=>[...U,Q]),b(s.current),_==="USER"&&typeof B=="string"&&(h.current=B),Q},[r,p,b,h,s,u,y,l]),P=x.useCallback(async B=>{var _;let N=s.current.find(Q=>Q.id===B),O=null,R=!1;return N||(O=Mr(),N=O.find(Q=>Q.id===B),N&&(R=!0)),!N||(_=r.event)!=null&&_.rcbRemoveMessage&&(await p(q.REMOVE_MESSAGE,{message:N})).defaultPrevented?null:R?(O&&fs(O.filter(Q=>Q.id!==B)),N):(i(Q=>Q.filter(U=>U.id!==B)),b(s.current),l(Q=>Math.max(Q-1,0)),N)},[p,(e=r.event)==null?void 0:e.rcbRemoveMessage,b,s,l,Mr,fs]),D=x.useCallback(async(B,_="BOT")=>{var N,O;if(_=_.toUpperCase(),!d.current.has(_)){const Q=gn(B,_);return(N=r.event)!=null&&N.rcbStartStreamMessage&&(await p(q.START_STREAM_MESSAGE,{message:Q})).defaultPrevented?null:(a(!1),i(U=>[...U,Q]),b(s.current),d.current.set(_,Q.id),(c.current||!u.current)&&l(U=>U+1),Q)}const R={...gn(B,_),id:d.current.get(_)};return(O=r.event)!=null&&O.rcbChunkStreamMessage&&(await p(q.CHUNK_STREAM_MESSAGE,{message:R})).defaultPrevented?null:(i(Q=>Q.map(U=>U.id===R.id?R:U)),b(s.current,!0),R)},[p,r.event,b,s,a,l,d]),I=x.useCallback(async(B="BOT")=>{var _;if(B=B.toUpperCase(),!d.current.has(B))return!0;const N=d.current.get(B);let O;for(let R=0;R<3;R++){const Q=s.current.find(U=>U.id===N);Q&&(O=Q),await new Promise(U=>setTimeout(U,20))}return((_=r.event)==null||!_.rcbStopStreamMessage||!(await p(q.STOP_STREAM_MESSAGE,{message:O})).defaultPrevented)&&(d.current.delete(B),v(s.current),B==="USER"&&typeof O?.content=="string"&&(h.current=O.content),!0)},[p,(n=r.event)==null?void 0:n.rcbStopStreamMessage,d,h]),T=x.useCallback(B=>{const _=typeof B=="function"?B(s.current):B;i(_),b(_)},[b,s]),M=x.useCallback((B,_,N=0)=>{var O;const R=s.current,Q=B?B.toUpperCase():null,U=[];let C=N;for(let G=R.length-1;G>=0;G--){const S=R[G];if(!Q||((O=S?.sender)==null?void 0:O.toUpperCase())===Q){if(C>0){C--;continue}if(U.push(S),_!==void 0&&U.length===_)break}}return U.length>0?U:null},[s]);return{simulateStreamMessage:E,injectMessage:k,removeMessage:P,streamMessage:D,endStreamMessage:I,replaceMessages:T,getMessages:M,messages:o}};let ms,Ot,Mo,bn=!1,Lt=null;const bs=()=>{if(!ms){const t=window.SpeechRecognition||window.webkitSpeechRecognition;ms=t!=null?new t:null}return ms},f0=(t,e,n,r,o,i)=>{var s,a,l;const c=bs();if(!c)return;if(!bn)try{bn=!0,c.lang=(s=t.voice)==null?void 0:s.language,c.start()}catch{}const u=(a=t.voice)==null?void 0:a.timeoutPeriod,d=(l=t.voice)==null?void 0:l.autoSendPeriod;c.onresult=A=>{var h,f;clearTimeout(Ot),Ot=null,clearTimeout(Mo);const g=A.results[A.results.length-1][0].transcript;if(i.current){const p=(h=t.chatInput)==null?void 0:h.characterLimit,y=i.current.value+g;p!=null&&p>=0&&y.length>p?r(y.slice(0,p)):r(y),o(i.current.value.length)}u&&(Ot=setTimeout(async()=>await ys(e,i),u)),(f=t.voice)!=null&&f.autoSendDisabled||(Mo=setTimeout(n,d))},c.onend=()=>{bn?(c.start(),!Ot&&u&&(Ot=setTimeout(async()=>await ys(e,i),u))):(clearTimeout(Ot),Ot=null,clearTimeout(Mo))},u&&(Ot=setTimeout(async()=>await ys(e,i),u))},p0=(t,e)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(Lt=new MediaRecorder(n),!bn)try{bn=!0,Lt.start()}catch{}Lt.ondataavailable=r=>{e.current&&e.current.push(r.data)},Lt.onstop=()=>{t(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},vs=()=>{const t=bs();t&&(bn=!1,t&&t.stop(),Lt&&Lt.state!=="inactive"&&(Lt.stop(),Lt=null),clearTimeout(Ot),Ot=null,clearTimeout(Mo))},ys=async(t,e)=>{var n;(n=e.current)!=null&&n.disabled||await t(),vs()},ws=()=>{const{settings:t}=se(),{voiceToggledOn:e,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Le(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async a=>{var l;a!==r.current&&((l=t.event)!=null&&l.rcbToggleVoice&&(await o(q.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),s=x.useCallback(a=>{((l,c)=>{var u,d,A;const h=bs();(u=c.voice)!=null&&u.disabled||(d=c.chatInput)==null||!d.blockSpam||!h||(l&&!bn?(bn=!0,(A=c.voice)!=null&&A.sendAsAudio?Lt?.start():h.start()):l||vs())})(a,t)},[t]);return{voiceToggledOn:e,toggleVoice:i,syncVoice:s}},_n=()=>{var t;const{settings:e}=se(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:a,syncedTextAreaDisabledRef:l,syncedTextAreaSensitiveModeRef:c}=Le(),{inputRef:u,chatBodyRef:d,prevInputRef:A}=_e(),{dispatchRcbEvent:h}=Pt(),{getIsChatBotVisible:f}=st(),g=x.useCallback(async k=>{var P,D,I;if(l.current&&u.current)u.current.value="";else if(u.current&&A.current!==null){const T=(P=e.chatInput)==null?void 0:P.characterLimit,M=(D=e.chatInput)!=null&&D.allowNewline?k:k.replace(/\n/g," ");if(T!=null&&T>=0&&M.length>T?u.current.value=M.slice(0,T):u.current.value=M,(I=e.event)!=null&&I.rcbTextAreaChangeValue&&(await h(q.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:A.current})).defaultPrevented)return void(u.current.value=A.current);A.current=u.current.value}},[l,u,A,e,h]),p=x.useCallback(k=>{var P;(P=u.current)!=null&&P.disabled||setTimeout(()=>{var D,I,T;(D=e.general)!=null&&D.embedded?f()&&((I=u.current)==null||I.focus()):k!=="start"&&((T=u.current)==null||T.focus())},100)},[u,(t=e.general)==null?void 0:t.embedded,d,f]),y=x.useCallback(()=>{u.current&&u.current.focus()},[]),w=x.useCallback(()=>{u.current&&u.current.blur()},[]),v=x.useCallback(()=>u&&u.current?u.current.value:"",[]),b=x.useCallback(k=>{k!==l.current&&i(P=>!P)},[l]),E=x.useCallback(k=>{k!==c.current&&a(P=>!P)},[c]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:a,inputLength:n,setInputLength:r,getTextAreaValue:v,setTextAreaValue:g,updateTextAreaFocus:p,focusTextArea:y,blurTextArea:w,toggleTextAreaDisabled:b,toggleTextAreaSensitiveMode:E}},Yc=x.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),qc=()=>x.useContext(Yc),g0=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Yc.Provider,{value:{toasts:e,setSyncedToasts:n,syncedToastsRef:r},children:t})},Zn=()=>{const{settings:t}=se(),{toasts:e,setSyncedToasts:n,syncedToastsRef:r}=qc(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async(l,c)=>{var u,d,A,h;let f=null;if(r.current.length>=(((u=t.toast)==null?void 0:u.maxCount)??3)){if((d=t.toast)!=null&&d.forbidOnMax)return null;f=Do();let p={id:f,content:l,timeout:c};if((A=t.event)!=null&&A.rcbShowToast){const y=await o(q.SHOW_TOAST,{toast:p});if(y.defaultPrevented)return null;p=y.data.toast}return n(y=>[...y.slice(1),p]),f}f=Do();let g={id:f,content:l,timeout:c};if((h=t.event)!=null&&h.rcbShowToast){const p=await o(q.SHOW_TOAST,{toast:g});if(p.defaultPrevented)return null;g=p.data.toast}return n(p=>[...p,g]),f},[t,o]),s=x.useCallback(async l=>{var c;const u=r.current.find(d=>d.id===l);return!u||(c=t.event)!=null&&c.rcbDismissToast&&(await o(q.DISMISS_TOAST,{toast:u})).defaultPrevented?null:(n(d=>d.filter(A=>A.id!==l)),l)},[o]),a=x.useCallback(l=>{const c=typeof l=="function"?l(r.current):l;n(c)},[r]);return{showToast:i,dismissToast:s,toasts:e,replaceToasts:a}},_o=()=>{var t,e,n,r,o;const{settings:i}=se(),{paths:s,setSyncedPaths:a,syncedPathsRef:l}=Ir(),{flowRef:c,streamMessageMap:u,paramsInputRef:d,keepVoiceOnRef:A,timeoutIdRef:h}=_e(),{setSyncedIsBotTyping:f,setSyncedTextAreaDisabled:g,setSyncedTextAreaSensitiveMode:p,blockAllowsAttachment:y,setBlockAllowsAttachment:w}=Le(),{dispatchRcbEvent:v}=Pt(),{endStreamMessage:b,injectMessage:E,removeMessage:k,simulateStreamMessage:P,streamMessage:D}=Mn(),{showToast:I,dismissToast:T}=Zn(),{toggleChatWindow:M}=st(),{updateTextAreaFocus:B,setTextAreaValue:_}=_n(),{syncVoice:N}=ws(),O=x.useCallback(async S=>{var X;if((X=i.event)!=null&&X.rcbPostProcessBlock){const V=await v(q.POST_PROCESS_BLOCK,{block:S});if(V.defaultPrevented)return null;S=V.data.block}return S},[(t=i.event)==null?void 0:t.rcbPostProcessBlock,v]),R=x.useCallback(async(S,X)=>{var V,j,W,K;if(!S)return;let $=c.current[S];if(!$)return void f(!1);if((V=i.event)!=null&&V.rcbPreProcessBlock){const oe=await v(q.PRE_PROCESS_BLOCK,{block:$});if(oe.defaultPrevented)return;$=oe.data.block}f(!0),(j=i.chatInput)!=null&&j.blockSpam&&g(!0),p(!1);const le={prevPath:X,currPath:S,goToPath:C,setTextAreaValue:_,userInput:d.current,endStreamMessage:b,injectMessage:E,removeMessage:k,simulateStreamMessage:P,streamMessage:D,toggleChatWindow:M,showToast:I,dismissToast:T};await(async(oe,pe,De,Xe,Ie,Ye,Tt)=>{if(!oe)throw new Error("Block is not valid.");for(const qe of Object.keys(oe))switch(qe){case"message":await $m(oe,pe,De);break;case"options":await t0(oe,pe);break;case"checkboxes":await Jm(oe,pe);break;case"component":await n0(oe,pe);break;case"chatDisabled":await o0(oe,pe,Ie);break;case"isSensitive":await zc(oe,pe,Ye);break;case"transition":await r0(oe,pe,Xe,Tt)}})($,le,((W=i.botBubble)==null?void 0:W.simulateStream)??!1,h,g,p,O),f(!1),"chatDisabled"in $||g((K=i.chatInput)==null?void 0:K.disabled),"isSensitive"in $||p(!1),w(typeof $.file=="function"),B(S),N(A.current&&!$.chatDisabled),S!==X&&u.current.clear()},[c,B,N,(e=i.botBubble)==null?void 0:e.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,d,b,E,k,P,D,M,I,T,A,u]),Q=x.useCallback(()=>l.current.length>0?l.current.at(-1)??null:null,[]),U=x.useCallback(()=>l.current.length>1?l.current.at(-2)??null:null,[]),C=x.useCallback(async S=>{var X;const V=Q(),j=U();return((X=i.event)==null||!X.rcbChangePath||!(await v(q.CHANGE_PATH,{currPath:V,prevPath:j,nextPath:S})).defaultPrevented)&&(a(W=>[...W,S]),await R(S,V),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,R,v]),G=x.useCallback(S=>{const X=typeof S=="function"?S(l.current):S;a(X)},[l]);return{getCurrPath:Q,getPrevPath:U,goToPath:C,blockAllowsAttachment:y,setBlockAllowsAttachment:w,paths:s,replacePaths:G,firePostProcessBlockEvent:O}},$n=()=>{var t,e,n,r;const{settings:o}=se(),{endStreamMessage:i,injectMessage:s,removeMessage:a,simulateStreamMessage:l,streamMessage:c}=Mn(),{syncedPathsRef:u}=Ir(),{getCurrPath:d,getPrevPath:A,goToPath:h,firePostProcessBlockEvent:f}=_o(),{setSyncedTextAreaSensitiveMode:g,setSyncedTextAreaDisabled:p,setSyncedIsBotTyping:y,setBlockAllowsAttachment:w,setInputLength:v,syncedVoiceToggledOnRef:b,syncedTextAreaSensitiveModeRef:E}=Le(),{flowRef:k,inputRef:P,keepVoiceOnRef:D,paramsInputRef:I,timeoutIdRef:T}=_e(),{showToast:M,dismissToast:B}=Zn(),{dispatchRcbEvent:_}=Pt(),{syncVoice:N}=ws(),{setTextAreaValue:O}=_n(),{toggleChatWindow:R}=st(),Q=x.useCallback(async C=>{var G,S,X,V,j,W;const K=d();if(K&&k.current[K]){if(E.current){if((G=o?.sensitiveInput)!=null&&G.hideInUserBubble)return;if((S=o?.sensitiveInput)!=null&&S.maskInUserBubble)return void((X=o.userBubble)!=null&&X.simulateStream?await l("*".repeat(((V=o.sensitiveInput)==null?void 0:V.asterisksCount)??10),"USER"):await s("*".repeat(((j=o.sensitiveInput)==null?void 0:j.asterisksCount)??10),"USER"))}(W=o.userBubble)!=null&&W.simulateStream?await l(C,"USER"):await s(C,"USER")}},[k,d,o,s,l,E]),U=x.useCallback(async(C,G=!0)=>{var S,X;if((C=C.trim())==="")return;G&&await Q(C),T.current&&clearTimeout(T.current),P.current&&(O(""),v(0));const V=d();if(!V)return;let j=k.current[V];const W=await f(j);W&&((S=o.chatInput)!=null&&S.blockSpam&&p(!0),D.current=b.current,N(!1),setTimeout(()=>{y(!0)},400),g(!1),setTimeout(async()=>{var K;const $={prevPath:A(),currPath:d(),goToPath:h,setTextAreaValue:O,userInput:I.current,injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:a,endStreamMessage:i,toggleChatWindow:R,showToast:M,dismissToast:B},le=u.current.length;await Rc(W,$),u.current.length===le&&(p("chatDisabled"in j?!!j.chatDisabled:!((K=o.chatInput)==null||!K.disabled)),zc(j,$,g),w(typeof j.file=="function"),N(D.current),y(!1))},(X=o.chatInput)==null?void 0:X.botDelay))},[T,(t=o.chatInput)==null?void 0:t.blockSpam,(e=o.chatInput)==null?void 0:e.botDelay,(n=o.chatInput)==null?void 0:n.disabled,D,b,N,Q,A,d,h,s,l,c,a,i,R,M,B,k]);return{handleSubmitText:x.useCallback(async(C,G=!0)=>{var S,X;C=C??((S=P.current)==null?void 0:S.value),!((X=o.event)!=null&&X.rcbUserSubmitText&&(await _(q.USER_SUBMIT_TEXT,{inputText:C,sendInChat:G})).defaultPrevented||!d())&&U(C,G)},[_,d,U,P,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Oo=()=>{var t;const{settings:e}=se();return x.useMemo(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=e.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(t=e.device)==null?void 0:t.applyMobileOptimizations])},m0=({buttons:t})=>{var e,n,r,o,i,s,a,l,c,u,d;const A=Oo(),{settings:h}=se(),{styles:f}=ye(),{textAreaDisabled:g,textAreaSensitiveMode:p,inputLength:y,hasFlowStarted:w,setHasFlowStarted:v,setInputLength:b}=Le(),{inputRef:E}=_e(),[k,P]=x.useState(!1),[D,I]=x.useState(!1),{handleSubmitText:T}=$n(),{setTextAreaValue:M}=_n(),B={boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle},_={outline:g?"":"none",boxShadow:g?"":`0 0 5px ${(e=h.general)==null?void 0:e.primaryColor}`,boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaFocusedStyle},N={cursor:`url("${(n=h.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaDisabledStyle},O={color:"#989898",...f.characterLimitStyle},R={color:"#ff0000",...f.characterLimitReachedStyle},Q=g?(r=h.chatInput)==null?void 0:r.disabledPlaceholderText:(o=h.chatInput)==null?void 0:o.enabledPlaceholderText,U=()=>{g||P(!0)},C=()=>{P(!1)},G=()=>{I(!0)},S=()=>{I(!1)},X=async j=>{var W;if(!D&&j.key==="Enter"){if(j.shiftKey)return void((W=h.chatInput)!=null&&W.allowNewline||j.preventDefault());j.preventDefault(),await T()}},V=j=>{E.current&&(M(j.target.value),b(E.current.value.length))};return m.jsxs("div",{"aria-label":((i=h.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:j=>{var W;j.stopPropagation(),!w&&((W=h.general)==null?void 0:W.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&v(!0)},style:{...f.chatInputContainerStyle},className:"rcb-chat-input",children:[p&&(s=h.sensitiveInput)!=null&&s.maskInTextArea?m.jsx("input",{ref:E,type:"password",className:"rcb-chat-input-textarea",style:g?N:k?_:B,placeholder:Q,onChange:V,onKeyDown:X,onFocus:U,onBlur:C,onCompositionStart:G,onCompositionEnd:S}):m.jsx("textarea",{ref:E,style:g?N:k?_:B,rows:1,className:"rcb-chat-input-textarea",placeholder:Q,onChange:V,onKeyDown:X,onFocus:U,onBlur:C,onCompositionStart:G,onCompositionEnd:S}),m.jsxs(m.Fragment,{children:[t?.map((j,W)=>m.jsx(x.Fragment,{children:j},W)),((a=h.chatInput)==null?void 0:a.showCharacterCount)&&((l=h.chatInput)==null?void 0:l.characterLimit)!=null&&((c=h.chatInput)==null?void 0:c.characterLimit)>0&&m.jsxs("div",{className:"rcb-chat-input-char-counter",style:y>=((u=h.chatInput)==null?void 0:u.characterLimit)?R:O,children:[y,"/",(d=h.chatInput)==null?void 0:d.characterLimit]})]})]})},b0=({buttons:t})=>{var e;const{settings:n}=se(),{styles:r}=ye();return m.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[m.jsx("div",{className:"rcb-chat-footer",children:t?.map((o,i)=>m.jsx(x.Fragment,{children:o},i))}),m.jsx("span",{children:(e=n.footer)==null?void 0:e.text})]})},v0=()=>{var t,e,n,r,o,i,s;const{settings:a}=se(),{styles:l}=ye(),{unreadCount:c}=Le(),{isChatWindowOpen:u,toggleChatWindow:d}=st(),[A,h]=x.useState(!1),f={backgroundImage:`linear-gradient(to right, ${(t=a.general)==null?void 0:t.secondaryColor},
|
|
5
|
-
${(e=a.general)==null?void 0:e.primaryColor})`,...l.chatButtonStyle},g={transform:"scale(1.05)",...f,...l.chatButtonHoveredStyle},p={backgroundImage:`url(${(n=a.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...l.chatIconStyle};return m.jsx(m.Fragment,{children:!((r=a.general)!=null&&r.embedded)&&m.jsxs("div",{"aria-label":((o=a.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:A?g:f,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},onClick:()=>d(!0),children:[(()=>{var y;const w=(y=a.chatButton)==null?void 0:y.icon;return w&&typeof w!="string"?w&&m.jsx("span",{className:"rcb-toggle-icon",children:m.jsx(w,{style:p})}):m.jsx("span",{className:"rcb-toggle-icon",style:p})})(),!((i=a.notification)!=null&&i.disabled)&&((s=a.notification)==null?void 0:s.showCount)&&m.jsx("span",{style:{...l.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},y0=()=>{var t,e,n,r,o,i;const s=Oo(),{settings:a}=se(),{styles:l}=ye(),{chatBodyRef:c}=_e(),{isChatWindowOpen:u,toggleChatWindow:d}=st(),[A,h]=x.useState(!1),[f,g]=x.useState(!1),[p,y]=x.useState(0);x.useEffect(()=>{var b,E,k;const P=(b=a.tooltip)==null?void 0:b.mode;if(P==="ALWAYS")if(s){let D;D=u?(((E=c.current)==null?void 0:E.offsetWidth)??375)-(typeof((k=l.chatButtonStyle)==null?void 0:k.width)=="number"?l.chatButtonStyle.width:75):0,y(D),h(!0)}else h(!u);else P==="NEVER"?h(!1):P==="START"?f?h(!1):(g(!0),h(!0)):P==="CLOSE"&&h(!u)},[u,s,f,(t=l.chatButtonStyle)==null?void 0:t.width,(e=a.tooltip)==null?void 0:e.mode]);const w={transform:`translateX(-${p}px)`,right:(((n=l.chatButtonStyle)==null?void 0:n.width)??75)+40,bottom:30,backgroundColor:(r=a.general)==null?void 0:r.secondaryColor,color:"#fff",...l.tooltipStyle},v={borderColor:`transparent transparent transparent ${w.backgroundColor}`};return m.jsx(m.Fragment,{children:!((o=a.general)!=null&&o.embedded)&&m.jsxs("div",{"data-testid":"chat-tooltip",style:w,className:"rcb-chat-tooltip "+(A?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>d(!0),children:[m.jsx("span",{children:(i=a.tooltip)==null?void 0:i.text}),m.jsx("span",{className:"rcb-chat-tooltip-tail",style:v})]})})},w0=({id:t,content:e,timeout:n})=>{var r,o;const{settings:i}=se(),{styles:s}=ye(),[a]=x.useState({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:l}=Zn(),[c,u]=x.useState(!1),d={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...a.toastPromptHoveredStyle};return x.useEffect(()=>{if(n){const A=setTimeout(()=>{l(t)},n);return()=>clearTimeout(A)}},[t,l,n]),typeof e=="string"?m.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?d:a.toastPromptStyle,onMouseDown:async A=>{var h;(h=i.toast)!=null&&h.dismissOnClick&&(A.preventDefault(),await l(t))},className:"rcb-toast-prompt",children:e}):m.jsx(m.Fragment,{children:e})},x0=()=>{var t,e,n,r,o,i,s,a,l,c,u,d;const{styles:A}=ye(),{toasts:h}=qc(),f={bottom:`calc(${typeof((t=A.footerStyle)==null?void 0:t.height)=="number"?`${(e=A.footerStyle)==null?void 0:e.height}px`:((n=A.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=A.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=A.chatInputContainerStyle)==null?void 0:o.height}px`:((i=A.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((s=A.chatWindowStyle)==null?void 0:s.width)=="number"?`${(a=A.chatWindowStyle)==null?void 0:a.width}px`:((l=A.chatWindowStyle)==null?void 0:l.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((c=A.chatWindowStyle)==null?void 0:c.width)=="number"?`${(u=A.chatWindowStyle)==null?void 0:u.width}px`:((d=A.chatWindowStyle)==null?void 0:d.width)??"375px"} - 50px)`,...A.toastPromptContainerStyle};return m.jsx("div",{className:"rcb-toast-prompt-container",style:f,children:h.map(g=>m.jsx(w0,{id:g.id,content:g.content,timeout:g.timeout},g.id))})},Gc=({file:t,fileType:e,fileUrl:n})=>{var r,o,i;const{settings:s}=se(),{styles:a}=ye(),l={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...a.mediaDisplayContainerStyle};return m.jsx(m.Fragment,{children:n?m.jsxs(m.Fragment,{children:[e==="image"&&n&&m.jsx("div",{style:l,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:m.jsx("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),e==="video"&&n&&m.jsx("div",{style:l,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:m.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[m.jsx("source",{src:n,type:t.type}),"Your browser does not support the video tag."]})}),e==="audio"&&n&&m.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=s.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[m.jsx("source",{src:n,type:t.type}),"Your browser does not support the audio tag."]})]}):m.jsx(m.Fragment,{})})},Kc=async t=>{if(!t)return{fileType:null,fileUrl:null};const e=t.type.split("/")[0];if(!["image","video","audio"].includes(e))return{fileType:null,fileUrl:null};try{return{fileType:e,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(t)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},k0=()=>{var t,e,n,r,o,i;const{settings:s}=se(),{styles:a}=ye(),{injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:A}=Mn(),{getCurrPath:h,getPrevPath:f,goToPath:g,blockAllowsAttachment:p}=_o(),{flowRef:y,inputRef:w}=_e(),v=y.current,{showToast:b,dismissToast:E}=Zn(),{dispatchRcbEvent:k}=Pt(),{toggleChatWindow:P}=st(),{setTextAreaValue:D}=_n(),{handleSubmitText:I}=$n(),T={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,...a.fileAttachmentButtonStyle,...a.fileAttachmentButtonDisabledStyle},M={backgroundImage:`url(${(e=s.fileAttachment)==null?void 0:e.icon})`,fill:"#a6a6a6",...a.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...a.fileAttachmentIconStyle,...a.fileAttachmentIconDisabledStyle};return m.jsxs("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:p?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:p?{...a.fileAttachmentButtonStyle}:T,children:[m.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async _=>{var N,O,R,Q;const U=_.target.files;if(!U)return;const C=Array.from(U);if(_.target.value="",(N=s.event)!=null&&N.rcbUserUploadFile&&(await k(q.USER_UPLOAD_FILE,{files:C})).defaultPrevented)return;const G=h();if(!G)return;const S=v[G];if(!S)return;const X=S.file;if(X!=null){const V=[];for(let j=0;j<C.length;j++){if(V.push(C[j].name),(O=s.fileAttachment)==null||!O.showMediaDisplay)continue;const W=await Kc(C[j]);!W.fileType||!W.fileUrl||await l(m.jsx(Gc,{file:C[j],fileType:W.fileType,fileUrl:W.fileUrl}),"USER")}await I("📄 "+V.join(", "),(R=s.fileAttachment)==null?void 0:R.sendFileName),await X({userInput:(Q=w.current)==null?void 0:Q.value,prevPath:f(),currPath:h(),goToPath:g,setTextAreaValue:D,injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:A,toggleChatWindow:P,showToast:b,dismissToast:E,files:C})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!p}),(()=>{var _,N;const O=p?(_=s.fileAttachment)==null?void 0:_.icon:(N=s.fileAttachment)==null?void 0:N.iconDisabled;return O&&typeof O!="string"?O&&m.jsx("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:m.jsx(O,{style:p?M:B})}):m.jsx("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:p?M:B})})()]})},E0=()=>{var t,e,n,r,o,i;const{settings:s}=se(),{styles:a}=ye(),{syncedTextAreaDisabledRef:l}=Le(),{inputRef:c}=_e(),{textAreaDisabled:u,setTextAreaValue:d}=_n(),A=x.useRef(null),h=x.useRef(null),[f,g]=x.useState(!1),p={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,...a.emojiButtonStyle,...a.emojiButtonDisabledStyle},y={backgroundImage:`url(${(e=s.emoji)==null?void 0:e.icon})`,fill:"#a6a6a6",...a.emojiIconStyle},w={backgroundImage:`url(${(n=s.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...a.emojiIconStyle,...a.emojiIconDisabledStyle};return x.useEffect(()=>{const v=E=>{const k=E.composedPath();A.current&&!k.includes(A.current)&&h.current&&!k.includes(h.current)&&g(!1)},b=()=>{(()=>{if(A.current&&h.current){const E=h.current.getBoundingClientRect(),k=A.current.offsetHeight,P=E.top-k-8;A.current.style.left=`${E.left}px`,A.current.style.top=`${P}px`}})()};return document.addEventListener("mousedown",v),window.addEventListener("resize",b),()=>{document.removeEventListener("mousedown",v),window.removeEventListener("resize",b)}},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:h,className:u?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:u?p:{...a.emojiButtonStyle},onMouseDown:v=>{v.preventDefault(),l.current?g(!1):g(b=>!b)},children:(()=>{var v,b;const E=u?(v=s.emoji)==null?void 0:v.iconDisabled:(b=s.emoji)==null?void 0:b.icon;return E&&typeof E!="string"?E&&m.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:m.jsx(E,{style:u?w:y})}):m.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:u?w:y})})()}),f&&m.jsx("div",{className:"rcb-emoji-button-popup",ref:A,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((v,b)=>m.jsx("span",{className:"rcb-emoji",onMouseDown:E=>((k,P)=>{k.preventDefault(),c.current&&(d(c.current.value+P),setTimeout(()=>{const D=c.current;if(D){D.focus();const I=D.value.length;D.setSelectionRange(I,I)}},50)),g(!1)})(E,v),children:v},b))})]})},C0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{audioToggledOn:i,toggleAudio:s}=Wc(),a={backgroundImage:`url(${(t=r.audio)==null?void 0:t.icon})`,fill:"#fcec3d",...o.audioIconStyle},l={backgroundImage:`url(${(e=r.audio)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async c=>{c.preventDefault(),await s()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var c,u;const d=i?(c=r.audio)==null?void 0:c.icon:(u=r.audio)==null?void 0:u.iconDisabled;return d&&typeof d!="string"?d&&m.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:m.jsx(d,{style:i?a:l,"data-testid":"rcb-audio-icon-svg"})}):m.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?a:l})})()})},S0=()=>{var t,e;const{settings:n}=se(),{styles:r}=ye(),{toggleChatWindow:o}=st(),i={backgroundImage:`url(${(t=n.header)==null?void 0:t.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return m.jsx("div",{"aria-label":((e=n.ariaLabel)==null?void 0:e.closeChatButton)??"close chat",role:"button",onMouseDown:s=>{s.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var s;const a=(s=n.header)==null?void 0:s.closeChatIcon;return a&&typeof a!="string"?a&&m.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:m.jsx(a,{style:i})}):m.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},P0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:d}=gs();return{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:d}})(),a={backgroundImage:`url(${(t=r.notification)==null?void 0:t.icon})`,fill:"#fcec3d",...o.notificationIconStyle},l={backgroundImage:`url(${(e=r.notification)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async c=>{c.preventDefault(),await s()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var c,u;const d=i?(c=r.notification)==null?void 0:c.icon:(u=r.notification)==null?void 0:u.iconDisabled;return d&&typeof d!="string"?d&&m.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:m.jsx(d,{style:i?a:l,"data-testid":"rcb-notification-icon-svg"})}):m.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?a:l})})()})},D0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{injectMessage:i}=Mn(),{inputRef:s}=_e(),{voiceToggledOn:a,toggleVoice:l}=ws(),{setInputLength:c,setTextAreaValue:u,textAreaDisabled:d}=_n(),{handleSubmitText:A}=$n(),h=x.useRef([]),[f,g]=x.useState(!1);x.useEffect(()=>{var b;(b=r.voice)!=null&&b.sendAsAudio?(v(),h.current=[]):A()},[f]),x.useEffect(()=>{a?((b,E,k,P,D,I,T)=>{var M;(M=b.voice)!=null&&M.sendAsAudio?p0(k,I):f0(b,E,k,P,D,T)})(r,l,w,u,c,h,s):vs()},[a]);const p={backgroundImage:`url(${(t=r.voice)==null?void 0:t.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},y={backgroundImage:`url(${(e=r.voice)==null?void 0:e.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},w=()=>{g(b=>!b)},v=async()=>{const b=new Blob(h.current,{type:"audio/wav"}),E=new File([b],"voice-input.wav",{type:"audio/wav"}),k=await Kc(E);!k.fileType||!k.fileUrl||await i(m.jsx(Gc,{file:E,fileType:k.fileType,fileUrl:k.fileUrl}),"USER")};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async b=>{b.preventDefault(),!d&&await l()},style:a&&!d?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:a&&!d?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var b,E;const k=a?(b=r.voice)==null?void 0:b.icon:(E=r.voice)==null?void 0:E.iconDisabled;return k&&typeof k!="string"?k&&m.jsx("span",{className:"rcb-voice-icon "+(a&&!d?"on":""),children:m.jsx(k,{style:a&&!d?p:y})}):m.jsx("span",{className:"rcb-voice-icon"+(a&&!d?"-on":""),"data-testid":"rcb-voice-icon",style:a&&!d?p:y})})()})},B0=()=>{var t,e,n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),{textAreaDisabled:u}=Le(),[d,A]=x.useState(!1),{handleSubmitText:h}=$n(),f={backgroundColor:(t=l.general)==null?void 0:t.primaryColor,...c.sendButtonStyle},g={cursor:`url("${(e=l.general)==null?void 0:e.actionDisabledIcon}"), auto`,backgroundColor:(n=l.general)==null?void 0:n.primaryColor,...c.sendButtonStyle,...c.sendButtonDisabledStyle},p={backgroundColor:(r=l.general)==null?void 0:r.secondaryColor,...c.sendButtonStyle,...c.sendButtonHoveredStyle},y={backgroundImage:`url(${(o=l.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle},w={backgroundImage:`url(${(i=l.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconDisabledStyle},v={backgroundImage:`url(${(s=l.chatInput)==null?void 0:s.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconHoveredStyle};return m.jsx("div",{"aria-label":((a=l.ariaLabel)==null?void 0:a.sendButton)??"send message",role:"button",onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},onMouseDown:async b=>{b?.preventDefault(),!u&&await h()},style:u?g:d?p:f,className:"rcb-send-button",children:(()=>{var b;const E=(b=l.chatInput)==null?void 0:b.sendButtonIcon;return E&&typeof E!="string"?E&&m.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:m.jsx(E,{style:u?w:d?v:y})}):m.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:u?w:d?v:y})})()})},T0=(t,e)=>{var n,r,o,i,s,a,l,c,u;const d={[Se.AUDIO_BUTTON]:(n=t.audio)==null?void 0:n.disabled,[Se.CLOSE_CHAT_BUTTON]:(r=t.general)==null?void 0:r.embedded,[Se.EMOJI_PICKER_BUTTON]:(o=t.emoji)==null?void 0:o.disabled,[Se.FILE_ATTACHMENT_BUTTON]:(i=t.fileAttachment)==null?void 0:i.disabled,[Se.NOTIFICATION_BUTTON]:(s=t.notification)==null?void 0:s.disabled,[Se.SEND_MESSAGE_BUTTON]:!1,[Se.VOICE_MESSAGE_BUTTON]:(a=t.voice)==null?void 0:a.disabled},A={},h=f=>f?f.map(g=>{if(typeof g=="string"){if((p=>Object.values(Se).includes(p))(g)&&!d[g]){if(A[g])return A[g];const p=e[g];if(typeof p=="function"){const y=p();return A[g]=y,y}return null}return null}return g}).filter(g=>g!==null):[];return{header:h((l=t.header)==null?void 0:l.buttons),chatInput:h((c=t.chatInput)==null?void 0:c.buttons),footer:h((u=t.footer)==null?void 0:u.buttons)}},I0=()=>{const{settings:t}=se(),e=x.useMemo(()=>({[Se.CLOSE_CHAT_BUTTON]:()=>m.jsx(S0,{}),[Se.AUDIO_BUTTON]:()=>m.jsx(C0,{}),[Se.NOTIFICATION_BUTTON]:()=>m.jsx(P0,{}),[Se.EMOJI_PICKER_BUTTON]:()=>m.jsx(E0,{}),[Se.FILE_ATTACHMENT_BUTTON]:()=>m.jsx(k0,{}),[Se.SEND_MESSAGE_BUTTON]:()=>m.jsx(B0,{}),[Se.VOICE_MESSAGE_BUTTON]:()=>m.jsx(D0,{})}),[]),{header:n,chatInput:r,footer:o}=x.useMemo(()=>T0(t,e),[t,e]);return{headerButtons:x.useMemo(()=>n,[n]),chatInputButtons:x.useMemo(()=>r,[r]),footerButtons:x.useMemo(()=>o,[o])}},xs=()=>{const{settings:t}=se(),{styles:e}=ye(),{setSyncedMessages:n,syncedMessagesRef:r}=hs(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:a}=Le(),{chatBodyRef:l}=_e(),{dispatchRcbEvent:c}=Pt(),u=x.useCallback(async()=>{var d,A;const h=Mr();if(!h||(d=t.event)!=null&&d.rcbLoadChatHistory&&(await c(q.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const f=((A=l.current)==null?void 0:A.scrollHeight)??0;((g,p,y,w,v,b,E,k,P)=>{var D;if(Uc=!0,y!=null)try{const I=gn(m.jsx(s0,{}),"SYSTEM"),T=v.current.slice(1);w([I,...T]);const M=y.map(B=>{if(B.type==="object"){const _=Hc(B.content,g,p);return{...B,content:_}}return B});setTimeout(()=>{var B;const _=v.current.slice(1);let N=(B=g.chatHistory)!=null&&B.autoLoad?gn(m.jsx(m.Fragment,{}),"SYSTEM"):gn(m.jsx(i0,{}),"SYSTEM");w([...M,N,..._]),P(!0)},500),setTimeout(()=>{if(!b.current)return;const{scrollHeight:B}=b.current,_=B-E;b.current.scrollTop+=_,k(!1)},510)}catch{mn.removeItem((D=g.chatHistory)==null?void 0:D.storageKey)}})(t,e,h,n,r,l,f,i,a)},[t,e,c,r,l,i,a]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,showChatHistory:u}},M0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{showChatHistory:i}=xs(),[s,a]=x.useState(!1),l={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return m.jsx("div",{className:"rcb-view-history-container",children:m.jsx("div",{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},style:s?l:{...o.chatHistoryButtonStyle},onMouseDown:c=>{c.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:m.jsx("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},_0=()=>{var t,e,n,r;const o=Oo(),{settings:i}=se(),{replaceMessages:s}=Mn(),{isBotTyping:a,isChatWindowOpen:l,setUnreadCount:c,setSyncedIsChatWindowOpen:u,setSyncedTextAreaDisabled:d,setSyncedAudioToggledOn:A,setSyncedVoiceToggledOn:h,setSyncedIsScrolling:f,syncedIsScrollingRef:g,syncedIsChatWindowOpenRef:p}=Le(),{chatBodyRef:y}=_e(),{viewportHeight:w,setViewportHeight:v,setViewportWidth:b,scrollToBottom:E}=st(),{setUpNotifications:k}=gs(),{handleFirstInteraction:P}=(()=>{var M;const{settings:B}=se(),{hasInteractedPage:_,setHasInteractedPage:N,hasFlowStarted:O,setHasFlowStarted:R}=Le(),Q=x.useCallback(()=>{var U;if(N(!0),!O&&((U=B.general)==null?void 0:U.flowStartTrigger)==="ON_PAGE_INTERACT"&&R(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const C=new window.SpeechSynthesisUtterance;C.text="",C.onend=()=>{window.removeEventListener("click",Q),window.removeEventListener("keydown",Q),window.removeEventListener("touchstart",Q)},window.speechSynthesis.speak(C)},[O,(M=B.general)==null?void 0:M.flowStartTrigger]);return{hasInteractedPage:_,handleFirstInteraction:Q}})(),{showChatHistory:D}=xs(),I=x.useRef(0),T=x.useRef(!1);x.useEffect(()=>(window.addEventListener("click",P),window.addEventListener("keydown",P),window.addEventListener("touchstart",P),()=>{window.removeEventListener("click",P),window.removeEventListener("keydown",P),window.removeEventListener("touchstart",P)}),[]),x.useEffect(()=>{const M=y.current;if(!M)return;const B=()=>{T.current||(T.current=!0,requestAnimationFrame(()=>{var _,N;if(!M)return;const{scrollTop:O,clientHeight:R,scrollHeight:Q}=M,U=O+R<Q-(((_=i.chatWindow)==null?void 0:_.messagePromptOffset)??30);f(U),g.current=U,U||(O+R>=Q-1&&(M.scrollTop=Q-R-1),(p.current||(N=i.general)!=null&&N.embedded)&&c(0)),T.current=!1}))};return M.addEventListener("wheel",B,{passive:!0}),M.addEventListener("touchmove",B,{passive:!0}),()=>{M.removeEventListener("wheel",B),M.removeEventListener("touchmove",B)}},[]),x.useEffect(()=>{var M,B,_;d((M=i.chatInput)==null?void 0:M.disabled),u((B=i.chatWindow)==null?void 0:B.defaultOpen),A((_=i.audio)==null?void 0:_.defaultToggledOn),setTimeout(()=>{var N;h((N=i.voice)==null?void 0:N.defaultToggledOn)},1)},[]),x.useEffect(()=>{var M;(M=i.notification)!=null&&M.disabled||k()},[(t=i.notification)==null?void 0:t.disabled]),x.useEffect(()=>{!g.current&&y!=null&&y.current&&E()},[a]),x.useEffect(()=>{var M,B;if((M=i.chatHistory)!=null&&M.disabled)mn&&mn.removeItem(Bo);else if(ps(i),Mr().length>0){const _=gn(m.jsx(M0,{}),"SYSTEM");s([_]),(B=i.chatHistory)!=null&&B.autoLoad&&D()}},[(e=i.chatHistory)==null?void 0:e.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),x.useEffect(()=>{var M;o||(M=i.general)!=null&&M.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",B=>{if(!B.target)return;const{x:_,y:N,width:O,height:R}=B.target.boundingRect;_==0&&N==0&&O==0&&R==0?(setTimeout(()=>{var Q;v((Q=window.visualViewport)==null?void 0:Q.height)},101),setTimeout(()=>{var Q,U;w!=((Q=window.visualViewport)==null?void 0:Q.height)&&v((U=window.visualViewport)==null?void 0:U.height)},1001)):setTimeout(()=>{var Q;v(((Q=window.visualViewport)==null?void 0:Q.height)-R)},101)}))},[o]),x.useEffect(()=>{var M,B,_,N;if(o)return;l&&(v((M=window.visualViewport)==null?void 0:M.height),b((B=window.visualViewport)==null?void 0:B.width));const O=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),R=()=>I.current=window.scrollY,Q=()=>{var C,G;v((C=window.visualViewport)==null?void 0:C.height),b((G=window.visualViewport)==null?void 0:G.width)},U=()=>{var C;window.removeEventListener("scroll",O),window.removeEventListener("scroll",R),(C=window.visualViewport)==null||C.removeEventListener("resize",Q)};return l?(U(),document.body.style.position="fixed",window.addEventListener("scroll",O),(_=window.visualViewport)==null||_.addEventListener("resize",Q)):(document.body.style.position="static",U(),window.scrollTo({top:I.current,left:0,behavior:"auto"}),window.addEventListener("scroll",R),(N=window.visualViewport)==null||N.removeEventListener("resize",Q)),U},[l,o])},O0="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",L0="2592000",Xc="RCB_THEME_CACHE_DATA",Jc=async(t,e)=>{const{id:n,version:r,baseUrl:o=O0,cacheDuration:i=L0}=e,s=r||await(async(y,w)=>{const v=`${w}/${y}/meta.json`;try{const b=await fetch(v);return b.ok?(await b.json()).version:(console.error(`Failed to fetch meta.json from ${v}`),null)}catch(b){return console.error(`Failed to fetch meta.json from ${v}`,b),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const a=((y,w,v)=>{const b=localStorage.getItem(`${Xc}_${y}_${w}`);if(!b)return null;try{const E=JSON.parse(b),k=new Date().getTime(),P=Math.floor(k/1e3);return E.cacheDate+v>=P?E:null}catch(E){return console.error(`Unable to fetch cache for ${y}`,E),null}})(n,s,i);if(a){const y=Zc(t,a.cssStylesText);return{settings:a.settings,inlineStyles:a.inlineStyles,cssStylesText:y}}const l=`${o}/${n}/${s}/styles.css`,c=`${o}/${n}/${s}/settings.json`,u=`${o}/${n}/${s}/styles.json`;let d="";const A=await fetch(l);A.ok?d=await A.text():console.info(`Could not fetch styles.css from ${l}`);const h=await fetch(c);let f={};h.ok?f=await h.json():console.info(`Could not fetch settings.json from ${c}`);const g=await fetch(u);let p={};return g.ok?p=await g.json():console.info(`Could not fetch styles.json from ${u}`),((y,w,v,b,E)=>{const k=new Date().getTime(),P={settings:v,inlineStyles:b,cssStylesText:E,cacheDate:Math.floor(k/1e3)};localStorage.setItem(`${Xc}_${y}_${w}`,JSON.stringify(P))})(n,s,f,p,d),{settings:f,inlineStyles:p,cssStylesText:Zc(t,d)}},Zc=(t,e)=>e.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${t} ${r}`:""}).join(`
|
|
6
|
-
`),F0=async(t,e,n,r)=>{var o,i;let s=Lo(Ic),a=Lo(_c),l="";if(r!=null)if(Array.isArray(r))for(const c of r){const u=await Jc(t,c);s=Ft(u.settings,s),a=Ft(u.inlineStyles,a),l+=u.cssStylesText}else{const c=await Jc(t,r);s=Ft(c.settings,s),a=Ft(c.inlineStyles,a),l+=c.cssStylesText}return e!=null&&(s=Ft(e,s)),n!=null&&(a=Ft(n,a)),((o=s.chatInput)==null?void 0:o.botDelay)!=null&&((i=s.chatInput)==null?void 0:i.botDelay)<500&&(s.chatInput.botDelay=500),{settings:s,inlineStyles:a,cssStylesText:l}},Ft=(t,e)=>{const n=[{source:t,target:e}];for(;n.length;){const r=n.pop();if(r==null)continue;const{source:o,target:i}=r;for(const s of Object.keys(o)){const a=s;if(x.isValidElement(o[a]))i[a]=o[a];else if(typeof o[a]!="object"||o[a]===null||Array.isArray(o[a]))try{i[a]=o[a]}catch{}else(typeof i[a]!="object"||i[a]===null)&&(i[a]={}),n.push({source:o[a],target:i[a]})}}return e},Lo=t=>{if(t===null||typeof t!="object")return t;const e=Array.isArray(t)?[]:{},n=[{source:t,target:e}],r=new WeakMap;for(r.set(t,e);n.length;){const o=n.pop();if(o==null)continue;const{source:i,target:s}=o;for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=i[a];if(l&&typeof l=="object")if(r.has(l))s[a]=r.get(l);else{const c=Array.isArray(l)?[]:{};r.set(l,c),s[a]=c,n.push({source:l,target:c})}else s[a]=l}}return e},$c=()=>{const{settings:t,setSyncedSettings:e,syncedSettingsRef:n}=se(),r=x.useCallback(i=>{!i||Object.keys(i).length===0||e(Lo(Ft(i,t)))},[t]),o=x.useCallback(i=>{const s=typeof i=="function"?i(n.current):i;e(s)},[n]);return{settings:t,replaceSettings:o,updateSettings:r}},eu=()=>{const{styles:t,setSyncedStyles:e,syncedStylesRef:n}=ye(),r=x.useCallback(i=>{!i||Object.keys(i).length===0||e(Lo(Ft(i,t)))},[t]),o=x.useCallback(i=>{const s=typeof i=="function"?i(n.current):i;e(s)},[n]);return{styles:t,replaceStyles:o,updateStyles:r}},Q0=({plugins:t,slots:e})=>{var n,r;const o=Oo(),{settings:i}=se(),{styles:s}=ye(),{hasFlowStarted:a,setHasFlowStarted:l}=Le(),{inputRef:c}=_e(),{viewportHeight:u,viewportWidth:d,isChatWindowOpen:A}=st(),{goToPath:h}=_o(),{headerButtons:f,chatInputButtons:g,footerButtons:p}=I0();_0(),(w=>{const{updateSettings:
|
|
3
|
+
Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let u=pn(),d;if(e){let p=typeof e=="string"?Xn(e):e;Ce(l==="/"||p.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${p.pathname}" was given in the \`location\` prop.`),d=p}else d=u;let A=d.pathname||"/",h=A;if(l!=="/"){let p=l.replace(/^\//,"").split("/");h="/"+A.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=Yl(t,{pathname:h});It(c||f!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),It(f==null||f[f.length-1].route.element!==void 0||f[f.length-1].route.Component!==void 0||f[f.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=yg(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:Mt([l,r.encodeLocation?r.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:Mt([l,r.encodeLocation?r.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,n);return e&&g?F.createElement(Pr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},g):g}function gg(){let t=Cg(),e=tg(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:i},"ErrorBoundary")," or"," ",F.createElement("code",{style:i},"errorElement")," prop on your route.")),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},e),n?F.createElement("pre",{style:o},n):null,s)}var mg=F.createElement(gg,null),sc=class extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=ug(t.digest);n&&(t=n)}let e=t!==void 0?F.createElement(_t.Provider,{value:this.props.routeContext},F.createElement(ns.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?F.createElement(bg,{error:t},e):e}};sc.contextType=og;var rs=new WeakMap;function bg({children:t,error:e}){let{basename:n}=F.useContext(ft);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=cg(e.digest);if(r){let o=rs.get(e);if(o)throw o;let i=$l(r.location,n);if(Zl&&!rs.get(e))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw rs.set(e,s),s}return F.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function vg({routeContext:t,match:e,children:n}){let r=F.useContext(Jn);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),F.createElement(_t.Provider,{value:t},n)}function yg(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r?.errors;if(i!=null){let u=o.findIndex(d=>d.route.id&&i?.[d.route.id]!==void 0);Ce(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,a=-1;if(n&&r){s=r.renderFallback;for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:A,errors:h}=r,f=d.route.loader&&!A.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||f){n.isStatic&&(s=!0),a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}}let l=n?.onError,c=r&&l?(u,d)=>{l(u,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ng(r.matches),errorInfo:d})}:void 0;return o.reduceRight((u,d,A)=>{let h,f=!1,g=null,p=null;r&&(h=i&&d.route.id?i[d.route.id]:void 0,g=d.route.errorElement||mg,s&&(a<0&&A===0?(lc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===A&&(f=!0,p=d.route.hydrateFallbackElement||null)));let v=e.concat(o.slice(0,A+1)),w=()=>{let y;return h?y=g:f?y=p:d.route.Component?y=F.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,F.createElement(vg,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:r!=null},children:y})};return r&&(d.route.ErrorBoundary||d.route.errorElement||A===0)?F.createElement(sc,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:c}):w()},null)}function os(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wg(t){let e=F.useContext(Jn);return Ce(e,os(t)),e}function xg(t){let e=F.useContext(ko);return Ce(e,os(t)),e}function kg(t){let e=F.useContext(_t);return Ce(e,os(t)),e}function is(t){let e=kg(t),n=e.matches[e.matches.length-1];return Ce(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Eg(){return is("useRouteId")}function Cg(){let t=F.useContext(ns),e=xg("useRouteError"),n=is("useRouteError");return t!==void 0?t:e.errors?.[n]}function Sg(){let{router:t}=wg("useNavigate"),e=is("useNavigate"),n=F.useRef(!1);return oc(()=>{n.current=!0}),F.useCallback(async(o,i={})=>{It(n.current,rc),n.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var ac={};function lc(t,e,n){!e&&!ac[t]&&(ac[t]=!0,It(!1,n))}F.memo(Pg);function Pg({routes:t,future:e,state:n,isStatic:r,onError:o}){return ic(t,void 0,{state:n,isStatic:r,onError:o})}function ss(t){Ce(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Dg({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){Ce(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),l=F.useMemo(()=>({basename:a,navigator:o,static:i,unstable_useTransitions:s,future:{}}),[a,o,i,s]);typeof n=="string"&&(n=Xn(n));let{pathname:c="/",search:u="",hash:d="",state:A=null,key:h="default",unstable_mask:f}=n,g=F.useMemo(()=>{let p=$t(c,a);return p==null?null:{location:{pathname:p,search:u,hash:d,state:A,key:h,unstable_mask:f},navigationType:r}},[a,c,u,d,A,h,r,f]);return It(g!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:F.createElement(ft.Provider,{value:l},F.createElement(Pr.Provider,{children:e,value:g}))}function Bg({children:t,location:e}){return pg(as(t),e)}function as(t,e=[]){let n=[];return F.Children.forEach(t,(r,o)=>{if(!F.isValidElement(r))return;let i=[...e,o];if(r.type===F.Fragment){n.push.apply(n,as(r.props.children,i));return}Ce(r.type===ss,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ce(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=as(r.props.children,i)),n.push(s)}),n}var Eo="get",Co="application/x-www-form-urlencoded";function So(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Tg(t){return So(t)&&t.tagName.toLowerCase()==="button"}function Ig(t){return So(t)&&t.tagName.toLowerCase()==="form"}function Mg(t){return So(t)&&t.tagName.toLowerCase()==="input"}function _g(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Og(t,e){return t.button===0&&(!e||e==="_self")&&!_g(t)}var Po=null;function Lg(){if(Po===null)try{new FormData(document.createElement("form"),0),Po=!1}catch{Po=!0}return Po}var Fg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ls(t){return t!=null&&!Fg.has(t)?(It(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):t}function Qg(t,e){let n,r,o,i,s;if(Ig(t)){let a=t.getAttribute("action");r=a?$t(a,e):null,n=t.getAttribute("method")||Eo,o=ls(t.getAttribute("enctype"))||Co,i=new FormData(t)}else if(Tg(t)||Mg(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(r=l?$t(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||Eo,o=ls(t.getAttribute("formenctype"))||ls(a.getAttribute("enctype"))||Co,i=new FormData(a,t),!Lg()){let{name:c,type:u,value:d}=t;if(u==="image"){let A=c?`${c}.`:"";i.append(`${A}x`,"0"),i.append(`${A}y`,"0")}else c&&i.append(c,d)}}else{if(So(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Eo,r=null,o=Co,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cs(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ng(t,e,n,r){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:e&&$t(o.pathname,e)==="/"?o.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function zg(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rg(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ug(t,e,n){let r=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await zg(i,n);return s.links?s.links():[]}return[]}));return Wg(r.flat(1).filter(Rg).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cc(t,e,n,r,o,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,a=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function jg(t,e,{includeHydrateFallback:n}={}){return Vg(t.map(r=>{let o=e.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Vg(t){return[...new Set(t)]}function Hg(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Wg(t,e){let n=new Set;return new Set(e),t.reduce((r,o)=>{let i=JSON.stringify(Hg(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function uc(){let t=F.useContext(Jn);return cs(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Yg(){let t=F.useContext(ko);return cs(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var us=F.createContext(void 0);us.displayName="FrameworkContext";function dc(){let t=F.useContext(us);return cs(t,"You must render this element inside a <HydratedRouter> element"),t}function qg(t,e){let n=F.useContext(us),[r,o]=F.useState(!1),[i,s]=F.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=e,A=F.useRef(null);F.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let g=v=>{v.forEach(w=>{s(w.isIntersecting)})},p=new IntersectionObserver(g,{threshold:.5});return A.current&&p.observe(A.current),()=>{p.disconnect()}}},[t]),F.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let h=()=>{o(!0)},f=()=>{o(!1),s(!1)};return n?t!=="intent"?[i,A,{}]:[i,A,{onFocus:Tr(a,h),onBlur:Tr(l,f),onMouseEnter:Tr(c,h),onMouseLeave:Tr(u,f),onTouchStart:Tr(d,h)}]:[!1,A,{}]}function Tr(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Gg({page:t,...e}){let{router:n}=uc(),r=F.useMemo(()=>Yl(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?F.createElement(Xg,{page:t,matches:r,...e}):null}function Kg(t){let{manifest:e,routeModules:n}=dc(),[r,o]=F.useState([]);return F.useEffect(()=>{let i=!1;return Ug(t,e,n).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,n]),r}function Xg({page:t,matches:e,...n}){let r=pn(),{future:o,manifest:i,routeModules:s}=dc(),{basename:a}=uc(),{loaderData:l,matches:c}=Yg(),u=F.useMemo(()=>cc(t,e,c,i,r,"data"),[t,e,c,i,r]),d=F.useMemo(()=>cc(t,e,c,i,r,"assets"),[t,e,c,i,r]),A=F.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let g=new Set,p=!1;if(e.forEach(w=>{let y=i.routes[w.route.id];!y||!y.hasLoader||(!u.some(b=>b.route.id===w.route.id)&&w.route.id in l&&s[w.route.id]?.shouldRevalidate||y.hasClientLoader?p=!0:g.add(w.route.id))}),g.size===0)return[];let v=Ng(t,a,o.unstable_trailingSlashAwareDataRequests,"data");return p&&g.size>0&&v.searchParams.set("_routes",e.filter(w=>g.has(w.route.id)).map(w=>w.route.id).join(",")),[v.pathname+v.search]},[a,o.unstable_trailingSlashAwareDataRequests,l,r,i,u,e,t,s]),h=F.useMemo(()=>jg(d,i),[d,i]),f=Kg(d);return F.createElement(F.Fragment,null,A.map(g=>F.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),h.map(g=>F.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:p})=>F.createElement("link",{key:g,nonce:n.nonce,...p,crossOrigin:p.crossOrigin??n.crossOrigin})))}function Jg(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var Zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zg&&(window.__reactRouterVersion="7.13.1")}catch{}function $g({basename:t,children:e,unstable_useTransitions:n,window:r}){let o=F.useRef();o.current==null&&(o.current=Ip({window:r,v5Compat:!0}));let i=o.current,[s,a]=F.useState({action:i.action,location:i.location}),l=F.useCallback(c=>{n===!1?a(c):F.startTransition(()=>a(c))},[n]);return F.useLayoutEffect(()=>i.listen(l),[i,l]),F.createElement(Dg,{basename:t,children:e,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var Ac=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hc=F.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,unstable_mask:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:A,unstable_defaultShouldRevalidate:h,...f},g){let{basename:p,navigator:v,unstable_useTransitions:w}=F.useContext(ft),y=typeof u=="string"&&Ac.test(u),b=$l(u,p);u=b.to;let E=dg(u,{relative:o}),k=pn(),P=null;if(a){let O=ts(a,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);p!=="/"&&(O.pathname=O.pathname==="/"?p:Mt([p,O.pathname])),P=v.createHref(O)}let[D,I,T]=qg(r,f),M=rm(u,{replace:s,unstable_mask:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:A,unstable_defaultShouldRevalidate:h,unstable_useTransitions:w});function B(O){e&&e(O),O.defaultPrevented||M(O)}let _=!(b.isExternal||i),N=F.createElement("a",{...f,...T,href:(_?P:void 0)||b.absoluteURL||E,onClick:_?B:e,ref:Jg(g,I),target:c,"data-discover":!y&&n==="render"?"true":void 0});return D&&!y?F.createElement(F.Fragment,null,N,F.createElement(Gg,{page:E})):N});hc.displayName="Link";var em=F.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},u){let d=Br(s,{relative:c.relative}),A=pn(),h=F.useContext(ko),{navigator:f,basename:g}=F.useContext(ft),p=h!=null&&lm(d)&&a===!0,v=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,w=A.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(w=w.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&g&&(y=$t(y,g)||y);const b=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let E=w===v||!o&&w.startsWith(v)&&w.charAt(b)==="/",k=y!=null&&(y===v||!o&&y.startsWith(v)&&y.charAt(v.length)==="/"),P={isActive:E,isPending:k,isTransitioning:p},D=E?e:void 0,I;typeof r=="function"?I=r(P):I=[r,E?"active":null,k?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let T=typeof i=="function"?i(P):i;return F.createElement(hc,{...c,"aria-current":D,className:I,ref:u,style:T,to:s,viewTransition:a},typeof l=="function"?l(P):l)});em.displayName="NavLink";var tm=F.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Eo,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:A,...h},f)=>{let{unstable_useTransitions:g}=F.useContext(ft),p=sm(),v=am(a,{relative:c}),w=s.toLowerCase()==="get"?"get":"post",y=typeof a=="string"&&Ac.test(a),b=E=>{if(l&&l(E),E.defaultPrevented)return;E.preventDefault();let k=E.nativeEvent.submitter,P=k?.getAttribute("formmethod")||s,D=()=>p(k||E.currentTarget,{fetcherKey:e,method:P,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:A});g&&n!==!1?F.startTransition(()=>D()):D()};return F.createElement("form",{ref:f,method:w,action:v,onSubmit:r?l:b,...h,"data-discover":!y&&t==="render"?"true":void 0})});tm.displayName="Form";function nm(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fc(t){let e=F.useContext(Jn);return Ce(e,nm(t)),e}function rm(t,{target:e,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Ag(),d=pn(),A=Br(t,{relative:s});return F.useCallback(h=>{if(Og(h,e)){h.preventDefault();let f=n!==void 0?n:Sr(d)===Sr(A),g=()=>u(t,{replace:f,unstable_mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l});c?F.startTransition(()=>g()):g()}},[d,u,A,n,r,o,e,t,i,s,a,l,c])}var om=0,im=()=>`__${String(++om)}__`;function sm(){let{router:t}=fc("useSubmit"),{basename:e}=F.useContext(ft),n=Eg(),r=t.fetch,o=t.navigate;return F.useCallback(async(i,s={})=>{let{action:a,method:l,encType:c,formData:u,body:d}=Qg(i,e);if(s.navigate===!1){let A=s.fetcherKey||im();await r(A,n,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await o(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,e,n])}function am(t,{relative:e}={}){let{basename:n}=F.useContext(ft),r=F.useContext(_t);Ce(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Br(t||".",{relative:e})},s=pn();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let u=a.toString();i.search=u?`?${u}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Mt([n,i.pathname])),Sr(i)}function lm(t,{relative:e}={}){let n=F.useContext(tc);Ce(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fc("useViewTransitionState"),o=Br(t,{relative:e});if(!n.isTransitioning)return!1;let i=$t(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=$t(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xo(o.pathname,s)!=null||xo(o.pathname,i)!=null}const cm=x.lazy(()=>Promise.resolve().then(()=>MS)),um=x.lazy(()=>Promise.resolve().then(()=>zS));function dm({accessId:t,baseUri:e="/resources",isLoggedIn:n,qaBotApiKey:r,showTitle:o=!0,title:i="Resources"}){const[s,a]=x.useState(!1);return m.jsxs(x.Suspense,{fallback:null,children:[m.jsx($g,{children:m.jsx(Bl,{children:m.jsxs(Bg,{children:[m.jsx(ss,{path:e,element:m.jsx(um,{baseUri:e,title:i,setBotOpen:a,showTitle:o})}),m.jsx(ss,{path:`${e}/:infoGroupId`,element:m.jsx(cm,{baseUri:e})})]})})}),m.jsx(Tl,{accessId:t,apiKey:r,embedded:!1,isLoggedIn:n,onOpenChange:a,open:s,welcome:"Welcome to the ACCESS Q&A Bot!"})]})}const Am=({headings:t=[],idPrefix:e="",smoothScroll:n=!0})=>{const[r,o]=x.useState(-1);let i;const s=[];if(t.forEach(a=>{a.tagName=="H1"?i=a:a.tagName=="H2"&&(s.push(a),a.id||(a.id=e+a.textContent.replace(/[^A-Za-z0-9]+/g,"-").toLowerCase()))}),x.useEffect(()=>{s.length&&window.addEventListener("scroll",function(){const a=Ql()+window.innerHeight*.1;let l=-1;s.forEach((c,u)=>{if(c.offsetTop<a)return l=u,!1}),o(l)})},[]),!!s.length)return m.jsxs("div",{className:"toc",children:[i&&m.jsx("h2",{children:i.textContent}),s.length>0&&m.jsx("ul",{children:s.map((a,l)=>m.jsx("li",{children:m.jsx("a",{href:`#${a.id}`,className:l==r?"active":"",onClick:c=>{n&&(c.preventDefault(),window.scrollTo({top:a.offsetTop,behavior:"smooth"}),history.pushState(null,null,`#${a.id}`))},children:a.textContent})}))})]})},en=":host,:root{--contrast: #232323;--contrast-2: #3f3f3f;--contrast-3: #707070;--contrast-6: #999999;--contrast-7: #d9d9d9;--contrast-8: #dfdfdf;--contrast-9: #e5e5e5;--green-400: #288654;--red-400: #a70000;--orange-200: #f6d8ca;--orange-400: #f07537;--teal-050: #ecf9f8;--teal-100: #cee8e9;--teal-200: #b0dadb;--teal-400: #48c0b9;--teal-600: #107180;--teal-700: #1a5b6e;--yellow-200: #fce5ab;--yellow-400: #ffc42d;--color: white;--padding: 30px;--offset: 0px;--outline: white;color:var(--contrast)}:host,:host button,:root,:root button{font-family:Archivo,sans-serif}.container{margin:0 auto;padding:0 var(--padding);width:var(--width)}.visually-hidden{border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}@media(min-width:600px){:host,:root{--padding: calc((100% - var(--width)) / 2);--offset: 7px;--width: 540px}}@media(min-width:768px){:host,:root{--width: 712px}}@media(min-width:900px){:host,:root{--width: 840px}}@media(min-width:1024px){:host,:root{--width: 940px}}@media(min-width:1280px){:host,:root{--padding: 10px;--offset: 0px;--width: 1180px}}",hm='ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:.875rem;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}',fm=`:root{color:#232323;font-family:Archivo,sans-serif;font-size:16px}h1{font-size:2.25rem;font-stretch:70%;font-weight:500;margin-top:60px}h2{font-size:1.375rem;font-weight:800;margin-top:36px}h3{color:var(--teal-700);font-size:1.125rem;font-weight:800}a{color:var(--contrast);font-weight:800;text-decoration:underline}a:active,a:focus,a:hover{color:var(--teal-600);text-decoration:none}ol,p,ul{font-size:1.125rem;line-height:1.875rem;margin:0 0 1.25rem}li{margin-bottom:.5rem}.btn{background-color:var(--teal-700);border:4px solid var(--teal-700);color:#fff;display:inline-block;font-family:Archivo,sans-serif;font-size:1rem;font-weight:600;line-height:24px;padding:6px 12px;text-decoration:none;text-transform:uppercase}.secondary{background-color:var(--yellow-400);border-color:var(--yellow-400);color:var(--contrast)}.danger{background-color:var(--red-400);border-color:var(--red-400)}.lg{font-size:1.25rem;line-height:30px;padding:8px 16px}.btn.active,.btn:active,.btn:focus,.btn:hover{background-color:#fff;border-color:var(--contrast);color:var(--contrast);cursor:pointer}.btn-clear,.btn-clear.active,.btn-clear:active,.btn-clear:focus,.btn-clear:hover{background-color:transparent;border-color:transparent;color:var(--contrast)}.btn:disabled{background-color:var(--contrast-8);border-color:var(--contrast-8);color:var(--contrast-3)}.btn .bi{vertical-align:middle}.btn+.btn{margin-left:10px}.table{border-top:1px solid var(--contrast);border-collapse:collapse;width:100%}.table td,.table th{border-bottom:1px solid var(--contrast);padding:16px}.table thead th{text-align:left}.table tbody th{text-align:right}input,select{border:1px solid var(--contrast-8);border-radius:0;color:var(--contrast);font-size:1rem;padding:6px 12px}select{appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");background-position:right 12px center;background-repeat:no-repeat;padding:6px 36px 6px 12px}.intro{font-size:1.5rem}`,pm=`:host{background-color:#fbfbfb}.container{color:var(--contrast)}a{color:var(--teal-600);font-weight:800;text-decoration:none}a:active,a:focus,a:hover{text-decoration:underline}.about{padding-top:25px}.awards{font-size:.9375rem;line-height:21px;margin:0 0 20px}.disclaimer{font-size:.75rem;line-height:18px;margin:0 0 15px}.contact{font-size:1rem;font-stretch:70%;text-transform:uppercase}.social{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;list-style-type:none;margin:0;padding:20px 0 10px}.social li{margin:0 35px 0 0;padding:0}.social li:last-child{margin:-10px}.social a{background-size:contain;background-repeat:no-repeat;display:block;height:25px;text-indent:-999999px;width:25px}.bluesky{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' class='bi bi-bluesky' viewBox='0 0 16 16'><path d='M3.468 1.948C5.303 3.325 7.276 6.118 8 7.616c.725-1.498 2.698-4.29 4.532-5.668C13.855.955 16 .186 16 2.632c0 .489-.28 4.105-.444 4.692-.572 2.04-2.653 2.561-4.504 2.246 3.236.551 4.06 2.375 2.281 4.2-3.376 3.464-4.852-.87-5.23-1.98-.07-.204-.103-.3-.103-.218 0-.081-.033.014-.102.218-.379 1.11-1.855 5.444-5.231 1.98-1.778-1.825-.955-3.65 2.28-4.2-1.85.315-3.932-.205-4.503-2.246C.28 6.737 0 3.12 0 2.632 0 .186 2.145.955 3.468 1.948'/></svg>")}.youtube{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z'/></svg>")}.facebook{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951'/></svg>")}a.linkedin{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z'/></svg>")}.lower{border-top:1px solid var(--contrast-9);padding:10px 0 60px}.links{display:flex;flex-direction:row;flex-wrap:wrap;list-style-type:none;margin:20px 0 0;padding:0}.links li{padding:0 20px 10px 0}.links li:last-child{padding-right:0}.links a{font-size:.75rem;font-weight:600}.scroll-to-top{background-color:#00000080;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' stroke='white' stroke-width='1' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z'/></svg>");background-position:center;background-repeat:no-repeat;background-size:13px;border:0 none transparent;bottom:30px;cursor:pointer;display:block;height:40px;opacity:0;position:fixed;right:30px;text-indent:-999999px;transition:opacity .25s ease-out;width:40px;z-index:100}.scroll-to-top.visible{opacity:1}.personas{box-sizing:border-box;font-size:.9375rem;padding:20px 0}.personas p{margin:0}.personas ul{list-style-type:none;margin:5px 0;padding:0}.personas li{padding:3px 0}@media(min-width:1024px){.lower{align-items:start;display:flex;flex-direction:row;justify-content:space-between}.links{margin-top:0}}@media(min-width:900px){.upper{display:flex;flex-direction:row;justify-content:space-between}.upper>*{width:calc((var(--width) - 20px) / 2)}.about{padding:40px 0 30px}.awards{font-size:1.125rem;line-height:24px}.personas{font-size:1.125rem;padding:40px calc(((var(--width) - 140px) / 8) + 20px) 30px}}`,gm=".container{box-sizing:content-box;height:84px;padding-top:20px}@media(min-width:900px){.container{height:144px;padding-top:52px}}",pc=`.logo{align-items:start;display:flex;flex-direction:row}.nsf-logo{height:49px}.access-logo{height:23px;margin-top:12px}.access,.nsf{display:block;text-decoration:none}.divider{border-right:2px solid #bbbbbb;height:40px;margin:4px 15px 0 12px;width:0}.name{color:var(--teal-700);display:block;font-size:1.09375rem;font-stretch:80%;font-weight:200;line-height:1;margin:3px 0 0;text-align:right}.name:before{content:"";display:inline-block;height:0;margin:0 5px 0 0;width:0}.name-allocations:before{border-bottom:12px solid var(--orange-400);border-left:12px solid transparent}.name-coordination-office:before{background-color:var(--teal-400);border-radius:6px;height:12px;margin:0 6px 0 0;width:12px}.name-metrics:before{background-image:url("data:image/svg+xml;utf8,<svg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg' width='12'><circle cx='12' cy='0' r='12' fill='%23008496' /></svg>");background-size:cover;height:12px;margin:0 2px 0 0;width:12px}.name-operations:before{border-top:12px solid var(--yellow-400);border-right:12px solid transparent}.name-support:before{background-color:var(--teal-700);height:12px;margin:0 6px 0 0;width:12px}.logo-footer .nsf-logo{height:40px}.logo-footer .divider{height:34px;margin:3px 11px 0 9px}.logo-footer .access-logo{margin-top:10px;height:21px;width:auto}@media(min-width:900px){.nsf-logo{height:82px}.divider{height:70px;margin:6px 23px 0 20px}.access-logo{height:auto;margin-top:22px;width:253px}.name{font-size:1.875rem}.name-allocations:before{border-bottom:20px solid var(--orange-400);border-left:20px solid transparent}.name-metrics:before{height:20px;margin:0 4px 0 0;width:20px}.name-operations:before{border-top:20px solid var(--yellow-400);border-right:20px solid transparent}.name-coordination-office:before{border-radius:9.5px;height:19px;width:19px}.name-support:before{height:19px;margin:0 7px 0 0;width:19px}}`,ds=`.menu{--icon-caret-down-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-teal: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23107180' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>")}.universal{--background: var(--teal-700);--border: rgba(19, 133, 151, .35)}.site{--background: var(--teal-600);--border: #157688}.site ul ul{--border: rgba(19, 133, 151, .35)}.menu ul,.menu li{list-style-type:none;margin:0;padding:0}.menu a{text-decoration:none}.item{background:transparent;border:0 none transparent;border-radius:0;box-sizing:border-box;cursor:pointer;display:block;text-align:left;width:100%}.item{font-size:.875rem;font-weight:600;line-height:21px;padding:13.5px var(--padding) 13.5px}.menu>ul>li>.item{font-weight:800}.item,.menu li:last-child li:last-child>.item{border-bottom:1px solid var(--border)}.menu li.highlight button.item,.menu li:last-child>.item,.menu>.collapsed{border-bottom:0 none transparent}.expanded{border-bottom-width:2px}.menu button.item{position:relative}.menu>button.item{font-weight:500;padding:13.5px var(--padding) 13.5px;text-transform:uppercase}.menu button.item:after{background-image:var(--icon-caret-down-light);background-repeat:no-repeat;background-size:18px;content:"";display:block;height:18px;right:calc(var(--padding) + var(--offset));position:absolute;top:15px;width:18px}.menu button.item.expanded:after{transform:rotate(180deg)}.menu .highlight button.item:after{background-image:var(--icon-caret-down-dark)}.menu button.item,.menu ul li{background-color:var(--background)}.menu button.item,.menu ul li a{color:var(--color)}.menu ul li li{background-color:#fff}.menu ul li li a{color:#138597}.icon>.item{background-position:calc(var(--padding) + var(--offset)) center;background-repeat:no-repeat;background-size:14px 14px;text-indent:-99999px}.icon-home>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5'/></svg>")}.icon-search>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>")}.track .item{text-transform:uppercase;padding-top:4px;padding-bottom:4px}.track:first-child .item{padding-top:17px}.track.grow .item{padding-bottom:21px}.track .item{border-bottom:0 none transparent}.highlight button.item{background-color:var(--yellow-400);color:var(--contrast)}.footer{background-color:var(--teal-700);padding:50px var(--padding) 36px;color:#fff}.footer h2{font-size:.875rem;font-weight:600;margin:0 auto 20px;text-transform:uppercase;width:var(--width)}.columns{margin:0 auto;width:var(--width)}.column{padding-bottom:14px}.footer a,.footer a:visited{color:#fff;text-decoration:none}.footer a:active,.footer a:focus,.footer a:hover{color:var(--teal-100);text-decoration:underline}.footer h3{font-size:.875rem;font-weight:800;margin:0}.footer ul{margin:0;padding:0}.footer li{font-size:.875rem;font-weight:600;list-style-type:none;padding:14px 0 0}@media(min-width:768px){.columns{display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 0}.column{padding-bottom:40px;padding-right:20px;width:calc((var(--width) - 60px) / 4)}.column:nth-child(4),.column:last-child{padding-right:0}}@media(min-width:1280px){.site{--background: white;--color: var(--teal-600);--outline: var(--teal-700);--padding: 20px;border-bottom:1px solid #d9d9d9;border-top:3px solid var(--teal-700)}.site>ul{justify-content:end}.menu>button.item{display:none}.menu>ul{display:flex;flex-direction:row;margin:0 auto;width:calc(var(--width) + (2 * var(--padding)))}.item,.track .item,.track:first-child .item,.track.grow .item{border-bottom:0 none transparent;padding-top:12px;padding-bottom:12px}.site .item{font-size:1rem}.grow{flex:1 0 auto}.universal{background-color:var(--teal-700)}.universal>ul>li:first-child{margin-left:-10px}.universal>ul>li:last-child{margin-right:-10px}.universal li button.item{--padding: 20px}.icon>.item{background-position:center center;width:56px}.menu button.item:after,.menu button.item.expanded:after,.menu .highlight button.item:after,.menu .highlight button.item.expanded:after{display:inline-block;margin-left:5px;position:static;vertical-align:middle}.menu button.item:after{background-image:var(--icon-caret-down-teal)}.universal button.item:after{background-image:var(--icon-caret-down-light)}.menu button.item.expanded:after,.menu button.item.item:active:after,.menu button.item.item:focus:after,.menu button.item.item:hover:after{background-image:var(--icon-caret-down-light)}.menu>ul>li{display:flex;flex-direction:row;justify-content:start;position:relative}.menu>ul>li.grow>.item{flex:0 1 0}.menu>ul>li.active>.item,.menu>ul>li>.expanded,.menu>ul>li>.item:active,.menu>ul>li>.item:focus,.menu>ul>li>.item:hover{background-color:var(--teal-600);color:#fff;outline:0 none transparent}.menu>ul>li>.item:focus-visible{outline:3px solid var(--outline);outline-offset:-3px;z-index:1000}.menu>ul ul{background-color:var(--teal-600);padding:10px 0;position:absolute;right:0;top:48px;z-index:9999}.menu>ul ul li{background-color:var(--teal-600)}.menu>ul ul .item{color:#fff;white-space:nowrap;padding:5px 20px}.menu>ul ul .item:active,.menu>ul ul .item:focus,.menu>ul ul .item:hover{color:#cee8e9;outline:0 none transparent;text-decoration:underline}.menu>ul ul .item:focus-visible{outline:3px solid white;outline-offset:-3px;z-index:1000}.menu>ul>li>.item{line-height:24px}}@media(min-width:1280px){.columns{flex-wrap:nowrap;padding:10px 0 0}.column{padding-bottom:72px;width:calc((var(--width) - 120px) / 7)}.column:nth-child(4){padding-right:20px}}`,mm='@import"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css";.glide{position:relative;width:100%;box-sizing:border-box}.glide *{box-sizing:inherit}.glide__track{overflow:hidden}.glide__slides{position:relative;width:100%;list-style:none;backface-visibility:hidden;transform-style:preserve-3d;touch-action:pan-Y;overflow:hidden;margin:0;padding:0;white-space:nowrap;display:flex;flex-wrap:nowrap;will-change:transform}.glide__slides--dragging{-webkit-user-select:none;user-select:none}.glide__slide{width:100%;height:100%;flex-shrink:0;white-space:normal;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.glide__slide a{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.glide__arrows,.glide__bullets{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.glide--rtl{direction:rtl}.glide__arrow{position:absolute;display:block;top:50%;z-index:2;color:#fff;text-transform:uppercase;padding:9px 12px;background-color:transparent;border:2px solid rgba(255,255,255,.5);border-radius:4px;box-shadow:0 .25em .5em #0000001a;text-shadow:0 .25em .5em rgba(0,0,0,.1);opacity:1;cursor:pointer;transition:opacity .15s ease,border .3s ease-in-out;transform:translateY(-50%);line-height:1}.glide__arrow:focus{outline:none}.glide__arrow:hover{border-color:#fff}.glide__arrow--left{left:2em}.glide__arrow--right{right:2em}.glide__arrow--disabled{opacity:.33}.glide__bullets{position:absolute;z-index:2;bottom:2em;left:50%;display:inline-flex;list-style:none;transform:translate(-50%)}.glide__bullet{background-color:#ffffff80;width:9px;height:9px;padding:0;border-radius:50%;border:2px solid transparent;transition:all .3s ease-in-out;cursor:pointer;line-height:0;box-shadow:0 .25em .5em #0000001a;margin:0 .25em}.glide__bullet:focus{outline:none}.glide__bullet:hover,.glide__bullet:focus{border:2px solid #fff;background-color:#ffffff80}.glide__bullet--active{background-color:#fff}.glide--swipeable{cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.glide--dragging{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.accordion{margin:0 0 16px}.accordion-heading{margin:0}.accordion-heading button{background-color:var(--teal-050);border:0 none transparent;color:var(--teal-700);cursor:pointer;display:block;font-size:1rem;font-weight:800;padding:16px 40px 16px 20px;position:relative;text-align:left;width:100%}.accordion-heading button .icon{position:absolute;right:20px;top:16px}.accordion-content{padding:16px 20px 0}.alert{align-items:center;background-color:var(--yellow-200);border-radius:10px;display:flex;flex-direction:row;margin-bottom:20px;padding:20px}.alert i{margin-right:20px}ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:.875rem;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}.carousel{margin-bottom:1rem;width:var(--width)}.slide-inner{background-color:var(--contrast-9);display:flex;flex-direction:column}.slide-image img{display:block;width:100%}.slide-text{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:20px}.slide-text h2{font-size:1rem;line-height:1.1;margin:0 0 .25rem}.slide-text a{font-size:.875rem;line-height:1.1}.slide-text p{font-size:.875rem;line-height:1.2;margin-bottom:.5rem}.glide__arrow{align-items:center;background-color:var(--contrast-3);border:0 none transparent;border-radius:15px;display:flex;justify-content:center;height:30px;padding:8px;width:30px}.glide__arrow:active,.glide__arrow:hover{background-color:var(--teal-700)}.glide__arrow svg{fill:#fff}.glide__arrow--left{margin-left:-66px}.glide__arrow--right{margin-right:-66px}@media(min-width:768px){.slide-inner{flex-direction:row}.slide-image img{width:calc((var(--width) - 20px) / 2)}}@media(min-width:1024px){.slide-image img{width:calc((var(--width) - 40px) / 3)}}@media(min-width:1280px){.slide-text h2{font-size:1.125rem}.slide-text a{font-size:1rem}.slide-text p{font-size:1rem;line-height:1.2;margin-bottom:.5rem}}.highlight{background-color:var(--yellow-200);padding:2px 0}.header-components{margin-bottom:2rem}.button-group .btn{display:block;margin:0 0 10px}.card{border:5px solid var(--contrast);padding:20px}@media(min-width:768px){.flex-header{align-items:center;display:flex;justify-content:space-between}.header-components{margin-bottom:0}.button-group{display:flex}.button-group .btn{display:flex;margin:0 10px 0 0}}@media(min-width:1024px){.cards{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.card{flex:1 0 20%;margin:0}}.donut-chart svg path{cursor:pointer}.donut-chart .center-text{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;line-height:1.2}.donut-chart .center-text *{cursor:default;display:block;margin-bottom:.25rem;text-align:center}.donut-chart .center-text .percent{color:var(--contrast-2);font-size:.7rem}.donut-chart .top-items{list-style-type:none;margin:0;padding:0}.donut-chart .top-items li{align-items:center;display:flex;flex-direction:row;font-size:1rem;line-height:1.2;margin-bottom:5px}.donut-chart .symbol{border-radius:8px;display:inline-block;height:16px;margin-right:5px;vertical-align:text-top;width:16px}.expand-text{margin-bottom:1rem;position:relative}.expand-text.contracted{max-height:5.3rem;overflow:hidden}.expand-text button{background-color:#fff;border:0 none transparent;color:var(--teal-700);cursor:pointer;font-size:1rem;font-weight:700}.expand-text.contracted button{background:linear-gradient(to right,#fff0,#fff 50% 100%);position:absolute;right:0;text-align:right;bottom:0;width:12rem}.grid{border-top:1px solid var(--contrast);max-width:100%;margin-bottom:1rem;overflow:scroll;position:relative}.grid table{border-collapse:separate;border-spacing:0;border-top:0 none transparent;margin-bottom:0;position:relative}.grid th{position:sticky;top:0;z-index:10}.grid th,.grid td{background-color:#fff}.grid th:last-child,.grid td:last-child{border-right:0 none transparent}.grid th.important,.grid td.important{background-color:#f8f9fa}.grid th.input,.grid td.input{background-color:var(--teal-200)}.grid .edited td,.grid .edited select{background-color:#faf1d7}.grid .edited td.important,.grid .edited select.important{background-color:#fbeeca}.grid .disabled td,.grid .disabled select{background-color:#ddd}.grid .disabled td.important,.grid .disabled select.important{background-color:#ccc}.grid tbody tr:last-child th,.grid tbody tr:last-child td{border-bottom:0 none transparent}.icon{height:1em;margin-right:5px;vertical-align:text-bottom}.info-tip{background-color:transparent;border:0 none transparent}.tippy-box[data-theme~=access]{background-color:var(--teal-700);border-radius:0;color:#fff;font-weight:400;padding:5px}.tippy-box[data-theme~=access][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--teal-700)}.mini-bar{flex:0 0 auto;position:relative;width:100px}.mini-bar .bar{background-color:#ddd;height:1em}.filters-outer{float:right;position:relative}.filters-inner{background-color:#fff;border:4px solid var(--contrast);padding:20px;position:absolute;right:0;top:41px;width:calc(var(--width) * .4)}.filters-inner h2{font-size:1rem;margin:0 0 1rem}.filters-inner ul.tags{margin-bottom:1rem}.btn-filters{position:relative}.btn-filters .active-tag-count{background-color:var(--orange-400);border-radius:10px;color:#fff;display:block;font-size:.75rem;height:20px;line-height:20px;top:-10px;position:absolute;text-align:center;right:-10px;width:20px}.btn-filters.active{z-index:100}.btn-filters.active:after{background-color:#fff;bottom:-4px;content:"";display:block;height:4px;left:0;position:absolute;width:100%}.event:not(:last-child){margin-bottom:1.5rem}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{align-items:center;background-color:var(--teal-700);color:#fff;display:none;flex:0 0 auto;flex-direction:column;font-weight:800;justify-content:center;height:calc((var(--width) - 140px) / 8);text-decoration:none;width:calc((var(--width) - 140px) / 8)}.event-icon span{display:block}.event-icon span:nth-child(2){font-size:2rem}.event-metadata{margin-bottom:1rem}.event-metadata i:not(:first-child){margin-left:1rem}@media(min-width:768px){.event{display:flex;flex-direction:row}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{display:flex;margin-right:20px}.event h3{margin-top:0}}@media(min-width:900px){.event-icon span:nth-child(2){font-size:3rem}}.carousel-projects .glide__slide{font-size:1rem}.carousel-projects h3{margin:0 0 .25rem}.carousel-projects .project-metadata{margin-bottom:.5rem}.carousel-projects .project-meta{display:inline-block;font-weight:700;line-height:1.1;margin-right:1rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.carousel-projects .project-meta .bi{vertical-align:middle}.metrics-overview strong{background-color:var(--yellow-200);font-size:1.2rem;padding:2px;white-space:nowrap}.metrics-overview .bi{vertical-align:middle}.metrics-overview .btn{font-size:1rem}.metrics-disclaimer{font-size:.9rem;line-height:1.2;margin:.5rem 0}.metrics-disclaimer .bi{vertical-align:middle}.resource-group{align-items:flex-start;clear:both;display:flex;flex-direction:column;margin-bottom:20px}.resource-group-image{--image-width: 100%;align-items:center;background-color:var(--contrast-9);border:1px solid var(--contrast);color:var(--contrast-8);display:flex;flex:0 0 auto;flex-direction:column;font-size:5rem;justify-content:center;margin:20px 0;min-height:calc(var(--image-width) / 3 * 2);position:relative;width:var(--image-width)}.resource-group-image:active,.resource-group-image:focus,.resource-group-image:hover{color:var(--contrast-8)}.resource-group-image>img{display:block;width:100%}.image-type-logo{display:flex;flex-direction:column;justify-content:center;min-height:120px}.image-type-logo>*{margin:10px;width:calc(100% - 20px)}.resource-group-text *:first-child{margin-top:0}.resource-group-detail{margin-bottom:70px;width:var(--width)}.resource-group-feature-image{margin-top:60px;width:100%}.resource-group-description:after{clear:both;content:"";display:block}@media(min-width:768px){.resource-group{flex-direction:row;margin-bottom:40px}.resource-group-image{--image-width: calc((var(--width) - 140px) / 4 + 20px);margin:0 20px 0 0}}@media(min-width:900px){.resource-group-feature-image{float:right;margin:0 0 0 20px;width:calc(((var(--width) - 140px) / 8) * 3 + 40px)}}#resource-navigation{display:flex;flex-direction:column;gap:10px}@media(min-width:1024px){#resource-navigation{flex-direction:row;gap:20px}}#resource-news{background-color:var(--teal-100);padding:20px}#resource-news h2{font-size:1.2rem;font-weight:200;margin:0 0 .5rem}#resource-news ul{list-style-type:none;margin:0;padding:0}#resource-news li{font-size:1rem;line-height:1.3;margin:0 0 .5rem;padding:0}@media(min-width:1024px){#resource-news{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}}ul.resource-pathways{display:flex;flex-direction:column;gap:10px;list-style-type:none;margin:0;padding:0;width:100%}ul.resource-pathways li{margin:0;width:100%}ul.resource-pathways li a{align-items:flex-start;border:5px solid transparent;box-sizing:border-box;display:flex;height:100%;flex-direction:row;justify-content:flex-start;line-height:1.3;padding:20px;text-decoration:none}ul.resource-pathways a>.bi{font-size:2rem;margin-bottom:1rem}ul.resource-pathways li a>.detail{display:flex;flex-direction:column;margin-left:20px}ul.resource-pathways .title{font-size:1.2rem}ul.resource-pathways .description{font-size:1rem;font-weight:400}ul.resource-pathways .login{font-size:.9rem;font-style:italic;font-weight:400;margin-top:.25rem}ul.resource-pathways .login .bi{vertical-align:middle}.resource-pathway-0{background-color:var(--yellow-400)}.resource-pathway-1{background-color:var(--teal-600)}.resource-pathway-1 a{color:#fff}.resource-pathway-2{background-color:var(--orange-400)}.resource-pathway-3{background-color:var(--teal-200)}ul.resource-pathways li a:active,ul.resource-pathways li a:focus,ul.resource-pathways li a:hover{background-color:#fff;border:5px solid var(--contrast);color:var(--contrast)}@media(min-width:1024px){ul.resource-pathways{flex-direction:row;gap:20px}ul.resource-pathways li{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}ul.resource-pathways li a{flex-direction:column}ul.resource-pathways li a>.detail{margin-left:0}}.scroll-text{position:relative}.scroll-text:after{background-color:red;background:linear-gradient(to bottom,#fff0,#fff 50% 100%);bottom:0;content:"";display:block;height:2rem;left:0;position:absolute;width:100%;z-index:99999}.scroll-text-inner{padding-bottom:2rem;overflow-y:scroll}.search{position:relative}.search input{padding-right:35px}.search .btn-clear{position:absolute;right:-5px;top:-6px}.section-navigation{border-bottom:1px solid var(--contrast-8);border-top:1px solid var(--contrast-8);display:flex;flex-direction:row;margin:20px 0}.section-navigation h2{flex:0 0 auto;font-size:1rem;font-weight:400;margin:20px 0}.section-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;padding:10px 0}.section-navigation li{line-height:1;list-style-type:none;flex:0 0 auto;font-size:1rem;margin:10px 0 10px 20px;padding:0}ul.tags{margin:0;padding:0}li.tag{display:inline-block;list-style-type:none;margin:0 5px 5px 0;max-width:100%}.tag button{background-color:var(--teal-100);border:1px solid var(--teal-400);border-radius:8px;color:var(--contrast);cursor:pointer;display:inline-block;font-size:1rem;font-weight:500;line-height:18px;max-width:100%;overflow:hidden;padding:3px 7px;text-align:left;text-decoration:none;text-overflow:ellipsis;text-wrap:nowrap}.tag button:hover{background-color:var(--teal-200);color:var(--contrast)}.tag button:disabled{background-color:var(--contrast-9);border-color:var(--contrast-6);color:var(--contrast-3)}.tag.active button{border-color:var(--orange-400);background-color:var(--orange-200)}',bm=".toc{background-color:var(--teal-600);color:#fff;padding:20px;position:sticky;top:50px}h2{font-size:1rem;font-weight:800;margin:0 0 16px}ul{margin:0;padding:0 0 0 20px}li{line-height:1.125;list-style-type:none;margin:0;padding:9px 0}a{color:#fff;font-size:1rem;font-weight:600;text-decoration:underline;text-decoration-color:transparent}a :active,a:focus,a:hover{color:var(--teal-100);text-decoration-color:var(--teal-100)}@media(min-width:768px){a.active{color:var(--teal-100)}}@media(min-width:900px){.toc{padding:32px}}",gc='.rcb-chat-header-container{padding:12px;color:#fff;border-bottom:1px solid #ccc;display:flex;justify-content:space-between;max-height:55px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;width:30px;height:30px;border-radius:50%;margin-right:12px}.rcb-message-prompt-container.visible{position:sticky;bottom:0;margin:auto;display:flex;align-items:center;justify-content:center;opacity:1;animation:rcb-animation-pop-in .3s ease-in-out;pointer-events:auto}.rcb-message-prompt-container.hidden{opacity:0;height:0px;visibility:hidden;pointer-events:none}.rcb-message-prompt-text{padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border:.5px solid #adadad;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:right;margin-right:16px}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-user-avatar{margin-left:-10px;margin-right:6px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:left;margin-left:16px}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-bot-avatar{margin-left:6px;margin-right:-10px}.rcb-typing-indicator{display:flex;align-items:center}.rcb-dot{width:8px;height:8px;border-radius:50%;background-color:#ccc;margin-right:4px;animation:rcb-animation-bot-typing 1s infinite}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{position:relative;height:100%;width:100%;padding-bottom:16px;overflow-x:hidden;overflow-y:scroll;touch-action:pan-y}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;padding-top:12px;margin-left:16px;flex-wrap:wrap;gap:10px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{display:flex;align-items:center;gap:5px;border-width:.5px;border-style:solid;border-radius:10px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out;overflow:hidden}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{display:inline-flex;margin-left:10px;align-items:center;cursor:pointer}.rcb-checkbox-mark{width:20px;height:20px;background-color:#f2f2f2;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;transition:all .3s ease;margin-right:10px;cursor:pointer}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{text-align:center;display:inline-block;align-items:center;border-width:.5px;border-style:solid;border-radius:10px;font-size:24px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{padding-top:12px;margin-left:16px;max-width:70%;display:flex;flex-wrap:wrap;gap:10px}.rcb-options-offset{margin-left:50px!important}.rcb-options{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:20px;font-size:14px;border-width:.5px;border-style:solid;cursor:pointer;transition:background-color .3s ease;animation:rcb-animation-options-entry .5s ease-out;overflow:hidden}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;max-height:45px}.rcb-line-break-text{padding:6px 12px;color:#adadad;font-size:12px}.rcb-spinner-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-spinner{width:22px;height:22px;border-radius:50%;border:4px solid #f3f3f3;animation:rcb-animation-spin 1s linear infinite}.rcb-chat-input{padding:8px 16px;border-top:1px solid #ccc;display:flex;align-items:center;background-color:#fff}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{flex:1;padding:8px;border:none;border-radius:4px;outline:none;font-size:16px;resize:none;height:auto;min-height:38px;overflow-y:scroll;font-family:inherit;background-color:#fff;color:#000;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:transparent}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{padding:12px 16px 8px 10px;border-top:1px solid #ccc;max-height:55px;display:flex;justify-content:space-between;align-items:flex-end;font-size:12px;background-color:#f2f2f2;color:#000}.rcb-chat-footer{display:flex;flex-direction:row}.rcb-toggle-button{display:flex;flex-direction:row;position:fixed;bottom:20px;right:20px;z-index:9999;width:75px;height:75px;border-radius:50%;border:none;cursor:pointer;box-shadow:0 2px 4px #0003}.rcb-toggle-button.rcb-button-hide{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}.rcb-toggle-button.rcb-button-show{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-toggle-icon{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat;margin:auto;border-radius:inherit}.rcb-badge{position:absolute;top:-6px;right:-6px;border-radius:50%;background-color:red;color:#fff;height:25px;width:25px;display:flex;justify-content:center;align-items:center}.rcb-chat-tooltip{position:fixed;padding:16px;border-radius:20px;box-shadow:0 2px 6px #0003;white-space:nowrap;cursor:pointer;font-size:20px;transition:transform .3s ease;z-index:9999}.rcb-chat-tooltip-tail{content:"";position:absolute;top:50%;right:-10px;margin-top:-10px;border-width:10px 0 10px 10px;border-style:solid}.rcb-chat-tooltip.rcb-tooltip-hide{opacity:0;visibility:hidden;animation:rcb-animation-tooltip-out .5s ease-in-out}.rcb-chat-tooltip.rcb-tooltip-show{opacity:1;visibility:visible;animation:rcb-animation-tooltip-in .5s ease-in-out}.rcb-toast-prompt{padding:6px 12px;border-radius:5px;color:#7a7a7a;font-size:12px;text-align:center;background-color:#fff;border:.5px solid #7a7a7a;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999;width:100%;margin-top:6px;animation:rcb-animation-pop-in .3s ease-in-out}.rcb-toast-prompt-container{position:absolute;left:50%;transform:translate(-50%);bottom:0;margin:auto;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;opacity:1;animation:popIn .3s ease-in-out;pointer-events:auto;margin-top:200}.rcb-media-display-image-container,.rcb-media-display-video-container{margin-top:8px;margin-right:16px;border-radius:22px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{width:100%;height:auto;border-radius:22px;object-fit:cover}.rcb-media-display-video{width:100%;height:auto;border-radius:22px;background-color:#000}.rcb-media-display-audio{margin-top:8px;margin-right:16px;width:100%;height:auto;border-radius:22px}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-enabled,.rcb-attach-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center}.rcb-attach-button-enabled input[type=file],.rcb-attach-button-disabled input[type=file]{position:absolute;width:100%;height:100%;display:none}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-attach-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-attach-icon-enabled,.rcb-attach-icon-disabled{display:inline-block;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat;background-size:cover;transition:background-image .3s ease}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-enabled,.rcb-emoji-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center;cursor:pointer}.rcb-emoji-icon-enabled,.rcb-emoji-icon-disabled{position:relative;display:inline-block;background-size:cover;font-size:20px;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-emoji-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-emoji-button-popup{position:absolute;width:158px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:8px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;transform:translateY(calc(-100% - 30px))}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-audio-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-audio-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-close-chat-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;margin-left:5px;cursor:pointer}.rcb-close-chat-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-close-chat-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-notification-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-notification-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-notification-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-voice-button-enabled,.rcb-voice-button-disabled{display:inline-flex;align-items:center;justify-content:center;text-transform:uppercase;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;height:32px;width:32px;margin-left:8px;transition:all .3s ease;background-color:#fff}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid rgb(61,0,0)}.rcb-voice-button-disabled{border:1px;border-style:solid;border-color:#0003}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{width:60%;height:60%;background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{display:inline-flex;justify-content:center;text-transform:uppercase;border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;transition:background-color .3s ease;height:32px;width:51px;margin-left:8px}.rcb-send-icon{width:50%;height:50%;transform:translateY(20%);background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-view-history-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-view-history-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border-color:#adadad;border-width:.5px;border-style:solid;max-width:60%;cursor:pointer;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{position:fixed;right:20px;bottom:20px;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#fff;transition:all .3s ease;overflow:hidden;display:flex;flex-direction:column;width:375px;height:550px}.rcb-window-embedded .rcb-chat-window{position:relative;opacity:1;visibility:visible;right:auto;bottom:auto}.rcb-window-open .rcb-chat-window{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-window-close .rcb-chat-window{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}@keyframes rcb-animation-expand{0%{transform:translate(100%,100%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-collapse{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(100%,100%) scale(0);opacity:0}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{transform:translate(-100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-user-message-entry{0%{transform:translate(100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.1);opacity:1}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes rcb-animation-options-entry{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'+".rcb-chat-notification-badge,.rcb-notification-badge{display:none!important}.rcb-chat-window .rcb-bot-avatar{background-size:contain;border-radius:0;background-position:center;background-repeat:no-repeat}.rcb-toggle-icon{background-size:62%!important;background-position:calc(50% - 1px) calc(50% + 2px);background-repeat:no-repeat;background-color:transparent!important}.rcb-chat-button-icon{background-size:contain;background-position:center;background-repeat:no-repeat}.rcb-chat-window{width:550px!important;height:800px!important;max-height:80vh!important;max-width:100%}.rcb-chat-window .rcb-chat-header{display:flex;flex-direction:row;align-items:center;font-weight:700}.rcb-chat-footer-container{align-items:center!important;font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}@media(max-width:768px){.rcb-chat-window{width:550px!important;max-width:calc(100vw - 40px)!important;max-height:calc(100vh - 100px)!important}}@media(max-width:480px){.rcb-chat-window{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 80px)!important;left:10px!important;right:10px!important;bottom:10px!important}.rcb-chat-footer-container{font-size:9px!important}}.rcb-options-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:16px;padding:0}.rcb-options{border:1px solid #d0d0d0;background-color:#fff;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .2s ease;text-align:center;font-size:14px;font-weight:400;color:#107180;width:auto;flex:0 0 auto;box-sizing:border-box}.rcb-options:hover{background-color:#e8f4f8;border-color:#107180;transform:translateY(-1px);box-shadow:0 2px 4px #10718033}.rcb-options:active{background-color:#107180;border-color:#107180;color:#fff;transform:translateY(0)}.rcb-chat-header-container{font-size:14px}.rcb-options{border:1px solid #d0d0d0!important}.rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}"+".rcb-chat-header-container span{font-size:1rem!important;font-weight:600!important}",vm=({children:t})=>{const e=x.useRef(null),[n,r]=x.useState(null);return x.useEffect(()=>{if(e.current&&!n&&!e.current.shadowRoot){const o=e.current.attachShadow({mode:"open"}),i=document.createElement("div");o.appendChild(i),r(i)}},[n]),m.jsx("div",{ref:e,children:n?lp.createPortal(t,n):null})},tn=(t,e)=>n=>m.jsxs(vm,{children:[m.jsx(t,{...n}),e.map(r=>m.jsx("style",{children:r},r))]}),mc=tn(qi,[en,hm]),bc=tn(Sp,[en,pm,pc]),vc=tn(Dp,[en,ds]),yc=tn(Pp,[en,pc,gm]),wc=tn(Tl,[en,gc]),xc=tn(dm,[en,fm,mm,gc]),kc=tn(Tp,[en,ds]),Ec=tn(Am,[en,bm]),Cc=tn(Bp,[en,ds]),nn=t=>(e={})=>cp.createRoot(e.target).render(m.jsx(x.StrictMode,{children:m.jsx(t,{...e})})),ym=nn(mc),wm=nn(bc),xm=nn(vc),km=nn(yc),Em=nn(wc),Cm=nn(xc),Sm=nn(kc),Pm=nn(Ec),Dm=nn(Cc);function Sc(t,e){e===void 0&&(e={});var n=e.insertAt;if(t&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Sc('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const Se={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Pc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Dc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 0 637 637",ref:e,...t},F.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),F.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Bc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),Bm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),Tm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),Im=x.forwardRef((t,e)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:e,...t},F.createElement("g",{strokeLinecap:"round",strokeWidth:10},F.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),Mm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),_m=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),Om=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Tc=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),Lm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),Fm=x.forwardRef((t,e)=>F.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},F.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Ic={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Dc},header:{title:m.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/","_blank","noopener,noreferrer"),children:"Tan Jin"}),showAvatar:!0,avatar:Pc,buttons:[Se.NOTIFICATION_BUTTON,Se.AUDIO_BUTTON,Se.CLOSE_CHAT_BUTTON],closeChatIcon:Im},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Bm,iconDisabled:Tm,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/AQD//wQADgD///3/9/8FAPr/6/8EABAACQD9/wIA/P/5/w4A///t/wQA/P8LAB0ACQD5////AQD2/+7/AgD6//r//v/z/xIA9f8oAAMA4f8OANz/EQAdAAAA5P/w/2MAAQDq/w0A1/8bALz/BgDb/+j/lQD9/yMABAACAA0Alf8NAKr/CwCMAPD/QwDq/wkA9v+g/wgAk/8QAD0ABgAWAAQAMwD7/9T/8//f//z/JwAEAOL/DwBxAAwAzf/+/xUA8v+O//H/fAD5/xUA+/9m//P/yf/r/y8ACAAbAEQA3f9AAAcB9f/p/sD/+QHv/8/9EQCv+ez/j+v8/3pS7/83By4AF6Go/7PNjgDMEn7/Sk0NAeEfIv+9DCwAKfuY/9fRAv2A3mjzfQg/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8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:Lm,iconDisabled:Fm},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:Mm,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[Se.VOICE_MESSAGE_BUTTON,Se.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Pc,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:_m,iconDisabled:Om},footer:{text:m.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com","_blank","noopener,noreferrer"),children:[m.jsx("span",{children:"Powered By "},0),m.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:m.jsx(Dc,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),m.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[Se.FILE_ATTACHMENT_BUTTON,Se.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Bc,iconDisabled:Bc,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Tc,iconDisabled:Tc,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbSaveChatHistory:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Mc=x.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),se=()=>x.useContext(Mc),Qm=({children:t,settings:e=Ic,setSyncedSettings:n,syncedSettingsRef:r})=>m.jsx(Mc.Provider,{value:{settings:e,setSyncedSettings:n,syncedSettingsRef:r},children:t}),_c={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Oc=x.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),ye=()=>x.useContext(Oc),Nm=({children:t,styles:e=_c,setSyncedStyles:n,syncedStylesRef:r})=>m.jsx(Oc.Provider,{value:{styles:e,setSyncedStyles:n,syncedStylesRef:r},children:t}),zm=({buttons:t})=>{var e,n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u={backgroundImage:`linear-gradient(to right, ${(e=l.general)==null?void 0:e.secondaryColor},
|
|
4
|
+
${(n=l.general)==null?void 0:n.primaryColor})`,...c.headerStyle};return m.jsxs("div",{style:u,className:"rcb-chat-header-container",children:[m.jsxs("div",{className:"rcb-chat-header",children:[((r=l.header)==null?void 0:r.showAvatar)&&m.jsx("div",{style:{backgroundImage:`url("${(o=l.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),x.isValidElement((i=l.header)==null?void 0:i.title)?(s=l.header)==null?void 0:s.title:m.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(a=l.header)==null?void 0:a.title})]}),m.jsx("div",{className:"rcb-chat-header",children:t?.map((d,A)=>m.jsx(x.Fragment,{children:d},A))})]})},Lc=x.createContext({}),_e=()=>x.useContext(Lc),Rm=({children:t,botIdRef:e,flowRef:n})=>{const r=x.useRef(null),o=x.useRef(""),i=x.useRef(null),s=x.useRef(new Map),a=x.useRef(null),l=x.useRef(""),c=x.useRef(!1),u=x.useRef(null),d=x.useRef(null),A=x.useRef(null);return m.jsx(Lc.Provider,{value:{botIdRef:e,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:s,chatBodyRef:a,paramsInputRef:l,keepVoiceOnRef:c,audioContextRef:u,audioBufferRef:d,gainNodeRef:A,prevInputRef:o},children:t})},it=t=>{const[e,n]=x.useState(t),r=x.useRef(t);return[e,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Fc=x.createContext({}),Le=()=>x.useContext(Fc),Um=({children:t,settings:e})=>{var n,r,o,i,s,a;const[l,c,u]=it(!1),[d,A,h]=it(((n=e?.chatWindow)==null?void 0:n.defaultOpen)??!1),[f,g,p]=it(((r=e?.audio)==null?void 0:r.defaultToggledOn)??!1),[v,w,y]=it(((o=e?.voice)==null?void 0:o.defaultToggledOn)??!1),[b,E,k]=it(((i=e?.notification)==null?void 0:i.defaultToggledOn)??!0),[P,D]=x.useState(!1),[I,T]=x.useState(!1),[M,B,_]=it(!1),[N,O,R]=it(!0),[Q,U,C]=it(!1),[G,S]=x.useState(!1),[X,V]=x.useState(!1),[j,W]=x.useState(0),[K,$]=x.useState(0),[le,oe]=x.useState(!1),[pe,De]=x.useState(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[Xe,Ie]=x.useState(((a=window.visualViewport)==null?void 0:a.width)??window.innerWidth);return m.jsx(Fc.Provider,{value:{isBotTyping:l,setSyncedIsBotTyping:c,syncedIsBotTypingRef:u,isChatWindowOpen:d,setSyncedIsChatWindowOpen:A,syncedIsChatWindowOpenRef:h,audioToggledOn:f,setSyncedAudioToggledOn:g,syncedAudioToggledOnRef:p,voiceToggledOn:v,setSyncedVoiceToggledOn:w,syncedVoiceToggledOnRef:y,notificationsToggledOn:b,setSyncedNotificationsToggledOn:E,syncedNotificationsToggledOnRef:k,isLoadingChatHistory:P,setIsLoadingChatHistory:D,hasChatHistoryLoaded:I,setHasChatHistoryLoaded:T,isScrolling:M,setSyncedIsScrolling:B,syncedIsScrollingRef:_,textAreaDisabled:N,setSyncedTextAreaDisabled:O,syncedTextAreaDisabledRef:R,textAreaSensitiveMode:Q,setSyncedTextAreaSensitiveMode:U,syncedTextAreaSensitiveModeRef:C,hasInteractedPage:G,setHasInteractedPage:S,hasFlowStarted:X,setHasFlowStarted:V,unreadCount:j,setUnreadCount:W,inputLength:K,setInputLength:$,blockAllowsAttachment:le,setBlockAllowsAttachment:oe,viewportHeight:pe,setViewportHeight:De,viewportWidth:Xe,setViewportWidth:Ie},children:t})};var q=(t=>(t.START_SPEAK_AUDIO="rcb-start-speak-audio",t.TOGGLE_AUDIO="rcb-toggle-audio",t.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",t.TOGGLE_VOICE="rcb-toggle-voice",t.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",t.PRE_INJECT_MESSAGE="rcb-pre-inject-message",t.POST_INJECT_MESSAGE="rcb-post-inject-message",t.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",t.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",t.START_STREAM_MESSAGE="rcb-start-stream-message",t.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",t.STOP_STREAM_MESSAGE="rcb-stop-stream-message",t.REMOVE_MESSAGE="rcb-remove-message",t.SAVE_CHAT_HISTORY="rcb-save-chat-history",t.LOAD_CHAT_HISTORY="rcb-load-chat-history",t.CHANGE_PATH="rcb-change-path",t.SHOW_TOAST="rcb-show-toast",t.DISMISS_TOAST="rcb-dismiss-toast",t.USER_SUBMIT_TEXT="rcb-user-submit-text",t.USER_UPLOAD_FILE="rcb-user-upload-file",t.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",t.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",t.POST_LOAD_CHATBOT="rcb-post-load-chatbot",t.PRE_PROCESS_BLOCK="rcb-pre-process-block",t.POST_PROCESS_BLOCK="rcb-post-process-block",t))(q||{});const jm={[q.START_SPEAK_AUDIO]:!0,[q.TOGGLE_AUDIO]:!0,[q.TOGGLE_VOICE]:!0,[q.TOGGLE_NOTIFICATIONS]:!0,[q.TOGGLE_CHAT_WINDOW]:!0,[q.PRE_INJECT_MESSAGE]:!0,[q.POST_INJECT_MESSAGE]:!1,[q.PRE_LOAD_CHATBOT]:!0,[q.POST_LOAD_CHATBOT]:!1,[q.START_SIMULATE_STREAM_MESSAGE]:!0,[q.STOP_SIMULATE_STREAM_MESSAGE]:!1,[q.START_STREAM_MESSAGE]:!0,[q.CHUNK_STREAM_MESSAGE]:!0,[q.STOP_STREAM_MESSAGE]:!0,[q.REMOVE_MESSAGE]:!0,[q.SAVE_CHAT_HISTORY]:!0,[q.LOAD_CHAT_HISTORY]:!0,[q.CHANGE_PATH]:!0,[q.SHOW_TOAST]:!0,[q.DISMISS_TOAST]:!0,[q.USER_SUBMIT_TEXT]:!0,[q.USER_UPLOAD_FILE]:!0,[q.TEXT_AREA_CHANGE_VALUE]:!0,[q.PRE_PROCESS_BLOCK]:!0,[q.POST_PROCESS_BLOCK]:!0},As=async(t,e,n)=>{const r=new CustomEvent(t,{detail:e,cancelable:jm[t]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Qc=x.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ir=()=>x.useContext(Qc),Vm=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Qc.Provider,{value:{paths:e,setSyncedPaths:n,syncedPathsRef:r},children:t})},Pt=()=>{const{botIdRef:t}=_e(),{syncedPathsRef:e}=Ir(),n=x.useCallback(()=>e.current.length>0?e.current.at(-1)??null:null,[]),r=x.useCallback(()=>e.current.length>1?e.current.at(-2)??null:null,[]);return{dispatchRcbEvent:x.useCallback(async(o,i)=>{const s={botId:t.current,currPath:n(),prevPath:r()};return await As(o,s,i)},[t])}},st=()=>{const{settings:t}=se(),{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:a,setSyncedIsBotTyping:l,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:d}=Le(),{chatBodyRef:A}=_e(),{dispatchRcbEvent:h}=Pt(),f=x.useCallback(()=>{if(!A.current)return!1;const y=A.current.getBoundingClientRect(),b=window.innerHeight??document.documentElement.clientHeight,E=window.innerWidth??document.documentElement.clientWidth;return y.top>=0&&y.left>=0&&y.bottom<=b&&y.right<=E},[A]),g=x.useCallback(async y=>{var b;y!==d.current&&((b=t.event)!=null&&b.rcbToggleChatWindow&&(await h(q.TOGGLE_CHAT_WINDOW,{currState:d.current,newState:!d.current})).defaultPrevented||n(E=>(E||a(0),!E)))},[d]),p=x.useCallback(async y=>{y!==u.current&&l(b=>!b)},[u]),v=x.useCallback((y,b,E,k)=>(y/=k/2)<1?E/2*y*y+b:-E/2*(--y*(y-2)-1)+b,[]),w=x.useCallback((y=0)=>{if(!A.current)return;const b=A.current.scrollHeight-A.current.clientHeight;if(y<=0)return A.current.scrollTop=b,void c(!1);const E=A.current.scrollTop,k=b-E;let P=0;const D=()=>{if(!A.current)return;P+=20;const I=v(P,E,k,y);A.current.scrollTop=I,P<y?requestAnimationFrame(D):c(!1)};D()},[A]);return{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,toggleChatWindow:g,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:p,scrollToBottom:w,getIsChatBotVisible:f}},Hm=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{unreadCount:i,isScrolling:s}=Le(),{chatBodyRef:a}=_e(),{scrollToBottom:l}=st(),[c,u]=x.useState(!1),d={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatMessagePromptHoveredStyle};return m.jsx("div",{className:"rcb-message-prompt-container "+(a.current&&(A=r.chatWindow)!=null&&A.showMessagePrompt&&s&&i>0?"visible":"hidden"),children:m.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?d:{...o.chatMessagePromptStyle},onMouseDown:h=>{h.preventDefault(),l(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var A},Nc=x.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),hs=()=>x.useContext(Nc),Wm=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Nc.Provider,{value:{messages:e,setSyncedMessages:n,syncedMessagesRef:r},children:t})},Ym=({message:t,isNewSender:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u=typeof t.content=="string",d=t.content,A=t.contentWrapper?m.jsx(t.contentWrapper,{children:d}):d,h={backgroundColor:(n=l.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=l.userBubble)!=null&&r.showAvatar?"65%":"70%",...c.userBubbleStyle},f=(o=l.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",g=((i=l.userBubble)==null?void 0:i.showAvatar)&&e,p="rcb-user-message"+(!e&&(s=l.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return m.jsxs("div",{className:"rcb-user-message-container",children:[u?m.jsx("div",{style:h,className:`${p} ${f}`,children:A}):m.jsx(m.Fragment,{children:A}),g&&m.jsx("div",{style:{backgroundImage:`url("${(a=l.userBubble)==null?void 0:a.avatar}")`},className:"rcb-message-user-avatar"})]})},qm=({message:t,isNewSender:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),u=typeof t.content=="string",d=t.content,A=t.contentWrapper?m.jsx(t.contentWrapper,{children:d}):d,h={backgroundColor:(n=l.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=l.botBubble)!=null&&r.showAvatar?"65%":"70%",...c.botBubbleStyle},f=(o=l.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",g=((i=l.botBubble)==null?void 0:i.showAvatar)&&e,p="rcb-bot-message"+(!e&&(s=l.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return m.jsxs("div",{className:"rcb-bot-message-container",children:[g&&m.jsx("div",{style:{backgroundImage:`url("${(a=l.botBubble)==null?void 0:a.avatar}")`},className:"rcb-message-bot-avatar"}),u?m.jsx("div",{style:h,className:`${p} ${f}`,children:A}):m.jsx(m.Fragment,{children:A})]})},Gm=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),i=(t=r.botBubble)!=null&&t.animate?"rcb-bot-message-entry":"";return m.jsxs("div",{className:"rcb-bot-message-container",children:[((e=r.botBubble)==null?void 0:e.showAvatar)&&m.jsx("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),m.jsx("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:m.jsxs("div",{className:"rcb-typing-indicator",style:{...o?.rcbTypingIndicatorContainerStyle},children:[m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),m.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}})]})})]})},Km=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{messages:i}=hs(),{scrollToBottom:s}=st(),{isBotTyping:a,syncedIsScrollingRef:l}=Le(),{chatBodyRef:c}=_e(),u={...o?.bodyStyle,scrollbarWidth:(t=r.chatWindow)!=null&&t.showScrollbar?"auto":"none"};return x.useEffect(()=>{l.current||s()},[(e=c.current)==null?void 0:e.scrollHeight]),m.jsxs("div",{style:u,className:"rcb-chat-body-container",ref:c,children:[i.map((d,A)=>{const h=(f=>f===0||i[f].sender!==i[f-1].sender)(A);return d.sender.toUpperCase()==="USER"?m.jsx(Ym,{message:d,isNewSender:h},A):d.sender.toUpperCase()==="BOT"?m.jsx(qm,{message:d,isNewSender:h},A):m.jsx("div",{children:d.content},A)}),a&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&m.jsx(Gm,{}),m.jsx(Hm,{})]})},Xm=({checkboxes:t,checkedItems:e,path:n})=>{var r,o,i,s,a,l,c,u,d,A,h;const{settings:f}=se(),{styles:g}=ye(),{paths:p}=Ir(),{handleSubmitText:v}=$n(),[w,y]=x.useState(new Set),[b,E]=x.useState(!1),k={cursor:b?`url("${(r=f.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=f.general)==null?void 0:o.primaryColor,borderColor:(i=f.general)==null?void 0:i.primaryColor,...g.botCheckboxRowStyle},P={cursor:b||w.size<t.min?`url("${(s=f.general)==null?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:(a=f.general)==null?void 0:a.primaryColor,borderColor:(l=f.general)==null?void 0:l.primaryColor,...g.botCheckboxNextStyle},D={cursor:b?`url("${(c=f.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...g.botCheckMarkStyle},I={cursor:b?`url("${(u=f.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(d=f.general)==null?void 0:d.primaryColor,backgroundColor:(A=f.general)==null?void 0:A.primaryColor,...g.botCheckMarkSelectedStyle};return x.useEffect(()=>{p.length>0&&p[p.length-1]!==n&&E(!t.reusable)},[p]),m.jsxs("div",{className:"rcb-checkbox-container "+((h=f.botBubble)!=null&&h.showAvatar?"rcb-checkbox-offset":""),children:[t.items.map(T=>m.jsx("div",{onMouseDown:M=>{M.preventDefault(),(B=>{b||y(_=>{const N=new Set(_);if(N.has(B))e.delete(B),N.delete(B);else{if(w.size==t.max)return _;e.add(B),N.add(B)}return N})})(T)},style:k,className:"rcb-checkbox-row-container",children:m.jsxs("div",{className:"rcb-checkbox-row",children:[m.jsx("div",{style:w.has(T)?I:D,className:"rcb-checkbox-mark"}),m.jsx("div",{className:"rcb-checkbox-label",children:T})]})},T)),m.jsx("div",{style:P,className:"rcb-checkbox-next-button",onMouseDown:T=>{var M;if(T.preventDefault(),b||w.size<t.min)return;const B=Array.from(e).join(", ");let _;E(!t.reusable),_=t.sendOutput!=null?t.sendOutput:((M=f.chatInput)==null?void 0:M.sendCheckboxOutput)??!0,v(B,_)}})]})},Jm=async(t,e)=>{const n=t.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=e.currPath,s=m.jsx(Xm,{checkboxes:r,checkedItems:o,path:i});await e.injectMessage(s)},Zm=async(t,e)=>{const n=t.function;if(!n)return;const r=n(e);return r instanceof Promise?await r:r},$m=async(t,e,n)=>{const r=t.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await e.simulateStreamMessage(r):await e.injectMessage(r)));let o=r(e);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await e.simulateStreamMessage(o):await e.injectMessage(o))},e0=({options:t,path:e})=>{var n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),{paths:u}=Ir(),{handleSubmitText:d}=$n(),[A,h]=x.useState([]),[f,g]=x.useState(!1),p={cursor:f?`url("${(n=l.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=l.general)==null?void 0:r.primaryColor,borderColor:(o=l.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...c.botOptionStyle},v={color:"#fff",borderColor:(i=l.general)==null?void 0:i.primaryColor,backgroundColor:(s=l.general)==null?void 0:s.primaryColor,...c.botOptionHoveredStyle};return x.useEffect(()=>{u.length>0&&u[u.length-1]!==e&&g(!t.reusable)},[u]),m.jsx("div",{className:"rcb-options-container "+((a=l.botBubble)!=null&&a.showAvatar?"rcb-options-offset":""),children:t.items.map((w,y)=>{const b=A[y]&&!f;return m.jsx("div",{className:"rcb-options",style:b?v:p,onMouseEnter:()=>(E=>{h(k=>{const P=[...k];return P[E]=!0,P})})(y),onMouseLeave:()=>(E=>{h(k=>{const P=[...k];return P[E]=!1,P})})(y),onMouseDown:E=>{var k;if(E.preventDefault(),f)return;let P;g(!t.reusable),P=t.sendOutput!=null?t.sendOutput:((k=l.chatInput)==null?void 0:k.sendOptionOutput)??!0,d(w,P)},children:w},w)})})},t0=async(t,e)=>{const n=t.options;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=e.currPath,i=m.jsx(e0,{options:r,path:o});await e.injectMessage(i)},n0=async(t,e)=>{const n=t.component;if(n){if(typeof n=="function"){let r=n(e);return r instanceof Promise&&(r=await r),r?void await e.injectMessage(r):void 0}await e.injectMessage(n)}},r0=async(t,e,n,r)=>{const o=t.transition;let i;if(typeof o=="function"?(i=o(e),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const s=setTimeout(async()=>{const a=await r(t);a&&await Rc(a,e)},i.duration);i.interruptable&&(n.current=s)},o0=async(t,e,n)=>{const r=t.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},zc=async(t,e,n)=>{const r=t.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},Rc=async(t,e)=>{if(!t)throw new Error("Block is not valid.");const n=Object.keys(t);for(const r of n)r==="function"&&await Zm(t,e);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let s=i(o);if(s instanceof Promise&&(s=await s),!s)return!1;const a=s;return await o.goToPath(a),!0})(t,e)},i0=()=>{var t;const{settings:e}=se(),{styles:n}=ye();return m.jsx("div",{className:"rcb-line-break-container",children:m.jsx("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(t=e.chatHistory)==null?void 0:t.chatHistoryLineBreakText})})},s0=()=>{var t;const{settings:e}=se(),{styles:n}=ye(),r={borderTop:`4px solid ${(t=e.general)==null?void 0:t.primaryColor}`,...n.loadingSpinnerStyle};return m.jsx("div",{className:"rcb-spinner-container",children:m.jsx("div",{style:r,className:"rcb-spinner"})})},Do=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(t){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(e==="x"?n:3&n|8).toString(16)});throw console.error(t),new Error("crypto.getRandomValues is also not available")}},gn=(t,e)=>({id:Do(),content:t,sender:e,type:typeof t=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let mn,Uc=!1,Bo="rcb-history",To=30,jc=!1,Io=[];const Mr=()=>Io,fs=t=>{Vc(t),Io=t},Vc=t=>{mn&&mn.setItem(Bo,JSON.stringify(t))},ps=t=>{var e,n,r,o,i;mn=((n=(e=t.chatHistory)==null?void 0:e.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Bo=(r=t.chatHistory)==null?void 0:r.storageKey,To=(o=t.chatHistory)==null?void 0:o.maxEntries,jc=(i=t.chatHistory)==null?void 0:i.disabled,Io=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(mn.getItem(Bo))},a0=t=>x.isValidElement(t.content)?structuredClone({id:t.id,content:up.renderToString(t.content),type:t.type,sender:t.sender.toUpperCase(),timestamp:t.timestamp,tags:t.tags}):t,Hc=(t,e,n)=>{const r=new DOMParser().parseFromString(t,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var s;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const a=o.tagName.toLowerCase();let l=Array.from(o.attributes).reduce((c,u)=>{const d=u.name.toLowerCase();if(d==="style"){const A=u.value.split(";").filter(f=>f.trim()!==""),h={};A.forEach(f=>{const[g,p]=f.split(":").map(w=>w.trim()),v=g.replace(/-([a-z])/g,(w,y)=>y.toUpperCase());h[v]=p}),c[d]=h}else a!=="audio"&&a!=="video"||d!=="controls"||u.value!==""?c[d]=u.value:c[d]="true";return c},{});if(Object.prototype.hasOwnProperty.call(l,"class")){const c=o.classList;l.className=c.toString(),delete l.class,(s=e.botBubble)!=null&&s.showAvatar&&(l=l0(c,l)),l=c0(c,l,e,n),l=u0(c,l,e,n),l=d0(c,l,e,n),l=A0(c,l,e,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(a))return x.createElement(a,{key:i,...l});{const c=Hc(o.innerHTML,e,n);return x.createElement(a,{key:i,...l},...c)}}})},l0=(t,e)=>((t.contains("rcb-options-container")||t.contains("rcb-checkbox-container"))&&(e.className=`${t.toString()} rcb-options-offset`),e),c0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-options")&&(e.style={...e.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botOptionStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botOptionStyle}),e},u0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-checkbox-row-container")&&(e.style={...e.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxRowStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),e},d0=(t,e,n,r)=>{var o,i,s,a,l;return t.contains("rcb-checkbox-next-button")&&(e.style={...e.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxNextStyle)==null?void 0:s.color)??((a=n.general)==null?void 0:a.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),e},A0=(t,e,n,r)=>{var o,i;return(t.contains("rcb-media-display-image-container")||t.contains("rcb-media-display-video-container"))&&(e.style={...e.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),e},gs=()=>{const{settings:t}=se(),{notificationsToggledOn:e,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Le(),{audioBufferRef:a,audioContextRef:l,gainNodeRef:c}=_e(),{dispatchRcbEvent:u}=Pt(),d=x.useCallback(async()=>{var h,f;const g=(h=t.notification)==null?void 0:h.sound;l.current=new AudioContext;const p=l.current.createGain();let v;if(p.gain.value=((f=t.notification)==null?void 0:f.volume)??.2,c.current=p,g!=null&&g.startsWith("data:audio")){const w=atob(g.split(",")[1]),y=new ArrayBuffer(w.length),b=new Uint8Array(y);for(let E=0;E<w.length;E++)b[E]=w.charCodeAt(E);v=y}else v=await(await fetch(g)).arrayBuffer();a.current=await l.current.decodeAudioData(v)},[t.notification]),A=x.useCallback(()=>{var h;if((h=t.notification)!=null&&h.disabled||!s.current||!r||!l.current||!a.current)return;const f=l.current.createBufferSource();f.buffer=a.current,f.connect(c.current).connect(l.current.destination),f.start()},[t.notification,s,r,l,a,c]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:e,toggleNotifications:x.useCallback(async h=>{var f;h!==s.current&&((f=t.event)!=null&&f.rcbToggleNotifications&&(await u(q.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(g=>!g))},[s]),playNotificationSound:A,setUpNotifications:d}},h0=(t,e)=>{var n,r,o,i;((s,a,l,c,u)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const d=new window.SpeechSynthesisUtterance;d.text=s,d.lang=a,d.rate=c,d.volume=u;let A=!1;for(const h of l){const f=window.speechSynthesis.getVoices().find(g=>g.name===h);if(f){d.voice=f,window.speechSynthesis.speak(d),A=!0;break}}A||window.speechSynthesis.speak(d)})(e,(n=t.audio)==null?void 0:n.language,(r=t.audio)==null?void 0:r.voiceNames,(o=t.audio)==null?void 0:o.rate,(i=t.audio)==null?void 0:i.volume)},Wc=()=>{const{settings:t}=se(),{audioToggledOn:e,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Le(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async a=>{var l;a!==r.current&&((l=t.event)!=null&&l.rcbToggleAudio&&(await o(q.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),s=x.useCallback(async a=>{var l,c;if((l=t.audio)!=null&&l.disabled||!r.current)return;let u=a;if((c=t.event)!=null&&c.rcbStartSpeakAudio){const d=await o(q.START_SPEAK_AUDIO,{textToRead:u});if(d.defaultPrevented)return;u=d.data.textToRead}h0(t,u)},[t,r]);return{audioToggledOn:e,speakAudio:s,toggleAudio:i}},Mn=()=>{var t,e,n;const{settings:r}=se(),{messages:o,setSyncedMessages:i,syncedMessagesRef:s}=hs(),{setSyncedIsBotTyping:a,setUnreadCount:l,syncedIsScrollingRef:c,syncedIsChatWindowOpenRef:u}=Le(),{streamMessageMap:d,chatBodyRef:A,paramsInputRef:h}=_e(),{scrollToBottom:f,getIsChatBotVisible:g}=st(),{dispatchRcbEvent:p}=Pt(),{speakAudio:v}=Wc(),{playNotificationSound:w}=gs(),y=x.useCallback(async B=>{var _,N;if((_=r.event)!=null&&_.rcbSaveChatHistory){const O=await p(q.SAVE_CHAT_HISTORY,{messages:B});if(O.defaultPrevented)return;B=((N=O.data)==null?void 0:N.messages)??B}await(async O=>{if(jc||!mn)return;const R=[];for(let U=O.length-1;U>=0;U--){const C=O[U];if(C.sender.toUpperCase()!=="SYSTEM"&&(C.content!==""&&R.unshift(C),R.length===To))break}let Q=R.map(a0);if(!Uc&&Q.length<To){const U=To-Q.length;Q=[...Io.slice(-U),...Q]}Vc(Q)})(B)},[p,(t=r.event)==null?void 0:t.rcbSaveChatHistory]),b=x.useCallback((B,_=!1)=>{var N,O;y(B);let R=!0;const Q=B[B.length-1];if(!Q)return;const U=Q.sender.toUpperCase();U==="USER"&&(R=!1),(N=r.general)!=null&&N.embedded&&g()&&(R=!1),(u.current&&!c.current||_)&&(R=!1),R&&w(),!_&&(U!=="USER"&&(O=r.chatWindow)!=null&&O.autoJumpToBottom||U==="USER"||!c.current)&&setTimeout(()=>f(),1)},[r,A,u,c,w,f,g]),E=x.useCallback(async(B,_="BOT",N=null)=>{var O,R,Q,U,C;if(typeof B!="string")throw new Error("Content must be of type string to simulate stream.");_=_.toUpperCase();let G=gn(B,_);if((O=r.event)!=null&&O.rcbStartSimulateStreamMessage){const $=await p(q.START_SIMULATE_STREAM_MESSAGE,{message:G});if($.defaultPrevented)return null;N=$.data.simulateStreamChunker||N,G=$.data.message}a(!1);let S=30;S=_==="BOT"?(R=r.botBubble)==null?void 0:R.streamSpeed:(Q=r.userBubble)==null?void 0:Q.streamSpeed;const X={...G,content:""};i($=>[...$,X]),b(s.current);let V=G.content;N&&(V=N(V));let j=0;const W=V.length;G.sender.toUpperCase()==="BOT"&&(u.current||(U=r.general)!=null&&U.embedded)&&typeof G.content=="string"&&G.content.trim()!==""&&v(G.content);const K=new Promise($=>{const le=setInterval(()=>{if(j>=W)return clearInterval(le),void $();i(oe=>{const pe=[...oe];for(let De=pe.length-1;De>=0;De--)if(pe[De].id===X.id){const Xe=V[j];Xe&&(X.content+=Xe,pe[De]=X),j++;break}return pe})},S)});return(c.current||!u.current)&&l($=>$+1),await K,y(s.current),(C=r.event)!=null&&C.rcbStopSimulateStreamMessage&&await p(q.STOP_SIMULATE_STREAM_MESSAGE,{message:G}),_==="USER"&&(h.current=B),G},[r,p,b,s,h,a,l,u,v]),k=x.useCallback(async(B,_="BOT")=>{var N,O,R;_=_.toUpperCase();let Q=gn(B,_);if((N=r.event)!=null&&N.rcbPreInjectMessage){const U=await p(q.PRE_INJECT_MESSAGE,{message:Q});if(U.defaultPrevented)return null;Q=U.data.message}return Q.sender.toUpperCase()==="BOT"&&(u.current||(O=r.general)!=null&&O.embedded)&&typeof Q.content=="string"&&Q.content.trim()!==""&&v(Q.content),(c.current||!u.current)&&l(U=>U+1),(R=r.event)!=null&&R.rcbPostInjectMessage&&await p(q.POST_INJECT_MESSAGE,{message:Q}),i(U=>[...U,Q]),b(s.current),_==="USER"&&typeof B=="string"&&(h.current=B),Q},[r,p,b,h,s,u,v,l]),P=x.useCallback(async B=>{var _;let N=s.current.find(Q=>Q.id===B),O=null,R=!1;return N||(O=Mr(),N=O.find(Q=>Q.id===B),N&&(R=!0)),!N||(_=r.event)!=null&&_.rcbRemoveMessage&&(await p(q.REMOVE_MESSAGE,{message:N})).defaultPrevented?null:R?(O&&fs(O.filter(Q=>Q.id!==B)),N):(i(Q=>Q.filter(U=>U.id!==B)),b(s.current),l(Q=>Math.max(Q-1,0)),N)},[p,(e=r.event)==null?void 0:e.rcbRemoveMessage,b,s,l,Mr,fs]),D=x.useCallback(async(B,_="BOT")=>{var N,O;if(_=_.toUpperCase(),!d.current.has(_)){const Q=gn(B,_);return(N=r.event)!=null&&N.rcbStartStreamMessage&&(await p(q.START_STREAM_MESSAGE,{message:Q})).defaultPrevented?null:(a(!1),i(U=>[...U,Q]),b(s.current),d.current.set(_,Q.id),(c.current||!u.current)&&l(U=>U+1),Q)}const R={...gn(B,_),id:d.current.get(_)};return(O=r.event)!=null&&O.rcbChunkStreamMessage&&(await p(q.CHUNK_STREAM_MESSAGE,{message:R})).defaultPrevented?null:(i(Q=>Q.map(U=>U.id===R.id?R:U)),b(s.current,!0),R)},[p,r.event,b,s,a,l,d]),I=x.useCallback(async(B="BOT")=>{var _;if(B=B.toUpperCase(),!d.current.has(B))return!0;const N=d.current.get(B);let O;for(let R=0;R<3;R++){const Q=s.current.find(U=>U.id===N);Q&&(O=Q),await new Promise(U=>setTimeout(U,20))}return((_=r.event)==null||!_.rcbStopStreamMessage||!(await p(q.STOP_STREAM_MESSAGE,{message:O})).defaultPrevented)&&(d.current.delete(B),y(s.current),B==="USER"&&typeof O?.content=="string"&&(h.current=O.content),!0)},[p,(n=r.event)==null?void 0:n.rcbStopStreamMessage,d,h]),T=x.useCallback(B=>{const _=typeof B=="function"?B(s.current):B;i(_),b(_)},[b,s]),M=x.useCallback((B,_,N=0)=>{var O;const R=s.current,Q=B?B.toUpperCase():null,U=[];let C=N;for(let G=R.length-1;G>=0;G--){const S=R[G];if(!Q||((O=S?.sender)==null?void 0:O.toUpperCase())===Q){if(C>0){C--;continue}if(U.push(S),_!==void 0&&U.length===_)break}}return U.length>0?U:null},[s]);return{simulateStreamMessage:E,injectMessage:k,removeMessage:P,streamMessage:D,endStreamMessage:I,replaceMessages:T,getMessages:M,messages:o}};let ms,Ot,Mo,bn=!1,Lt=null;const bs=()=>{if(!ms){const t=window.SpeechRecognition||window.webkitSpeechRecognition;ms=t!=null?new t:null}return ms},f0=(t,e,n,r,o,i)=>{var s,a,l;const c=bs();if(!c)return;if(!bn)try{bn=!0,c.lang=(s=t.voice)==null?void 0:s.language,c.start()}catch{}const u=(a=t.voice)==null?void 0:a.timeoutPeriod,d=(l=t.voice)==null?void 0:l.autoSendPeriod;c.onresult=A=>{var h,f;clearTimeout(Ot),Ot=null,clearTimeout(Mo);const g=A.results[A.results.length-1][0].transcript;if(i.current){const p=(h=t.chatInput)==null?void 0:h.characterLimit,v=i.current.value+g;p!=null&&p>=0&&v.length>p?r(v.slice(0,p)):r(v),o(i.current.value.length)}u&&(Ot=setTimeout(async()=>await ys(e,i),u)),(f=t.voice)!=null&&f.autoSendDisabled||(Mo=setTimeout(n,d))},c.onend=()=>{bn?(c.start(),!Ot&&u&&(Ot=setTimeout(async()=>await ys(e,i),u))):(clearTimeout(Ot),Ot=null,clearTimeout(Mo))},u&&(Ot=setTimeout(async()=>await ys(e,i),u))},p0=(t,e)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(Lt=new MediaRecorder(n),!bn)try{bn=!0,Lt.start()}catch{}Lt.ondataavailable=r=>{e.current&&e.current.push(r.data)},Lt.onstop=()=>{t(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},vs=()=>{const t=bs();t&&(bn=!1,t&&t.stop(),Lt&&Lt.state!=="inactive"&&(Lt.stop(),Lt=null),clearTimeout(Ot),Ot=null,clearTimeout(Mo))},ys=async(t,e)=>{var n;(n=e.current)!=null&&n.disabled||await t(),vs()},ws=()=>{const{settings:t}=se(),{voiceToggledOn:e,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Le(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async a=>{var l;a!==r.current&&((l=t.event)!=null&&l.rcbToggleVoice&&(await o(q.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),s=x.useCallback(a=>{((l,c)=>{var u,d,A;const h=bs();(u=c.voice)!=null&&u.disabled||(d=c.chatInput)==null||!d.blockSpam||!h||(l&&!bn?(bn=!0,(A=c.voice)!=null&&A.sendAsAudio?Lt?.start():h.start()):l||vs())})(a,t)},[t]);return{voiceToggledOn:e,toggleVoice:i,syncVoice:s}},_n=()=>{var t;const{settings:e}=se(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:a,syncedTextAreaDisabledRef:l,syncedTextAreaSensitiveModeRef:c}=Le(),{inputRef:u,chatBodyRef:d,prevInputRef:A}=_e(),{dispatchRcbEvent:h}=Pt(),{getIsChatBotVisible:f}=st(),g=x.useCallback(async k=>{var P,D,I;if(l.current&&u.current)u.current.value="";else if(u.current&&A.current!==null){const T=(P=e.chatInput)==null?void 0:P.characterLimit,M=(D=e.chatInput)!=null&&D.allowNewline?k:k.replace(/\n/g," ");if(T!=null&&T>=0&&M.length>T?u.current.value=M.slice(0,T):u.current.value=M,(I=e.event)!=null&&I.rcbTextAreaChangeValue&&(await h(q.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:A.current})).defaultPrevented)return void(u.current.value=A.current);A.current=u.current.value}},[l,u,A,e,h]),p=x.useCallback(k=>{var P;(P=u.current)!=null&&P.disabled||setTimeout(()=>{var D,I,T;(D=e.general)!=null&&D.embedded?f()&&((I=u.current)==null||I.focus()):k!=="start"&&((T=u.current)==null||T.focus())},100)},[u,(t=e.general)==null?void 0:t.embedded,d,f]),v=x.useCallback(()=>{u.current&&u.current.focus()},[]),w=x.useCallback(()=>{u.current&&u.current.blur()},[]),y=x.useCallback(()=>u&&u.current?u.current.value:"",[]),b=x.useCallback(k=>{k!==l.current&&i(P=>!P)},[l]),E=x.useCallback(k=>{k!==c.current&&a(P=>!P)},[c]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:a,inputLength:n,setInputLength:r,getTextAreaValue:y,setTextAreaValue:g,updateTextAreaFocus:p,focusTextArea:v,blurTextArea:w,toggleTextAreaDisabled:b,toggleTextAreaSensitiveMode:E}},Yc=x.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),qc=()=>x.useContext(Yc),g0=({children:t})=>{const[e,n,r]=it([]);return m.jsx(Yc.Provider,{value:{toasts:e,setSyncedToasts:n,syncedToastsRef:r},children:t})},Zn=()=>{const{settings:t}=se(),{toasts:e,setSyncedToasts:n,syncedToastsRef:r}=qc(),{dispatchRcbEvent:o}=Pt(),i=x.useCallback(async(l,c)=>{var u,d,A,h;let f=null;if(r.current.length>=(((u=t.toast)==null?void 0:u.maxCount)??3)){if((d=t.toast)!=null&&d.forbidOnMax)return null;f=Do();let p={id:f,content:l,timeout:c};if((A=t.event)!=null&&A.rcbShowToast){const v=await o(q.SHOW_TOAST,{toast:p});if(v.defaultPrevented)return null;p=v.data.toast}return n(v=>[...v.slice(1),p]),f}f=Do();let g={id:f,content:l,timeout:c};if((h=t.event)!=null&&h.rcbShowToast){const p=await o(q.SHOW_TOAST,{toast:g});if(p.defaultPrevented)return null;g=p.data.toast}return n(p=>[...p,g]),f},[t,o]),s=x.useCallback(async l=>{var c;const u=r.current.find(d=>d.id===l);return!u||(c=t.event)!=null&&c.rcbDismissToast&&(await o(q.DISMISS_TOAST,{toast:u})).defaultPrevented?null:(n(d=>d.filter(A=>A.id!==l)),l)},[o]),a=x.useCallback(l=>{const c=typeof l=="function"?l(r.current):l;n(c)},[r]);return{showToast:i,dismissToast:s,toasts:e,replaceToasts:a}},_o=()=>{var t,e,n,r,o;const{settings:i}=se(),{paths:s,setSyncedPaths:a,syncedPathsRef:l}=Ir(),{flowRef:c,streamMessageMap:u,paramsInputRef:d,keepVoiceOnRef:A,timeoutIdRef:h}=_e(),{setSyncedIsBotTyping:f,setSyncedTextAreaDisabled:g,setSyncedTextAreaSensitiveMode:p,blockAllowsAttachment:v,setBlockAllowsAttachment:w}=Le(),{dispatchRcbEvent:y}=Pt(),{endStreamMessage:b,injectMessage:E,removeMessage:k,simulateStreamMessage:P,streamMessage:D}=Mn(),{showToast:I,dismissToast:T}=Zn(),{toggleChatWindow:M}=st(),{updateTextAreaFocus:B,setTextAreaValue:_}=_n(),{syncVoice:N}=ws(),O=x.useCallback(async S=>{var X;if((X=i.event)!=null&&X.rcbPostProcessBlock){const V=await y(q.POST_PROCESS_BLOCK,{block:S});if(V.defaultPrevented)return null;S=V.data.block}return S},[(t=i.event)==null?void 0:t.rcbPostProcessBlock,y]),R=x.useCallback(async(S,X)=>{var V,j,W,K;if(!S)return;let $=c.current[S];if(!$)return void f(!1);if((V=i.event)!=null&&V.rcbPreProcessBlock){const oe=await y(q.PRE_PROCESS_BLOCK,{block:$});if(oe.defaultPrevented)return;$=oe.data.block}f(!0),(j=i.chatInput)!=null&&j.blockSpam&&g(!0),p(!1);const le={prevPath:X,currPath:S,goToPath:C,setTextAreaValue:_,userInput:d.current,endStreamMessage:b,injectMessage:E,removeMessage:k,simulateStreamMessage:P,streamMessage:D,toggleChatWindow:M,showToast:I,dismissToast:T};await(async(oe,pe,De,Xe,Ie,Ye,Tt)=>{if(!oe)throw new Error("Block is not valid.");for(const qe of Object.keys(oe))switch(qe){case"message":await $m(oe,pe,De);break;case"options":await t0(oe,pe);break;case"checkboxes":await Jm(oe,pe);break;case"component":await n0(oe,pe);break;case"chatDisabled":await o0(oe,pe,Ie);break;case"isSensitive":await zc(oe,pe,Ye);break;case"transition":await r0(oe,pe,Xe,Tt)}})($,le,((W=i.botBubble)==null?void 0:W.simulateStream)??!1,h,g,p,O),f(!1),"chatDisabled"in $||g((K=i.chatInput)==null?void 0:K.disabled),"isSensitive"in $||p(!1),w(typeof $.file=="function"),B(S),N(A.current&&!$.chatDisabled),S!==X&&u.current.clear()},[c,B,N,(e=i.botBubble)==null?void 0:e.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,d,b,E,k,P,D,M,I,T,A,u]),Q=x.useCallback(()=>l.current.length>0?l.current.at(-1)??null:null,[]),U=x.useCallback(()=>l.current.length>1?l.current.at(-2)??null:null,[]),C=x.useCallback(async S=>{var X;const V=Q(),j=U();return((X=i.event)==null||!X.rcbChangePath||!(await y(q.CHANGE_PATH,{currPath:V,prevPath:j,nextPath:S})).defaultPrevented)&&(a(W=>[...W,S]),await R(S,V),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,R,y]),G=x.useCallback(S=>{const X=typeof S=="function"?S(l.current):S;a(X)},[l]);return{getCurrPath:Q,getPrevPath:U,goToPath:C,blockAllowsAttachment:v,setBlockAllowsAttachment:w,paths:s,replacePaths:G,firePostProcessBlockEvent:O}},$n=()=>{var t,e,n,r;const{settings:o}=se(),{endStreamMessage:i,injectMessage:s,removeMessage:a,simulateStreamMessage:l,streamMessage:c}=Mn(),{syncedPathsRef:u}=Ir(),{getCurrPath:d,getPrevPath:A,goToPath:h,firePostProcessBlockEvent:f}=_o(),{setSyncedTextAreaSensitiveMode:g,setSyncedTextAreaDisabled:p,setSyncedIsBotTyping:v,setBlockAllowsAttachment:w,setInputLength:y,syncedVoiceToggledOnRef:b,syncedTextAreaSensitiveModeRef:E}=Le(),{flowRef:k,inputRef:P,keepVoiceOnRef:D,paramsInputRef:I,timeoutIdRef:T}=_e(),{showToast:M,dismissToast:B}=Zn(),{dispatchRcbEvent:_}=Pt(),{syncVoice:N}=ws(),{setTextAreaValue:O}=_n(),{toggleChatWindow:R}=st(),Q=x.useCallback(async C=>{var G,S,X,V,j,W;const K=d();if(K&&k.current[K]){if(E.current){if((G=o?.sensitiveInput)!=null&&G.hideInUserBubble)return;if((S=o?.sensitiveInput)!=null&&S.maskInUserBubble)return void((X=o.userBubble)!=null&&X.simulateStream?await l("*".repeat(((V=o.sensitiveInput)==null?void 0:V.asterisksCount)??10),"USER"):await s("*".repeat(((j=o.sensitiveInput)==null?void 0:j.asterisksCount)??10),"USER"))}(W=o.userBubble)!=null&&W.simulateStream?await l(C,"USER"):await s(C,"USER")}},[k,d,o,s,l,E]),U=x.useCallback(async(C,G=!0)=>{var S,X;if((C=C.trim())==="")return;G&&await Q(C),T.current&&clearTimeout(T.current),P.current&&(O(""),y(0));const V=d();if(!V)return;let j=k.current[V];const W=await f(j);W&&((S=o.chatInput)!=null&&S.blockSpam&&p(!0),D.current=b.current,N(!1),setTimeout(()=>{v(!0)},400),g(!1),setTimeout(async()=>{var K;const $={prevPath:A(),currPath:d(),goToPath:h,setTextAreaValue:O,userInput:I.current,injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:a,endStreamMessage:i,toggleChatWindow:R,showToast:M,dismissToast:B},le=u.current.length;await Rc(W,$),u.current.length===le&&(p("chatDisabled"in j?!!j.chatDisabled:!((K=o.chatInput)==null||!K.disabled)),zc(j,$,g),w(typeof j.file=="function"),N(D.current),v(!1))},(X=o.chatInput)==null?void 0:X.botDelay))},[T,(t=o.chatInput)==null?void 0:t.blockSpam,(e=o.chatInput)==null?void 0:e.botDelay,(n=o.chatInput)==null?void 0:n.disabled,D,b,N,Q,A,d,h,s,l,c,a,i,R,M,B,k]);return{handleSubmitText:x.useCallback(async(C,G=!0)=>{var S,X;C=C??((S=P.current)==null?void 0:S.value),!((X=o.event)!=null&&X.rcbUserSubmitText&&(await _(q.USER_SUBMIT_TEXT,{inputText:C,sendInChat:G})).defaultPrevented||!d())&&U(C,G)},[_,d,U,P,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Oo=()=>{var t;const{settings:e}=se();return x.useMemo(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=e.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(t=e.device)==null?void 0:t.applyMobileOptimizations])},m0=({buttons:t})=>{var e,n,r,o,i,s,a,l,c,u,d;const A=Oo(),{settings:h}=se(),{styles:f}=ye(),{textAreaDisabled:g,textAreaSensitiveMode:p,inputLength:v,hasFlowStarted:w,setHasFlowStarted:y,setInputLength:b}=Le(),{inputRef:E}=_e(),[k,P]=x.useState(!1),[D,I]=x.useState(!1),{handleSubmitText:T}=$n(),{setTextAreaValue:M}=_n(),B={boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle},_={outline:g?"":"none",boxShadow:g?"":`0 0 5px ${(e=h.general)==null?void 0:e.primaryColor}`,boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaFocusedStyle},N={cursor:`url("${(n=h.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:A?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaDisabledStyle},O={color:"#989898",...f.characterLimitStyle},R={color:"#ff0000",...f.characterLimitReachedStyle},Q=g?(r=h.chatInput)==null?void 0:r.disabledPlaceholderText:(o=h.chatInput)==null?void 0:o.enabledPlaceholderText,U=()=>{g||P(!0)},C=()=>{P(!1)},G=()=>{I(!0)},S=()=>{I(!1)},X=async j=>{var W;if(!D&&j.key==="Enter"){if(j.shiftKey)return void((W=h.chatInput)!=null&&W.allowNewline||j.preventDefault());j.preventDefault(),await T()}},V=j=>{E.current&&(M(j.target.value),b(E.current.value.length))};return m.jsxs("div",{"aria-label":((i=h.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:j=>{var W;j.stopPropagation(),!w&&((W=h.general)==null?void 0:W.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&y(!0)},style:{...f.chatInputContainerStyle},className:"rcb-chat-input",children:[p&&(s=h.sensitiveInput)!=null&&s.maskInTextArea?m.jsx("input",{ref:E,type:"password",className:"rcb-chat-input-textarea",style:g?N:k?_:B,placeholder:Q,onChange:V,onKeyDown:X,onFocus:U,onBlur:C,onCompositionStart:G,onCompositionEnd:S}):m.jsx("textarea",{ref:E,style:g?N:k?_:B,rows:1,className:"rcb-chat-input-textarea",placeholder:Q,onChange:V,onKeyDown:X,onFocus:U,onBlur:C,onCompositionStart:G,onCompositionEnd:S}),m.jsxs(m.Fragment,{children:[t?.map((j,W)=>m.jsx(x.Fragment,{children:j},W)),((a=h.chatInput)==null?void 0:a.showCharacterCount)&&((l=h.chatInput)==null?void 0:l.characterLimit)!=null&&((c=h.chatInput)==null?void 0:c.characterLimit)>0&&m.jsxs("div",{className:"rcb-chat-input-char-counter",style:v>=((u=h.chatInput)==null?void 0:u.characterLimit)?R:O,children:[v,"/",(d=h.chatInput)==null?void 0:d.characterLimit]})]})]})},b0=({buttons:t})=>{var e;const{settings:n}=se(),{styles:r}=ye();return m.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[m.jsx("div",{className:"rcb-chat-footer",children:t?.map((o,i)=>m.jsx(x.Fragment,{children:o},i))}),m.jsx("span",{children:(e=n.footer)==null?void 0:e.text})]})},v0=()=>{var t,e,n,r,o,i,s;const{settings:a}=se(),{styles:l}=ye(),{unreadCount:c}=Le(),{isChatWindowOpen:u,toggleChatWindow:d}=st(),[A,h]=x.useState(!1),f={backgroundImage:`linear-gradient(to right, ${(t=a.general)==null?void 0:t.secondaryColor},
|
|
5
|
+
${(e=a.general)==null?void 0:e.primaryColor})`,...l.chatButtonStyle},g={transform:"scale(1.05)",...f,...l.chatButtonHoveredStyle},p={backgroundImage:`url(${(n=a.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...l.chatIconStyle};return m.jsx(m.Fragment,{children:!((r=a.general)!=null&&r.embedded)&&m.jsxs("div",{"aria-label":((o=a.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:A?g:f,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},onClick:()=>d(!0),children:[(()=>{var v;const w=(v=a.chatButton)==null?void 0:v.icon;return w&&typeof w!="string"?w&&m.jsx("span",{className:"rcb-toggle-icon",children:m.jsx(w,{style:p})}):m.jsx("span",{className:"rcb-toggle-icon",style:p})})(),!((i=a.notification)!=null&&i.disabled)&&((s=a.notification)==null?void 0:s.showCount)&&m.jsx("span",{style:{...l.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},y0=()=>{var t,e,n,r,o,i;const s=Oo(),{settings:a}=se(),{styles:l}=ye(),{chatBodyRef:c}=_e(),{isChatWindowOpen:u,toggleChatWindow:d}=st(),[A,h]=x.useState(!1),[f,g]=x.useState(!1),[p,v]=x.useState(0);x.useEffect(()=>{var b,E,k;const P=(b=a.tooltip)==null?void 0:b.mode;if(P==="ALWAYS")if(s){let D;D=u?(((E=c.current)==null?void 0:E.offsetWidth)??375)-(typeof((k=l.chatButtonStyle)==null?void 0:k.width)=="number"?l.chatButtonStyle.width:75):0,v(D),h(!0)}else h(!u);else P==="NEVER"?h(!1):P==="START"?f?h(!1):(g(!0),h(!0)):P==="CLOSE"&&h(!u)},[u,s,f,(t=l.chatButtonStyle)==null?void 0:t.width,(e=a.tooltip)==null?void 0:e.mode]);const w={transform:`translateX(-${p}px)`,right:(((n=l.chatButtonStyle)==null?void 0:n.width)??75)+40,bottom:30,backgroundColor:(r=a.general)==null?void 0:r.secondaryColor,color:"#fff",...l.tooltipStyle},y={borderColor:`transparent transparent transparent ${w.backgroundColor}`};return m.jsx(m.Fragment,{children:!((o=a.general)!=null&&o.embedded)&&m.jsxs("div",{"data-testid":"chat-tooltip",style:w,className:"rcb-chat-tooltip "+(A?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>d(!0),children:[m.jsx("span",{children:(i=a.tooltip)==null?void 0:i.text}),m.jsx("span",{className:"rcb-chat-tooltip-tail",style:y})]})})},w0=({id:t,content:e,timeout:n})=>{var r,o;const{settings:i}=se(),{styles:s}=ye(),[a]=x.useState({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:l}=Zn(),[c,u]=x.useState(!1),d={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...a.toastPromptHoveredStyle};return x.useEffect(()=>{if(n){const A=setTimeout(()=>{l(t)},n);return()=>clearTimeout(A)}},[t,l,n]),typeof e=="string"?m.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?d:a.toastPromptStyle,onMouseDown:async A=>{var h;(h=i.toast)!=null&&h.dismissOnClick&&(A.preventDefault(),await l(t))},className:"rcb-toast-prompt",children:e}):m.jsx(m.Fragment,{children:e})},x0=()=>{var t,e,n,r,o,i,s,a,l,c,u,d;const{styles:A}=ye(),{toasts:h}=qc(),f={bottom:`calc(${typeof((t=A.footerStyle)==null?void 0:t.height)=="number"?`${(e=A.footerStyle)==null?void 0:e.height}px`:((n=A.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=A.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=A.chatInputContainerStyle)==null?void 0:o.height}px`:((i=A.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((s=A.chatWindowStyle)==null?void 0:s.width)=="number"?`${(a=A.chatWindowStyle)==null?void 0:a.width}px`:((l=A.chatWindowStyle)==null?void 0:l.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((c=A.chatWindowStyle)==null?void 0:c.width)=="number"?`${(u=A.chatWindowStyle)==null?void 0:u.width}px`:((d=A.chatWindowStyle)==null?void 0:d.width)??"375px"} - 50px)`,...A.toastPromptContainerStyle};return m.jsx("div",{className:"rcb-toast-prompt-container",style:f,children:h.map(g=>m.jsx(w0,{id:g.id,content:g.content,timeout:g.timeout},g.id))})},Gc=({file:t,fileType:e,fileUrl:n})=>{var r,o,i;const{settings:s}=se(),{styles:a}=ye(),l={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...a.mediaDisplayContainerStyle};return m.jsx(m.Fragment,{children:n?m.jsxs(m.Fragment,{children:[e==="image"&&n&&m.jsx("div",{style:l,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:m.jsx("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),e==="video"&&n&&m.jsx("div",{style:l,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:m.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[m.jsx("source",{src:n,type:t.type}),"Your browser does not support the video tag."]})}),e==="audio"&&n&&m.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=s.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[m.jsx("source",{src:n,type:t.type}),"Your browser does not support the audio tag."]})]}):m.jsx(m.Fragment,{})})},Kc=async t=>{if(!t)return{fileType:null,fileUrl:null};const e=t.type.split("/")[0];if(!["image","video","audio"].includes(e))return{fileType:null,fileUrl:null};try{return{fileType:e,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(t)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},k0=()=>{var t,e,n,r,o,i;const{settings:s}=se(),{styles:a}=ye(),{injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:A}=Mn(),{getCurrPath:h,getPrevPath:f,goToPath:g,blockAllowsAttachment:p}=_o(),{flowRef:v,inputRef:w}=_e(),y=v.current,{showToast:b,dismissToast:E}=Zn(),{dispatchRcbEvent:k}=Pt(),{toggleChatWindow:P}=st(),{setTextAreaValue:D}=_n(),{handleSubmitText:I}=$n(),T={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,...a.fileAttachmentButtonStyle,...a.fileAttachmentButtonDisabledStyle},M={backgroundImage:`url(${(e=s.fileAttachment)==null?void 0:e.icon})`,fill:"#a6a6a6",...a.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...a.fileAttachmentIconStyle,...a.fileAttachmentIconDisabledStyle};return m.jsxs("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:p?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:p?{...a.fileAttachmentButtonStyle}:T,children:[m.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async _=>{var N,O,R,Q;const U=_.target.files;if(!U)return;const C=Array.from(U);if(_.target.value="",(N=s.event)!=null&&N.rcbUserUploadFile&&(await k(q.USER_UPLOAD_FILE,{files:C})).defaultPrevented)return;const G=h();if(!G)return;const S=y[G];if(!S)return;const X=S.file;if(X!=null){const V=[];for(let j=0;j<C.length;j++){if(V.push(C[j].name),(O=s.fileAttachment)==null||!O.showMediaDisplay)continue;const W=await Kc(C[j]);!W.fileType||!W.fileUrl||await l(m.jsx(Gc,{file:C[j],fileType:W.fileType,fileUrl:W.fileUrl}),"USER")}await I("📄 "+V.join(", "),(R=s.fileAttachment)==null?void 0:R.sendFileName),await X({userInput:(Q=w.current)==null?void 0:Q.value,prevPath:f(),currPath:h(),goToPath:g,setTextAreaValue:D,injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:d,endStreamMessage:A,toggleChatWindow:P,showToast:b,dismissToast:E,files:C})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!p}),(()=>{var _,N;const O=p?(_=s.fileAttachment)==null?void 0:_.icon:(N=s.fileAttachment)==null?void 0:N.iconDisabled;return O&&typeof O!="string"?O&&m.jsx("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:m.jsx(O,{style:p?M:B})}):m.jsx("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:p?M:B})})()]})},E0=()=>{var t,e,n,r,o,i;const{settings:s}=se(),{styles:a}=ye(),{syncedTextAreaDisabledRef:l}=Le(),{inputRef:c}=_e(),{textAreaDisabled:u,setTextAreaValue:d}=_n(),A=x.useRef(null),h=x.useRef(null),[f,g]=x.useState(!1),p={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,...a.emojiButtonStyle,...a.emojiButtonDisabledStyle},v={backgroundImage:`url(${(e=s.emoji)==null?void 0:e.icon})`,fill:"#a6a6a6",...a.emojiIconStyle},w={backgroundImage:`url(${(n=s.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...a.emojiIconStyle,...a.emojiIconDisabledStyle};return x.useEffect(()=>{const y=E=>{const k=E.composedPath();A.current&&!k.includes(A.current)&&h.current&&!k.includes(h.current)&&g(!1)},b=()=>{(()=>{if(A.current&&h.current){const E=h.current.getBoundingClientRect(),k=A.current.offsetHeight,P=E.top-k-8;A.current.style.left=`${E.left}px`,A.current.style.top=`${P}px`}})()};return document.addEventListener("mousedown",y),window.addEventListener("resize",b),()=>{document.removeEventListener("mousedown",y),window.removeEventListener("resize",b)}},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:h,className:u?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:u?p:{...a.emojiButtonStyle},onMouseDown:y=>{y.preventDefault(),l.current?g(!1):g(b=>!b)},children:(()=>{var y,b;const E=u?(y=s.emoji)==null?void 0:y.iconDisabled:(b=s.emoji)==null?void 0:b.icon;return E&&typeof E!="string"?E&&m.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:m.jsx(E,{style:u?w:v})}):m.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:u?w:v})})()}),f&&m.jsx("div",{className:"rcb-emoji-button-popup",ref:A,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((y,b)=>m.jsx("span",{className:"rcb-emoji",onMouseDown:E=>((k,P)=>{k.preventDefault(),c.current&&(d(c.current.value+P),setTimeout(()=>{const D=c.current;if(D){D.focus();const I=D.value.length;D.setSelectionRange(I,I)}},50)),g(!1)})(E,y),children:y},b))})]})},C0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{audioToggledOn:i,toggleAudio:s}=Wc(),a={backgroundImage:`url(${(t=r.audio)==null?void 0:t.icon})`,fill:"#fcec3d",...o.audioIconStyle},l={backgroundImage:`url(${(e=r.audio)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async c=>{c.preventDefault(),await s()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var c,u;const d=i?(c=r.audio)==null?void 0:c.icon:(u=r.audio)==null?void 0:u.iconDisabled;return d&&typeof d!="string"?d&&m.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:m.jsx(d,{style:i?a:l,"data-testid":"rcb-audio-icon-svg"})}):m.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?a:l})})()})},S0=()=>{var t,e;const{settings:n}=se(),{styles:r}=ye(),{toggleChatWindow:o}=st(),i={backgroundImage:`url(${(t=n.header)==null?void 0:t.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return m.jsx("div",{"aria-label":((e=n.ariaLabel)==null?void 0:e.closeChatButton)??"close chat",role:"button",onMouseDown:s=>{s.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var s;const a=(s=n.header)==null?void 0:s.closeChatIcon;return a&&typeof a!="string"?a&&m.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:m.jsx(a,{style:i})}):m.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},P0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:d}=gs();return{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:d}})(),a={backgroundImage:`url(${(t=r.notification)==null?void 0:t.icon})`,fill:"#fcec3d",...o.notificationIconStyle},l={backgroundImage:`url(${(e=r.notification)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async c=>{c.preventDefault(),await s()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var c,u;const d=i?(c=r.notification)==null?void 0:c.icon:(u=r.notification)==null?void 0:u.iconDisabled;return d&&typeof d!="string"?d&&m.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:m.jsx(d,{style:i?a:l,"data-testid":"rcb-notification-icon-svg"})}):m.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?a:l})})()})},D0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{injectMessage:i}=Mn(),{inputRef:s}=_e(),{voiceToggledOn:a,toggleVoice:l}=ws(),{setInputLength:c,setTextAreaValue:u,textAreaDisabled:d}=_n(),{handleSubmitText:A}=$n(),h=x.useRef([]),[f,g]=x.useState(!1);x.useEffect(()=>{var b;(b=r.voice)!=null&&b.sendAsAudio?(y(),h.current=[]):A()},[f]),x.useEffect(()=>{a?((b,E,k,P,D,I,T)=>{var M;(M=b.voice)!=null&&M.sendAsAudio?p0(k,I):f0(b,E,k,P,D,T)})(r,l,w,u,c,h,s):vs()},[a]);const p={backgroundImage:`url(${(t=r.voice)==null?void 0:t.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},v={backgroundImage:`url(${(e=r.voice)==null?void 0:e.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},w=()=>{g(b=>!b)},y=async()=>{const b=new Blob(h.current,{type:"audio/wav"}),E=new File([b],"voice-input.wav",{type:"audio/wav"}),k=await Kc(E);!k.fileType||!k.fileUrl||await i(m.jsx(Gc,{file:E,fileType:k.fileType,fileUrl:k.fileUrl}),"USER")};return m.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async b=>{b.preventDefault(),!d&&await l()},style:a&&!d?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:a&&!d?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var b,E;const k=a?(b=r.voice)==null?void 0:b.icon:(E=r.voice)==null?void 0:E.iconDisabled;return k&&typeof k!="string"?k&&m.jsx("span",{className:"rcb-voice-icon "+(a&&!d?"on":""),children:m.jsx(k,{style:a&&!d?p:v})}):m.jsx("span",{className:"rcb-voice-icon"+(a&&!d?"-on":""),"data-testid":"rcb-voice-icon",style:a&&!d?p:v})})()})},B0=()=>{var t,e,n,r,o,i,s,a;const{settings:l}=se(),{styles:c}=ye(),{textAreaDisabled:u}=Le(),[d,A]=x.useState(!1),{handleSubmitText:h}=$n(),f={backgroundColor:(t=l.general)==null?void 0:t.primaryColor,...c.sendButtonStyle},g={cursor:`url("${(e=l.general)==null?void 0:e.actionDisabledIcon}"), auto`,backgroundColor:(n=l.general)==null?void 0:n.primaryColor,...c.sendButtonStyle,...c.sendButtonDisabledStyle},p={backgroundColor:(r=l.general)==null?void 0:r.secondaryColor,...c.sendButtonStyle,...c.sendButtonHoveredStyle},v={backgroundImage:`url(${(o=l.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle},w={backgroundImage:`url(${(i=l.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconDisabledStyle},y={backgroundImage:`url(${(s=l.chatInput)==null?void 0:s.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconHoveredStyle};return m.jsx("div",{"aria-label":((a=l.ariaLabel)==null?void 0:a.sendButton)??"send message",role:"button",onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},onMouseDown:async b=>{b?.preventDefault(),!u&&await h()},style:u?g:d?p:f,className:"rcb-send-button",children:(()=>{var b;const E=(b=l.chatInput)==null?void 0:b.sendButtonIcon;return E&&typeof E!="string"?E&&m.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:m.jsx(E,{style:u?w:d?y:v})}):m.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:u?w:d?y:v})})()})},T0=(t,e)=>{var n,r,o,i,s,a,l,c,u;const d={[Se.AUDIO_BUTTON]:(n=t.audio)==null?void 0:n.disabled,[Se.CLOSE_CHAT_BUTTON]:(r=t.general)==null?void 0:r.embedded,[Se.EMOJI_PICKER_BUTTON]:(o=t.emoji)==null?void 0:o.disabled,[Se.FILE_ATTACHMENT_BUTTON]:(i=t.fileAttachment)==null?void 0:i.disabled,[Se.NOTIFICATION_BUTTON]:(s=t.notification)==null?void 0:s.disabled,[Se.SEND_MESSAGE_BUTTON]:!1,[Se.VOICE_MESSAGE_BUTTON]:(a=t.voice)==null?void 0:a.disabled},A={},h=f=>f?f.map(g=>{if(typeof g=="string"){if((p=>Object.values(Se).includes(p))(g)&&!d[g]){if(A[g])return A[g];const p=e[g];if(typeof p=="function"){const v=p();return A[g]=v,v}return null}return null}return g}).filter(g=>g!==null):[];return{header:h((l=t.header)==null?void 0:l.buttons),chatInput:h((c=t.chatInput)==null?void 0:c.buttons),footer:h((u=t.footer)==null?void 0:u.buttons)}},I0=()=>{const{settings:t}=se(),e=x.useMemo(()=>({[Se.CLOSE_CHAT_BUTTON]:()=>m.jsx(S0,{}),[Se.AUDIO_BUTTON]:()=>m.jsx(C0,{}),[Se.NOTIFICATION_BUTTON]:()=>m.jsx(P0,{}),[Se.EMOJI_PICKER_BUTTON]:()=>m.jsx(E0,{}),[Se.FILE_ATTACHMENT_BUTTON]:()=>m.jsx(k0,{}),[Se.SEND_MESSAGE_BUTTON]:()=>m.jsx(B0,{}),[Se.VOICE_MESSAGE_BUTTON]:()=>m.jsx(D0,{})}),[]),{header:n,chatInput:r,footer:o}=x.useMemo(()=>T0(t,e),[t,e]);return{headerButtons:x.useMemo(()=>n,[n]),chatInputButtons:x.useMemo(()=>r,[r]),footerButtons:x.useMemo(()=>o,[o])}},xs=()=>{const{settings:t}=se(),{styles:e}=ye(),{setSyncedMessages:n,syncedMessagesRef:r}=hs(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:a}=Le(),{chatBodyRef:l}=_e(),{dispatchRcbEvent:c}=Pt(),u=x.useCallback(async()=>{var d,A;const h=Mr();if(!h||(d=t.event)!=null&&d.rcbLoadChatHistory&&(await c(q.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const f=((A=l.current)==null?void 0:A.scrollHeight)??0;((g,p,v,w,y,b,E,k,P)=>{var D;if(Uc=!0,v!=null)try{const I=gn(m.jsx(s0,{}),"SYSTEM"),T=y.current.slice(1);w([I,...T]);const M=v.map(B=>{if(B.type==="object"){const _=Hc(B.content,g,p);return{...B,content:_}}return B});setTimeout(()=>{var B;const _=y.current.slice(1);let N=(B=g.chatHistory)!=null&&B.autoLoad?gn(m.jsx(m.Fragment,{}),"SYSTEM"):gn(m.jsx(i0,{}),"SYSTEM");w([...M,N,..._]),P(!0)},500),setTimeout(()=>{if(!b.current)return;const{scrollHeight:B}=b.current,_=B-E;b.current.scrollTop+=_,k(!1)},510)}catch{mn.removeItem((D=g.chatHistory)==null?void 0:D.storageKey)}})(t,e,h,n,r,l,f,i,a)},[t,e,c,r,l,i,a]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,showChatHistory:u}},M0=()=>{var t,e,n;const{settings:r}=se(),{styles:o}=ye(),{showChatHistory:i}=xs(),[s,a]=x.useState(!1),l={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return m.jsx("div",{className:"rcb-view-history-container",children:m.jsx("div",{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},style:s?l:{...o.chatHistoryButtonStyle},onMouseDown:c=>{c.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:m.jsx("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},_0=()=>{var t,e,n,r;const o=Oo(),{settings:i}=se(),{replaceMessages:s}=Mn(),{isBotTyping:a,isChatWindowOpen:l,setUnreadCount:c,setSyncedIsChatWindowOpen:u,setSyncedTextAreaDisabled:d,setSyncedAudioToggledOn:A,setSyncedVoiceToggledOn:h,setSyncedIsScrolling:f,syncedIsScrollingRef:g,syncedIsChatWindowOpenRef:p}=Le(),{chatBodyRef:v}=_e(),{viewportHeight:w,setViewportHeight:y,setViewportWidth:b,scrollToBottom:E}=st(),{setUpNotifications:k}=gs(),{handleFirstInteraction:P}=(()=>{var M;const{settings:B}=se(),{hasInteractedPage:_,setHasInteractedPage:N,hasFlowStarted:O,setHasFlowStarted:R}=Le(),Q=x.useCallback(()=>{var U;if(N(!0),!O&&((U=B.general)==null?void 0:U.flowStartTrigger)==="ON_PAGE_INTERACT"&&R(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const C=new window.SpeechSynthesisUtterance;C.text="",C.onend=()=>{window.removeEventListener("click",Q),window.removeEventListener("keydown",Q),window.removeEventListener("touchstart",Q)},window.speechSynthesis.speak(C)},[O,(M=B.general)==null?void 0:M.flowStartTrigger]);return{hasInteractedPage:_,handleFirstInteraction:Q}})(),{showChatHistory:D}=xs(),I=x.useRef(0),T=x.useRef(!1);x.useEffect(()=>(window.addEventListener("click",P),window.addEventListener("keydown",P),window.addEventListener("touchstart",P),()=>{window.removeEventListener("click",P),window.removeEventListener("keydown",P),window.removeEventListener("touchstart",P)}),[]),x.useEffect(()=>{const M=v.current;if(!M)return;const B=()=>{T.current||(T.current=!0,requestAnimationFrame(()=>{var _,N;if(!M)return;const{scrollTop:O,clientHeight:R,scrollHeight:Q}=M,U=O+R<Q-(((_=i.chatWindow)==null?void 0:_.messagePromptOffset)??30);f(U),g.current=U,U||(O+R>=Q-1&&(M.scrollTop=Q-R-1),(p.current||(N=i.general)!=null&&N.embedded)&&c(0)),T.current=!1}))};return M.addEventListener("wheel",B,{passive:!0}),M.addEventListener("touchmove",B,{passive:!0}),()=>{M.removeEventListener("wheel",B),M.removeEventListener("touchmove",B)}},[]),x.useEffect(()=>{var M,B,_;d((M=i.chatInput)==null?void 0:M.disabled),u((B=i.chatWindow)==null?void 0:B.defaultOpen),A((_=i.audio)==null?void 0:_.defaultToggledOn),setTimeout(()=>{var N;h((N=i.voice)==null?void 0:N.defaultToggledOn)},1)},[]),x.useEffect(()=>{var M;(M=i.notification)!=null&&M.disabled||k()},[(t=i.notification)==null?void 0:t.disabled]),x.useEffect(()=>{!g.current&&v!=null&&v.current&&E()},[a]),x.useEffect(()=>{var M,B;if((M=i.chatHistory)!=null&&M.disabled)mn&&mn.removeItem(Bo);else if(ps(i),Mr().length>0){const _=gn(m.jsx(M0,{}),"SYSTEM");s([_]),(B=i.chatHistory)!=null&&B.autoLoad&&D()}},[(e=i.chatHistory)==null?void 0:e.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),x.useEffect(()=>{var M;o||(M=i.general)!=null&&M.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",B=>{if(!B.target)return;const{x:_,y:N,width:O,height:R}=B.target.boundingRect;_==0&&N==0&&O==0&&R==0?(setTimeout(()=>{var Q;y((Q=window.visualViewport)==null?void 0:Q.height)},101),setTimeout(()=>{var Q,U;w!=((Q=window.visualViewport)==null?void 0:Q.height)&&y((U=window.visualViewport)==null?void 0:U.height)},1001)):setTimeout(()=>{var Q;y(((Q=window.visualViewport)==null?void 0:Q.height)-R)},101)}))},[o]),x.useEffect(()=>{var M,B,_,N;if(o)return;l&&(y((M=window.visualViewport)==null?void 0:M.height),b((B=window.visualViewport)==null?void 0:B.width));const O=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),R=()=>I.current=window.scrollY,Q=()=>{var C,G;y((C=window.visualViewport)==null?void 0:C.height),b((G=window.visualViewport)==null?void 0:G.width)},U=()=>{var C;window.removeEventListener("scroll",O),window.removeEventListener("scroll",R),(C=window.visualViewport)==null||C.removeEventListener("resize",Q)};return l?(U(),document.body.style.position="fixed",window.addEventListener("scroll",O),(_=window.visualViewport)==null||_.addEventListener("resize",Q)):(document.body.style.position="static",U(),window.scrollTo({top:I.current,left:0,behavior:"auto"}),window.addEventListener("scroll",R),(N=window.visualViewport)==null||N.removeEventListener("resize",Q)),U},[l,o])},O0="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",L0="2592000",Xc="RCB_THEME_CACHE_DATA",Jc=async(t,e)=>{const{id:n,version:r,baseUrl:o=O0,cacheDuration:i=L0}=e,s=r||await(async(v,w)=>{const y=`${w}/${v}/meta.json`;try{const b=await fetch(y);return b.ok?(await b.json()).version:(console.error(`Failed to fetch meta.json from ${y}`),null)}catch(b){return console.error(`Failed to fetch meta.json from ${y}`,b),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const a=((v,w,y)=>{const b=localStorage.getItem(`${Xc}_${v}_${w}`);if(!b)return null;try{const E=JSON.parse(b),k=new Date().getTime(),P=Math.floor(k/1e3);return E.cacheDate+y>=P?E:null}catch(E){return console.error(`Unable to fetch cache for ${v}`,E),null}})(n,s,i);if(a){const v=Zc(t,a.cssStylesText);return{settings:a.settings,inlineStyles:a.inlineStyles,cssStylesText:v}}const l=`${o}/${n}/${s}/styles.css`,c=`${o}/${n}/${s}/settings.json`,u=`${o}/${n}/${s}/styles.json`;let d="";const A=await fetch(l);A.ok?d=await A.text():console.info(`Could not fetch styles.css from ${l}`);const h=await fetch(c);let f={};h.ok?f=await h.json():console.info(`Could not fetch settings.json from ${c}`);const g=await fetch(u);let p={};return g.ok?p=await g.json():console.info(`Could not fetch styles.json from ${u}`),((v,w,y,b,E)=>{const k=new Date().getTime(),P={settings:y,inlineStyles:b,cssStylesText:E,cacheDate:Math.floor(k/1e3)};localStorage.setItem(`${Xc}_${v}_${w}`,JSON.stringify(P))})(n,s,f,p,d),{settings:f,inlineStyles:p,cssStylesText:Zc(t,d)}},Zc=(t,e)=>e.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${t} ${r}`:""}).join(`
|
|
6
|
+
`),F0=async(t,e,n,r)=>{var o,i;let s=Lo(Ic),a=Lo(_c),l="";if(r!=null)if(Array.isArray(r))for(const c of r){const u=await Jc(t,c);s=Ft(u.settings,s),a=Ft(u.inlineStyles,a),l+=u.cssStylesText}else{const c=await Jc(t,r);s=Ft(c.settings,s),a=Ft(c.inlineStyles,a),l+=c.cssStylesText}return e!=null&&(s=Ft(e,s)),n!=null&&(a=Ft(n,a)),((o=s.chatInput)==null?void 0:o.botDelay)!=null&&((i=s.chatInput)==null?void 0:i.botDelay)<500&&(s.chatInput.botDelay=500),{settings:s,inlineStyles:a,cssStylesText:l}},Ft=(t,e)=>{const n=[{source:t,target:e}];for(;n.length;){const r=n.pop();if(r==null)continue;const{source:o,target:i}=r;for(const s of Object.keys(o)){const a=s;if(x.isValidElement(o[a]))i[a]=o[a];else if(typeof o[a]!="object"||o[a]===null||Array.isArray(o[a]))try{i[a]=o[a]}catch{}else(typeof i[a]!="object"||i[a]===null)&&(i[a]={}),n.push({source:o[a],target:i[a]})}}return e},Lo=t=>{if(t===null||typeof t!="object")return t;const e=Array.isArray(t)?[]:{},n=[{source:t,target:e}],r=new WeakMap;for(r.set(t,e);n.length;){const o=n.pop();if(o==null)continue;const{source:i,target:s}=o;for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=i[a];if(l&&typeof l=="object")if(r.has(l))s[a]=r.get(l);else{const c=Array.isArray(l)?[]:{};r.set(l,c),s[a]=c,n.push({source:l,target:c})}else s[a]=l}}return e},$c=()=>{const{settings:t,setSyncedSettings:e,syncedSettingsRef:n}=se(),r=x.useCallback(i=>{!i||Object.keys(i).length===0||e(Lo(Ft(i,t)))},[t]),o=x.useCallback(i=>{const s=typeof i=="function"?i(n.current):i;e(s)},[n]);return{settings:t,replaceSettings:o,updateSettings:r}},eu=()=>{const{styles:t,setSyncedStyles:e,syncedStylesRef:n}=ye(),r=x.useCallback(i=>{!i||Object.keys(i).length===0||e(Lo(Ft(i,t)))},[t]),o=x.useCallback(i=>{const s=typeof i=="function"?i(n.current):i;e(s)},[n]);return{styles:t,replaceStyles:o,updateStyles:r}},Q0=({plugins:t,slots:e})=>{var n,r;const o=Oo(),{settings:i}=se(),{styles:s}=ye(),{hasFlowStarted:a,setHasFlowStarted:l}=Le(),{inputRef:c}=_e(),{viewportHeight:u,viewportWidth:d,isChatWindowOpen:A}=st(),{goToPath:h}=_o(),{headerButtons:f,chatInputButtons:g,footerButtons:p}=I0();_0(),(w=>{const{updateSettings:y}=$c(),{updateStyles:b}=eu(),E=w?.map(k=>k());x.useEffect(()=>{let k={},P={};E?.forEach(D=>{D!=null&&D.settings&&Object.keys(D?.settings).length!==0&&(k=Ft(D.settings,k)),D!=null&&D.styles&&Object.keys(D?.styles).length!==0&&(P=Ft(D.styles,P))}),y(k),b(P)},[])})(t),x.useEffect(()=>{var w;(a||((w=i.general)==null?void 0:w.flowStartTrigger)==="ON_LOAD")&&h("start")},[a,(n=i.general)==null?void 0:n.flowStartTrigger]);const v=x.useMemo(()=>{var w;const y="rcb-chatbot-global ";return(w=i.general)!=null&&w.embedded?y+"rcb-window-embedded":A?y+"rcb-window-open":y+"rcb-window-close"},[i,A]);return m.jsx(m.Fragment,{children:(()=>{var w,y;return o&&((w=i.device)==null?void 0:w.desktopEnabled)||!o&&((y=i.device)==null?void 0:y.mobileEnabled)})()&&m.jsxs("div",{onMouseDown:w=>{var y,b;!a&&((y=i.general)==null?void 0:y.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&l(!0),o?(b=c.current)==null||b.blur():w?.preventDefault()},className:v,children:[m.jsx(y0,{}),m.jsx(v0,{}),A&&!o&&!((r=i.general)!=null&&r.embedded)&&m.jsxs(m.Fragment,{children:[m.jsx("style",{children:`
|
|
7
7
|
html {
|
|
8
8
|
overflow: hidden !important;
|
|
9
9
|
touch-action: none !important;
|
|
10
10
|
scroll-behavior: auto !important;
|
|
11
11
|
}
|
|
12
|
-
`}),m.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),m.jsx("div",{style:(()=>{var w,v;return o||(w=i.general)!=null&&w.embedded?(v=i.general)!=null&&v.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${d}px`,height:`${u}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var w,v,b;const E=e?.chatBotHeader||zm,k=e?.chatBotBody||Km,P=e?.chatBotInput||m0,D=e?.chatBotFooter||b0;return m.jsxs(m.Fragment,{children:[((w=i.general)==null?void 0:w.showHeader)&&m.jsx(E,{buttons:f}),m.jsx(k,{}),m.jsx(x0,{}),((v=i.general)==null?void 0:v.showInputRow)&&m.jsx(P,{buttons:g}),((b=i.general)==null?void 0:b.showFooter)&&m.jsx(D,{buttons:p})]})})()})]})})},tu=x.createContext(void 0),nu=()=>x.useContext(tu),ru=({children:t})=>{var e;const n=x.useRef(""),r=x.useRef({}),[o,i,s]=it({}),[a,l,c]=it({}),[u,d]=x.useState(!1);return x.useEffect(()=>{d(!0)},[]),u?m.jsx("div",{style:{fontFamily:(e=o.general)==null?void 0:e.fontFamily},children:m.jsx(tu.Provider,{value:{loadConfig:async(A,h,f,g,p,y)=>{n.current=A,r.current=h;const w=await F0(A,f,g,p);y.current&&(y.current.textContent=w.cssStylesText),i(w.settings),l(w.inlineStyles)}},children:m.jsx(Qm,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:m.jsx(Nm,{styles:a,setSyncedStyles:l,syncedStylesRef:c,children:m.jsx(g0,{children:m.jsx(Rm,{botIdRef:n,flowRef:r,children:m.jsx(Vm,{children:m.jsx(Um,{settings:o,children:m.jsx(Wm,{children:t})})})})})})})})}):null},N0=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:a})=>{const l=x.useMemo(()=>t,[]),c=nu(),{flowRef:u}=_e();return u&&u.current!==e&&(u.current=e),x.useEffect(()=>{(async()=>{var d,A;(d=n.event)!=null&&d.rcbPreLoadChatBot&&(await As(q.PRE_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(c!=null&&c.loadConfig&&(await c.loadConfig(l,e,n,r,o,a),s(!0)),(A=n.event)!=null&&A.rcbPostLoadChatBot&&As(q.POST_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},ks=["Quickstart","API Docs","Examples","Github","Discord"],z0={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:ks,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:ks,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:ks,path:"process_options"},process_options:{transition:{duration:0},path:t=>{let e="";switch(t.userInput){case"Quickstart":e="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":e="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":e="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":e="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":e="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return t.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(e)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},R0=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const a=x.useMemo(()=>t||"rcb-"+Do(),[]),l=e&&Object.keys(e).length!==0?e:z0,c=n||{},u=r||{},d=i||[],[A,h]=x.useState(!1),f=nu(),g=x.useRef(null),[p,y]=x.useState(o||[]);x.useEffect(()=>{o&&y(o)},[o]);const w=()=>m.jsxs(m.Fragment,{children:[m.jsx(N0,{styleRootRef:g,id:a,flow:l,settings:c,styles:u,themes:p,plugins:d,setConfigLoaded:h}),A&&m.jsx(Q0,{plugins:i,slots:s})]});return m.jsxs(f==null?ru:m.Fragment,{children:[m.jsx("style",{ref:g}),m.jsx("div",{id:a,children:w()})]})},U0=()=>{const{getBotId:t}=(()=>{const{botIdRef:e}=_e();return{getBotId:x.useCallback(()=>e.current,[e])}})();return{getBotId:t}},Fo=()=>{const{hasFlowStarted:t,restartFlow:e,getFlow:n}=(()=>{const{replaceMessages:r}=Mn(),{replacePaths:o,goToPath:i}=_o(),{replaceToasts:s}=Zn(),{hasFlowStarted:a}=Le(),{flowRef:l,timeoutIdRef:c}=_e(),{settings:u}=se();return{hasFlowStarted:a,restartFlow:x.useCallback(async()=>{ps(u),c.current&&clearTimeout(c.current),r([]),s([]),o([]),await i("start")},[c,u,r,s,o,ps,i]),getFlow:x.useCallback(()=>l?.current??{},[l])}})();return{hasFlowStarted:t,restartFlow:e,getFlow:n}},_r=()=>{const{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:a}=Mn();return{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:a}},pt=(t,e)=>{const{getBotId:n}=U0();x.useEffect(()=>{const r=o=>{o.detail.botId===n()&&e(o)};return window.addEventListener(t,r),()=>{window.removeEventListener(t,r)}},[n,t,e])},ou=()=>{const{settings:t,replaceSettings:e,updateSettings:n}=$c();return{settings:t,replaceSettings:e,updateSettings:n}},iu=()=>{const{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:a}=_n();return{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:a}},su=()=>{const{showChatHistory:t,hasChatHistoryLoaded:e}=xs();return{showChatHistory:t,getHistoryMessages:Mr,setHistoryMessages:fs,hasChatHistoryLoaded:e}},Es={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function On(t){return e=>{Es[e]={...t,...Es[e]}}}["address","main","div","figure","p","pre"].forEach(On({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(On({content:8,type:73})),["p","pre"].forEach(On({content:8,type:65})),["s","small","span","del","ins"].forEach(On({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(On({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(On({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(On({type:89}));const Cs=Object.freeze(Es),j0=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],V0=Object.keys(Cs).filter(t=>t!=="canvas"&&t!=="iframe"),au=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),H0=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Qo(){return Qo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qo.apply(this,arguments)}function lu({attributes:t={},className:e,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?x.createElement(i,Qo({className:e},t)):x.createElement(i,Qo({className:e},t),n)}class W0{attribute(e,n){return n}node(e,n){return n}}function Y0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cu,uu;const q0=Y0((function(){if(uu)return cu;uu=1;var t=/["'&<>]/;return cu=function(e){var n=""+e,r=t.exec(n);if(!r)return n;var o,i="",s=0,a=0;for(s=r.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}a!==s&&(i+=n.substring(a,s)),a=s+1,i+=o}return a!==s?i+n.substring(a,s):i}})());function rn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const G0=/(url|image|image-set)\(/i;class K0 extends W0{attribute(e,n){return e==="style"&&Object.keys(n).forEach(r=>{String(n[r]).match(G0)&&delete n[r]}),n}}const X0=/^<(!doctype|(html|head|body)(\s|>))/i,J0=/^(aria-|data-|\w+:)/iu,Z0=/{{{(\w+)\/?}}}/;function $0(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let du=class{constructor(t,e={},n=[],r=[]){var o;if(rn(this,"allowed",void 0),rn(this,"banned",void 0),rn(this,"blocked",void 0),rn(this,"container",void 0),rn(this,"content",[]),rn(this,"props",void 0),rn(this,"matchers",void 0),rn(this,"filters",void 0),rn(this,"keyIndex",void 0),t&&typeof t!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=e,this.matchers=n,this.filters=[...r,new K0],this.keyIndex=-1,this.container=this.createContainer(t||""),this.allowed=new Set((o=e.allowList)!==null&&o!==void 0?o:V0),this.banned=new Set(j0),this.blocked=new Set(e.blockList)}applyAttributeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.attribute=="function"?r.attribute(t,n):n,e)}applyNodeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.node=="function"?r.node(t,n):n,e)}applyMatchers(t,e){const n={},{props:r}=this;let o=t,i=0,s=null;return this.matchers.forEach(a=>{const l=a.asTag().toLowerCase(),c=this.getTagConfig(l);if(r[a.inverseName]||!this.isTagAllowed(l)||!this.canRenderChild(e,c))return;let u="";for(;o&&(s=a.match(o));){const{index:d,length:A,match:h,valid:f,void:g,...p}=s,y=a.propName+String(i);d>0&&(u+=o.slice(0,d)),f?(u+=g?`{{{${y}/}}}`:`{{{${y}}}}${h}{{{/${y}}}}`,this.keyIndex+=1,i+=1,n[y]={children:h,matcher:a,props:{...r,...p,key:this.keyIndex}}):u+=h,a.greedy?(o=u+o.slice(d+A),u=""):o=o.slice(d+(A||h.length))}a.greedy||(o=u+o)}),i===0?t:this.replaceTokens(o,n)}canRenderChild(t,e){return!(!t.tagName||!e.tagName||t.void)&&(t.children.length>0?t.children.includes(e.tagName):!(t.invalid.length>0&&t.invalid.includes(e.tagName))&&(e.parent.length>0?e.parent.includes(t.tagName):!(!t.self&&t.tagName===e.tagName)&&!!(t&&t.content&e.type)))}convertLineBreaks(t){const{noHtml:e,disableLineBreaks:n}=this.props;if(e||n||t.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return t;let r=t.replace(/\r\n/g,`
|
|
12
|
+
`}),m.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),m.jsx("div",{style:(()=>{var w,y;return o||(w=i.general)!=null&&w.embedded?(y=i.general)!=null&&y.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${d}px`,height:`${u}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var w,y,b;const E=e?.chatBotHeader||zm,k=e?.chatBotBody||Km,P=e?.chatBotInput||m0,D=e?.chatBotFooter||b0;return m.jsxs(m.Fragment,{children:[((w=i.general)==null?void 0:w.showHeader)&&m.jsx(E,{buttons:f}),m.jsx(k,{}),m.jsx(x0,{}),((y=i.general)==null?void 0:y.showInputRow)&&m.jsx(P,{buttons:g}),((b=i.general)==null?void 0:b.showFooter)&&m.jsx(D,{buttons:p})]})})()})]})})},tu=x.createContext(void 0),nu=()=>x.useContext(tu),ru=({children:t})=>{var e;const n=x.useRef(""),r=x.useRef({}),[o,i,s]=it({}),[a,l,c]=it({}),[u,d]=x.useState(!1);return x.useEffect(()=>{d(!0)},[]),u?m.jsx("div",{style:{fontFamily:(e=o.general)==null?void 0:e.fontFamily},children:m.jsx(tu.Provider,{value:{loadConfig:async(A,h,f,g,p,v)=>{n.current=A,r.current=h;const w=await F0(A,f,g,p);v.current&&(v.current.textContent=w.cssStylesText),i(w.settings),l(w.inlineStyles)}},children:m.jsx(Qm,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:m.jsx(Nm,{styles:a,setSyncedStyles:l,syncedStylesRef:c,children:m.jsx(g0,{children:m.jsx(Rm,{botIdRef:n,flowRef:r,children:m.jsx(Vm,{children:m.jsx(Um,{settings:o,children:m.jsx(Wm,{children:t})})})})})})})})}):null},N0=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:a})=>{const l=x.useMemo(()=>t,[]),c=nu(),{flowRef:u}=_e();return u&&u.current!==e&&(u.current=e),x.useEffect(()=>{(async()=>{var d,A;(d=n.event)!=null&&d.rcbPreLoadChatBot&&(await As(q.PRE_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(c!=null&&c.loadConfig&&(await c.loadConfig(l,e,n,r,o,a),s(!0)),(A=n.event)!=null&&A.rcbPostLoadChatBot&&As(q.POST_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},ks=["Quickstart","API Docs","Examples","Github","Discord"],z0={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:ks,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:ks,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:ks,path:"process_options"},process_options:{transition:{duration:0},path:t=>{let e="";switch(t.userInput){case"Quickstart":e="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":e="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":e="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":e="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":e="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return t.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(e)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},R0=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const a=x.useMemo(()=>t||"rcb-"+Do(),[]),l=e&&Object.keys(e).length!==0?e:z0,c=n||{},u=r||{},d=i||[],[A,h]=x.useState(!1),f=nu(),g=x.useRef(null),[p,v]=x.useState(o||[]);x.useEffect(()=>{o&&v(o)},[o]);const w=()=>m.jsxs(m.Fragment,{children:[m.jsx(N0,{styleRootRef:g,id:a,flow:l,settings:c,styles:u,themes:p,plugins:d,setConfigLoaded:h}),A&&m.jsx(Q0,{plugins:i,slots:s})]});return m.jsxs(f==null?ru:m.Fragment,{children:[m.jsx("style",{ref:g}),m.jsx("div",{id:a,children:w()})]})},U0=()=>{const{getBotId:t}=(()=>{const{botIdRef:e}=_e();return{getBotId:x.useCallback(()=>e.current,[e])}})();return{getBotId:t}},Fo=()=>{const{hasFlowStarted:t,restartFlow:e,getFlow:n}=(()=>{const{replaceMessages:r}=Mn(),{replacePaths:o,goToPath:i}=_o(),{replaceToasts:s}=Zn(),{hasFlowStarted:a}=Le(),{flowRef:l,timeoutIdRef:c}=_e(),{settings:u}=se();return{hasFlowStarted:a,restartFlow:x.useCallback(async()=>{ps(u),c.current&&clearTimeout(c.current),r([]),s([]),o([]),await i("start")},[c,u,r,s,o,ps,i]),getFlow:x.useCallback(()=>l?.current??{},[l])}})();return{hasFlowStarted:t,restartFlow:e,getFlow:n}},_r=()=>{const{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:a}=Mn();return{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:a}},pt=(t,e)=>{const{getBotId:n}=U0();x.useEffect(()=>{const r=o=>{o.detail.botId===n()&&e(o)};return window.addEventListener(t,r),()=>{window.removeEventListener(t,r)}},[n,t,e])},ou=()=>{const{settings:t,replaceSettings:e,updateSettings:n}=$c();return{settings:t,replaceSettings:e,updateSettings:n}},iu=()=>{const{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:a}=_n();return{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:a}},su=()=>{const{showChatHistory:t,hasChatHistoryLoaded:e}=xs();return{showChatHistory:t,getHistoryMessages:Mr,setHistoryMessages:fs,hasChatHistoryLoaded:e}},Es={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function On(t){return e=>{Es[e]={...t,...Es[e]}}}["address","main","div","figure","p","pre"].forEach(On({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(On({content:8,type:73})),["p","pre"].forEach(On({content:8,type:65})),["s","small","span","del","ins"].forEach(On({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(On({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(On({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(On({type:89}));const Cs=Object.freeze(Es),j0=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],V0=Object.keys(Cs).filter(t=>t!=="canvas"&&t!=="iframe"),au=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),H0=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Qo(){return Qo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qo.apply(this,arguments)}function lu({attributes:t={},className:e,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?x.createElement(i,Qo({className:e},t)):x.createElement(i,Qo({className:e},t),n)}class W0{attribute(e,n){return n}node(e,n){return n}}function Y0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cu,uu;const q0=Y0((function(){if(uu)return cu;uu=1;var t=/["'&<>]/;return cu=function(e){var n=""+e,r=t.exec(n);if(!r)return n;var o,i="",s=0,a=0;for(s=r.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}a!==s&&(i+=n.substring(a,s)),a=s+1,i+=o}return a!==s?i+n.substring(a,s):i}})());function rn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const G0=/(url|image|image-set)\(/i;class K0 extends W0{attribute(e,n){return e==="style"&&Object.keys(n).forEach(r=>{String(n[r]).match(G0)&&delete n[r]}),n}}const X0=/^<(!doctype|(html|head|body)(\s|>))/i,J0=/^(aria-|data-|\w+:)/iu,Z0=/{{{(\w+)\/?}}}/;function $0(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let du=class{constructor(t,e={},n=[],r=[]){var o;if(rn(this,"allowed",void 0),rn(this,"banned",void 0),rn(this,"blocked",void 0),rn(this,"container",void 0),rn(this,"content",[]),rn(this,"props",void 0),rn(this,"matchers",void 0),rn(this,"filters",void 0),rn(this,"keyIndex",void 0),t&&typeof t!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=e,this.matchers=n,this.filters=[...r,new K0],this.keyIndex=-1,this.container=this.createContainer(t||""),this.allowed=new Set((o=e.allowList)!==null&&o!==void 0?o:V0),this.banned=new Set(j0),this.blocked=new Set(e.blockList)}applyAttributeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.attribute=="function"?r.attribute(t,n):n,e)}applyNodeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.node=="function"?r.node(t,n):n,e)}applyMatchers(t,e){const n={},{props:r}=this;let o=t,i=0,s=null;return this.matchers.forEach(a=>{const l=a.asTag().toLowerCase(),c=this.getTagConfig(l);if(r[a.inverseName]||!this.isTagAllowed(l)||!this.canRenderChild(e,c))return;let u="";for(;o&&(s=a.match(o));){const{index:d,length:A,match:h,valid:f,void:g,...p}=s,v=a.propName+String(i);d>0&&(u+=o.slice(0,d)),f?(u+=g?`{{{${v}/}}}`:`{{{${v}}}}${h}{{{/${v}}}}`,this.keyIndex+=1,i+=1,n[v]={children:h,matcher:a,props:{...r,...p,key:this.keyIndex}}):u+=h,a.greedy?(o=u+o.slice(d+A),u=""):o=o.slice(d+(A||h.length))}a.greedy||(o=u+o)}),i===0?t:this.replaceTokens(o,n)}canRenderChild(t,e){return!(!t.tagName||!e.tagName||t.void)&&(t.children.length>0?t.children.includes(e.tagName):!(t.invalid.length>0&&t.invalid.includes(e.tagName))&&(e.parent.length>0?e.parent.includes(t.tagName):!(!t.self&&t.tagName===e.tagName)&&!!(t&&t.content&e.type)))}convertLineBreaks(t){const{noHtml:e,disableLineBreaks:n}=this.props;if(e||n||t.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return t;let r=t.replace(/\r\n/g,`
|
|
13
13
|
`);return r=r.replace(/\n{3,}/g,`
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(t){var e;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||$0)();if(!n)return;const r=(e=this.props.containerTagName)!==null&&e!==void 0?e:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(t.match(X0))throw new Error("HTML documents as Interweave content are not supported.");return o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?q0(t):t),o}extractAttributes(t){const{allowAttributes:e}=this.props,n={};let r=0;return t.nodeType===1&&t.attributes&&([...t.attributes].forEach(o=>{const{name:i,value:s}=o,a=i.toLowerCase(),l=au[a]||au[i];if(!this.isSafe(t)||!a.match(J0)&&(!e&&(!l||l===2)||a.startsWith("on")||s.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c=a==="style"?this.extractStyleAttribute(t):s;l===4?c=!0:l===3?c=Number.parseFloat(String(c)):l!==5&&(c=String(c)),n[H0[a]||a]=this.applyAttributeFilters(a,c),r+=1}),r!==0)?n:null}extractStyleAttribute(t){const e={};return Array.from(t.style).forEach(n=>{const r=t.style[n];(typeof r=="string"||typeof r=="number")&&(e[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),e}getTagConfig(t){const e={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Cs[t]?{...e,...Cs[t],tagName:t}:e}isSafe(t){if(typeof HTMLAnchorElement<"u"&&t instanceof HTMLAnchorElement){const e=t.getAttribute("href");if(e!=null&&e.startsWith("#"))return!0;const n=t.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(t){return!this.banned.has(t)&&!this.blocked.has(t)&&(this.props.allowElements||this.allowed.has(t))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(t,e){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:s}=this.props;let a=[],l="";return[...t.childNodes].forEach(c=>{if(c.nodeType===1){const d=c.nodeName.toLowerCase(),A=this.getTagConfig(d);l&&(a.push(l),l="");const h=this.applyNodeFilters(d,c);if(!h)return;let f;if(i&&(!s||this.isTagAllowed(d))){this.keyIndex+=1;const g=this.keyIndex;f=this.parseNode(h,A);const p=i(h,f,A);if(p===null)return;if(typeof p<"u")return void a.push(x.cloneElement(p,{key:g}));this.keyIndex=g-1}if(this.banned.has(d))return;if(n||r&&d!=="br"||!this.isTagAllowed(d)||!o&&!this.canRenderChild(e,A))a=[...a,...this.parseNode(h,A.tagName?A:e)];else{var u;this.keyIndex+=1;const g=this.extractAttributes(h),p={tagName:d};g&&(p.attributes=g),A.void&&(p.selfClose=A.void),a.push(x.createElement(lu,{...p,key:this.keyIndex},(u=f)!==null&&u!==void 0?u:this.parseNode(h,A)))}}else if(c.nodeType===3){const d=n&&!r?c.textContent:this.applyMatchers(c.textContent||"",e);Array.isArray(d)?a=[...a,...d]:l+=d}}),l&&a.push(l),a}replaceTokens(t,e){if(!t.includes("{{{"))return t;const n=[];let r=t,o=null;for(;o=r.match(Z0);){const[i,s]=o,a=o.index,l=i.includes("/");if(!e[s])throw new Error(`Token "${s}" found but no matching element to replace with.`);a>0&&(n.push(r.slice(0,a)),r=r.slice(a));const{children:c,matcher:u,props:d}=e[s];let A;if(l)A=i.length,n.push(u.createElement(c,d));else{const h=r.match(new RegExp(`{{{/${s}}}}`));if(!h)throw new Error(`Closing token missing for interpolated element "${s}".`);A=h.index+h[0].length,n.push(u.createElement(this.replaceTokens(r.slice(i.length,h.index),e),d))}r=r.slice(A)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function eb(t){var e;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:s,parsedContent:a,tagName:l,noWrap:c}=t,u=(e=o??l)!==null&&e!==void 0?e:"span",d=u==="fragment"||c;let A;if(a)A=a;else{const h=new du(i??"",t).parse();h.length>0&&(A=h)}return A||(A=s),d?x.createElement(x.Fragment,null,A):x.createElement(lu,{attributes:n,className:r,tagName:u},A)}function tb(t){const{attributes:e,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:s=null,filters:a=[],matchers:l=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:d="span",noWrap:A=!1,...h}=t,f=i?[]:l,g=o?[]:a,p=u?[u]:[],y=c?[c]:[];f.forEach(E=>{E.onBeforeParse&&p.push(E.onBeforeParse.bind(E)),E.onAfterParse&&y.push(E.onAfterParse.bind(E))});const w=p.reduce((E,k)=>{const P=k(E,t);if(typeof P!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return P},r??""),v=new du(w,h,f,g),b=y.reduce((E,k)=>{const P=k(E,t);if(!Array.isArray(P))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return P},v.parse());return x.createElement(eb,{attributes:e,className:n,containerTagName:t.containerTagName,emptyContent:s,noWrap:A,parsedContent:b.length===0?void 0:b,tagName:d})}const nb=({children:t})=>m.jsx("div",{style:{whiteSpace:"normal"},children:m.jsx(tb,{content:typeof t=="string"?t:""})}),rb={autoConfig:!0},Au=(t,e,n)=>{var r;if(!t.detail.currPath)return!1;const o=e[t.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},ob=t=>{const e=[];let n="",r=!1;for(let o=0;o<t.length;o++){const i=t[o];i==="<"?r?(e.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,e.push(n),n="",r=!1):r?n+=i:e.push(i)}return n!==""&&e.push(n),e},ib=t=>{const{getFlow:e}=Fo(),{messages:n,replaceMessages:r}=_r(),{settings:o}=ou(),{hasChatHistoryLoaded:i}=su(),s={...t,...rb},a=s.htmlComponent?s.htmlComponent:nb;x.useEffect(()=>{var u,d;if(i){const A=[...n];for(let h=0;h<A.length&&h<(((u=o.chatHistory)==null?void 0:u.maxEntries)??30);h++){const f=A[h];(d=f.tags)!=null&&d.includes("rcb-html-renderer-plugin:parsed")&&(f.contentWrapper=a)}r(A)}},[i]);const l=async u=>{var d;const A=(d=u.data.message)==null?void 0:d.sender.toUpperCase();typeof u.data.message.content=="string"&&Au(u,e(),A)&&(u.type==="rcb-start-simulate-stream-message"&&(u.data.simulateStreamChunker=ob),u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};pt(q.PRE_INJECT_MESSAGE,l),pt(q.CHUNK_STREAM_MESSAGE,l),pt(q.START_STREAM_MESSAGE,l),pt(q.START_SIMULATE_STREAM_MESSAGE,l),pt(q.START_SPEAK_AUDIO,async u=>{Au(u,e(),"BOT")&&(u.data.textToRead=(d=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(d,"text/html").body.textContent||"":d.replace(/<\/?[^>]+(>|$)/g,""))(u.data.textToRead))});const c={name:"@rcb-plugins/html-renderer"};return s!=null&&s.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c},sb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ab=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lb={};function hu(t,e){return(lb.jsx?ab:sb).test(t)}const cb=/[ \t\n\f\r]/g;function fu(t){return t.replace(cb,"")===""}class Or{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}}function pu(t,e){const n={},r={};let o=-1;for(;++o<t.length;)Object.assign(n,t[o].property),Object.assign(r,t[o].normal);return new Or(n,r,e)}function Ss(t){return t.toLowerCase()}Or.prototype.property={},Or.prototype.normal={},Or.prototype.space=null;class gt{constructor(e,n){this.property=e,this.attribute=n}}gt.prototype.space=null,gt.prototype.boolean=!1,gt.prototype.booleanish=!1,gt.prototype.overloadedBoolean=!1,gt.prototype.number=!1,gt.prototype.commaSeparated=!1,gt.prototype.spaceSeparated=!1,gt.prototype.commaOrSpaceSeparated=!1,gt.prototype.mustUseProperty=!1,gt.prototype.defined=!1;let ub=0;const ie=Ln(),Oe=Ln(),gu=Ln(),H=Ln(),xe=Ln(),er=Ln(),at=Ln();function Ln(){return 2**++ub}const Ps=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Oe,commaOrSpaceSeparated:at,commaSeparated:er,number:H,overloadedBoolean:gu,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Ds=Object.keys(Ps);class Bs extends gt{constructor(e,n,r,o){let i=-1;if(super(e,n),mu(this,"space",o),typeof r=="number")for(;++i<Ds.length;){const s=Ds[i];mu(this,Ds[i],(r&Ps[s])===Ps[s])}}}function mu(t,e,n){n&&(t[e]=n)}Bs.prototype.defined=!0;const db={}.hasOwnProperty;function tr(t){const e={},n={};let r;for(r in t.properties)if(db.call(t.properties,r)){const o=t.properties[r],i=new Bs(r,t.transform(t.attributes||{},r),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,n[Ss(r)]=r,n[Ss(i.attribute)]=r}return new Or(e,n,t.space)}const bu=tr({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),vu=tr({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yu(t,e){return e in t?t[e]:e}function wu(t,e){return yu(t,e.toLowerCase())}const xu=tr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:wu,properties:{xmlns:null,xmlnsXLink:null}}),ku=tr({transform:(t,e)=>e==="role"?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:xe,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:H,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:xe,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Oe,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null}}),Ab=tr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:wu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:er,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:xe,autoFocus:ie,autoPlay:ie,blocking:xe,capture:null,charSet:null,checked:ie,cite:null,className:xe,cols:H,colSpan:null,content:null,contentEditable:Oe,controls:ie,controlsList:xe,coords:H|er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:gu,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:xe,height:H,hidden:ie,high:H,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:xe,itemRef:xe,itemScope:ie,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:H,pattern:null,ping:xe,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:xe,required:ie,reversed:ie,rows:H,rowSpan:H,sandbox:xe,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Oe,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:H,security:null,unselectable:null}}),hb=tr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:yu,properties:{about:at,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:er,g2:er,glyphName:er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:H,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fb=/^data[-\w.:]+$/i,Eu=/-[a-z]/g,pb=/[A-Z]/g;function gb(t){return"-"+t.toLowerCase()}function mb(t){return t.charAt(1).toUpperCase()}const bb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vb=pu([vu,bu,xu,ku,Ab],"html"),Ts=pu([vu,bu,xu,ku,hb],"svg");function Cu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Is,Su,Pu,nr={},yb=(function(){if(Pu)return nr;Pu=1;var t=nr&&nr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,e.default)(n),s=typeof r=="function";return i.forEach(function(a){if(a.type==="declaration"){var l=a.property,c=a.value;s?r(l,c,a):c&&((o=o||{})[l]=c)}}),o};var e=t((function(){if(Su)return Is;Su=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function d(A){return A?A.replace(c,u):u}return Is=function(A,h){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];h=h||{};var f=1,g=1;function p(I){var T=I.match(r);T&&(f+=T.length);var M=I.lastIndexOf(`
|
|
17
|
-
`);g=~M?I.length-M:g+I.length}function y(){var I={line:f,column:g};return function(T){return T.position=new w(I),E(),T}}function w(I){this.start=I,this.end={line:f,column:g},this.source=h.source}function v(I){var T=new Error(h.source+":"+f+":"+g+": "+I);if(T.reason=I,T.filename=h.source,T.line=f,T.column=g,T.source=A,!h.silent)throw T}function b(I){var T=I.exec(A);if(T){var M=T[0];return p(M),A=A.slice(M.length),T}}function E(){b(o)}function k(I){var T;for(I=I||[];T=P();)T!==!1&&I.push(T);return I}function P(){var I=y();if(A.charAt(0)=="/"&&A.charAt(1)=="*"){for(var T=2;u!=A.charAt(T)&&(A.charAt(T)!="*"||A.charAt(T+1)!="/");)++T;if(T+=2,u===A.charAt(T-1))return v("End of comment missing");var M=A.slice(2,T-2);return g+=2,p(M),A=A.slice(T),g+=2,I({type:"comment",comment:M})}}function D(){var I=y(),T=b(i);if(T){if(P(),!b(s))return v("property missing ':'");var M=b(a),B=I({type:"declaration",property:d(T[0].replace(n,u)),value:M?d(M[0].replace(n,u)):u});return b(l),B}}return w.prototype.content=A,E(),(function(){var I,T=[];for(k(T);I=D();)I!==!1&&(T.push(I),k(T));return T})()},Is})());return nr})();const Du=Cu(yb),wb=Du.default||Du,Bu=Tu("end"),Ms=Tu("start");function Tu(t){return function(e){const n=e&&e.position&&e.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Lr(t){return t&&typeof t=="object"?"position"in t||"type"in t?Iu(t.position):"start"in t||"end"in t?Iu(t):"line"in t||"column"in t?_s(t):"":""}function _s(t){return Mu(t&&t.line)+":"+Mu(t&&t.column)}function Iu(t){return _s(t&&t.start)+"-"+_s(t&&t.end)}function Mu(t){return t&&typeof t=="number"?t:1}class Ve extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof e=="string"?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Lr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ve.prototype.file="",Ve.prototype.name="",Ve.prototype.reason="",Ve.prototype.message="",Ve.prototype.stack="",Ve.prototype.column=void 0,Ve.prototype.line=void 0,Ve.prototype.ancestors=void 0,Ve.prototype.cause=void 0,Ve.prototype.fatal=void 0,Ve.prototype.place=void 0,Ve.prototype.ruleId=void 0,Ve.prototype.source=void 0;const Os={}.hasOwnProperty,xb=new Map,kb=/[A-Z]/g,Eb=/-([a-z])/g,Cb=new Set(["table","tbody","thead","tfoot","tr"]),Sb=new Set(["td","th"]),_u="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pb(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(s,a){return l;function l(c,u,d,A){const h=Array.isArray(d.children),f=Ms(c);return a(u,d,A,h,{columnNumber:f?f.column-1:void 0,fileName:s,lineNumber:f?f.line:void 0},void 0)}})(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=(function(s,a,l){return c;function c(u,d,A,h){const f=Array.isArray(A.children)?l:a;return h?f(d,A,h):f(d,A)}})(0,e.jsx,e.jsxs)}const o={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ts:vb,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},i=Ou(o,t,void 0);return i&&typeof i!="string"?i:o.create(t,o.Fragment,{children:i||void 0},void 0)}function Ou(t,e,n){return e.type==="element"?(function(r,o,i){const s=r.schema;let a=s;o.tagName.toLowerCase()==="svg"&&s.space==="html"&&(a=Ts,r.schema=a),r.ancestors.push(o);const l=Fu(r,o.tagName,!1),c=(function(d,A){const h={};let f,g;for(g in A.properties)if(g!=="children"&&Os.call(A.properties,g)){const p=Db(d,g,A.properties[g]);if(p){const[y,w]=p;d.tableCellAlignToStyle&&y==="align"&&typeof w=="string"&&Sb.has(A.tagName)?f=w:h[y]=w}}return f&&((h.style||(h.style={}))[d.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),h})(r,o);let u=Fs(r,o);return Cb.has(o.tagName)&&(u=u.filter(function(d){return typeof d!="string"||!(function(A){return typeof A=="object"?A.type==="text"&&fu(A.value):fu(A)})(d)})),Lu(r,c,l,o),Ls(c,u),r.ancestors.pop(),r.schema=s,r.create(o,l,c,i)})(t,e,n):e.type==="mdxFlowExpression"||e.type==="mdxTextExpression"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}Fr(r,o.position)})(t,e):e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement"?(function(r,o,i){const s=r.schema;let a=s;o.name==="svg"&&s.space==="html"&&(a=Ts,r.schema=a),r.ancestors.push(o);const l=o.name===null?r.Fragment:Fu(r,o.name,!0),c=(function(d,A){const h={};for(const f of A.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&d.evaluater){const g=f.data.estree.body[0];g.type;const p=g.expression;p.type;const y=p.properties[0];y.type,Object.assign(h,d.evaluater.evaluateExpression(y.argument))}else Fr(d,A.position);else{const g=f.name;let p;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&d.evaluater){const y=f.value.data.estree.body[0];y.type,p=d.evaluater.evaluateExpression(y.expression)}else Fr(d,A.position);else p=f.value===null||f.value;h[g]=p}return h})(r,o),u=Fs(r,o);return Lu(r,c,l,o),Ls(c,u),r.ancestors.pop(),r.schema=s,r.create(o,l,c,i)})(t,e,n):e.type==="mdxjsEsm"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);Fr(r,o.position)})(t,e):e.type==="root"?(function(r,o,i){const s={};return Ls(s,Fs(r,o)),r.create(o,r.Fragment,s,i)})(t,e,n):e.type==="text"?(function(r,o){return o.value})(0,e):void 0}function Lu(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function Ls(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function Fs(t,e){const n=[];let r=-1;const o=t.passKeys?new Map:xb;for(;++r<e.children.length;){const i=e.children[r];let s;if(t.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;s=l+"-"+c,o.set(l,c+1)}}const a=Ou(t,i,s);a!==void 0&&n.push(a)}return n}function Db(t,e,n){const r=(function(o,i){const s=Ss(i);let a=i,l=gt;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&fb.test(i)){if(i.charAt(4)==="-"){const c=i.slice(5).replace(Eu,mb);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=i.slice(4);if(!Eu.test(c)){let u=c.replace(pb,gb);u.charAt(0)!=="-"&&(u="-"+u),i="data"+u}}l=Bs}return new l(a,i)})(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()})(n):(function(o){return o.join(" ").trim()})(n)),r.property==="style"){let o=typeof n=="object"?n:(function(i,s){const a={};try{wb(s,l)}catch(c){if(!i.ignoreInvalidStyle){const u=c,d=new Ve("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw d.file=i.filePath||void 0,d.url=_u+"#cannot-parse-style-attribute",d}}return a;function l(c,u){let d=c;d.slice(0,2)!=="--"&&(d.slice(0,4)==="-ms-"&&(d="ms-"+d.slice(4)),d=d.replace(Eb,Tb)),a[d]=u}})(t,String(n));return t.stylePropertyNameCase==="css"&&(o=(function(i){const s={};let a;for(a in i)Os.call(i,a)&&(s[Bb(a)]=i[a]);return s})(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&r.space?bb[r.property]||r.property:r.attribute,n]}}function Fu(t,e,n){let r;if(n)if(e.includes(".")){const o=e.split(".");let i,s=-1;for(;++s<o.length;){const a=hu(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};i=i?{type:"MemberExpression",object:i,property:a,computed:!(!s||a.type!=="Literal"),optional:!1}:a}r=i}else r=hu(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if(r.type==="Literal"){const o=r.value;return Os.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(r);Fr(t)}function Fr(t,e){const n=new Ve("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=_u+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Bb(t){let e=t.replace(kb,Ib);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function Tb(t,e){return e.toUpperCase()}function Ib(t){return"-"+t.toLowerCase()}const Qs={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},No={};function Qu(t,e,n){if((function(r){return!(!r||typeof r!="object")})(t)){if("value"in t)return t.type!=="html"||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Nu(t.children,e,n)}return Array.isArray(t)?Nu(t,e,n):""}function Nu(t,e,n){const r=[];let o=-1;for(;++o<t.length;)r[o]=Qu(t[o],e,n);return r.join("")}const zu=document.createElement("i");function Ns(t){const e="&"+t+";";zu.innerHTML=e;const n=zu.textContent;return(n.charCodeAt(n.length-1)!==59||t==="semi")&&n!==e&&n}function Qt(t,e,n,r){const o=t.length;let i,s=0;if(e=e<0?-e>o?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(e,0),t.splice(...i),s+=1e4,e+=1e4}function mt(t,e){return t.length>0?(Qt(t,t.length,0,e),t):e}const Ru={}.hasOwnProperty;function Mb(t){const e={};let n=-1;for(;++n<t.length;)_b(e,t[n]);return e}function _b(t,e){let n;for(n in e){const r=(Ru.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let i;if(o)for(i in o){Ru.call(r,i)||(r[i]=[]);const s=o[i];Ob(r[i],Array.isArray(s)?s:s?[s]:[])}}}function Ob(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Qt(t,0,0,r)}function Uu(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function rr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Nt=vn(/[A-Za-z]/),lt=vn(/[\dA-Za-z]/),Lb=vn(/[#-'*+\--9=?A-Z^-~]/);function zs(t){return t!==null&&(t<32||t===127)}const Rs=vn(/\d/),Fb=vn(/[\dA-Fa-f]/),Qb=vn(/[!-/:-@[-`{-~]/);function re(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function me(t){return t===-2||t===-1||t===32}const Nb=vn(new RegExp("\\p{P}|\\p{S}","u")),zb=vn(/\s/);function vn(t){return function(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function or(t){const e=[];let n=-1,r=0,o=0;for(;++n<t.length;){const i=t.charCodeAt(n);let s="";if(i===37&<(t.charCodeAt(n+1))&<(t.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=t.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return e.join("")+t.slice(r)}function ke(t,e,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(a){return me(a)?(t.enter(n),s(a)):e(a)};function s(a){return me(a)&&i++<o?(t.consume(a),s):(t.exit(n),e(a))}}const Rb={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void t.consume(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ke(t,e,"linePrefix"))},function(i){return t.enter("paragraph"),r(i)});let n;return e;function r(i){const s=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){return i===null?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(i)):re(i)?(t.consume(i),t.exit("chunkText"),r):(t.consume(i),o)}}},Ub={tokenize:function(t){const e=this,n=[];let r,o,i,s=0;return a;function a(v){if(s<n.length){const b=n[s];return e.containerState=b[1],t.attempt(b[0].continuation,l,c)(v)}return c(v)}function l(v){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&w();const b=e.events.length;let E,k=b;for(;k--;)if(e.events[k][0]==="exit"&&e.events[k][1].type==="chunkFlow"){E=e.events[k][1].end;break}y(s);let P=b;for(;P<e.events.length;)e.events[P][1].end={...E},P++;return Qt(e.events,k+1,0,e.events.slice(b)),e.events.length=P,c(v)}return a(v)}function c(v){if(s===n.length){if(!r)return A(v);if(r.currentConstruct&&r.currentConstruct.concrete)return f(v);e.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(ju,u,d)(v)}function u(v){return r&&w(),y(s),A(v)}function d(v){return e.parser.lazy[e.now().line]=s!==n.length,i=e.now().offset,f(v)}function A(v){return e.containerState={},t.attempt(ju,h,f)(v)}function h(v){return s++,n.push([e.currentConstruct,e.containerState]),A(v)}function f(v){return v===null?(r&&w(),y(0),void t.consume(v)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(v))}function g(v){return v===null?(p(t.exit("chunkFlow"),!0),y(0),void t.consume(v)):re(v)?(t.consume(v),p(t.exit("chunkFlow")),s=0,e.interrupt=void 0,a):(t.consume(v),g)}function p(v,b){const E=e.sliceStream(v);if(b&&E.push(null),v.previous=o,o&&(o.next=v),o=v,r.defineSkip(v.start),r.write(E),e.parser.lazy[v.start.line]){let k=r.events.length;for(;k--;)if(r.events[k][1].start.offset<i&&(!r.events[k][1].end||r.events[k][1].end.offset>i))return;const P=e.events.length;let D,I,T=P;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){if(D){I=e.events[T][1].end;break}D=!0}for(y(s),k=P;k<e.events.length;)e.events[k][1].end={...I},k++;Qt(e.events,T+1,0,e.events.slice(P)),e.events.length=k}}function y(v){let b=n.length;for(;b-- >v;){const E=n[b];e.containerState=E[1],E[0].exit.call(e,t)}n.length=v}function w(){r.write([null]),o=void 0,r=void 0,e.containerState._closeFlow=void 0}}},ju={tokenize:function(t,e,n){return ke(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Vu(t){return t===null||Ze(t)||zb(t)?1:Nb(t)?2:void 0}function Us(t,e,n){const r=[];let o=-1;for(;++o<t.length;){const i=t[o].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}const js={name:"attention",resolveAll:function(t,e){let n,r,o,i,s,a,l,c,u=-1;for(;++u<t.length;)if(t[u][0]==="enter"&&t[u][1].type==="attentionSequence"&&t[u][1]._close){for(n=u;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[u][1]).charCodeAt(0)){if((t[n][1]._close||t[u][1]._open)&&(t[u][1].end.offset-t[u][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[u][1].end.offset-t[u][1].start.offset)%3))continue;a=t[n][1].end.offset-t[n][1].start.offset>1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const d={...t[n][1].end},A={...t[u][1].start};Hu(d,-a),Hu(A,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...t[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...t[u][1].start},end:A},o={type:a>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},t[n][1].end={...i.start},t[u][1].start={...s.end},l=[],t[n][1].end.offset-t[n][1].start.offset&&(l=mt(l,[["enter",t[n][1],e],["exit",t[n][1],e]])),l=mt(l,[["enter",r,e],["enter",i,e],["exit",i,e],["enter",o,e]]),l=mt(l,Us(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),l=mt(l,[["exit",o,e],["enter",s,e],["exit",s,e],["exit",r,e]]),t[u][1].end.offset-t[u][1].start.offset?(c=2,l=mt(l,[["enter",t[u][1],e],["exit",t[u][1],e]])):c=0,Qt(t,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<t.length;)t[u][1].type==="attentionSequence"&&(t[u][1].type="data");return t},tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Vu(r);let i;return function(a){return i=a,t.enter("attentionSequence"),s(a)};function s(a){if(a===i)return t.consume(a),s;const l=t.exit("attentionSequence"),c=Vu(a),u=!c||c===2&&o||n.includes(a),d=!o||o===2&&c||n.includes(r);return l._open=!!(i===42?u:u&&(o||!d)),l._close=!!(i===42?d:d&&(c||!u)),e(a)}}};function Hu(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const jb={name:"autolink",tokenize:function(t,e,n){let r=0;return function(A){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o};function o(A){return Nt(A)?(t.consume(A),i):A===64?n(A):l(A)}function i(A){return A===43||A===45||A===46||lt(A)?(r=1,s(A)):l(A)}function s(A){return A===58?(t.consume(A),r=0,a):(A===43||A===45||A===46||lt(A))&&r++<32?(t.consume(A),s):(r=0,l(A))}function a(A){return A===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.exit("autolink"),e):A===null||A===32||A===60||zs(A)?n(A):(t.consume(A),a)}function l(A){return A===64?(t.consume(A),c):Lb(A)?(t.consume(A),l):n(A)}function c(A){return lt(A)?u(A):n(A)}function u(A){return A===46?(t.consume(A),r=0,c):A===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.exit("autolink"),e):d(A)}function d(A){if((A===45||lt(A))&&r++<63){const h=A===45?d:u;return t.consume(A),h}return n(A)}}},zo={partial:!0,tokenize:function(t,e,n){return function(o){return me(o)?ke(t,r,"linePrefix")(o):r(o)};function r(o){return o===null||re(o)?e(o):n(o)}}},Wu={continuation:{tokenize:function(t,e,n){const r=this;return function(i){return me(i)?ke(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return t.attempt(Wu,e,n)(i)}}},exit:function(t){t.exit("blockQuote")},name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(i){if(i===62){const s=r.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(i),t.exit("blockQuoteMarker"),o}return n(i)};function o(i){return me(i)?(t.enter("blockQuotePrefixWhitespace"),t.consume(i),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(i))}}},Yu={name:"characterEscape",tokenize:function(t,e,n){return function(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),r};function r(o){return Qb(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}},qu={name:"characterReference",tokenize:function(t,e,n){const r=this;let o,i,s=0;return function(u){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),a};function a(u){return u===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(u),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),o=31,i=lt,c(u))}function l(u){return u===88||u===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(u),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,i=Fb,c):(t.enter("characterReferenceValue"),o=7,i=Rs,c(u))}function c(u){if(u===59&&s){const d=t.exit("characterReferenceValue");return i!==lt||Ns(r.sliceSerialize(d))?(t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(u)}return i(u)&&s++<o?(t.consume(u),c):n(u)}}},Gu={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return i===null?n(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},Ku={concrete:!0,name:"codeFenced",tokenize:function(t,e,n){const r=this,o={partial:!0,tokenize:function(v,b,E){let k=0;return P;function P(B){return v.enter("lineEnding"),v.consume(B),v.exit("lineEnding"),D}function D(B){return v.enter("codeFencedFence"),me(B)?ke(v,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):I(B)}function I(B){return B===i?(v.enter("codeFencedFenceSequence"),T(B)):E(B)}function T(B){return B===i?(k++,v.consume(B),T):k>=a?(v.exit("codeFencedFenceSequence"),me(B)?ke(v,M,"whitespace")(B):M(B)):E(B)}function M(B){return B===null||re(B)?(v.exit("codeFencedFence"),b(B)):E(B)}}};let i,s=0,a=0;return function(v){return(function(b){const E=r.events[r.events.length-1];return s=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,i=b,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(b)})(v)};function l(v){return v===i?(a++,t.consume(v),l):a<3?n(v):(t.exit("codeFencedFenceSequence"),me(v)?ke(t,c,"whitespace")(v):c(v))}function c(v){return v===null||re(v)?(t.exit("codeFencedFence"),r.interrupt?e(v):t.check(Gu,h,w)(v)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(v))}function u(v){return v===null||re(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),c(v)):me(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ke(t,d,"whitespace")(v)):v===96&&v===i?n(v):(t.consume(v),u)}function d(v){return v===null||re(v)?c(v):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),A(v))}function A(v){return v===null||re(v)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),c(v)):v===96&&v===i?n(v):(t.consume(v),A)}function h(v){return t.attempt(o,w,f)(v)}function f(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),g}function g(v){return s>0&&me(v)?ke(t,p,"linePrefix",s+1)(v):p(v)}function p(v){return v===null||re(v)?t.check(Gu,h,w)(v):(t.enter("codeFlowValue"),y(v))}function y(v){return v===null||re(v)?(t.exit("codeFlowValue"),p(v)):(t.consume(v),y)}function w(v){return t.exit("codeFenced"),e(v)}}},Vs={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(l){return t.enter("codeIndented"),ke(t,o,"linePrefix",5)(l)};function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(l):n(l)}function i(l){return l===null?a(l):re(l)?t.attempt(Vb,i,a)(l):(t.enter("codeFlowValue"),s(l))}function s(l){return l===null||re(l)?(t.exit("codeFlowValue"),i(l)):(t.consume(l),s)}function a(l){return t.exit("codeIndented"),e(l)}}},Vb={partial:!0,tokenize:function(t,e,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):re(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):ke(t,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):re(s)?o(s):n(s)}}},Hb={name:"codeText",previous:function(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(t){let e,n,r=t.length-4,o=3;if(!(t[o][1].type!=="lineEnding"&&t[o][1].type!=="space"||t[r][1].type!=="lineEnding"&&t[r][1].type!=="space")){for(e=o;++e<r;)if(t[e][1].type==="codeTextData"){t[o][1].type="codeTextPadding",t[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(e=o-1,r++;++e<=r;)n===void 0?e!==r&&t[e][1].type!=="lineEnding"&&(n=e):(e===r||t[e][1].type==="lineEnding")&&(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},tokenize:function(t,e,n){let r,o,i=0;return function(u){return t.enter("codeText"),t.enter("codeTextSequence"),s(u)};function s(u){return u===96?(t.consume(u),i++,s):(t.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(t.enter("space"),t.consume(u),t.exit("space"),a):u===96?(o=t.enter("codeTextSequence"),r=0,c(u)):re(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a):(t.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||re(u)?(t.exit("codeTextData"),a(u)):(t.consume(u),l)}function c(u){return u===96?(t.consume(u),r++,c):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(u)):(o.type="codeTextData",l(u))}}};class Wb{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const o=n||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Qr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Qr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Qr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Qr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Qr(this.left,n.reverse())}}}function Qr(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function Xu(t){const e={};let n,r,o,i,s,a,l,c=-1;const u=new Wb(t);for(;++c<u.length;){for(;c in e;)c=e[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(a=n[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,Yb(u,c)),c=e[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Qt(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Yb(t,e){const n=t.get(e)[1],r=t.get(e)[2];let o=e-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,d,A=-1,h=n,f=0,g=0;const p=[g];for(;h;){for(;t.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++A<a.length;)a[A][0]==="exit"&&a[A-1][0]==="enter"&&a[A][1].type===a[A-1][1].type&&a[A][1].start.line!==a[A][1].end.line&&(g=A+1,p.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):p.pop(),A=p.length;A--;){const y=a.slice(p[A],p[A+1]),w=i.pop();l.push([w,w+y.length-1]),t.splice(w,2,y)}for(l.reverse(),A=-1;++A<l.length;)c[f+l[A][0]]=f+l[A][1],f+=l[A][1]-l[A][0]-1;return c}const qb={resolve:function(t){return Xu(t),t},tokenize:function(t,e){let n;return function(s){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?o(s):re(s)?t.check(Gb,i,o)(s):(t.consume(s),r)}function o(s){return t.exit("chunkContent"),t.exit("content"),e(s)}function i(s){return t.consume(s),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Gb={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ke(t,o,"linePrefix")};function o(i){if(i===null||re(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}}};function Ju(t,e,n,r,o,i,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(p){return p===60?(t.enter(r),t.enter(o),t.enter(i),t.consume(p),t.exit(i),d):p===null||p===32||p===41||zs(p)?n(p):(t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),f(p))};function d(p){return p===62?(t.enter(i),t.consume(p),t.exit(i),t.exit(o),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),A(p))}function A(p){return p===62?(t.exit("chunkString"),t.exit(a),d(p)):p===null||p===60||re(p)?n(p):(t.consume(p),p===92?h:A)}function h(p){return p===60||p===62||p===92?(t.consume(p),A):A(p)}function f(p){return u||p!==null&&p!==41&&!Ze(p)?u<c&&p===40?(t.consume(p),u++,f):p===41?(t.consume(p),u--,f):p===null||p===32||p===40||zs(p)?n(p):(t.consume(p),p===92?g:f):(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(p))}function g(p){return p===40||p===41||p===92?(t.consume(p),f):f(p)}}function Zu(t,e,n,r,o,i){const s=this;let a,l=0;return function(A){return t.enter(r),t.enter(o),t.consume(A),t.exit(o),t.enter(i),c};function c(A){return l>999||A===null||A===91||A===93&&!a||A===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(A):A===93?(t.exit(i),t.enter(o),t.consume(A),t.exit(o),t.exit(r),e):re(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||re(A)||l++>999?(t.exit("chunkString"),c(A)):(t.consume(A),a||(a=!me(A)),A===92?d:u)}function d(A){return A===91||A===92||A===93?(t.consume(A),l++,u):u(A)}}function $u(t,e,n,r,o,i){let s;return function(d){return d===34||d===39||d===40?(t.enter(r),t.enter(o),t.consume(d),t.exit(o),s=d===40?41:d,a):n(d)};function a(d){return d===s?(t.enter(o),t.consume(d),t.exit(o),t.exit(r),e):(t.enter(i),l(d))}function l(d){return d===s?(t.exit(i),a(s)):d===null?n(d):re(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),ke(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||re(d)?(t.exit("chunkString"),l(d)):(t.consume(d),d===92?u:c)}function u(d){return d===s||d===92?(t.consume(d),c):c(d)}}function Nr(t,e){let n;return function r(o){return re(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),n=!0,r):me(o)?ke(t,r,n?"linePrefix":"lineSuffix")(o):e(o)}}const Kb={name:"definition",tokenize:function(t,e,n){const r=this;let o;return function(d){return t.enter("definition"),(function(A){return Zu.call(r,t,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)})(d)};function i(d){return o=rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),s):n(d)}function s(d){return Ze(d)?Nr(t,a)(d):a(d)}function a(d){return Ju(t,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function l(d){return t.attempt(Xb,c,c)(d)}function c(d){return me(d)?ke(t,u,"whitespace")(d):u(d)}function u(d){return d===null||re(d)?(t.exit("definition"),r.parser.defined.push(o),e(d)):n(d)}}},Xb={partial:!0,tokenize:function(t,e,n){return function(s){return Ze(s)?Nr(t,r)(s):n(s)};function r(s){return $u(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return me(s)?ke(t,i,"whitespace")(s):i(s)}function i(s){return s===null||re(s)?e(s):n(s)}}},Jb={name:"hardBreakEscape",tokenize:function(t,e,n){return function(o){return t.enter("hardBreakEscape"),t.consume(o),r};function r(o){return re(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}},Zb={name:"headingAtx",resolve:function(t,e){let n,r,o=t.length-2,i=3;return t[i][1].type==="whitespace"&&(i+=2),o-2>i&&t[o][1].type==="whitespace"&&(o-=2),t[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&t[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:t[i][1].start,end:t[o][1].end},r={type:"chunkText",start:t[i][1].start,end:t[o][1].end,contentType:"text"},Qt(t,i,o-i+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t},tokenize:function(t,e,n){let r=0;return function(l){return t.enter("atxHeading"),(function(c){return t.enter("atxHeadingSequence"),o(c)})(l)};function o(l){return l===35&&r++<6?(t.consume(l),o):l===null||Ze(l)?(t.exit("atxHeadingSequence"),i(l)):n(l)}function i(l){return l===35?(t.enter("atxHeadingSequence"),s(l)):l===null||re(l)?(t.exit("atxHeading"),e(l)):me(l)?ke(t,i,"whitespace")(l):(t.enter("atxHeadingText"),a(l))}function s(l){return l===35?(t.consume(l),s):(t.exit("atxHeadingSequence"),i(l))}function a(l){return l===null||l===35||Ze(l)?(t.exit("atxHeadingText"),i(l)):(t.consume(l),a)}}},$b=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ed=["pre","script","style","textarea"],ev={concrete:!0,name:"htmlFlow",resolveTo:function(t){let e=t.length;for(;e--&&(t[e][0]!=="enter"||t[e][1].type!=="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},tokenize:function(t,e,n){const r=this;let o,i,s,a,l;return function(S){return(function(X){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(X),c})(S)};function c(S){return S===33?(t.consume(S),u):S===47?(t.consume(S),i=!0,h):S===63?(t.consume(S),o=3,r.interrupt?e:U):Nt(S)?(t.consume(S),s=String.fromCharCode(S),f):n(S)}function u(S){return S===45?(t.consume(S),o=2,d):S===91?(t.consume(S),o=5,a=0,A):Nt(S)?(t.consume(S),o=4,r.interrupt?e:U):n(S)}function d(S){return S===45?(t.consume(S),r.interrupt?e:U):n(S)}function A(S){return S==="CDATA[".charCodeAt(a++)?(t.consume(S),a===6?r.interrupt?e:T:A):n(S)}function h(S){return Nt(S)?(t.consume(S),s=String.fromCharCode(S),f):n(S)}function f(S){if(S===null||S===47||S===62||Ze(S)){const X=S===47,V=s.toLowerCase();return X||i||!ed.includes(V)?$b.includes(s.toLowerCase())?(o=6,X?(t.consume(S),g):r.interrupt?e(S):T(S)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):i?p(S):y(S)):(o=1,r.interrupt?e(S):T(S))}return S===45||lt(S)?(t.consume(S),s+=String.fromCharCode(S),f):n(S)}function g(S){return S===62?(t.consume(S),r.interrupt?e:T):n(S)}function p(S){return me(S)?(t.consume(S),p):D(S)}function y(S){return S===47?(t.consume(S),D):S===58||S===95||Nt(S)?(t.consume(S),w):me(S)?(t.consume(S),y):D(S)}function w(S){return S===45||S===46||S===58||S===95||lt(S)?(t.consume(S),w):v(S)}function v(S){return S===61?(t.consume(S),b):me(S)?(t.consume(S),v):y(S)}function b(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(t.consume(S),l=S,E):me(S)?(t.consume(S),b):k(S)}function E(S){return S===l?(t.consume(S),l=null,P):S===null||re(S)?n(S):(t.consume(S),E)}function k(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Ze(S)?v(S):(t.consume(S),k)}function P(S){return S===47||S===62||me(S)?y(S):n(S)}function D(S){return S===62?(t.consume(S),I):n(S)}function I(S){return S===null||re(S)?T(S):me(S)?(t.consume(S),I):n(S)}function T(S){return S===45&&o===2?(t.consume(S),N):S===60&&o===1?(t.consume(S),O):S===62&&o===4?(t.consume(S),C):S===63&&o===3?(t.consume(S),U):S===93&&o===5?(t.consume(S),Q):!re(S)||o!==6&&o!==7?S===null||re(S)?(t.exit("htmlFlowData"),M(S)):(t.consume(S),T):(t.exit("htmlFlowData"),t.check(tv,G,M)(S))}function M(S){return t.check(nv,B,G)(S)}function B(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),_}function _(S){return S===null||re(S)?M(S):(t.enter("htmlFlowData"),T(S))}function N(S){return S===45?(t.consume(S),U):T(S)}function O(S){return S===47?(t.consume(S),s="",R):T(S)}function R(S){if(S===62){const X=s.toLowerCase();return ed.includes(X)?(t.consume(S),C):T(S)}return Nt(S)&&s.length<8?(t.consume(S),s+=String.fromCharCode(S),R):T(S)}function Q(S){return S===93?(t.consume(S),U):T(S)}function U(S){return S===62?(t.consume(S),C):S===45&&o===2?(t.consume(S),U):T(S)}function C(S){return S===null||re(S)?(t.exit("htmlFlowData"),G(S)):(t.consume(S),C)}function G(S){return t.exit("htmlFlow"),e(S)}}},tv={partial:!0,tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(zo,e,n)}}},nv={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return re(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},rv={name:"htmlText",tokenize:function(t,e,n){const r=this;let o,i,s;return function(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),a};function a(C){return C===33?(t.consume(C),l):C===47?(t.consume(C),b):C===63?(t.consume(C),w):Nt(C)?(t.consume(C),P):n(C)}function l(C){return C===45?(t.consume(C),c):C===91?(t.consume(C),i=0,h):Nt(C)?(t.consume(C),y):n(C)}function c(C){return C===45?(t.consume(C),A):n(C)}function u(C){return C===null?n(C):C===45?(t.consume(C),d):re(C)?(s=u,R(C)):(t.consume(C),u)}function d(C){return C===45?(t.consume(C),A):u(C)}function A(C){return C===62?O(C):C===45?d(C):u(C)}function h(C){return C==="CDATA[".charCodeAt(i++)?(t.consume(C),i===6?f:h):n(C)}function f(C){return C===null?n(C):C===93?(t.consume(C),g):re(C)?(s=f,R(C)):(t.consume(C),f)}function g(C){return C===93?(t.consume(C),p):f(C)}function p(C){return C===62?O(C):C===93?(t.consume(C),p):f(C)}function y(C){return C===null||C===62?O(C):re(C)?(s=y,R(C)):(t.consume(C),y)}function w(C){return C===null?n(C):C===63?(t.consume(C),v):re(C)?(s=w,R(C)):(t.consume(C),w)}function v(C){return C===62?O(C):w(C)}function b(C){return Nt(C)?(t.consume(C),E):n(C)}function E(C){return C===45||lt(C)?(t.consume(C),E):k(C)}function k(C){return re(C)?(s=k,R(C)):me(C)?(t.consume(C),k):O(C)}function P(C){return C===45||lt(C)?(t.consume(C),P):C===47||C===62||Ze(C)?D(C):n(C)}function D(C){return C===47?(t.consume(C),O):C===58||C===95||Nt(C)?(t.consume(C),I):re(C)?(s=D,R(C)):me(C)?(t.consume(C),D):O(C)}function I(C){return C===45||C===46||C===58||C===95||lt(C)?(t.consume(C),I):T(C)}function T(C){return C===61?(t.consume(C),M):re(C)?(s=T,R(C)):me(C)?(t.consume(C),T):D(C)}function M(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(t.consume(C),o=C,B):re(C)?(s=M,R(C)):me(C)?(t.consume(C),M):(t.consume(C),_)}function B(C){return C===o?(t.consume(C),o=void 0,N):C===null?n(C):re(C)?(s=B,R(C)):(t.consume(C),B)}function _(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Ze(C)?D(C):(t.consume(C),_)}function N(C){return C===47||C===62||Ze(C)?D(C):n(C)}function O(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),e):n(C)}function R(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),Q}function Q(C){return me(C)?ke(t,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):U(C)}function U(C){return t.enter("htmlTextData"),s(C)}}},Hs={name:"labelEnd",resolveAll:function(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",e+=o}}return t.length!==n.length&&Qt(t,0,t.length,n),t},resolveTo:function(t,e){let n,r,o,i,s=t.length,a=0;for(;s--;)if(n=t[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;t[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(t[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(o=s);const l={type:t[r][1].type==="labelLink"?"link":"image",start:{...t[r][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[r][1].start},end:{...t[o][1].end}},u={type:"labelText",start:{...t[r+a+2][1].end},end:{...t[o-2][1].start}};return i=[["enter",l,e],["enter",c,e]],i=mt(i,t.slice(r+1,r+a+3)),i=mt(i,[["enter",u,e]]),i=mt(i,Us(e.parser.constructs.insideSpan.null,t.slice(r+a+4,o-3),e)),i=mt(i,[["exit",u,e],t[o-2],t[o-1],["exit",c,e]]),i=mt(i,t.slice(o+1)),i=mt(i,[["exit",l,e]]),Qt(t,r,t.length,i),t},tokenize:function(t,e,n){const r=this;let o,i,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(d){return o?o._inactive?u(d):(i=r.parser.defined.includes(rr(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),a):n(d)};function a(d){return d===40?t.attempt(ov,c,i?c:u)(d):d===91?t.attempt(iv,c,i?l:u)(d):i?c(d):u(d)}function l(d){return t.attempt(sv,c,u)(d)}function c(d){return e(d)}function u(d){return o._balanced=!0,n(d)}}},ov={tokenize:function(t,e,n){return function(u){return t.enter("resource"),t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),r};function r(u){return Ze(u)?Nr(t,o)(u):o(u)}function o(u){return u===41?c(u):Ju(t,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return Ze(u)?Nr(t,a)(u):c(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?$u(t,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return Ze(u)?Nr(t,c)(u):c(u)}function c(u){return u===41?(t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),t.exit("resource"),e):n(u)}}},iv={tokenize:function(t,e,n){const r=this;return function(s){return Zu.call(r,t,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(s):n(s)}function i(s){return n(s)}}},sv={tokenize:function(t,e,n){return function(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),r};function r(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}},av={name:"labelStartImage",resolveAll:Hs.resolveAll,tokenize:function(t,e,n){const r=this;return function(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),o};function o(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}},lv={name:"labelStartLink",resolveAll:Hs.resolveAll,tokenize:function(t,e,n){const r=this;return function(i){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):e(i)}}},Ws={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ke(t,e,"linePrefix")}}},Ro={name:"thematicBreak",tokenize:function(t,e,n){let r,o=0;return function(a){return t.enter("thematicBreak"),(function(l){return r=l,i(l)})(a)};function i(a){return a===r?(t.enter("thematicBreakSequence"),s(a)):o>=3&&(a===null||re(a))?(t.exit("thematicBreak"),e(a)):n(a)}function s(a){return a===r?(t.consume(a),o++,s):(t.exit("thematicBreakSequence"),me(a)?ke(t,i,"whitespace")(a):i(a))}}},$e={continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(zo,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(t,e,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!me(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(uv,e,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(t,t.attempt($e,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)},name:"list",tokenize:function(t,e,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(A){const h=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Rs(A)){if(r.containerState.type||(r.containerState.type=h,t.enter(h,{_container:!0})),h==="listUnordered")return t.enter("listItemPrefix"),A===42||A===45?t.check(Ro,n,l)(A):l(A);if(!r.interrupt||A===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(A)}return n(A)};function a(A){return Rs(A)&&++s<10?(t.consume(A),a):(!r.interrupt||s<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(t.exit("listItemValue"),l(A)):n(A)}function l(A){return t.enter("listItemMarker"),t.consume(A),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,t.check(zo,r.interrupt?n:c,t.attempt(cv,d,u))}function c(A){return r.containerState.initialBlankLine=!0,i++,d(A)}function u(A){return me(A)?(t.enter("listItemPrefixWhitespace"),t.consume(A),t.exit("listItemPrefixWhitespace"),d):n(A)}function d(A){return r.containerState.size=i+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(A)}}},cv={partial:!0,tokenize:function(t,e,n){const r=this;return ke(t,function(o){const i=r.events[r.events.length-1];return!me(o)&&i&&i[1].type==="listItemPrefixWhitespace"?e(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},uv={partial:!0,tokenize:function(t,e,n){const r=this;return ke(t,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(o):n(o)},"listItemIndent",r.containerState.size+1)}},td={name:"setextUnderline",resolveTo:function(t,e){let n,r,o,i=t.length;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){n=i;break}t[i][1].type==="paragraph"&&(r=i)}else t[i][1].type==="content"&&t.splice(i,1),!o&&t[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[r][1].type="setextHeadingText",o?(t.splice(r,0,["enter",s,e]),t.splice(o+1,0,["exit",t[n][1],e]),t[n][1].end={...t[o][1].end}):t[n][1]=s,t.push(["exit",s,e]),t},tokenize:function(t,e,n){const r=this;let o;return function(a){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(a):(t.enter("setextHeadingLine"),o=a,(function(u){return t.enter("setextHeadingLineSequence"),i(u)})(a))};function i(a){return a===o?(t.consume(a),i):(t.exit("setextHeadingLineSequence"),me(a)?ke(t,s,"lineSuffix")(a):s(a))}function s(a){return a===null||re(a)?(t.exit("setextHeadingLine"),e(a)):n(a)}}},dv={tokenize:function(t){const e=this,n=t.attempt(zo,function(o){return o===null?void t.consume(o):(t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n)},t.attempt(this.parser.constructs.flowInitial,r,ke(t,t.attempt(this.parser.constructs.flow,r,t.attempt(qb,r)),"linePrefix")));return n;function r(o){if(o!==null)return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(o)}}},Av={resolveAll:rd()},hv=nd("string"),fv=nd("text");function nd(t){return{resolveAll:rd(t==="text"?pv:void 0),tokenize:function(e){const n=this,r=this.parser.constructs[t],o=e.attempt(r,i,s);return i;function i(c){return l(c)?o(c):s(c)}function s(c){if(c!==null)return e.enter("data"),e.consume(c),a;e.consume(c)}function a(c){return l(c)?(e.exit("data"),o(c)):(e.consume(c),a)}function l(c){if(c===null)return!0;const u=r[c];let d=-1;if(u)for(;++d<u.length;){const A=u[d];if(!A.previous||A.previous.call(n,n.previous))return!0}return!1}}}}function rd(t){return function(e,n){let r,o=-1;for(;++o<=e.length;)r===void 0?e[o]&&e[o][1].type==="data"&&(r=o,o++):(!e[o]||e[o][1].type!=="data")&&(o!==r+2&&(e[r][1].end=e[o-1][1].end,e.splice(r+2,o-r-2),o=r+2),r=void 0);return t?t(e,n):e}}function pv(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],o=e.sliceStream(r);let i,s=o.length,a=-1,l=0;for(;s--;){const c=o[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)i=!0,l++;else if(c!==-1){s++;break}}if(l){const c={type:n===t.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}const gv={42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:Wu},mv={91:Kb},bv={[-2]:Vs,[-1]:Vs,32:Vs},vv={35:Zb,42:Ro,45:[td,Ro],60:ev,61:td,95:Ro,96:Ku,126:Ku},yv={38:qu,92:Yu},wv={[-5]:Ws,[-4]:Ws,[-3]:Ws,33:av,38:qu,42:js,60:[jb,rv],91:lv,92:[Jb,Yu],93:Hs,95:js,96:Hb},xv={null:[js,Av]},kv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:mv,disable:{null:[]},document:gv,flow:vv,flowInitial:bv,insideSpan:xv,string:yv,text:wv},Symbol.toStringTag,{value:"Module"}));function Ev(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:g(function(w,v){p(w,v.from)}),check:g(f),consume:function(w){re(w)?(r.line++,r.column=1,r.offset+=w===-3?2:1,y()):w!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=w},enter:function(w,v){const b=v||{};return b.type=w,b.start=A(),c.events.push(["enter",b,c]),a.push(b),b},exit:function(w){const v=a.pop();return v.end=A(),c.events.push(["exit",v,c]),v},interrupt:g(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(w){o[w.line]=w.column,y()},events:[],now:A,parser:t,previous:null,sliceSerialize:function(w,v){return(function(b,E){let k=-1;const P=[];let D;for(;++k<b.length;){const I=b[k];let T;if(typeof I=="string")T=I;else switch(I){case-5:T="\r";break;case-4:T=`
|
|
16
|
+
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(t){var e;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||$0)();if(!n)return;const r=(e=this.props.containerTagName)!==null&&e!==void 0?e:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(t.match(X0))throw new Error("HTML documents as Interweave content are not supported.");return o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?q0(t):t),o}extractAttributes(t){const{allowAttributes:e}=this.props,n={};let r=0;return t.nodeType===1&&t.attributes&&([...t.attributes].forEach(o=>{const{name:i,value:s}=o,a=i.toLowerCase(),l=au[a]||au[i];if(!this.isSafe(t)||!a.match(J0)&&(!e&&(!l||l===2)||a.startsWith("on")||s.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c=a==="style"?this.extractStyleAttribute(t):s;l===4?c=!0:l===3?c=Number.parseFloat(String(c)):l!==5&&(c=String(c)),n[H0[a]||a]=this.applyAttributeFilters(a,c),r+=1}),r!==0)?n:null}extractStyleAttribute(t){const e={};return Array.from(t.style).forEach(n=>{const r=t.style[n];(typeof r=="string"||typeof r=="number")&&(e[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),e}getTagConfig(t){const e={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Cs[t]?{...e,...Cs[t],tagName:t}:e}isSafe(t){if(typeof HTMLAnchorElement<"u"&&t instanceof HTMLAnchorElement){const e=t.getAttribute("href");if(e!=null&&e.startsWith("#"))return!0;const n=t.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(t){return!this.banned.has(t)&&!this.blocked.has(t)&&(this.props.allowElements||this.allowed.has(t))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(t,e){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:s}=this.props;let a=[],l="";return[...t.childNodes].forEach(c=>{if(c.nodeType===1){const d=c.nodeName.toLowerCase(),A=this.getTagConfig(d);l&&(a.push(l),l="");const h=this.applyNodeFilters(d,c);if(!h)return;let f;if(i&&(!s||this.isTagAllowed(d))){this.keyIndex+=1;const g=this.keyIndex;f=this.parseNode(h,A);const p=i(h,f,A);if(p===null)return;if(typeof p<"u")return void a.push(x.cloneElement(p,{key:g}));this.keyIndex=g-1}if(this.banned.has(d))return;if(n||r&&d!=="br"||!this.isTagAllowed(d)||!o&&!this.canRenderChild(e,A))a=[...a,...this.parseNode(h,A.tagName?A:e)];else{var u;this.keyIndex+=1;const g=this.extractAttributes(h),p={tagName:d};g&&(p.attributes=g),A.void&&(p.selfClose=A.void),a.push(x.createElement(lu,{...p,key:this.keyIndex},(u=f)!==null&&u!==void 0?u:this.parseNode(h,A)))}}else if(c.nodeType===3){const d=n&&!r?c.textContent:this.applyMatchers(c.textContent||"",e);Array.isArray(d)?a=[...a,...d]:l+=d}}),l&&a.push(l),a}replaceTokens(t,e){if(!t.includes("{{{"))return t;const n=[];let r=t,o=null;for(;o=r.match(Z0);){const[i,s]=o,a=o.index,l=i.includes("/");if(!e[s])throw new Error(`Token "${s}" found but no matching element to replace with.`);a>0&&(n.push(r.slice(0,a)),r=r.slice(a));const{children:c,matcher:u,props:d}=e[s];let A;if(l)A=i.length,n.push(u.createElement(c,d));else{const h=r.match(new RegExp(`{{{/${s}}}}`));if(!h)throw new Error(`Closing token missing for interpolated element "${s}".`);A=h.index+h[0].length,n.push(u.createElement(this.replaceTokens(r.slice(i.length,h.index),e),d))}r=r.slice(A)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function eb(t){var e;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:s,parsedContent:a,tagName:l,noWrap:c}=t,u=(e=o??l)!==null&&e!==void 0?e:"span",d=u==="fragment"||c;let A;if(a)A=a;else{const h=new du(i??"",t).parse();h.length>0&&(A=h)}return A||(A=s),d?x.createElement(x.Fragment,null,A):x.createElement(lu,{attributes:n,className:r,tagName:u},A)}function tb(t){const{attributes:e,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:s=null,filters:a=[],matchers:l=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:d="span",noWrap:A=!1,...h}=t,f=i?[]:l,g=o?[]:a,p=u?[u]:[],v=c?[c]:[];f.forEach(E=>{E.onBeforeParse&&p.push(E.onBeforeParse.bind(E)),E.onAfterParse&&v.push(E.onAfterParse.bind(E))});const w=p.reduce((E,k)=>{const P=k(E,t);if(typeof P!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return P},r??""),y=new du(w,h,f,g),b=v.reduce((E,k)=>{const P=k(E,t);if(!Array.isArray(P))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return P},y.parse());return x.createElement(eb,{attributes:e,className:n,containerTagName:t.containerTagName,emptyContent:s,noWrap:A,parsedContent:b.length===0?void 0:b,tagName:d})}const nb=({children:t})=>m.jsx("div",{style:{whiteSpace:"normal"},children:m.jsx(tb,{content:typeof t=="string"?t:""})}),rb={autoConfig:!0},Au=(t,e,n)=>{var r;if(!t.detail.currPath)return!1;const o=e[t.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},ob=t=>{const e=[];let n="",r=!1;for(let o=0;o<t.length;o++){const i=t[o];i==="<"?r?(e.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,e.push(n),n="",r=!1):r?n+=i:e.push(i)}return n!==""&&e.push(n),e},ib=t=>{const{getFlow:e}=Fo(),{messages:n,replaceMessages:r}=_r(),{settings:o}=ou(),{hasChatHistoryLoaded:i}=su(),s={...t,...rb},a=s.htmlComponent?s.htmlComponent:nb;x.useEffect(()=>{var u,d;if(i){const A=[...n];for(let h=0;h<A.length&&h<(((u=o.chatHistory)==null?void 0:u.maxEntries)??30);h++){const f=A[h];(d=f.tags)!=null&&d.includes("rcb-html-renderer-plugin:parsed")&&(f.contentWrapper=a)}r(A)}},[i]);const l=async u=>{var d;const A=(d=u.data.message)==null?void 0:d.sender.toUpperCase();typeof u.data.message.content=="string"&&Au(u,e(),A)&&(u.type==="rcb-start-simulate-stream-message"&&(u.data.simulateStreamChunker=ob),u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};pt(q.PRE_INJECT_MESSAGE,l),pt(q.CHUNK_STREAM_MESSAGE,l),pt(q.START_STREAM_MESSAGE,l),pt(q.START_SIMULATE_STREAM_MESSAGE,l),pt(q.START_SPEAK_AUDIO,async u=>{Au(u,e(),"BOT")&&(u.data.textToRead=(d=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(d,"text/html").body.textContent||"":d.replace(/<\/?[^>]+(>|$)/g,""))(u.data.textToRead))});const c={name:"@rcb-plugins/html-renderer"};return s!=null&&s.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c},sb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ab=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lb={};function hu(t,e){return(lb.jsx?ab:sb).test(t)}const cb=/[ \t\n\f\r]/g;function fu(t){return t.replace(cb,"")===""}class Or{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}}function pu(t,e){const n={},r={};let o=-1;for(;++o<t.length;)Object.assign(n,t[o].property),Object.assign(r,t[o].normal);return new Or(n,r,e)}function Ss(t){return t.toLowerCase()}Or.prototype.property={},Or.prototype.normal={},Or.prototype.space=null;class gt{constructor(e,n){this.property=e,this.attribute=n}}gt.prototype.space=null,gt.prototype.boolean=!1,gt.prototype.booleanish=!1,gt.prototype.overloadedBoolean=!1,gt.prototype.number=!1,gt.prototype.commaSeparated=!1,gt.prototype.spaceSeparated=!1,gt.prototype.commaOrSpaceSeparated=!1,gt.prototype.mustUseProperty=!1,gt.prototype.defined=!1;let ub=0;const ie=Ln(),Oe=Ln(),gu=Ln(),H=Ln(),xe=Ln(),er=Ln(),at=Ln();function Ln(){return 2**++ub}const Ps=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Oe,commaOrSpaceSeparated:at,commaSeparated:er,number:H,overloadedBoolean:gu,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Ds=Object.keys(Ps);class Bs extends gt{constructor(e,n,r,o){let i=-1;if(super(e,n),mu(this,"space",o),typeof r=="number")for(;++i<Ds.length;){const s=Ds[i];mu(this,Ds[i],(r&Ps[s])===Ps[s])}}}function mu(t,e,n){n&&(t[e]=n)}Bs.prototype.defined=!0;const db={}.hasOwnProperty;function tr(t){const e={},n={};let r;for(r in t.properties)if(db.call(t.properties,r)){const o=t.properties[r],i=new Bs(r,t.transform(t.attributes||{},r),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,n[Ss(r)]=r,n[Ss(i.attribute)]=r}return new Or(e,n,t.space)}const bu=tr({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),vu=tr({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yu(t,e){return e in t?t[e]:e}function wu(t,e){return yu(t,e.toLowerCase())}const xu=tr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:wu,properties:{xmlns:null,xmlnsXLink:null}}),ku=tr({transform:(t,e)=>e==="role"?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:xe,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:H,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:xe,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Oe,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null}}),Ab=tr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:wu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:er,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:xe,autoFocus:ie,autoPlay:ie,blocking:xe,capture:null,charSet:null,checked:ie,cite:null,className:xe,cols:H,colSpan:null,content:null,contentEditable:Oe,controls:ie,controlsList:xe,coords:H|er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:gu,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:xe,height:H,hidden:ie,high:H,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:xe,itemRef:xe,itemScope:ie,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:H,pattern:null,ping:xe,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:xe,required:ie,reversed:ie,rows:H,rowSpan:H,sandbox:xe,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Oe,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:H,security:null,unselectable:null}}),hb=tr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:yu,properties:{about:at,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:er,g2:er,glyphName:er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:H,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fb=/^data[-\w.:]+$/i,Eu=/-[a-z]/g,pb=/[A-Z]/g;function gb(t){return"-"+t.toLowerCase()}function mb(t){return t.charAt(1).toUpperCase()}const bb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vb=pu([vu,bu,xu,ku,Ab],"html"),Ts=pu([vu,bu,xu,ku,hb],"svg");function Cu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Is,Su,Pu,nr={},yb=(function(){if(Pu)return nr;Pu=1;var t=nr&&nr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,e.default)(n),s=typeof r=="function";return i.forEach(function(a){if(a.type==="declaration"){var l=a.property,c=a.value;s?r(l,c,a):c&&((o=o||{})[l]=c)}}),o};var e=t((function(){if(Su)return Is;Su=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function d(A){return A?A.replace(c,u):u}return Is=function(A,h){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];h=h||{};var f=1,g=1;function p(I){var T=I.match(r);T&&(f+=T.length);var M=I.lastIndexOf(`
|
|
17
|
+
`);g=~M?I.length-M:g+I.length}function v(){var I={line:f,column:g};return function(T){return T.position=new w(I),E(),T}}function w(I){this.start=I,this.end={line:f,column:g},this.source=h.source}function y(I){var T=new Error(h.source+":"+f+":"+g+": "+I);if(T.reason=I,T.filename=h.source,T.line=f,T.column=g,T.source=A,!h.silent)throw T}function b(I){var T=I.exec(A);if(T){var M=T[0];return p(M),A=A.slice(M.length),T}}function E(){b(o)}function k(I){var T;for(I=I||[];T=P();)T!==!1&&I.push(T);return I}function P(){var I=v();if(A.charAt(0)=="/"&&A.charAt(1)=="*"){for(var T=2;u!=A.charAt(T)&&(A.charAt(T)!="*"||A.charAt(T+1)!="/");)++T;if(T+=2,u===A.charAt(T-1))return y("End of comment missing");var M=A.slice(2,T-2);return g+=2,p(M),A=A.slice(T),g+=2,I({type:"comment",comment:M})}}function D(){var I=v(),T=b(i);if(T){if(P(),!b(s))return y("property missing ':'");var M=b(a),B=I({type:"declaration",property:d(T[0].replace(n,u)),value:M?d(M[0].replace(n,u)):u});return b(l),B}}return w.prototype.content=A,E(),(function(){var I,T=[];for(k(T);I=D();)I!==!1&&(T.push(I),k(T));return T})()},Is})());return nr})();const Du=Cu(yb),wb=Du.default||Du,Bu=Tu("end"),Ms=Tu("start");function Tu(t){return function(e){const n=e&&e.position&&e.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Lr(t){return t&&typeof t=="object"?"position"in t||"type"in t?Iu(t.position):"start"in t||"end"in t?Iu(t):"line"in t||"column"in t?_s(t):"":""}function _s(t){return Mu(t&&t.line)+":"+Mu(t&&t.column)}function Iu(t){return _s(t&&t.start)+"-"+_s(t&&t.end)}function Mu(t){return t&&typeof t=="number"?t:1}class Ve extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof e=="string"?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Lr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ve.prototype.file="",Ve.prototype.name="",Ve.prototype.reason="",Ve.prototype.message="",Ve.prototype.stack="",Ve.prototype.column=void 0,Ve.prototype.line=void 0,Ve.prototype.ancestors=void 0,Ve.prototype.cause=void 0,Ve.prototype.fatal=void 0,Ve.prototype.place=void 0,Ve.prototype.ruleId=void 0,Ve.prototype.source=void 0;const Os={}.hasOwnProperty,xb=new Map,kb=/[A-Z]/g,Eb=/-([a-z])/g,Cb=new Set(["table","tbody","thead","tfoot","tr"]),Sb=new Set(["td","th"]),_u="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pb(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(s,a){return l;function l(c,u,d,A){const h=Array.isArray(d.children),f=Ms(c);return a(u,d,A,h,{columnNumber:f?f.column-1:void 0,fileName:s,lineNumber:f?f.line:void 0},void 0)}})(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=(function(s,a,l){return c;function c(u,d,A,h){const f=Array.isArray(A.children)?l:a;return h?f(d,A,h):f(d,A)}})(0,e.jsx,e.jsxs)}const o={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ts:vb,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},i=Ou(o,t,void 0);return i&&typeof i!="string"?i:o.create(t,o.Fragment,{children:i||void 0},void 0)}function Ou(t,e,n){return e.type==="element"?(function(r,o,i){const s=r.schema;let a=s;o.tagName.toLowerCase()==="svg"&&s.space==="html"&&(a=Ts,r.schema=a),r.ancestors.push(o);const l=Fu(r,o.tagName,!1),c=(function(d,A){const h={};let f,g;for(g in A.properties)if(g!=="children"&&Os.call(A.properties,g)){const p=Db(d,g,A.properties[g]);if(p){const[v,w]=p;d.tableCellAlignToStyle&&v==="align"&&typeof w=="string"&&Sb.has(A.tagName)?f=w:h[v]=w}}return f&&((h.style||(h.style={}))[d.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),h})(r,o);let u=Fs(r,o);return Cb.has(o.tagName)&&(u=u.filter(function(d){return typeof d!="string"||!(function(A){return typeof A=="object"?A.type==="text"&&fu(A.value):fu(A)})(d)})),Lu(r,c,l,o),Ls(c,u),r.ancestors.pop(),r.schema=s,r.create(o,l,c,i)})(t,e,n):e.type==="mdxFlowExpression"||e.type==="mdxTextExpression"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}Fr(r,o.position)})(t,e):e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement"?(function(r,o,i){const s=r.schema;let a=s;o.name==="svg"&&s.space==="html"&&(a=Ts,r.schema=a),r.ancestors.push(o);const l=o.name===null?r.Fragment:Fu(r,o.name,!0),c=(function(d,A){const h={};for(const f of A.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&d.evaluater){const g=f.data.estree.body[0];g.type;const p=g.expression;p.type;const v=p.properties[0];v.type,Object.assign(h,d.evaluater.evaluateExpression(v.argument))}else Fr(d,A.position);else{const g=f.name;let p;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&d.evaluater){const v=f.value.data.estree.body[0];v.type,p=d.evaluater.evaluateExpression(v.expression)}else Fr(d,A.position);else p=f.value===null||f.value;h[g]=p}return h})(r,o),u=Fs(r,o);return Lu(r,c,l,o),Ls(c,u),r.ancestors.pop(),r.schema=s,r.create(o,l,c,i)})(t,e,n):e.type==="mdxjsEsm"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);Fr(r,o.position)})(t,e):e.type==="root"?(function(r,o,i){const s={};return Ls(s,Fs(r,o)),r.create(o,r.Fragment,s,i)})(t,e,n):e.type==="text"?(function(r,o){return o.value})(0,e):void 0}function Lu(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function Ls(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function Fs(t,e){const n=[];let r=-1;const o=t.passKeys?new Map:xb;for(;++r<e.children.length;){const i=e.children[r];let s;if(t.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;s=l+"-"+c,o.set(l,c+1)}}const a=Ou(t,i,s);a!==void 0&&n.push(a)}return n}function Db(t,e,n){const r=(function(o,i){const s=Ss(i);let a=i,l=gt;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&fb.test(i)){if(i.charAt(4)==="-"){const c=i.slice(5).replace(Eu,mb);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=i.slice(4);if(!Eu.test(c)){let u=c.replace(pb,gb);u.charAt(0)!=="-"&&(u="-"+u),i="data"+u}}l=Bs}return new l(a,i)})(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()})(n):(function(o){return o.join(" ").trim()})(n)),r.property==="style"){let o=typeof n=="object"?n:(function(i,s){const a={};try{wb(s,l)}catch(c){if(!i.ignoreInvalidStyle){const u=c,d=new Ve("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw d.file=i.filePath||void 0,d.url=_u+"#cannot-parse-style-attribute",d}}return a;function l(c,u){let d=c;d.slice(0,2)!=="--"&&(d.slice(0,4)==="-ms-"&&(d="ms-"+d.slice(4)),d=d.replace(Eb,Tb)),a[d]=u}})(t,String(n));return t.stylePropertyNameCase==="css"&&(o=(function(i){const s={};let a;for(a in i)Os.call(i,a)&&(s[Bb(a)]=i[a]);return s})(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&r.space?bb[r.property]||r.property:r.attribute,n]}}function Fu(t,e,n){let r;if(n)if(e.includes(".")){const o=e.split(".");let i,s=-1;for(;++s<o.length;){const a=hu(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};i=i?{type:"MemberExpression",object:i,property:a,computed:!(!s||a.type!=="Literal"),optional:!1}:a}r=i}else r=hu(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if(r.type==="Literal"){const o=r.value;return Os.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(r);Fr(t)}function Fr(t,e){const n=new Ve("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=_u+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Bb(t){let e=t.replace(kb,Ib);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function Tb(t,e){return e.toUpperCase()}function Ib(t){return"-"+t.toLowerCase()}const Qs={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},No={};function Qu(t,e,n){if((function(r){return!(!r||typeof r!="object")})(t)){if("value"in t)return t.type!=="html"||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Nu(t.children,e,n)}return Array.isArray(t)?Nu(t,e,n):""}function Nu(t,e,n){const r=[];let o=-1;for(;++o<t.length;)r[o]=Qu(t[o],e,n);return r.join("")}const zu=document.createElement("i");function Ns(t){const e="&"+t+";";zu.innerHTML=e;const n=zu.textContent;return(n.charCodeAt(n.length-1)!==59||t==="semi")&&n!==e&&n}function Qt(t,e,n,r){const o=t.length;let i,s=0;if(e=e<0?-e>o?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(e,0),t.splice(...i),s+=1e4,e+=1e4}function mt(t,e){return t.length>0?(Qt(t,t.length,0,e),t):e}const Ru={}.hasOwnProperty;function Mb(t){const e={};let n=-1;for(;++n<t.length;)_b(e,t[n]);return e}function _b(t,e){let n;for(n in e){const r=(Ru.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let i;if(o)for(i in o){Ru.call(r,i)||(r[i]=[]);const s=o[i];Ob(r[i],Array.isArray(s)?s:s?[s]:[])}}}function Ob(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Qt(t,0,0,r)}function Uu(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function rr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Nt=vn(/[A-Za-z]/),lt=vn(/[\dA-Za-z]/),Lb=vn(/[#-'*+\--9=?A-Z^-~]/);function zs(t){return t!==null&&(t<32||t===127)}const Rs=vn(/\d/),Fb=vn(/[\dA-Fa-f]/),Qb=vn(/[!-/:-@[-`{-~]/);function re(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function me(t){return t===-2||t===-1||t===32}const Nb=vn(new RegExp("\\p{P}|\\p{S}","u")),zb=vn(/\s/);function vn(t){return function(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function or(t){const e=[];let n=-1,r=0,o=0;for(;++n<t.length;){const i=t.charCodeAt(n);let s="";if(i===37&<(t.charCodeAt(n+1))&<(t.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=t.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return e.join("")+t.slice(r)}function ke(t,e,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(a){return me(a)?(t.enter(n),s(a)):e(a)};function s(a){return me(a)&&i++<o?(t.consume(a),s):(t.exit(n),e(a))}}const Rb={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void t.consume(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ke(t,e,"linePrefix"))},function(i){return t.enter("paragraph"),r(i)});let n;return e;function r(i){const s=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){return i===null?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(i)):re(i)?(t.consume(i),t.exit("chunkText"),r):(t.consume(i),o)}}},Ub={tokenize:function(t){const e=this,n=[];let r,o,i,s=0;return a;function a(y){if(s<n.length){const b=n[s];return e.containerState=b[1],t.attempt(b[0].continuation,l,c)(y)}return c(y)}function l(y){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&w();const b=e.events.length;let E,k=b;for(;k--;)if(e.events[k][0]==="exit"&&e.events[k][1].type==="chunkFlow"){E=e.events[k][1].end;break}v(s);let P=b;for(;P<e.events.length;)e.events[P][1].end={...E},P++;return Qt(e.events,k+1,0,e.events.slice(b)),e.events.length=P,c(y)}return a(y)}function c(y){if(s===n.length){if(!r)return A(y);if(r.currentConstruct&&r.currentConstruct.concrete)return f(y);e.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(ju,u,d)(y)}function u(y){return r&&w(),v(s),A(y)}function d(y){return e.parser.lazy[e.now().line]=s!==n.length,i=e.now().offset,f(y)}function A(y){return e.containerState={},t.attempt(ju,h,f)(y)}function h(y){return s++,n.push([e.currentConstruct,e.containerState]),A(y)}function f(y){return y===null?(r&&w(),v(0),void t.consume(y)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(y))}function g(y){return y===null?(p(t.exit("chunkFlow"),!0),v(0),void t.consume(y)):re(y)?(t.consume(y),p(t.exit("chunkFlow")),s=0,e.interrupt=void 0,a):(t.consume(y),g)}function p(y,b){const E=e.sliceStream(y);if(b&&E.push(null),y.previous=o,o&&(o.next=y),o=y,r.defineSkip(y.start),r.write(E),e.parser.lazy[y.start.line]){let k=r.events.length;for(;k--;)if(r.events[k][1].start.offset<i&&(!r.events[k][1].end||r.events[k][1].end.offset>i))return;const P=e.events.length;let D,I,T=P;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){if(D){I=e.events[T][1].end;break}D=!0}for(v(s),k=P;k<e.events.length;)e.events[k][1].end={...I},k++;Qt(e.events,T+1,0,e.events.slice(P)),e.events.length=k}}function v(y){let b=n.length;for(;b-- >y;){const E=n[b];e.containerState=E[1],E[0].exit.call(e,t)}n.length=y}function w(){r.write([null]),o=void 0,r=void 0,e.containerState._closeFlow=void 0}}},ju={tokenize:function(t,e,n){return ke(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Vu(t){return t===null||Ze(t)||zb(t)?1:Nb(t)?2:void 0}function Us(t,e,n){const r=[];let o=-1;for(;++o<t.length;){const i=t[o].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}const js={name:"attention",resolveAll:function(t,e){let n,r,o,i,s,a,l,c,u=-1;for(;++u<t.length;)if(t[u][0]==="enter"&&t[u][1].type==="attentionSequence"&&t[u][1]._close){for(n=u;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[u][1]).charCodeAt(0)){if((t[n][1]._close||t[u][1]._open)&&(t[u][1].end.offset-t[u][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[u][1].end.offset-t[u][1].start.offset)%3))continue;a=t[n][1].end.offset-t[n][1].start.offset>1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const d={...t[n][1].end},A={...t[u][1].start};Hu(d,-a),Hu(A,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...t[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...t[u][1].start},end:A},o={type:a>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},t[n][1].end={...i.start},t[u][1].start={...s.end},l=[],t[n][1].end.offset-t[n][1].start.offset&&(l=mt(l,[["enter",t[n][1],e],["exit",t[n][1],e]])),l=mt(l,[["enter",r,e],["enter",i,e],["exit",i,e],["enter",o,e]]),l=mt(l,Us(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),l=mt(l,[["exit",o,e],["enter",s,e],["exit",s,e],["exit",r,e]]),t[u][1].end.offset-t[u][1].start.offset?(c=2,l=mt(l,[["enter",t[u][1],e],["exit",t[u][1],e]])):c=0,Qt(t,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<t.length;)t[u][1].type==="attentionSequence"&&(t[u][1].type="data");return t},tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Vu(r);let i;return function(a){return i=a,t.enter("attentionSequence"),s(a)};function s(a){if(a===i)return t.consume(a),s;const l=t.exit("attentionSequence"),c=Vu(a),u=!c||c===2&&o||n.includes(a),d=!o||o===2&&c||n.includes(r);return l._open=!!(i===42?u:u&&(o||!d)),l._close=!!(i===42?d:d&&(c||!u)),e(a)}}};function Hu(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const jb={name:"autolink",tokenize:function(t,e,n){let r=0;return function(A){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o};function o(A){return Nt(A)?(t.consume(A),i):A===64?n(A):l(A)}function i(A){return A===43||A===45||A===46||lt(A)?(r=1,s(A)):l(A)}function s(A){return A===58?(t.consume(A),r=0,a):(A===43||A===45||A===46||lt(A))&&r++<32?(t.consume(A),s):(r=0,l(A))}function a(A){return A===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.exit("autolink"),e):A===null||A===32||A===60||zs(A)?n(A):(t.consume(A),a)}function l(A){return A===64?(t.consume(A),c):Lb(A)?(t.consume(A),l):n(A)}function c(A){return lt(A)?u(A):n(A)}function u(A){return A===46?(t.consume(A),r=0,c):A===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(A),t.exit("autolinkMarker"),t.exit("autolink"),e):d(A)}function d(A){if((A===45||lt(A))&&r++<63){const h=A===45?d:u;return t.consume(A),h}return n(A)}}},zo={partial:!0,tokenize:function(t,e,n){return function(o){return me(o)?ke(t,r,"linePrefix")(o):r(o)};function r(o){return o===null||re(o)?e(o):n(o)}}},Wu={continuation:{tokenize:function(t,e,n){const r=this;return function(i){return me(i)?ke(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return t.attempt(Wu,e,n)(i)}}},exit:function(t){t.exit("blockQuote")},name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(i){if(i===62){const s=r.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(i),t.exit("blockQuoteMarker"),o}return n(i)};function o(i){return me(i)?(t.enter("blockQuotePrefixWhitespace"),t.consume(i),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(i))}}},Yu={name:"characterEscape",tokenize:function(t,e,n){return function(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),r};function r(o){return Qb(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}},qu={name:"characterReference",tokenize:function(t,e,n){const r=this;let o,i,s=0;return function(u){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),a};function a(u){return u===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(u),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),o=31,i=lt,c(u))}function l(u){return u===88||u===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(u),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,i=Fb,c):(t.enter("characterReferenceValue"),o=7,i=Rs,c(u))}function c(u){if(u===59&&s){const d=t.exit("characterReferenceValue");return i!==lt||Ns(r.sliceSerialize(d))?(t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(u)}return i(u)&&s++<o?(t.consume(u),c):n(u)}}},Gu={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return i===null?n(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},Ku={concrete:!0,name:"codeFenced",tokenize:function(t,e,n){const r=this,o={partial:!0,tokenize:function(y,b,E){let k=0;return P;function P(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),D}function D(B){return y.enter("codeFencedFence"),me(B)?ke(y,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):I(B)}function I(B){return B===i?(y.enter("codeFencedFenceSequence"),T(B)):E(B)}function T(B){return B===i?(k++,y.consume(B),T):k>=a?(y.exit("codeFencedFenceSequence"),me(B)?ke(y,M,"whitespace")(B):M(B)):E(B)}function M(B){return B===null||re(B)?(y.exit("codeFencedFence"),b(B)):E(B)}}};let i,s=0,a=0;return function(y){return(function(b){const E=r.events[r.events.length-1];return s=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,i=b,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(b)})(y)};function l(y){return y===i?(a++,t.consume(y),l):a<3?n(y):(t.exit("codeFencedFenceSequence"),me(y)?ke(t,c,"whitespace")(y):c(y))}function c(y){return y===null||re(y)?(t.exit("codeFencedFence"),r.interrupt?e(y):t.check(Gu,h,w)(y)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(y))}function u(y){return y===null||re(y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),c(y)):me(y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ke(t,d,"whitespace")(y)):y===96&&y===i?n(y):(t.consume(y),u)}function d(y){return y===null||re(y)?c(y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),A(y))}function A(y){return y===null||re(y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),c(y)):y===96&&y===i?n(y):(t.consume(y),A)}function h(y){return t.attempt(o,w,f)(y)}function f(y){return t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),g}function g(y){return s>0&&me(y)?ke(t,p,"linePrefix",s+1)(y):p(y)}function p(y){return y===null||re(y)?t.check(Gu,h,w)(y):(t.enter("codeFlowValue"),v(y))}function v(y){return y===null||re(y)?(t.exit("codeFlowValue"),p(y)):(t.consume(y),v)}function w(y){return t.exit("codeFenced"),e(y)}}},Vs={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(l){return t.enter("codeIndented"),ke(t,o,"linePrefix",5)(l)};function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(l):n(l)}function i(l){return l===null?a(l):re(l)?t.attempt(Vb,i,a)(l):(t.enter("codeFlowValue"),s(l))}function s(l){return l===null||re(l)?(t.exit("codeFlowValue"),i(l)):(t.consume(l),s)}function a(l){return t.exit("codeIndented"),e(l)}}},Vb={partial:!0,tokenize:function(t,e,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):re(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):ke(t,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):re(s)?o(s):n(s)}}},Hb={name:"codeText",previous:function(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(t){let e,n,r=t.length-4,o=3;if(!(t[o][1].type!=="lineEnding"&&t[o][1].type!=="space"||t[r][1].type!=="lineEnding"&&t[r][1].type!=="space")){for(e=o;++e<r;)if(t[e][1].type==="codeTextData"){t[o][1].type="codeTextPadding",t[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(e=o-1,r++;++e<=r;)n===void 0?e!==r&&t[e][1].type!=="lineEnding"&&(n=e):(e===r||t[e][1].type==="lineEnding")&&(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},tokenize:function(t,e,n){let r,o,i=0;return function(u){return t.enter("codeText"),t.enter("codeTextSequence"),s(u)};function s(u){return u===96?(t.consume(u),i++,s):(t.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(t.enter("space"),t.consume(u),t.exit("space"),a):u===96?(o=t.enter("codeTextSequence"),r=0,c(u)):re(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a):(t.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||re(u)?(t.exit("codeTextData"),a(u)):(t.consume(u),l)}function c(u){return u===96?(t.consume(u),r++,c):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(u)):(o.type="codeTextData",l(u))}}};class Wb{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const o=n||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Qr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Qr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Qr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Qr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Qr(this.left,n.reverse())}}}function Qr(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function Xu(t){const e={};let n,r,o,i,s,a,l,c=-1;const u=new Wb(t);for(;++c<u.length;){for(;c in e;)c=e[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(a=n[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,Yb(u,c)),c=e[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Qt(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Yb(t,e){const n=t.get(e)[1],r=t.get(e)[2];let o=e-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,d,A=-1,h=n,f=0,g=0;const p=[g];for(;h;){for(;t.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++A<a.length;)a[A][0]==="exit"&&a[A-1][0]==="enter"&&a[A][1].type===a[A-1][1].type&&a[A][1].start.line!==a[A][1].end.line&&(g=A+1,p.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):p.pop(),A=p.length;A--;){const v=a.slice(p[A],p[A+1]),w=i.pop();l.push([w,w+v.length-1]),t.splice(w,2,v)}for(l.reverse(),A=-1;++A<l.length;)c[f+l[A][0]]=f+l[A][1],f+=l[A][1]-l[A][0]-1;return c}const qb={resolve:function(t){return Xu(t),t},tokenize:function(t,e){let n;return function(s){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?o(s):re(s)?t.check(Gb,i,o)(s):(t.consume(s),r)}function o(s){return t.exit("chunkContent"),t.exit("content"),e(s)}function i(s){return t.consume(s),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Gb={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ke(t,o,"linePrefix")};function o(i){if(i===null||re(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}}};function Ju(t,e,n,r,o,i,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(p){return p===60?(t.enter(r),t.enter(o),t.enter(i),t.consume(p),t.exit(i),d):p===null||p===32||p===41||zs(p)?n(p):(t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),f(p))};function d(p){return p===62?(t.enter(i),t.consume(p),t.exit(i),t.exit(o),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),A(p))}function A(p){return p===62?(t.exit("chunkString"),t.exit(a),d(p)):p===null||p===60||re(p)?n(p):(t.consume(p),p===92?h:A)}function h(p){return p===60||p===62||p===92?(t.consume(p),A):A(p)}function f(p){return u||p!==null&&p!==41&&!Ze(p)?u<c&&p===40?(t.consume(p),u++,f):p===41?(t.consume(p),u--,f):p===null||p===32||p===40||zs(p)?n(p):(t.consume(p),p===92?g:f):(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(p))}function g(p){return p===40||p===41||p===92?(t.consume(p),f):f(p)}}function Zu(t,e,n,r,o,i){const s=this;let a,l=0;return function(A){return t.enter(r),t.enter(o),t.consume(A),t.exit(o),t.enter(i),c};function c(A){return l>999||A===null||A===91||A===93&&!a||A===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(A):A===93?(t.exit(i),t.enter(o),t.consume(A),t.exit(o),t.exit(r),e):re(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||re(A)||l++>999?(t.exit("chunkString"),c(A)):(t.consume(A),a||(a=!me(A)),A===92?d:u)}function d(A){return A===91||A===92||A===93?(t.consume(A),l++,u):u(A)}}function $u(t,e,n,r,o,i){let s;return function(d){return d===34||d===39||d===40?(t.enter(r),t.enter(o),t.consume(d),t.exit(o),s=d===40?41:d,a):n(d)};function a(d){return d===s?(t.enter(o),t.consume(d),t.exit(o),t.exit(r),e):(t.enter(i),l(d))}function l(d){return d===s?(t.exit(i),a(s)):d===null?n(d):re(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),ke(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||re(d)?(t.exit("chunkString"),l(d)):(t.consume(d),d===92?u:c)}function u(d){return d===s||d===92?(t.consume(d),c):c(d)}}function Nr(t,e){let n;return function r(o){return re(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),n=!0,r):me(o)?ke(t,r,n?"linePrefix":"lineSuffix")(o):e(o)}}const Kb={name:"definition",tokenize:function(t,e,n){const r=this;let o;return function(d){return t.enter("definition"),(function(A){return Zu.call(r,t,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)})(d)};function i(d){return o=rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),s):n(d)}function s(d){return Ze(d)?Nr(t,a)(d):a(d)}function a(d){return Ju(t,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function l(d){return t.attempt(Xb,c,c)(d)}function c(d){return me(d)?ke(t,u,"whitespace")(d):u(d)}function u(d){return d===null||re(d)?(t.exit("definition"),r.parser.defined.push(o),e(d)):n(d)}}},Xb={partial:!0,tokenize:function(t,e,n){return function(s){return Ze(s)?Nr(t,r)(s):n(s)};function r(s){return $u(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return me(s)?ke(t,i,"whitespace")(s):i(s)}function i(s){return s===null||re(s)?e(s):n(s)}}},Jb={name:"hardBreakEscape",tokenize:function(t,e,n){return function(o){return t.enter("hardBreakEscape"),t.consume(o),r};function r(o){return re(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}},Zb={name:"headingAtx",resolve:function(t,e){let n,r,o=t.length-2,i=3;return t[i][1].type==="whitespace"&&(i+=2),o-2>i&&t[o][1].type==="whitespace"&&(o-=2),t[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&t[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:t[i][1].start,end:t[o][1].end},r={type:"chunkText",start:t[i][1].start,end:t[o][1].end,contentType:"text"},Qt(t,i,o-i+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t},tokenize:function(t,e,n){let r=0;return function(l){return t.enter("atxHeading"),(function(c){return t.enter("atxHeadingSequence"),o(c)})(l)};function o(l){return l===35&&r++<6?(t.consume(l),o):l===null||Ze(l)?(t.exit("atxHeadingSequence"),i(l)):n(l)}function i(l){return l===35?(t.enter("atxHeadingSequence"),s(l)):l===null||re(l)?(t.exit("atxHeading"),e(l)):me(l)?ke(t,i,"whitespace")(l):(t.enter("atxHeadingText"),a(l))}function s(l){return l===35?(t.consume(l),s):(t.exit("atxHeadingSequence"),i(l))}function a(l){return l===null||l===35||Ze(l)?(t.exit("atxHeadingText"),i(l)):(t.consume(l),a)}}},$b=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ed=["pre","script","style","textarea"],ev={concrete:!0,name:"htmlFlow",resolveTo:function(t){let e=t.length;for(;e--&&(t[e][0]!=="enter"||t[e][1].type!=="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},tokenize:function(t,e,n){const r=this;let o,i,s,a,l;return function(S){return(function(X){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(X),c})(S)};function c(S){return S===33?(t.consume(S),u):S===47?(t.consume(S),i=!0,h):S===63?(t.consume(S),o=3,r.interrupt?e:U):Nt(S)?(t.consume(S),s=String.fromCharCode(S),f):n(S)}function u(S){return S===45?(t.consume(S),o=2,d):S===91?(t.consume(S),o=5,a=0,A):Nt(S)?(t.consume(S),o=4,r.interrupt?e:U):n(S)}function d(S){return S===45?(t.consume(S),r.interrupt?e:U):n(S)}function A(S){return S==="CDATA[".charCodeAt(a++)?(t.consume(S),a===6?r.interrupt?e:T:A):n(S)}function h(S){return Nt(S)?(t.consume(S),s=String.fromCharCode(S),f):n(S)}function f(S){if(S===null||S===47||S===62||Ze(S)){const X=S===47,V=s.toLowerCase();return X||i||!ed.includes(V)?$b.includes(s.toLowerCase())?(o=6,X?(t.consume(S),g):r.interrupt?e(S):T(S)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):i?p(S):v(S)):(o=1,r.interrupt?e(S):T(S))}return S===45||lt(S)?(t.consume(S),s+=String.fromCharCode(S),f):n(S)}function g(S){return S===62?(t.consume(S),r.interrupt?e:T):n(S)}function p(S){return me(S)?(t.consume(S),p):D(S)}function v(S){return S===47?(t.consume(S),D):S===58||S===95||Nt(S)?(t.consume(S),w):me(S)?(t.consume(S),v):D(S)}function w(S){return S===45||S===46||S===58||S===95||lt(S)?(t.consume(S),w):y(S)}function y(S){return S===61?(t.consume(S),b):me(S)?(t.consume(S),y):v(S)}function b(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(t.consume(S),l=S,E):me(S)?(t.consume(S),b):k(S)}function E(S){return S===l?(t.consume(S),l=null,P):S===null||re(S)?n(S):(t.consume(S),E)}function k(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Ze(S)?y(S):(t.consume(S),k)}function P(S){return S===47||S===62||me(S)?v(S):n(S)}function D(S){return S===62?(t.consume(S),I):n(S)}function I(S){return S===null||re(S)?T(S):me(S)?(t.consume(S),I):n(S)}function T(S){return S===45&&o===2?(t.consume(S),N):S===60&&o===1?(t.consume(S),O):S===62&&o===4?(t.consume(S),C):S===63&&o===3?(t.consume(S),U):S===93&&o===5?(t.consume(S),Q):!re(S)||o!==6&&o!==7?S===null||re(S)?(t.exit("htmlFlowData"),M(S)):(t.consume(S),T):(t.exit("htmlFlowData"),t.check(tv,G,M)(S))}function M(S){return t.check(nv,B,G)(S)}function B(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),_}function _(S){return S===null||re(S)?M(S):(t.enter("htmlFlowData"),T(S))}function N(S){return S===45?(t.consume(S),U):T(S)}function O(S){return S===47?(t.consume(S),s="",R):T(S)}function R(S){if(S===62){const X=s.toLowerCase();return ed.includes(X)?(t.consume(S),C):T(S)}return Nt(S)&&s.length<8?(t.consume(S),s+=String.fromCharCode(S),R):T(S)}function Q(S){return S===93?(t.consume(S),U):T(S)}function U(S){return S===62?(t.consume(S),C):S===45&&o===2?(t.consume(S),U):T(S)}function C(S){return S===null||re(S)?(t.exit("htmlFlowData"),G(S)):(t.consume(S),C)}function G(S){return t.exit("htmlFlow"),e(S)}}},tv={partial:!0,tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(zo,e,n)}}},nv={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return re(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},rv={name:"htmlText",tokenize:function(t,e,n){const r=this;let o,i,s;return function(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),a};function a(C){return C===33?(t.consume(C),l):C===47?(t.consume(C),b):C===63?(t.consume(C),w):Nt(C)?(t.consume(C),P):n(C)}function l(C){return C===45?(t.consume(C),c):C===91?(t.consume(C),i=0,h):Nt(C)?(t.consume(C),v):n(C)}function c(C){return C===45?(t.consume(C),A):n(C)}function u(C){return C===null?n(C):C===45?(t.consume(C),d):re(C)?(s=u,R(C)):(t.consume(C),u)}function d(C){return C===45?(t.consume(C),A):u(C)}function A(C){return C===62?O(C):C===45?d(C):u(C)}function h(C){return C==="CDATA[".charCodeAt(i++)?(t.consume(C),i===6?f:h):n(C)}function f(C){return C===null?n(C):C===93?(t.consume(C),g):re(C)?(s=f,R(C)):(t.consume(C),f)}function g(C){return C===93?(t.consume(C),p):f(C)}function p(C){return C===62?O(C):C===93?(t.consume(C),p):f(C)}function v(C){return C===null||C===62?O(C):re(C)?(s=v,R(C)):(t.consume(C),v)}function w(C){return C===null?n(C):C===63?(t.consume(C),y):re(C)?(s=w,R(C)):(t.consume(C),w)}function y(C){return C===62?O(C):w(C)}function b(C){return Nt(C)?(t.consume(C),E):n(C)}function E(C){return C===45||lt(C)?(t.consume(C),E):k(C)}function k(C){return re(C)?(s=k,R(C)):me(C)?(t.consume(C),k):O(C)}function P(C){return C===45||lt(C)?(t.consume(C),P):C===47||C===62||Ze(C)?D(C):n(C)}function D(C){return C===47?(t.consume(C),O):C===58||C===95||Nt(C)?(t.consume(C),I):re(C)?(s=D,R(C)):me(C)?(t.consume(C),D):O(C)}function I(C){return C===45||C===46||C===58||C===95||lt(C)?(t.consume(C),I):T(C)}function T(C){return C===61?(t.consume(C),M):re(C)?(s=T,R(C)):me(C)?(t.consume(C),T):D(C)}function M(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(t.consume(C),o=C,B):re(C)?(s=M,R(C)):me(C)?(t.consume(C),M):(t.consume(C),_)}function B(C){return C===o?(t.consume(C),o=void 0,N):C===null?n(C):re(C)?(s=B,R(C)):(t.consume(C),B)}function _(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Ze(C)?D(C):(t.consume(C),_)}function N(C){return C===47||C===62||Ze(C)?D(C):n(C)}function O(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),e):n(C)}function R(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),Q}function Q(C){return me(C)?ke(t,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):U(C)}function U(C){return t.enter("htmlTextData"),s(C)}}},Hs={name:"labelEnd",resolveAll:function(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",e+=o}}return t.length!==n.length&&Qt(t,0,t.length,n),t},resolveTo:function(t,e){let n,r,o,i,s=t.length,a=0;for(;s--;)if(n=t[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;t[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(t[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(o=s);const l={type:t[r][1].type==="labelLink"?"link":"image",start:{...t[r][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[r][1].start},end:{...t[o][1].end}},u={type:"labelText",start:{...t[r+a+2][1].end},end:{...t[o-2][1].start}};return i=[["enter",l,e],["enter",c,e]],i=mt(i,t.slice(r+1,r+a+3)),i=mt(i,[["enter",u,e]]),i=mt(i,Us(e.parser.constructs.insideSpan.null,t.slice(r+a+4,o-3),e)),i=mt(i,[["exit",u,e],t[o-2],t[o-1],["exit",c,e]]),i=mt(i,t.slice(o+1)),i=mt(i,[["exit",l,e]]),Qt(t,r,t.length,i),t},tokenize:function(t,e,n){const r=this;let o,i,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(d){return o?o._inactive?u(d):(i=r.parser.defined.includes(rr(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),a):n(d)};function a(d){return d===40?t.attempt(ov,c,i?c:u)(d):d===91?t.attempt(iv,c,i?l:u)(d):i?c(d):u(d)}function l(d){return t.attempt(sv,c,u)(d)}function c(d){return e(d)}function u(d){return o._balanced=!0,n(d)}}},ov={tokenize:function(t,e,n){return function(u){return t.enter("resource"),t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),r};function r(u){return Ze(u)?Nr(t,o)(u):o(u)}function o(u){return u===41?c(u):Ju(t,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return Ze(u)?Nr(t,a)(u):c(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?$u(t,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return Ze(u)?Nr(t,c)(u):c(u)}function c(u){return u===41?(t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),t.exit("resource"),e):n(u)}}},iv={tokenize:function(t,e,n){const r=this;return function(s){return Zu.call(r,t,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(s):n(s)}function i(s){return n(s)}}},sv={tokenize:function(t,e,n){return function(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),r};function r(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}},av={name:"labelStartImage",resolveAll:Hs.resolveAll,tokenize:function(t,e,n){const r=this;return function(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),o};function o(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}},lv={name:"labelStartLink",resolveAll:Hs.resolveAll,tokenize:function(t,e,n){const r=this;return function(i){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):e(i)}}},Ws={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ke(t,e,"linePrefix")}}},Ro={name:"thematicBreak",tokenize:function(t,e,n){let r,o=0;return function(a){return t.enter("thematicBreak"),(function(l){return r=l,i(l)})(a)};function i(a){return a===r?(t.enter("thematicBreakSequence"),s(a)):o>=3&&(a===null||re(a))?(t.exit("thematicBreak"),e(a)):n(a)}function s(a){return a===r?(t.consume(a),o++,s):(t.exit("thematicBreakSequence"),me(a)?ke(t,i,"whitespace")(a):i(a))}}},$e={continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(zo,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(t,e,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!me(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(uv,e,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(t,t.attempt($e,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)},name:"list",tokenize:function(t,e,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(A){const h=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Rs(A)){if(r.containerState.type||(r.containerState.type=h,t.enter(h,{_container:!0})),h==="listUnordered")return t.enter("listItemPrefix"),A===42||A===45?t.check(Ro,n,l)(A):l(A);if(!r.interrupt||A===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(A)}return n(A)};function a(A){return Rs(A)&&++s<10?(t.consume(A),a):(!r.interrupt||s<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(t.exit("listItemValue"),l(A)):n(A)}function l(A){return t.enter("listItemMarker"),t.consume(A),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,t.check(zo,r.interrupt?n:c,t.attempt(cv,d,u))}function c(A){return r.containerState.initialBlankLine=!0,i++,d(A)}function u(A){return me(A)?(t.enter("listItemPrefixWhitespace"),t.consume(A),t.exit("listItemPrefixWhitespace"),d):n(A)}function d(A){return r.containerState.size=i+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(A)}}},cv={partial:!0,tokenize:function(t,e,n){const r=this;return ke(t,function(o){const i=r.events[r.events.length-1];return!me(o)&&i&&i[1].type==="listItemPrefixWhitespace"?e(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},uv={partial:!0,tokenize:function(t,e,n){const r=this;return ke(t,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(o):n(o)},"listItemIndent",r.containerState.size+1)}},td={name:"setextUnderline",resolveTo:function(t,e){let n,r,o,i=t.length;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){n=i;break}t[i][1].type==="paragraph"&&(r=i)}else t[i][1].type==="content"&&t.splice(i,1),!o&&t[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[r][1].type="setextHeadingText",o?(t.splice(r,0,["enter",s,e]),t.splice(o+1,0,["exit",t[n][1],e]),t[n][1].end={...t[o][1].end}):t[n][1]=s,t.push(["exit",s,e]),t},tokenize:function(t,e,n){const r=this;let o;return function(a){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(a):(t.enter("setextHeadingLine"),o=a,(function(u){return t.enter("setextHeadingLineSequence"),i(u)})(a))};function i(a){return a===o?(t.consume(a),i):(t.exit("setextHeadingLineSequence"),me(a)?ke(t,s,"lineSuffix")(a):s(a))}function s(a){return a===null||re(a)?(t.exit("setextHeadingLine"),e(a)):n(a)}}},dv={tokenize:function(t){const e=this,n=t.attempt(zo,function(o){return o===null?void t.consume(o):(t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n)},t.attempt(this.parser.constructs.flowInitial,r,ke(t,t.attempt(this.parser.constructs.flow,r,t.attempt(qb,r)),"linePrefix")));return n;function r(o){if(o!==null)return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(o)}}},Av={resolveAll:rd()},hv=nd("string"),fv=nd("text");function nd(t){return{resolveAll:rd(t==="text"?pv:void 0),tokenize:function(e){const n=this,r=this.parser.constructs[t],o=e.attempt(r,i,s);return i;function i(c){return l(c)?o(c):s(c)}function s(c){if(c!==null)return e.enter("data"),e.consume(c),a;e.consume(c)}function a(c){return l(c)?(e.exit("data"),o(c)):(e.consume(c),a)}function l(c){if(c===null)return!0;const u=r[c];let d=-1;if(u)for(;++d<u.length;){const A=u[d];if(!A.previous||A.previous.call(n,n.previous))return!0}return!1}}}}function rd(t){return function(e,n){let r,o=-1;for(;++o<=e.length;)r===void 0?e[o]&&e[o][1].type==="data"&&(r=o,o++):(!e[o]||e[o][1].type!=="data")&&(o!==r+2&&(e[r][1].end=e[o-1][1].end,e.splice(r+2,o-r-2),o=r+2),r=void 0);return t?t(e,n):e}}function pv(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],o=e.sliceStream(r);let i,s=o.length,a=-1,l=0;for(;s--;){const c=o[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)i=!0,l++;else if(c!==-1){s++;break}}if(l){const c={type:n===t.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}const gv={42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:Wu},mv={91:Kb},bv={[-2]:Vs,[-1]:Vs,32:Vs},vv={35:Zb,42:Ro,45:[td,Ro],60:ev,61:td,95:Ro,96:Ku,126:Ku},yv={38:qu,92:Yu},wv={[-5]:Ws,[-4]:Ws,[-3]:Ws,33:av,38:qu,42:js,60:[jb,rv],91:lv,92:[Jb,Yu],93:Hs,95:js,96:Hb},xv={null:[js,Av]},kv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:mv,disable:{null:[]},document:gv,flow:vv,flowInitial:bv,insideSpan:xv,string:yv,text:wv},Symbol.toStringTag,{value:"Module"}));function Ev(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:g(function(w,y){p(w,y.from)}),check:g(f),consume:function(w){re(w)?(r.line++,r.column=1,r.offset+=w===-3?2:1,v()):w!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=w},enter:function(w,y){const b=y||{};return b.type=w,b.start=A(),c.events.push(["enter",b,c]),a.push(b),b},exit:function(w){const y=a.pop();return y.end=A(),c.events.push(["exit",y,c]),y},interrupt:g(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(w){o[w.line]=w.column,v()},events:[],now:A,parser:t,previous:null,sliceSerialize:function(w,y){return(function(b,E){let k=-1;const P=[];let D;for(;++k<b.length;){const I=b[k];let T;if(typeof I=="string")T=I;else switch(I){case-5:T="\r";break;case-4:T=`
|
|
18
18
|
`;break;case-3:T=`\r
|
|
19
|
-
`;break;case-2:T=E?" ":" ";break;case-1:if(!E&&D)continue;T=" ";break;default:T=String.fromCharCode(I)}D=I===-2,P.push(T)}return P.join("")})(d(w),v)},sliceStream:d,write:function(w){return s=mt(s,w),(function(){let v;for(;r._index<s.length;){const b=s[r._index];if(typeof b=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<b.length;)h(b.charCodeAt(r._bufferIndex));else h(b)}})(),s[s.length-1]!==null?[]:(p(e,0),c.events=Us(i,c.events,c),c.events)}};let u=e.tokenize.call(c,l);return e.resolveAll&&i.push(e),c;function d(w){return(function(v,b){const E=b.start._index,k=b.start._bufferIndex,P=b.end._index,D=b.end._bufferIndex;let I;if(E===P)I=[v[E].slice(k,D)];else{if(I=v.slice(E,P),k>-1){const T=I[0];typeof T=="string"?I[0]=T.slice(k):I.shift()}D>0&&I.push(v[P].slice(0,D))}return I})(s,w)}function A(){const{_bufferIndex:w,_index:v,line:b,column:E,offset:k}=r;return{_bufferIndex:w,_index:v,line:b,column:E,offset:k}}function h(w){u=u(w)}function f(w,v){v.restore()}function g(w,v){return function(b,E,k){let P,D,I,T;return Array.isArray(b)?M(b):"tokenize"in b?M([b]):(function(O){return R;function R(Q){const U=Q!==null&&O[Q],C=Q!==null&&O.null;return M([...Array.isArray(U)?U:U?[U]:[],...Array.isArray(C)?C:C?[C]:[]])(Q)}})(b);function M(O){return P=O,D=0,O.length===0?k:B(O[D])}function B(O){return function(R){return T=(function(){const Q=A(),U=c.previous,C=c.currentConstruct,G=c.events.length,S=Array.from(a);return{from:G,restore:X};function X(){r=Q,c.previous=U,c.currentConstruct=C,c.events.length=G,a=S,y()}})(),I=O,O.partial||(c.currentConstruct=O),O.name&&c.parser.constructs.disable.null.includes(O.name)?N():O.tokenize.call(v?Object.assign(Object.create(c),v):c,l,_,N)(R)}}function _(O){return w(I,T),E}function N(O){return T.restore(),++D<P.length?B(P[D]):k}}}function p(w,v){w.resolveAll&&!i.includes(w)&&i.push(w),w.resolve&&Qt(c.events,v,c.events.length-v,w.resolve(c.events.slice(v),c)),w.resolveTo&&(c.events=w.resolveTo(c.events,c))}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const od=/[\0\t\n\r]/g,Cv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sv(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Uu(n.slice(o?2:1),o?16:10)}return Ns(n)||t}const id={}.hasOwnProperty;function Pv(t,e,n){return typeof e!="string"&&(n=e,e=void 0),(function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Xt),autolinkProtocol:B,autolinkEmail:B,atxHeading:l(Be),blockQuote:l(Ie),characterEscape:B,characterReference:B,codeFenced:l(Ye),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(Ye,c),codeText:l(Tt,c),codeTextData:B,data:B,codeFlowValue:B,definition:l(qe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Je),hardBreakEscape:l(je),hardBreakTrailing:l(je),htmlFlow:l(Me,c),htmlFlowData:B,htmlText:l(Me,c),htmlTextData:B,image:l(Ct),label:c,link:l(Xt),listItem:l(hn),listItemValue:g,listOrdered:l(ot,f),listUnordered:l(ot),paragraph:l(St),reference:K,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(Be),strong:l(Jt),thematicBreak:l(Zt)},exit:{atxHeading:d(),atxHeadingSequence:D,autolink:d(),autolinkEmail:Xe,autolinkProtocol:De,blockQuote:d(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:oe,characterReference:pe,codeFenced:d(v),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:_,codeIndented:d(b),codeText:d(U),codeTextData:_,data:_,definition:d(),definitionDestinationString:P,definitionLabelString:E,definitionTitleString:k,emphasis:d(),hardBreakEscape:d(O),hardBreakTrailing:d(O),htmlFlow:d(R),htmlFlowData:_,htmlText:d(Q),htmlTextData:_,image:d(G),label:X,labelText:S,lineEnding:N,link:d(C),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:$,resourceDestinationString:V,resourceTitleString:j,resource:W,setextHeading:d(M),setextHeadingLineSequence:T,setextHeadingText:I,strong:d(),thematicBreak:d()}};sd(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(z){let J={type:"root",children:[]};const ee={stack:[J],tokenStack:[],config:o,enter:u,exit:A,buffer:c,resume:h,data:i},ce=[];let ae=-1;for(;++ae<z.length;)(z[ae][1].type==="listOrdered"||z[ae][1].type==="listUnordered")&&(z[ae][0]==="enter"?ce.push(ae):ae=a(z,ce.pop(),ae));for(ae=-1;++ae<z.length;){const L=o[z[ae][0]];id.call(L,z[ae][1].type)&&L[z[ae][1].type].call(Object.assign({sliceSerialize:z[ae][2].sliceSerialize},ee),z[ae][1])}if(ee.tokenStack.length>0){const L=ee.tokenStack[ee.tokenStack.length-1];(L[1]||ad).call(ee,void 0,L[0])}for(J.position={start:yn(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:yn(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<o.transforms.length;)J=o.transforms[ae](J)||J;return J}function a(z,J,ee){let ce,ae,L,Y,Z=J-1,de=-1,ue=!1;for(;++Z<=ee;){const ve=z[Z];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":ve[0]==="enter"?de++:de--,Y=void 0;break;case"lineEndingBlank":ve[0]==="enter"&&(ce&&!Y&&!de&&!L&&(L=Z),Y=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Y=void 0}if(!de&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||de===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(ce){let Ne=Z;for(ae=void 0;Ne--;){const Ge=z[Ne];if(Ge[1].type==="lineEnding"||Ge[1].type==="lineEndingBlank"){if(Ge[0]==="exit")continue;ae&&(z[ae][1].type="lineEndingBlank",ue=!0),Ge[1].type="lineEnding",ae=Ne}else if(Ge[1].type!=="linePrefix"&&Ge[1].type!=="blockQuotePrefix"&&Ge[1].type!=="blockQuotePrefixWhitespace"&&Ge[1].type!=="blockQuoteMarker"&&Ge[1].type!=="listItemIndent")break}L&&(!ae||L<ae)&&(ce._spread=!0),ce.end=Object.assign({},ae?z[ae][1].start:ve[1].end),z.splice(ae||Z,0,["exit",ce,ve[2]]),Z++,ee++}if(ve[1].type==="listItemPrefix"){const Ne={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};ce=Ne,z.splice(Z,0,["enter",Ne,ve[2]]),Z++,ee++,L=void 0,Y=!0}}}return z[J][1]._spread=ue,ee}function l(z,J){return ee;function ee(ce){u.call(this,z(ce),ce),J&&J.call(this,ce)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(z,J,ee){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([J,ee||void 0]),z.position={start:yn(J.start),end:void 0}}function d(z){return J;function J(ee){z&&z.call(this,ee),A.call(this,ee)}}function A(z,J){const ee=this.stack.pop(),ce=this.tokenStack.pop();if(!ce)throw new Error("Cannot close `"+z.type+"` ("+Lr({start:z.start,end:z.end})+"): it’s not open");ce[0].type!==z.type&&(J?J.call(this,z,ce[0]):(ce[1]||ad).call(this,z,ce[0])),ee.position.end=yn(z.end)}function h(){return(function(z){return Qu(z,typeof No.includeImageAlt!="boolean"||No.includeImageAlt,typeof No.includeHtml!="boolean"||No.includeHtml)})(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(z){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0)}function p(){const z=this.resume();this.stack[this.stack.length-1].lang=z}function y(){const z=this.resume();this.stack[this.stack.length-1].meta=z}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const z=this.resume();this.stack[this.stack.length-1].value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const z=this.resume();this.stack[this.stack.length-1].value=z.replace(/(\r?\n|\r)$/g,"")}function E(z){const J=this.resume(),ee=this.stack[this.stack.length-1];ee.label=J,ee.identifier=rr(this.sliceSerialize(z)).toLowerCase()}function k(){const z=this.resume();this.stack[this.stack.length-1].title=z}function P(){const z=this.resume();this.stack[this.stack.length-1].url=z}function D(z){const J=this.stack[this.stack.length-1];if(!J.depth){const ee=this.sliceSerialize(z).length;J.depth=ee}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function T(z){this.stack[this.stack.length-1].depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function B(z){const J=this.stack[this.stack.length-1].children;let ee=J[J.length-1];(!ee||ee.type!=="text")&&(ee=fn(),ee.position={start:yn(z.start),end:void 0},J.push(ee)),this.stack.push(ee)}function _(z){const J=this.stack.pop();J.value+=this.sliceSerialize(z),J.position.end=yn(z.end)}function N(z){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak)return J.children[J.children.length-1].position.end=yn(z.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(J.type)&&(B.call(this,z),_.call(this,z))}function O(){this.data.atHardBreak=!0}function R(){const z=this.resume();this.stack[this.stack.length-1].value=z}function Q(){const z=this.resume();this.stack[this.stack.length-1].value=z}function U(){const z=this.resume();this.stack[this.stack.length-1].value=z}function C(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=J,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function G(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=J,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function S(z){const J=this.sliceSerialize(z),ee=this.stack[this.stack.length-2];ee.label=(function(ce){return ce.replace(Cv,Sv)})(J),ee.identifier=rr(J).toLowerCase()}function X(){const z=this.stack[this.stack.length-1],J=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ce=z.children;ee.children=ce}else ee.alt=J}function V(){const z=this.resume();this.stack[this.stack.length-1].url=z}function j(){const z=this.resume();this.stack[this.stack.length-1].title=z}function W(){this.data.inReference=void 0}function K(){this.data.referenceType="collapsed"}function $(z){const J=this.resume(),ee=this.stack[this.stack.length-1];ee.label=J,ee.identifier=rr(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function le(z){this.data.characterReferenceType=z.type}function oe(z){const J=this.sliceSerialize(z),ee=this.data.characterReferenceType;let ce;ee?(ce=Uu(J,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=Ns(J),this.stack[this.stack.length-1].value+=ce}function pe(z){this.stack.pop().position.end=yn(z.end)}function De(z){_.call(this,z),this.stack[this.stack.length-1].url=this.sliceSerialize(z)}function Xe(z){_.call(this,z),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(z)}function Ie(){return{type:"blockquote",children:[]}}function Ye(){return{type:"code",lang:null,meta:null,value:""}}function Tt(){return{type:"inlineCode",value:""}}function qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Je(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function je(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function ot(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function hn(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function fn(){return{type:"text",value:""}}function Zt(){return{type:"thematicBreak"}}})(n)((function(r){for(;!Xu(r););return r})((function(r){const o={constructs:Mb([kv,...(r||{}).extensions||[]]),content:i(Rb),defined:[],document:i(Ub),flow:i(dv),lazy:{},string:i(hv),text:i(fv)};return o;function i(s){return function(a){return Ev(o,s,a)}}})(n).document().write((function(){let r,o=1,i="",s=!0;return function(a,l,c){const u=[];let d,A,h,f,g;for(a=i+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),h=0,i="",s&&(a.charCodeAt(0)===65279&&h++,s=void 0);h<a.length;){if(od.lastIndex=h,d=od.exec(a),f=d&&d.index!==void 0?d.index:a.length,g=a.charCodeAt(f),!d){i=a.slice(h);break}if(g===10&&h===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<f&&(u.push(a.slice(h,f)),o+=f-h),g){case 0:u.push(65533),o++;break;case 9:for(A=4*Math.ceil(o/4),u.push(-2);o++<A;)u.push(-1);break;case 10:u.push(-4),o=1;break;default:r=!0,o=1}h=f+1}return c&&(r&&u.push(-5),i&&u.push(i),u.push(null)),u}})()(t,e,!0))))}function yn(t){return{line:t.line,column:t.column,offset:t.offset}}function sd(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?sd(t,r):Dv(t,r)}}function Dv(t,e){let n;for(n in e)if(id.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function ad(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Lr({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Lr({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Lr({start:e.start,end:e.end})+") is still open")}function Bv(t){const e=this;e.parser=function(n){return Pv(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function ld(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const o=t.all(e),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function cd(t){return t.spread??t.children.length>1}function Tv(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),o=0;const i=[];for(;r;)i.push(ud(e.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(e);return i.push(ud(e.slice(o),o>0,!1)),i.join("")}function ud(t,e,n){let r=0,o=t.length;if(e){let i=t.codePointAt(r);for(;i===9||i===32;)r++,i=t.codePointAt(r)}if(n){let i=t.codePointAt(o-1);for(;i===9||i===32;)o--,i=t.codePointAt(o-1)}return o>r?t.slice(r,o):""}const Iv={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
19
|
+
`;break;case-2:T=E?" ":" ";break;case-1:if(!E&&D)continue;T=" ";break;default:T=String.fromCharCode(I)}D=I===-2,P.push(T)}return P.join("")})(d(w),y)},sliceStream:d,write:function(w){return s=mt(s,w),(function(){let y;for(;r._index<s.length;){const b=s[r._index];if(typeof b=="string")for(y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===y&&r._bufferIndex<b.length;)h(b.charCodeAt(r._bufferIndex));else h(b)}})(),s[s.length-1]!==null?[]:(p(e,0),c.events=Us(i,c.events,c),c.events)}};let u=e.tokenize.call(c,l);return e.resolveAll&&i.push(e),c;function d(w){return(function(y,b){const E=b.start._index,k=b.start._bufferIndex,P=b.end._index,D=b.end._bufferIndex;let I;if(E===P)I=[y[E].slice(k,D)];else{if(I=y.slice(E,P),k>-1){const T=I[0];typeof T=="string"?I[0]=T.slice(k):I.shift()}D>0&&I.push(y[P].slice(0,D))}return I})(s,w)}function A(){const{_bufferIndex:w,_index:y,line:b,column:E,offset:k}=r;return{_bufferIndex:w,_index:y,line:b,column:E,offset:k}}function h(w){u=u(w)}function f(w,y){y.restore()}function g(w,y){return function(b,E,k){let P,D,I,T;return Array.isArray(b)?M(b):"tokenize"in b?M([b]):(function(O){return R;function R(Q){const U=Q!==null&&O[Q],C=Q!==null&&O.null;return M([...Array.isArray(U)?U:U?[U]:[],...Array.isArray(C)?C:C?[C]:[]])(Q)}})(b);function M(O){return P=O,D=0,O.length===0?k:B(O[D])}function B(O){return function(R){return T=(function(){const Q=A(),U=c.previous,C=c.currentConstruct,G=c.events.length,S=Array.from(a);return{from:G,restore:X};function X(){r=Q,c.previous=U,c.currentConstruct=C,c.events.length=G,a=S,v()}})(),I=O,O.partial||(c.currentConstruct=O),O.name&&c.parser.constructs.disable.null.includes(O.name)?N():O.tokenize.call(y?Object.assign(Object.create(c),y):c,l,_,N)(R)}}function _(O){return w(I,T),E}function N(O){return T.restore(),++D<P.length?B(P[D]):k}}}function p(w,y){w.resolveAll&&!i.includes(w)&&i.push(w),w.resolve&&Qt(c.events,y,c.events.length-y,w.resolve(c.events.slice(y),c)),w.resolveTo&&(c.events=w.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const od=/[\0\t\n\r]/g,Cv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sv(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Uu(n.slice(o?2:1),o?16:10)}return Ns(n)||t}const id={}.hasOwnProperty;function Pv(t,e,n){return typeof e!="string"&&(n=e,e=void 0),(function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Xt),autolinkProtocol:B,autolinkEmail:B,atxHeading:l(Be),blockQuote:l(Ie),characterEscape:B,characterReference:B,codeFenced:l(Ye),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(Ye,c),codeText:l(Tt,c),codeTextData:B,data:B,codeFlowValue:B,definition:l(qe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Je),hardBreakEscape:l(je),hardBreakTrailing:l(je),htmlFlow:l(Me,c),htmlFlowData:B,htmlText:l(Me,c),htmlTextData:B,image:l(Ct),label:c,link:l(Xt),listItem:l(hn),listItemValue:g,listOrdered:l(ot,f),listUnordered:l(ot),paragraph:l(St),reference:K,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(Be),strong:l(Jt),thematicBreak:l(Zt)},exit:{atxHeading:d(),atxHeadingSequence:D,autolink:d(),autolinkEmail:Xe,autolinkProtocol:De,blockQuote:d(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:oe,characterReference:pe,codeFenced:d(y),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:_,codeIndented:d(b),codeText:d(U),codeTextData:_,data:_,definition:d(),definitionDestinationString:P,definitionLabelString:E,definitionTitleString:k,emphasis:d(),hardBreakEscape:d(O),hardBreakTrailing:d(O),htmlFlow:d(R),htmlFlowData:_,htmlText:d(Q),htmlTextData:_,image:d(G),label:X,labelText:S,lineEnding:N,link:d(C),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:$,resourceDestinationString:V,resourceTitleString:j,resource:W,setextHeading:d(M),setextHeadingLineSequence:T,setextHeadingText:I,strong:d(),thematicBreak:d()}};sd(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(z){let J={type:"root",children:[]};const ee={stack:[J],tokenStack:[],config:o,enter:u,exit:A,buffer:c,resume:h,data:i},ce=[];let ae=-1;for(;++ae<z.length;)(z[ae][1].type==="listOrdered"||z[ae][1].type==="listUnordered")&&(z[ae][0]==="enter"?ce.push(ae):ae=a(z,ce.pop(),ae));for(ae=-1;++ae<z.length;){const L=o[z[ae][0]];id.call(L,z[ae][1].type)&&L[z[ae][1].type].call(Object.assign({sliceSerialize:z[ae][2].sliceSerialize},ee),z[ae][1])}if(ee.tokenStack.length>0){const L=ee.tokenStack[ee.tokenStack.length-1];(L[1]||ad).call(ee,void 0,L[0])}for(J.position={start:yn(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:yn(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<o.transforms.length;)J=o.transforms[ae](J)||J;return J}function a(z,J,ee){let ce,ae,L,Y,Z=J-1,de=-1,ue=!1;for(;++Z<=ee;){const ve=z[Z];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":ve[0]==="enter"?de++:de--,Y=void 0;break;case"lineEndingBlank":ve[0]==="enter"&&(ce&&!Y&&!de&&!L&&(L=Z),Y=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Y=void 0}if(!de&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||de===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(ce){let Ne=Z;for(ae=void 0;Ne--;){const Ge=z[Ne];if(Ge[1].type==="lineEnding"||Ge[1].type==="lineEndingBlank"){if(Ge[0]==="exit")continue;ae&&(z[ae][1].type="lineEndingBlank",ue=!0),Ge[1].type="lineEnding",ae=Ne}else if(Ge[1].type!=="linePrefix"&&Ge[1].type!=="blockQuotePrefix"&&Ge[1].type!=="blockQuotePrefixWhitespace"&&Ge[1].type!=="blockQuoteMarker"&&Ge[1].type!=="listItemIndent")break}L&&(!ae||L<ae)&&(ce._spread=!0),ce.end=Object.assign({},ae?z[ae][1].start:ve[1].end),z.splice(ae||Z,0,["exit",ce,ve[2]]),Z++,ee++}if(ve[1].type==="listItemPrefix"){const Ne={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};ce=Ne,z.splice(Z,0,["enter",Ne,ve[2]]),Z++,ee++,L=void 0,Y=!0}}}return z[J][1]._spread=ue,ee}function l(z,J){return ee;function ee(ce){u.call(this,z(ce),ce),J&&J.call(this,ce)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(z,J,ee){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([J,ee||void 0]),z.position={start:yn(J.start),end:void 0}}function d(z){return J;function J(ee){z&&z.call(this,ee),A.call(this,ee)}}function A(z,J){const ee=this.stack.pop(),ce=this.tokenStack.pop();if(!ce)throw new Error("Cannot close `"+z.type+"` ("+Lr({start:z.start,end:z.end})+"): it’s not open");ce[0].type!==z.type&&(J?J.call(this,z,ce[0]):(ce[1]||ad).call(this,z,ce[0])),ee.position.end=yn(z.end)}function h(){return(function(z){return Qu(z,typeof No.includeImageAlt!="boolean"||No.includeImageAlt,typeof No.includeHtml!="boolean"||No.includeHtml)})(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(z){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0)}function p(){const z=this.resume();this.stack[this.stack.length-1].lang=z}function v(){const z=this.resume();this.stack[this.stack.length-1].meta=z}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const z=this.resume();this.stack[this.stack.length-1].value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const z=this.resume();this.stack[this.stack.length-1].value=z.replace(/(\r?\n|\r)$/g,"")}function E(z){const J=this.resume(),ee=this.stack[this.stack.length-1];ee.label=J,ee.identifier=rr(this.sliceSerialize(z)).toLowerCase()}function k(){const z=this.resume();this.stack[this.stack.length-1].title=z}function P(){const z=this.resume();this.stack[this.stack.length-1].url=z}function D(z){const J=this.stack[this.stack.length-1];if(!J.depth){const ee=this.sliceSerialize(z).length;J.depth=ee}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function T(z){this.stack[this.stack.length-1].depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function B(z){const J=this.stack[this.stack.length-1].children;let ee=J[J.length-1];(!ee||ee.type!=="text")&&(ee=fn(),ee.position={start:yn(z.start),end:void 0},J.push(ee)),this.stack.push(ee)}function _(z){const J=this.stack.pop();J.value+=this.sliceSerialize(z),J.position.end=yn(z.end)}function N(z){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak)return J.children[J.children.length-1].position.end=yn(z.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(J.type)&&(B.call(this,z),_.call(this,z))}function O(){this.data.atHardBreak=!0}function R(){const z=this.resume();this.stack[this.stack.length-1].value=z}function Q(){const z=this.resume();this.stack[this.stack.length-1].value=z}function U(){const z=this.resume();this.stack[this.stack.length-1].value=z}function C(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=J,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function G(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=J,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function S(z){const J=this.sliceSerialize(z),ee=this.stack[this.stack.length-2];ee.label=(function(ce){return ce.replace(Cv,Sv)})(J),ee.identifier=rr(J).toLowerCase()}function X(){const z=this.stack[this.stack.length-1],J=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ce=z.children;ee.children=ce}else ee.alt=J}function V(){const z=this.resume();this.stack[this.stack.length-1].url=z}function j(){const z=this.resume();this.stack[this.stack.length-1].title=z}function W(){this.data.inReference=void 0}function K(){this.data.referenceType="collapsed"}function $(z){const J=this.resume(),ee=this.stack[this.stack.length-1];ee.label=J,ee.identifier=rr(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function le(z){this.data.characterReferenceType=z.type}function oe(z){const J=this.sliceSerialize(z),ee=this.data.characterReferenceType;let ce;ee?(ce=Uu(J,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=Ns(J),this.stack[this.stack.length-1].value+=ce}function pe(z){this.stack.pop().position.end=yn(z.end)}function De(z){_.call(this,z),this.stack[this.stack.length-1].url=this.sliceSerialize(z)}function Xe(z){_.call(this,z),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(z)}function Ie(){return{type:"blockquote",children:[]}}function Ye(){return{type:"code",lang:null,meta:null,value:""}}function Tt(){return{type:"inlineCode",value:""}}function qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Je(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function je(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function ot(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function hn(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function fn(){return{type:"text",value:""}}function Zt(){return{type:"thematicBreak"}}})(n)((function(r){for(;!Xu(r););return r})((function(r){const o={constructs:Mb([kv,...(r||{}).extensions||[]]),content:i(Rb),defined:[],document:i(Ub),flow:i(dv),lazy:{},string:i(hv),text:i(fv)};return o;function i(s){return function(a){return Ev(o,s,a)}}})(n).document().write((function(){let r,o=1,i="",s=!0;return function(a,l,c){const u=[];let d,A,h,f,g;for(a=i+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),h=0,i="",s&&(a.charCodeAt(0)===65279&&h++,s=void 0);h<a.length;){if(od.lastIndex=h,d=od.exec(a),f=d&&d.index!==void 0?d.index:a.length,g=a.charCodeAt(f),!d){i=a.slice(h);break}if(g===10&&h===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<f&&(u.push(a.slice(h,f)),o+=f-h),g){case 0:u.push(65533),o++;break;case 9:for(A=4*Math.ceil(o/4),u.push(-2);o++<A;)u.push(-1);break;case 10:u.push(-4),o=1;break;default:r=!0,o=1}h=f+1}return c&&(r&&u.push(-5),i&&u.push(i),u.push(null)),u}})()(t,e,!0))))}function yn(t){return{line:t.line,column:t.column,offset:t.offset}}function sd(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?sd(t,r):Dv(t,r)}}function Dv(t,e){let n;for(n in e)if(id.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function ad(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Lr({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Lr({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Lr({start:e.start,end:e.end})+") is still open")}function Bv(t){const e=this;e.parser=function(n){return Pv(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function ld(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const o=t.all(e),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function cd(t){return t.spread??t.children.length>1}function Tv(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),o=0;const i=[];for(;r;)i.push(ud(e.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(e);return i.push(ud(e.slice(o),o>0,!1)),i.join("")}function ud(t,e,n){let r=0,o=t.length;if(e){let i=t.codePointAt(r);for(;i===9||i===32;)r++,i=t.codePointAt(r)}if(n){let i=t.codePointAt(o-1);for(;i===9||i===32;)o--,i=t.codePointAt(o-1)}return o>r?t.slice(r,o):""}const Iv={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
20
20
|
`}]},code:function(t,e){const n=e.value?e.value+`
|
|
21
21
|
`:"",r={};e.lang&&(r.className=["language-"+e.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),o=or(r.toLowerCase()),i=t.footnoteOrder.indexOf(r);let s,a=t.footnoteCounts.get(r);a===void 0?(a=0,t.footnoteOrder.push(r),s=t.footnoteOrder.length):s=i+1,a+=1,t.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return ld(t,e);const o={src:or(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return t.patch(e,i),t.applyData(e,i)},image:function(t,e){const n={src:or(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return ld(t,e);const o={href:or(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)},link:function(t,e){const n={href:or(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),o=n?(function(u){let d=!1;if(u.type==="list"){d=u.spread||!1;const A=u.children;let h=-1;for(;!d&&++h<A.length;)d=cd(A[h])}return d})(n):cd(e),i={},s=[];if(typeof e.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(o||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
22
22
|
`}),u.type!=="element"||u.tagName!=="p"||o?s.push(u):s.push(...u.children)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
23
|
-
`});const c={type:"element",tagName:"li",properties:i,children:s};return t.patch(e,c),t.applyData(e,c)},list:function(t,e){const n={},r=t.all(e);let o=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,i),t.applyData(e,i)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},a=Ms(e.children[1]),l=Bu(e.children[e.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(e,i),t.applyData(e,i)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,o=(r?r.indexOf(e):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,s=i?i.length:e.children.length;let a=-1;const l=[];for(;++a<s;){const u=e.children[a],d={},A=i?i[a]:void 0;A&&(d.align=A);let h={type:"element",tagName:o,properties:d,children:[]};u&&(h.children=t.all(u),t.patch(u,h),h=t.applyData(u,h)),l.push(h)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)},text:function(t,e){const n={type:"text",value:Tv(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:Uo,yaml:Uo,definition:Uo,footnoteDefinition:Uo};function Uo(){}const dd=typeof self=="object"?self:globalThis,Ad=t=>((e,n)=>{const r=(i,s)=>(e.set(s,i),i),o=i=>{if(e.has(i))return e.get(i);const[s,a]=n[i];switch(s){case 0:case-1:return r(a,i);case 1:{const l=r([],i);for(const c of a)l.push(o(c));return l}case 2:{const l=r({},i);for(const[c,u]of a)l[o(c)]=o(u);return l}case 3:return r(new Date(a),i);case 4:{const{source:l,flags:c}=a;return r(new RegExp(l,c),i)}case 5:{const l=r(new Map,i);for(const[c,u]of a)l.set(o(c),o(u));return l}case 6:{const l=r(new Set,i);for(const c of a)l.add(o(c));return l}case 7:{const{name:l,message:c}=a;return r(new dd[l](c),i)}case 8:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return r(new DataView(l),a)}}return r(new dd[s](a),i)};return o})(new Map,t)(0),ir="",{toString:Mv}={},{keys:_v}=Object,zr=t=>{const e=typeof t;if(e!=="object"||!t)return[0,e];const n=Mv.call(t).slice(8,-1);switch(n){case"Array":return[1,ir];case"Object":return[2,ir];case"Date":return[3,ir];case"RegExp":return[4,ir];case"Map":return[5,ir];case"Set":return[6,ir];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},jo=([t,e])=>t===0&&(e==="function"||e==="symbol"),hd=(t,{json:e,lossy:n}={})=>{const r=[];return((o,i,s,a)=>{const l=(u,d)=>{const A=a.push(u)-1;return s.set(d,A),A},c=u=>{if(s.has(u))return s.get(u);let[d,A]=zr(u);switch(d){case 0:{let f=u;switch(A){case"bigint":d=8,f=u.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+A);f=null;break;case"undefined":return l([-1],u)}return l([d,f],u)}case 1:{if(A){let p=u;return A==="DataView"?p=new Uint8Array(u.buffer):A==="ArrayBuffer"&&(p=new Uint8Array(u)),l([A,[...p]],u)}const f=[],g=l([d,f],u);for(const p of u)f.push(c(p));return g}case 2:{if(A)switch(A){case"BigInt":return l([A,u.toString()],u);case"Boolean":case"Number":case"String":return l([A,u.valueOf()],u)}if(i&&"toJSON"in u)return c(u.toJSON());const f=[],g=l([d,f],u);for(const p of _v(u))(o||!jo(zr(u[p])))&&f.push([c(p),c(u[p])]);return g}case 3:return l([d,u.toISOString()],u);case 4:{const{source:f,flags:g}=u;return l([d,{source:f,flags:g}],u)}case 5:{const f=[],g=l([d,f],u);for(const[p,
|
|
23
|
+
`});const c={type:"element",tagName:"li",properties:i,children:s};return t.patch(e,c),t.applyData(e,c)},list:function(t,e){const n={},r=t.all(e);let o=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,i),t.applyData(e,i)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},a=Ms(e.children[1]),l=Bu(e.children[e.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(e,i),t.applyData(e,i)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,o=(r?r.indexOf(e):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,s=i?i.length:e.children.length;let a=-1;const l=[];for(;++a<s;){const u=e.children[a],d={},A=i?i[a]:void 0;A&&(d.align=A);let h={type:"element",tagName:o,properties:d,children:[]};u&&(h.children=t.all(u),t.patch(u,h),h=t.applyData(u,h)),l.push(h)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)},text:function(t,e){const n={type:"text",value:Tv(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:Uo,yaml:Uo,definition:Uo,footnoteDefinition:Uo};function Uo(){}const dd=typeof self=="object"?self:globalThis,Ad=t=>((e,n)=>{const r=(i,s)=>(e.set(s,i),i),o=i=>{if(e.has(i))return e.get(i);const[s,a]=n[i];switch(s){case 0:case-1:return r(a,i);case 1:{const l=r([],i);for(const c of a)l.push(o(c));return l}case 2:{const l=r({},i);for(const[c,u]of a)l[o(c)]=o(u);return l}case 3:return r(new Date(a),i);case 4:{const{source:l,flags:c}=a;return r(new RegExp(l,c),i)}case 5:{const l=r(new Map,i);for(const[c,u]of a)l.set(o(c),o(u));return l}case 6:{const l=r(new Set,i);for(const c of a)l.add(o(c));return l}case 7:{const{name:l,message:c}=a;return r(new dd[l](c),i)}case 8:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return r(new DataView(l),a)}}return r(new dd[s](a),i)};return o})(new Map,t)(0),ir="",{toString:Mv}={},{keys:_v}=Object,zr=t=>{const e=typeof t;if(e!=="object"||!t)return[0,e];const n=Mv.call(t).slice(8,-1);switch(n){case"Array":return[1,ir];case"Object":return[2,ir];case"Date":return[3,ir];case"RegExp":return[4,ir];case"Map":return[5,ir];case"Set":return[6,ir];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},jo=([t,e])=>t===0&&(e==="function"||e==="symbol"),hd=(t,{json:e,lossy:n}={})=>{const r=[];return((o,i,s,a)=>{const l=(u,d)=>{const A=a.push(u)-1;return s.set(d,A),A},c=u=>{if(s.has(u))return s.get(u);let[d,A]=zr(u);switch(d){case 0:{let f=u;switch(A){case"bigint":d=8,f=u.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+A);f=null;break;case"undefined":return l([-1],u)}return l([d,f],u)}case 1:{if(A){let p=u;return A==="DataView"?p=new Uint8Array(u.buffer):A==="ArrayBuffer"&&(p=new Uint8Array(u)),l([A,[...p]],u)}const f=[],g=l([d,f],u);for(const p of u)f.push(c(p));return g}case 2:{if(A)switch(A){case"BigInt":return l([A,u.toString()],u);case"Boolean":case"Number":case"String":return l([A,u.valueOf()],u)}if(i&&"toJSON"in u)return c(u.toJSON());const f=[],g=l([d,f],u);for(const p of _v(u))(o||!jo(zr(u[p])))&&f.push([c(p),c(u[p])]);return g}case 3:return l([d,u.toISOString()],u);case 4:{const{source:f,flags:g}=u;return l([d,{source:f,flags:g}],u)}case 5:{const f=[],g=l([d,f],u);for(const[p,v]of u)(o||!jo(zr(p))&&!jo(zr(v)))&&f.push([c(p),c(v)]);return g}case 6:{const f=[],g=l([d,f],u);for(const p of u)(o||!jo(zr(p)))&&f.push(c(p));return g}}const{message:h}=u;return l([d,{name:A,message:h}],u)};return c})(!(e||n),!!e,new Map,r)(t),r},Vo=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Ad(hd(t,e)):structuredClone(t):(t,e)=>Ad(hd(t,e));function Ov(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function Lv(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}const fd=function(t){if(t==null)return Fv;if(typeof t=="function")return Ho(t);if(typeof t=="object")return Array.isArray(t)?(function(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=fd(e[r]);return Ho(o);function o(...i){let s=-1;for(;++s<n.length;)if(n[s].apply(this,i))return!0;return!1}})(t):(function(e){const n=e;return Ho(r);function r(o){const i=o;let s;for(s in e)if(i[s]!==n[s])return!1;return!0}})(t);if(typeof t=="string")return(function(e){return Ho(n);function n(r){return r&&r.type===e}})(t);throw new Error("Expected function, string, or object as test")};function Ho(t){return function(e,n,r){return!(!(function(o){return o!==null&&typeof o=="object"&&"type"in o})(e)||!t.call(this,e,typeof n=="number"?n:void 0,r||void 0))}}function Fv(){return!0}const pd=[],Qv=!0,gd=!1;function Nv(t,e,n,r){let o;typeof e=="function"&&typeof n!="function"?(r=n,n=e):o=e;const i=fd(o),s=r?-1:1;(function a(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(A,"name",{value:"node ("+l.type+(h?"<"+h+">":"")+")"})}return A;function A(){let h,f,g,p=pd;if((!e||i(l,c,u[u.length-1]||void 0))&&(p=(function(v){return Array.isArray(v)?v:typeof v=="number"?[Qv,v]:v==null?pd:[v]})(n(l,u)),p[0]===gd))return p;if("children"in l&&l.children){const v=l;if(v.children&&p[0]!=="skip")for(f=(r?v.children.length:-1)+s,g=u.concat(v);f>-1&&f<v.children.length;){const w=v.children[f];if(h=a(w,f,g)(),h[0]===gd)return h;f=typeof h[1]=="number"?h[1]:f+s}}return p}})(t,void 0,[])()}function md(t,e,n,r){let o,i,s;typeof e=="function"?(i=void 0,s=e,o=n):(i=e,s=n,o=r),Nv(t,i,function(a,l){const c=l[l.length-1],u=c?c.children.indexOf(a):void 0;return s(a,u,c)},o)}const Ys={}.hasOwnProperty,zv={};function Rv(t,e){const n=e||zv,r=new Map,o=new Map,i=new Map,s={...Iv,...n.handlers},a={all:function(l){const c=[];if("children"in l){const u=l.children;let d=-1;for(;++d<u.length;){const A=a.one(u[d],l);if(A){if(d&&u[d-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=bd(A.value)),!Array.isArray(A)&&A.type==="element")){const h=A.children[0];h&&h.type==="text"&&(h.value=bd(h.value))}Array.isArray(A)?c.push(...A):c.push(A)}}}return c},applyData:jv,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(l,c){const u=l.type,d=a.handlers[u];if(Ys.call(a.handlers,u)&&d)return d(a,l,c);if(a.options.passThrough&&a.options.passThrough.includes(u)){if("children"in l){const{children:A,...h}=l,f=Vo(h);return f.children=a.all(l),f}return Vo(l)}return(a.options.unknownHandler||Vv)(a,l,c)},options:n,patch:Uv,wrap:Hv};return md(t,function(l){if(l.type==="definition"||l.type==="footnoteDefinition"){const c=l.type==="definition"?r:o,u=String(l.identifier).toUpperCase();c.has(u)||c.set(u,l)}}),a}function Uv(t,e){t.position&&(e.position=(function(n){const r=Ms(n),o=Bu(n);if(r&&o)return{start:r,end:o}})(t))}function jv(t,e){let n=e;if(t&&t.data){const r=t.data.hName,o=t.data.hChildren,i=t.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&i&&Object.assign(n.properties,Vo(i)),"children"in n&&n.children&&o!=null&&(n.children=o)}return n}function Vv(t,e){const n=e.data||{},r=!("value"in e)||Ys.call(n,"hProperties")||Ys.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function Hv(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
|
|
24
24
|
`});++r<t.length;)r&&n.push({type:"text",value:`
|
|
25
25
|
`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
26
|
-
`}),n}function bd(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function vd(t,e){const n=Rv(t,e),r=n.one(t,void 0),o=(function(s){const a=typeof s.options.clobberPrefix=="string"?s.options.clobberPrefix:"user-content-",l=s.options.footnoteBackContent||Ov,c=s.options.footnoteBackLabel||Lv,u=s.options.footnoteLabel||"Footnotes",d=s.options.footnoteLabelTagName||"h2",A=s.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let f=-1;for(;++f<s.footnoteOrder.length;){const g=s.footnoteById.get(s.footnoteOrder[f]);if(!g)continue;const p=s.all(g),
|
|
26
|
+
`}),n}function bd(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function vd(t,e){const n=Rv(t,e),r=n.one(t,void 0),o=(function(s){const a=typeof s.options.clobberPrefix=="string"?s.options.clobberPrefix:"user-content-",l=s.options.footnoteBackContent||Ov,c=s.options.footnoteBackLabel||Lv,u=s.options.footnoteLabel||"Footnotes",d=s.options.footnoteLabelTagName||"h2",A=s.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let f=-1;for(;++f<s.footnoteOrder.length;){const g=s.footnoteById.get(s.footnoteOrder[f]);if(!g)continue;const p=s.all(g),v=String(g.identifier).toUpperCase(),w=or(v.toLowerCase());let y=0;const b=[],E=s.footnoteCounts.get(v);for(;E!==void 0&&++y<=E;){b.length>0&&b.push({type:"text",value:" "});let D=typeof l=="string"?l:l(f,y);typeof D=="string"&&(D={type:"text",value:D}),b.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+w+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof c=="string"?c:c(f,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const k=p[p.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const D=k.children[k.children.length-1];D&&D.type==="text"?D.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else p.push(...b);const P={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:s.wrap(p,!0)};s.patch(g,P),h.push(P)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:d,properties:{...Vo(A),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
|
|
27
27
|
`},{type:"element",tagName:"ol",properties:{},children:s.wrap(h,!0)},{type:"text",value:`
|
|
28
28
|
`}]}})(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
29
|
-
`},o),i}function Wv(t,e){return t&&"run"in t?async function(n,r){const o=vd(n,{file:r,...e});await t.run(o,r)}:function(n,r){return vd(n,{file:r,...t||e})}}function yd(t){if(t)throw t}var qs,wd,Yv=(function(){if(wd)return qs;wd=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(l){return typeof Array.isArray=="function"?Array.isArray(l):e.call(l)==="[object Array]"},i=function(l){if(!l||e.call(l)!=="[object Object]")return!1;var c,u=t.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&t.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!d)return!1;for(c in l);return typeof c>"u"||t.call(l,c)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},a=function(l,c){if(c==="__proto__"){if(!t.call(l,c))return;if(r)return r(l,c).value}return l[c]};return qs=function l(){var c,u,d,A,h,f,g=arguments[0],p=1,y=arguments.length,w=!1;for(typeof g=="boolean"&&(w=g,g=arguments[1]||{},p=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});p<y;++p)if((c=arguments[p])!=null)for(u in c)d=a(g,u),g!==(A=a(c,u))&&(w&&A&&(i(A)||(h=o(A)))?(h?(h=!1,f=d&&o(d)?d:[]):f=d&&i(d)?d:{},s(g,{name:u,newValue:l(w,f,A)})):typeof A<"u"&&s(g,{name:u,newValue:A}));return g},qs})();const Gs=Cu(Yv);function Ks(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return!(e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.toStringTag in t||Symbol.iterator in t)}function qv(){const t=[],e={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(s,...a){const l=t[++r];let c=-1;if(s)o(s);else{for(;++c<n.length;)(a[c]===null||a[c]===void 0)&&(a[c]=n[c]);n=a,l?(function(u,d){let A;return h;function h(...p){const y=u.length>p.length;let w;y&&p.push(f);try{w=u.apply(this,p)}catch(v){if(y&&A)throw v;return f(v)}y||(w&&w.then&&typeof w.then=="function"?w.then(g,f):w instanceof Error?f(w):g(w))}function f(p,...y){A||(A=!0,d(p,...y))}function g(p){f(null,p)}})(l,i)(...a):o(null,...a)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}const zt={basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Rr(t);let n,r=0,o=-1,i=t.length;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":t.slice(r,o)}if(e===t)return"";let s=-1,a=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),a>-1&&(t.codePointAt(i)===e.codePointAt(a--)?a<0&&(o=i):(a=-1,o=s));return r===o?o=s:o<0&&(o=t.length),t.slice(r,o)},dirname:function(t){if(Rr(t),t.length===0)return".";let e,n=-1,r=t.length;for(;--r;)if(t.codePointAt(r)===47){if(e){n=r;break}}else e||(e=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)},extname:function(t){Rr(t);let e,n=t.length,r=-1,o=0,i=-1,s=0;for(;n--;){const a=t.codePointAt(n);if(a!==47)r<0&&(e=!0,r=n+1),a===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1);else if(e){o=n+1;break}}return i<0||r<0||s===0||s===1&&i===r-1&&i===o+1?"":t.slice(i,r)},join:function(...t){let e,n=-1;for(;++n<t.length;)Rr(t[n]),t[n]&&(e=e===void 0?t[n]:e+"/"+t[n]);return e===void 0?".":(function(r){Rr(r);const o=r.codePointAt(0)===47;let i=(function(s,a){let l,c,u="",d=0,A=-1,h=0,f=-1;for(;++f<=s.length;){if(f<s.length)l=s.codePointAt(f);else{if(l===47)break;l=47}if(l===47){if(A!==f-1&&h!==1)if(A!==f-1&&h===2){if(u.length<2||d!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(c=u.lastIndexOf("/"),c!==u.length-1){c<0?(u="",d=0):(u=u.slice(0,c),d=u.length-1-u.lastIndexOf("/")),A=f,h=0;continue}}else if(u.length>0){u="",d=0,A=f,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",d=2)}else u.length>0?u+="/"+s.slice(A+1,f):u=s.slice(A+1,f),d=f-A-1;A=f,h=0}else l===46&&h>-1?h++:h=-1}return u})(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i})(e)},sep:"/"};function Rr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Gv={cwd:function(){return"/"}};function Xs(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Kv(t){if(typeof t=="string")t=new URL(t);else if(!Xs(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return(function(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)})(t)}const Js=["history","path","basename","stem","extname","dirname"];class xd{constructor(e){let n;var r;n=e?Xs(e)?{path:e}:typeof e=="string"||(r=e)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:e}:e:{},this.cwd="cwd"in n?"":Gv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<Js.length;){const s=Js[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)Js.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?zt.basename(this.path):void 0}set basename(e){$s(e,"basename"),Zs(e,"basename"),this.path=zt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?zt.dirname(this.path):void 0}set dirname(e){kd(this.basename,"dirname"),this.path=zt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?zt.extname(this.path):void 0}set extname(e){if(Zs(e,"extname"),kd(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Xs(e)&&(e=Kv(e)),$s(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?zt.basename(this.path,this.extname):void 0}set stem(e){$s(e,"stem"),Zs(e,"stem"),this.path=zt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const o=this.message(e,n,r);throw o.fatal=!0,o}info(e,n,r){const o=this.message(e,n,r);return o.fatal=void 0,o}message(e,n,r){const o=new Ve(e,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Zs(t,e){if(t&&t.includes(zt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+zt.sep+"`")}function $s(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function kd(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const Xv=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,e),r},Jv={}.hasOwnProperty;class ea extends Xv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qv()}copy(){const e=new ea;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Gs(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ra("data",this.frozen),this.namespace[e]=n,this):Jv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ra("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(e,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Wo(e),r=this.parser||this.Parser;return ta("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),ta("process",this.parser||this.Parser),na("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const a=Wo(e),l=r.parse(a);function c(u,d){u||!d?s(u):i?i(d):n(void 0,d)}r.run(l,a,function(u,d,A){if(u||!d||!A)return c(u);const h=d,f=r.stringify(h,A);var g;typeof(g=f)=="string"||(function(p){return!!(p&&typeof p=="object"&&"byteLength"in p&&"byteOffset"in p)})(g)?A.value=f:A.result=f,c(u,A)})}}processSync(e){let n,r=!1;return this.freeze(),ta("processSync",this.parser||this.Parser),na("processSync",this.compiler||this.Compiler),this.process(e,function(o,i){r=!0,yd(o),n=i}),Cd("processSync","process",r),n}run(e,n,r){Ed(e),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,a){const l=Wo(n);o.run(e,l,function(c,u,d){const A=u||e;c?a(c):s?s(A):r(void 0,A,d)})}}runSync(e,n){let r,o=!1;return this.run(e,n,function(i,s){yd(i),r=s,o=!0}),Cd("runSync","run",o),r}stringify(e,n){this.freeze();const r=Wo(n),o=this.compiler||this.Compiler;return na("stringify",o),Ed(e),o(e,r)}use(e,...n){const r=this.attachers,o=this.namespace;if(ra("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else{if(typeof e!="object")throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):s(e)}return this;function i(c){if(typeof c=="function")l(c,[]);else{if(typeof c!="object")throw new TypeError("Expected usable value, not `"+c+"`");if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else s(c)}}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(o.settings=Gs(!0,o.settings,c.settings))}function a(c){let u=-1;if(c!=null){if(!Array.isArray(c))throw new TypeError("Expected a list of plugins, not `"+c+"`");for(;++u<c.length;)i(c[u])}}function l(c,u){let d=-1,A=-1;for(;++d<r.length;)if(r[d][0]===c){A=d;break}if(A===-1)r.push([c,...u]);else if(u.length>0){let[h,...f]=u;const g=r[A][1];Ks(g)&&Ks(h)&&(h=Gs(!0,g,h)),r[A]=[c,h,...f]}}}}const Zv=new ea().freeze();function ta(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function na(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ra(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ed(t){if(!Ks(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Cd(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Wo(t){return(function(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)})(t)?t:new xd(t)}const Sd=[],Pd={allowDangerousHtml:!0},$v=/^(https?|ircs?|mailto|xmpp)$/i,ey=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ty(t){const e=t.allowedElements,n=t.allowElement,r=t.children||"",o=t.className,i=t.components,s=t.disallowedElements,a=t.rehypePlugins||Sd,l=t.remarkPlugins||Sd,c=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Pd}:Pd,u=t.skipHtml,d=t.unwrapDisallowed,A=t.urlTransform||ny,h=Zv().use(Bv).use(l).use(Wv,c).use(a),f=new xd;typeof r=="string"&&(f.value=r);for(const y of ey)Object.hasOwn(t,y.from)&&(y.from,y.to&&y.to,y.id);const g=h.parse(f);let p=h.runSync(g,f);return o&&(p={type:"element",tagName:"div",properties:{className:o},children:p.type==="root"?p.children:[p]}),md(p,function(y,w,v){if(y.type==="raw"&&v&&typeof w=="number")return u?v.children.splice(w,1):v.children[w]={type:"text",value:y.value},w;if(y.type==="element"){let b;for(b in Qs)if(Object.hasOwn(Qs,b)&&Object.hasOwn(y.properties,b)){const E=y.properties[b],k=Qs[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=A(String(E||""),b,y))}}if(y.type==="element"){let b=e?!e.includes(y.tagName):!!s&&s.includes(y.tagName);if(!b&&n&&typeof w=="number"&&(b=!n(y,w,v)),b&&v&&typeof w=="number")return d&&y.children?v.children.splice(w,1,...y.children):v.children.splice(w,1),w}}),Pb(p,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0})}function ny(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),o=t.indexOf("/");return e===-1||o!==-1&&e>o||n!==-1&&e>n||r!==-1&&e>r||$v.test(t.slice(0,e))?t:""}const ry=({children:t})=>m.jsx("div",{style:{whiteSpace:"normal"},children:m.jsx(ty,{components:{p:({...e})=>m.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>m.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>m.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>m.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:n})=>e?m.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):m.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:m.jsx("code",{children:n})}),blockquote:({...e})=>m.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:typeof t=="string"?t:""})}),oy={autoConfig:!0},iy=t=>()=>(e=>{const{getFlow:n}=Fo(),{messages:r,replaceMessages:o}=_r(),{settings:i}=ou(),{hasChatHistoryLoaded:s}=su(),a={...e,...oy},l=a.markdownComponent?a.markdownComponent:ry;x.useEffect(()=>{var d,A;if(s){const h=[...r];for(let f=0;f<h.length&&f<(((d=i.chatHistory)==null?void 0:d.maxEntries)??30);f++){const g=h[f];(A=g.tags)!=null&&A.includes("rcb-markdown-renderer-plugin:parsed")&&(g.contentWrapper=l)}o(h)}},[s]);const c=async d=>{var A;const h=(A=d.data.message)==null?void 0:A.sender.toUpperCase();((f,g,p)=>{var y;if(typeof f.data.message.content!="string"||!f.detail.currPath)return!1;const w=g[f.detail.currPath];return!!w&&(((y=w.renderMarkdown)==null?void 0:y.map(v=>v.toUpperCase()).includes(p))??!1)})(d,n(),h)&&(d.data.message.contentWrapper=l,d.data.message.tags||(d.data.message.tags=[]),d.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};pt(q.PRE_INJECT_MESSAGE,c),pt(q.CHUNK_STREAM_MESSAGE,c),pt(q.START_STREAM_MESSAGE,c),pt(q.START_SIMULATE_STREAM_MESSAGE,c);const u={name:"@rcb-plugins/markdown-renderer"};return a!=null&&a.autoConfig&&(u.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),u})(t),Yo={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Dd=(t,e,n="validateTextInput")=>{var r;if((r=t.detail)==null||!r.currPath)return;const o=e[t.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},sy=t=>{const{showToast:e}=(()=>{const{showToast:d,dismissToast:A,toasts:h,replaceToasts:f}=Zn();return{showToast:d,dismissToast:A,toasts:h,replaceToasts:f}})(),{getFlow:n}=Fo(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:d,replaceStyles:A,updateStyles:h}=eu();return{styles:d,replaceStyles:A,updateStyles:h}})(),s=(d=>({...Yo,...d,promptBaseColors:{...Yo.promptBaseColors},promptHoveredColors:{...Yo.promptHoveredColors},textAreaHighlightColors:{...Yo.textAreaHighlightColors}}))(t),[a,l]=x.useState(0),c=x.useRef({});pt(q.USER_SUBMIT_TEXT,d=>{const A=d,h=Dd(A,n(),"validateTextInput");if(!h)return;const f=h(A.data.inputText);if(f!=null&&f.success||d.preventDefault(),!f.promptContent)return;a===0&&(c.current=structuredClone(r));const g=((p,y)=>{const w=p.promptType??"info";let v={};return y.advancedStyles&&(v=y.advancedStyles[w]),y.promptBaseColors&&(v.toastPromptStyle={color:y.promptBaseColors[w],borderColor:y.promptBaseColors[w]}),y.promptHoveredColors&&(v.toastPromptHoveredStyle={color:y.promptHoveredColors[w],borderColor:y.promptHoveredColors[w]}),y.textAreaHighlightColors&&(p.highlightTextArea??!0)&&(v.chatInputAreaStyle={boxShadow:`${y.textAreaHighlightColors[w]} 0px 0px 5px`}),v})(f,s);o(g),e(f.promptContent,f.promptDuration??3e3),l(p=>p+1)}),pt(q.USER_UPLOAD_FILE,d=>{var A,h;const f=d,g=(h=(A=f.data)==null?void 0:A.files)==null?void 0:h[0];if(!g)return console.error("No file uploaded."),void d.preventDefault();const p=Dd(f,n(),"validateFileInput");if(!p)return void console.error("Validator not found for file input.");const y=p(g);if(!y.success)return console.error("Validation failed:",y),y.promptContent&&e(y.promptContent,y.promptDuration??3e3),void d.preventDefault();console.log("Validation successful:",y)}),pt(q.DISMISS_TOAST,()=>{l(d=>d-1)}),x.useEffect(()=>{a===0&&setTimeout(()=>{i(c.current)})},[a,i]);const u={name:"@rcb-plugins/input-validator"};return s.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},Bd=x.forwardRef((t,e)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=t;const s=_r(),a=(()=>{const{isChatWindowOpen:u,toggleChatWindow:d,toggleIsBotTyping:A,scrollToBottom:h,getIsChatBotVisible:f}=st();return{isChatWindowOpen:u,toggleChatWindow:d,toggleIsBotTyping:A,scrollToBottom:h,getIsChatBotVisible:f}})(),l=x.useRef(!1),c=x.useRef(!1);return x.useEffect(()=>{!n&&a&&a.toggleChatWindow&&(l.current===r||c.current||(setTimeout(()=>{a&&a.toggleChatWindow&&a.toggleChatWindow(r)},0),l.current=r!=null&&r),c.current=!1)},[r,n,a]),x.useEffect(()=>{const u=()=>{c.current=!0};return window.addEventListener("rcb-toggle-chat-window",u),()=>window.removeEventListener("rcb-toggle-chat-window",u)}),x.useImperativeHandle(e,()=>({addMessage:u=>{s&&s.injectMessage&&s.injectMessage(u)},openChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow(!0)},closeChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow(!1)},toggleChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow()},setBotEnabled:u=>{i&&i(u)}}),[s,a,n,i]),null});Bd.displayName="BotController";const Td=x.createContext(null),ay=t=>{let{trackEvent:e,children:n}=t;const r=x.useRef(e);return r.current=e,x.createElement(Td.Provider,{value:{trackEvent:o=>r.current(o)}},n)},Id=()=>x.useContext(Td)||{trackEvent:()=>{}},Md=t=>{let{loginUrl:e,className:n="",style:r,isHeaderButton:o=!1}=t;const{trackEvent:i}=Id(),s=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return x.createElement(x.Fragment,null,o&&x.createElement("style",null,`
|
|
29
|
+
`},o),i}function Wv(t,e){return t&&"run"in t?async function(n,r){const o=vd(n,{file:r,...e});await t.run(o,r)}:function(n,r){return vd(n,{file:r,...t||e})}}function yd(t){if(t)throw t}var qs,wd,Yv=(function(){if(wd)return qs;wd=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(l){return typeof Array.isArray=="function"?Array.isArray(l):e.call(l)==="[object Array]"},i=function(l){if(!l||e.call(l)!=="[object Object]")return!1;var c,u=t.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&t.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!d)return!1;for(c in l);return typeof c>"u"||t.call(l,c)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},a=function(l,c){if(c==="__proto__"){if(!t.call(l,c))return;if(r)return r(l,c).value}return l[c]};return qs=function l(){var c,u,d,A,h,f,g=arguments[0],p=1,v=arguments.length,w=!1;for(typeof g=="boolean"&&(w=g,g=arguments[1]||{},p=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});p<v;++p)if((c=arguments[p])!=null)for(u in c)d=a(g,u),g!==(A=a(c,u))&&(w&&A&&(i(A)||(h=o(A)))?(h?(h=!1,f=d&&o(d)?d:[]):f=d&&i(d)?d:{},s(g,{name:u,newValue:l(w,f,A)})):typeof A<"u"&&s(g,{name:u,newValue:A}));return g},qs})();const Gs=Cu(Yv);function Ks(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return!(e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.toStringTag in t||Symbol.iterator in t)}function qv(){const t=[],e={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(s,...a){const l=t[++r];let c=-1;if(s)o(s);else{for(;++c<n.length;)(a[c]===null||a[c]===void 0)&&(a[c]=n[c]);n=a,l?(function(u,d){let A;return h;function h(...p){const v=u.length>p.length;let w;v&&p.push(f);try{w=u.apply(this,p)}catch(y){if(v&&A)throw y;return f(y)}v||(w&&w.then&&typeof w.then=="function"?w.then(g,f):w instanceof Error?f(w):g(w))}function f(p,...v){A||(A=!0,d(p,...v))}function g(p){f(null,p)}})(l,i)(...a):o(null,...a)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}const zt={basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Rr(t);let n,r=0,o=-1,i=t.length;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":t.slice(r,o)}if(e===t)return"";let s=-1,a=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),a>-1&&(t.codePointAt(i)===e.codePointAt(a--)?a<0&&(o=i):(a=-1,o=s));return r===o?o=s:o<0&&(o=t.length),t.slice(r,o)},dirname:function(t){if(Rr(t),t.length===0)return".";let e,n=-1,r=t.length;for(;--r;)if(t.codePointAt(r)===47){if(e){n=r;break}}else e||(e=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)},extname:function(t){Rr(t);let e,n=t.length,r=-1,o=0,i=-1,s=0;for(;n--;){const a=t.codePointAt(n);if(a!==47)r<0&&(e=!0,r=n+1),a===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1);else if(e){o=n+1;break}}return i<0||r<0||s===0||s===1&&i===r-1&&i===o+1?"":t.slice(i,r)},join:function(...t){let e,n=-1;for(;++n<t.length;)Rr(t[n]),t[n]&&(e=e===void 0?t[n]:e+"/"+t[n]);return e===void 0?".":(function(r){Rr(r);const o=r.codePointAt(0)===47;let i=(function(s,a){let l,c,u="",d=0,A=-1,h=0,f=-1;for(;++f<=s.length;){if(f<s.length)l=s.codePointAt(f);else{if(l===47)break;l=47}if(l===47){if(A!==f-1&&h!==1)if(A!==f-1&&h===2){if(u.length<2||d!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(c=u.lastIndexOf("/"),c!==u.length-1){c<0?(u="",d=0):(u=u.slice(0,c),d=u.length-1-u.lastIndexOf("/")),A=f,h=0;continue}}else if(u.length>0){u="",d=0,A=f,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",d=2)}else u.length>0?u+="/"+s.slice(A+1,f):u=s.slice(A+1,f),d=f-A-1;A=f,h=0}else l===46&&h>-1?h++:h=-1}return u})(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i})(e)},sep:"/"};function Rr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Gv={cwd:function(){return"/"}};function Xs(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Kv(t){if(typeof t=="string")t=new URL(t);else if(!Xs(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return(function(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)})(t)}const Js=["history","path","basename","stem","extname","dirname"];class xd{constructor(e){let n;var r;n=e?Xs(e)?{path:e}:typeof e=="string"||(r=e)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:e}:e:{},this.cwd="cwd"in n?"":Gv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<Js.length;){const s=Js[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)Js.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?zt.basename(this.path):void 0}set basename(e){$s(e,"basename"),Zs(e,"basename"),this.path=zt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?zt.dirname(this.path):void 0}set dirname(e){kd(this.basename,"dirname"),this.path=zt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?zt.extname(this.path):void 0}set extname(e){if(Zs(e,"extname"),kd(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Xs(e)&&(e=Kv(e)),$s(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?zt.basename(this.path,this.extname):void 0}set stem(e){$s(e,"stem"),Zs(e,"stem"),this.path=zt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const o=this.message(e,n,r);throw o.fatal=!0,o}info(e,n,r){const o=this.message(e,n,r);return o.fatal=void 0,o}message(e,n,r){const o=new Ve(e,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Zs(t,e){if(t&&t.includes(zt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+zt.sep+"`")}function $s(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function kd(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const Xv=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,e),r},Jv={}.hasOwnProperty;class ea extends Xv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qv()}copy(){const e=new ea;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Gs(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ra("data",this.frozen),this.namespace[e]=n,this):Jv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ra("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(e,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Wo(e),r=this.parser||this.Parser;return ta("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),ta("process",this.parser||this.Parser),na("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const a=Wo(e),l=r.parse(a);function c(u,d){u||!d?s(u):i?i(d):n(void 0,d)}r.run(l,a,function(u,d,A){if(u||!d||!A)return c(u);const h=d,f=r.stringify(h,A);var g;typeof(g=f)=="string"||(function(p){return!!(p&&typeof p=="object"&&"byteLength"in p&&"byteOffset"in p)})(g)?A.value=f:A.result=f,c(u,A)})}}processSync(e){let n,r=!1;return this.freeze(),ta("processSync",this.parser||this.Parser),na("processSync",this.compiler||this.Compiler),this.process(e,function(o,i){r=!0,yd(o),n=i}),Cd("processSync","process",r),n}run(e,n,r){Ed(e),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,a){const l=Wo(n);o.run(e,l,function(c,u,d){const A=u||e;c?a(c):s?s(A):r(void 0,A,d)})}}runSync(e,n){let r,o=!1;return this.run(e,n,function(i,s){yd(i),r=s,o=!0}),Cd("runSync","run",o),r}stringify(e,n){this.freeze();const r=Wo(n),o=this.compiler||this.Compiler;return na("stringify",o),Ed(e),o(e,r)}use(e,...n){const r=this.attachers,o=this.namespace;if(ra("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else{if(typeof e!="object")throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):s(e)}return this;function i(c){if(typeof c=="function")l(c,[]);else{if(typeof c!="object")throw new TypeError("Expected usable value, not `"+c+"`");if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else s(c)}}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(o.settings=Gs(!0,o.settings,c.settings))}function a(c){let u=-1;if(c!=null){if(!Array.isArray(c))throw new TypeError("Expected a list of plugins, not `"+c+"`");for(;++u<c.length;)i(c[u])}}function l(c,u){let d=-1,A=-1;for(;++d<r.length;)if(r[d][0]===c){A=d;break}if(A===-1)r.push([c,...u]);else if(u.length>0){let[h,...f]=u;const g=r[A][1];Ks(g)&&Ks(h)&&(h=Gs(!0,g,h)),r[A]=[c,h,...f]}}}}const Zv=new ea().freeze();function ta(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function na(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ra(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ed(t){if(!Ks(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Cd(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Wo(t){return(function(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)})(t)?t:new xd(t)}const Sd=[],Pd={allowDangerousHtml:!0},$v=/^(https?|ircs?|mailto|xmpp)$/i,ey=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ty(t){const e=t.allowedElements,n=t.allowElement,r=t.children||"",o=t.className,i=t.components,s=t.disallowedElements,a=t.rehypePlugins||Sd,l=t.remarkPlugins||Sd,c=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Pd}:Pd,u=t.skipHtml,d=t.unwrapDisallowed,A=t.urlTransform||ny,h=Zv().use(Bv).use(l).use(Wv,c).use(a),f=new xd;typeof r=="string"&&(f.value=r);for(const v of ey)Object.hasOwn(t,v.from)&&(v.from,v.to&&v.to,v.id);const g=h.parse(f);let p=h.runSync(g,f);return o&&(p={type:"element",tagName:"div",properties:{className:o},children:p.type==="root"?p.children:[p]}),md(p,function(v,w,y){if(v.type==="raw"&&y&&typeof w=="number")return u?y.children.splice(w,1):y.children[w]={type:"text",value:v.value},w;if(v.type==="element"){let b;for(b in Qs)if(Object.hasOwn(Qs,b)&&Object.hasOwn(v.properties,b)){const E=v.properties[b],k=Qs[b];(k===null||k.includes(v.tagName))&&(v.properties[b]=A(String(E||""),b,v))}}if(v.type==="element"){let b=e?!e.includes(v.tagName):!!s&&s.includes(v.tagName);if(!b&&n&&typeof w=="number"&&(b=!n(v,w,y)),b&&y&&typeof w=="number")return d&&v.children?y.children.splice(w,1,...v.children):y.children.splice(w,1),w}}),Pb(p,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0})}function ny(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),o=t.indexOf("/");return e===-1||o!==-1&&e>o||n!==-1&&e>n||r!==-1&&e>r||$v.test(t.slice(0,e))?t:""}const ry=({children:t})=>m.jsx("div",{style:{whiteSpace:"normal"},children:m.jsx(ty,{components:{p:({...e})=>m.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>m.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>m.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>m.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:n})=>e?m.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):m.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:m.jsx("code",{children:n})}),blockquote:({...e})=>m.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:typeof t=="string"?t:""})}),oy={autoConfig:!0},iy=t=>()=>(e=>{const{getFlow:n}=Fo(),{messages:r,replaceMessages:o}=_r(),{settings:i}=ou(),{hasChatHistoryLoaded:s}=su(),a={...e,...oy},l=a.markdownComponent?a.markdownComponent:ry;x.useEffect(()=>{var d,A;if(s){const h=[...r];for(let f=0;f<h.length&&f<(((d=i.chatHistory)==null?void 0:d.maxEntries)??30);f++){const g=h[f];(A=g.tags)!=null&&A.includes("rcb-markdown-renderer-plugin:parsed")&&(g.contentWrapper=l)}o(h)}},[s]);const c=async d=>{var A;const h=(A=d.data.message)==null?void 0:A.sender.toUpperCase();((f,g,p)=>{var v;if(typeof f.data.message.content!="string"||!f.detail.currPath)return!1;const w=g[f.detail.currPath];return!!w&&(((v=w.renderMarkdown)==null?void 0:v.map(y=>y.toUpperCase()).includes(p))??!1)})(d,n(),h)&&(d.data.message.contentWrapper=l,d.data.message.tags||(d.data.message.tags=[]),d.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};pt(q.PRE_INJECT_MESSAGE,c),pt(q.CHUNK_STREAM_MESSAGE,c),pt(q.START_STREAM_MESSAGE,c),pt(q.START_SIMULATE_STREAM_MESSAGE,c);const u={name:"@rcb-plugins/markdown-renderer"};return a!=null&&a.autoConfig&&(u.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),u})(t),Yo={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Dd=(t,e,n="validateTextInput")=>{var r;if((r=t.detail)==null||!r.currPath)return;const o=e[t.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},sy=t=>{const{showToast:e}=(()=>{const{showToast:d,dismissToast:A,toasts:h,replaceToasts:f}=Zn();return{showToast:d,dismissToast:A,toasts:h,replaceToasts:f}})(),{getFlow:n}=Fo(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:d,replaceStyles:A,updateStyles:h}=eu();return{styles:d,replaceStyles:A,updateStyles:h}})(),s=(d=>({...Yo,...d,promptBaseColors:{...Yo.promptBaseColors},promptHoveredColors:{...Yo.promptHoveredColors},textAreaHighlightColors:{...Yo.textAreaHighlightColors}}))(t),[a,l]=x.useState(0),c=x.useRef({});pt(q.USER_SUBMIT_TEXT,d=>{const A=d,h=Dd(A,n(),"validateTextInput");if(!h)return;const f=h(A.data.inputText);if(f!=null&&f.success||d.preventDefault(),!f.promptContent)return;a===0&&(c.current=structuredClone(r));const g=((p,v)=>{const w=p.promptType??"info";let y={};return v.advancedStyles&&(y=v.advancedStyles[w]),v.promptBaseColors&&(y.toastPromptStyle={color:v.promptBaseColors[w],borderColor:v.promptBaseColors[w]}),v.promptHoveredColors&&(y.toastPromptHoveredStyle={color:v.promptHoveredColors[w],borderColor:v.promptHoveredColors[w]}),v.textAreaHighlightColors&&(p.highlightTextArea??!0)&&(y.chatInputAreaStyle={boxShadow:`${v.textAreaHighlightColors[w]} 0px 0px 5px`}),y})(f,s);o(g),e(f.promptContent,f.promptDuration??3e3),l(p=>p+1)}),pt(q.USER_UPLOAD_FILE,d=>{var A,h;const f=d,g=(h=(A=f.data)==null?void 0:A.files)==null?void 0:h[0];if(!g)return console.error("No file uploaded."),void d.preventDefault();const p=Dd(f,n(),"validateFileInput");if(!p)return void console.error("Validator not found for file input.");const v=p(g);if(!v.success)return console.error("Validation failed:",v),v.promptContent&&e(v.promptContent,v.promptDuration??3e3),void d.preventDefault();console.log("Validation successful:",v)}),pt(q.DISMISS_TOAST,()=>{l(d=>d-1)}),x.useEffect(()=>{a===0&&setTimeout(()=>{i(c.current)})},[a,i]);const u={name:"@rcb-plugins/input-validator"};return s.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},Bd=x.forwardRef((t,e)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=t;const s=_r(),a=(()=>{const{isChatWindowOpen:u,toggleChatWindow:d,toggleIsBotTyping:A,scrollToBottom:h,getIsChatBotVisible:f}=st();return{isChatWindowOpen:u,toggleChatWindow:d,toggleIsBotTyping:A,scrollToBottom:h,getIsChatBotVisible:f}})(),l=x.useRef(!1),c=x.useRef(!1);return x.useEffect(()=>{!n&&a&&a.toggleChatWindow&&(l.current===r||c.current||(setTimeout(()=>{a&&a.toggleChatWindow&&a.toggleChatWindow(r)},0),l.current=r!=null&&r),c.current=!1)},[r,n,a]),x.useEffect(()=>{const u=()=>{c.current=!0};return window.addEventListener("rcb-toggle-chat-window",u),()=>window.removeEventListener("rcb-toggle-chat-window",u)}),x.useImperativeHandle(e,()=>({addMessage:u=>{s&&s.injectMessage&&s.injectMessage(u)},openChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow(!0)},closeChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow(!1)},toggleChat:()=>{!n&&a&&a.toggleChatWindow&&a.toggleChatWindow()},setBotEnabled:u=>{i&&i(u)}}),[s,a,n,i]),null});Bd.displayName="BotController";const Td=x.createContext(null),ay=t=>{let{trackEvent:e,children:n}=t;const r=x.useRef(e);return r.current=e,x.createElement(Td.Provider,{value:{trackEvent:o=>r.current(o)}},n)},Id=()=>x.useContext(Td)||{trackEvent:()=>{}},Md=t=>{let{loginUrl:e,className:n="",style:r,isHeaderButton:o=!1}=t;const{trackEvent:i}=Id(),s=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return x.createElement(x.Fragment,null,o&&x.createElement("style",null,`
|
|
30
30
|
.rcb-chat-header-container .qa-bot-header-login-button:hover {
|
|
31
31
|
background-color: #0000001a !important;
|
|
32
32
|
opacity: 1 !important;
|
|
33
33
|
}
|
|
34
|
-
`),x.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},s),r),onClick:()=>{i({type:"chatbot_login_clicked",loginUrl:e})}},"Log In"))},ly=()=>x.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},x.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},x.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),x.createElement("circle",{cx:"12",cy:"7",r:"4"}))),ze=[];for(let t=0;t<256;++t)ze.push((t+256).toString(16).slice(1));let oa;const cy=new Uint8Array(16);var _d={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Od(t,e,n){var r;if(_d.randomUUID&&!t)return _d.randomUUID();const o=(t=t||{}).random??((r=t.rng)==null?void 0:r.call(t))??(function(){if(!oa){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");oa=crypto.getRandomValues.bind(crypto)}return oa(cy)})();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,(function(i,s=0){return(ze[i[s+0]]+ze[i[s+1]]+ze[i[s+2]]+ze[i[s+3]]+"-"+ze[i[s+4]]+ze[i[s+5]]+"-"+ze[i[s+6]]+ze[i[s+7]]+"-"+ze[i[s+8]]+ze[i[s+9]]+"-"+ze[i[s+10]]+ze[i[s+11]]+ze[i[s+12]]+ze[i[s+13]]+ze[i[s+14]]+ze[i[s+15]]).toLowerCase()})(o)}function qo(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const uy="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",dy="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",Ay="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",hy="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",fy="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",py=()=>{qo()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),hy,fy)},Go=function(t){if(qo()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(t),uy,"",...n)}},Rt=function(t){if(qo()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(t),dy,"",...n)}},gy=(t,e)=>{qo()&&console.log("%c[Message]%c ".concat(t),Ay,"",e)},my=function(){console.warn(...arguments)},Fn=function(){console.error(...arguments)},Ld="qa_bot_session_messages",Fd=()=>"qa_bot_session_".concat(Od()),Ur=()=>{try{const t=localStorage.getItem(Ld);return t?JSON.parse(t):{}}catch{return{}}},by=(t,e,n,r,o)=>{const i=Ur();if(!i[t]&&(i[t]={messages:[],startedAt:new Date().toISOString(),preview:""},Rt("NEW session created",{sessionId:t.slice(-12)})),i[t].messages.some(c=>c.id===e))return void Rt("DUPLICATE message skipped",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r});const s={id:e,content:n,sender:r,type:o,timestamp:Date.now()};i[t].messages.push(s),Rt("MESSAGE added",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r,totalInSession:i[t].messages.length});const a=i[t].messages,l=a.find(c=>{var u;return c.sender.toLowerCase()==="bot"&&((u=c.content)===null||u===void 0?void 0:u.trim())&&c.content.length>=100});if(l){const c=l.content;i[t].preview=c.slice(0,50)+(c.length>50?"...":"")}else{const c=a.find(u=>{var d;return u.sender.toLowerCase()==="user"&&((d=u.content)===null||d===void 0?void 0:d.trim())});if(c&&!i[t].preview){const u=c.content;i[t].preview=u.slice(0,50)+(u.length>50?"...":"")}}(c=>{var u;const d=()=>Object.values(c).reduce((A,h)=>A+h.messages.length,0);for(;d()>100&&Object.keys(c).length>1;){const A=(u=Object.entries(c).sort((h,f)=>{let[,g]=h,[,p]=f;return new Date(g.startedAt).getTime()-new Date(p.startedAt).getTime()})[0])===null||u===void 0?void 0:u[0];if(!A)break;delete c[A]}localStorage.setItem(Ld,JSON.stringify(c))})(i),Rt("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((c,u)=>c+u.messages.length,0)})},Qd=t=>{var e,n;return(n=(e=Ur()[t])===null||e===void 0?void 0:e.messages.length)!==null&&n!==void 0?n:0},vy=t=>{const e=Ur()[t];return e!=null&&e.startedAt?Date.now()-new Date(e.startedAt).getTime():0},Nd=x.createContext(void 0),yy=t=>{let{children:e,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=t;return x.createElement(Nd.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},e)},ia=()=>{const t=x.useContext(Nd);if(!t)throw new Error("useSession must be used within a SessionProvider");return t},wy=()=>{const[t,e]=x.useState(!1),[n,r]=x.useState([]),[o,i]=x.useState(null),[s,a]=x.useState(0),l=x.useRef(null),c=x.useRef(null),{replaceMessages:u}=_r(),{toggleTextAreaDisabled:d}=iu(),{setSessionId:A,getSessionId:h}=ia();x.useEffect(()=>{var g,p;const y=v=>{l.current&&!l.current.contains(v.target)&&c.current&&!c.current.contains(v.target)&&e(!1)},w=(p=(g=l.current)===null||g===void 0?void 0:g.getRootNode())!==null&&p!==void 0?p:document;return t&&w.addEventListener("mousedown",y),()=>{w.removeEventListener("mousedown",y)}},[t]);const f=g=>{var p;const y=h();if(Rt("RESTORE requested",{targetSession:g.slice(-12),currentSession:y?.slice(-12)}),g===y)return Rt("RESTORE skipped - already on this session"),void e(!1);const w=(E=>{var k;return((k=Ur()[E])===null||k===void 0?void 0:k.messages)||[]})(g).filter(E=>{var k;return(k=E.content)===null||k===void 0?void 0:k.trim()});Rt("Stored messages from our localStorage",{count:w.length,ids:w.map(E=>E.id.slice(-8))});const v=w.map(E=>({id:E.id,content:E.content,sender:E.sender.toUpperCase(),type:E.type||"string",timestamp:new Date(E.timestamp).toISOString()}));var b;A(g),Rt("Session ID updated",{newSession:g.slice(-12)}),u(v),Rt("replaceMessages called",{count:v.length}),b=(p=c.current)===null||p===void 0?void 0:p.getRootNode(),setTimeout(()=>{const E=(b||document).querySelector(".rcb-chat-body-container");E&&E.querySelectorAll(".rcb-bot-message").forEach(k=>{var P;let D=k.innerHTML,I=!1;D.includes("](")&&(D=D.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),I=!0),D.includes("<a href=")&&(D=D.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),I=!0),(D.includes("<a ")||!((P=k.textContent)===null||P===void 0)&&P.includes("<a href="))&&(k.textContent||"").includes("<a href=")&&(D=D.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),I=!0),I&&(k.innerHTML=D)})},50),d(!1),Rt("Chat input enabled after restore"),e(!1)};return x.createElement("div",{style:{position:"relative"}},x.createElement("button",{ref:c,className:"history-button",onClick:()=>{if(!t&&(r((()=>{const g=Ur();return Object.entries(g).map(p=>{let[y,w]=p;return Object.assign({sessionId:y},w)}).sort((p,y)=>new Date(y.startedAt).getTime()-new Date(p.startedAt).getTime())})()),c.current)){const g=c.current.closest(".rcb-chat-window");if(g){const p=g.getBoundingClientRect(),y=c.current.getBoundingClientRect();i(p.width+3),a(p.right-y.right-18+4)}}e(!t)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":t,"aria-haspopup":"menu"},x.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},x.createElement("circle",{cx:"12",cy:"12",r:"10"}),x.createElement("polyline",{points:"12 6 12 12 16 14"}))),t&&x.createElement("div",{ref:l,role:"menu",style:{position:"absolute",right:s?"-".concat(s,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?x.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(g=>x.createElement("button",{key:g.sessionId,role:"menuitem",onClick:()=>f(g.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:p=>{p.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent"}},x.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},g.preview||"New conversation"),x.createElement("span",{style:{fontSize:"12px",color:"#888"}},(p=>{const y=new Date(p),w=new Date().getTime()-y.getTime(),v=Math.floor(w/864e5);return v===0?y.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):v===1?"Yesterday":v<7?y.toLocaleDateString([],{weekday:"short"}):y.toLocaleDateString([],{month:"short",day:"numeric"})})(g.startedAt))))))};function sa(){return sa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sa.apply(null,arguments)}const zd=({width:t=24,height:e=24,color:n="currentColor",children:r,...o})=>x.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),xy=t=>x.createElement(zd,t,x.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),ky=()=>{const{restartFlow:t}=Fo(),{setTextAreaValue:e}=iu(),{messages:n}=_r(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=ia(),{trackEvent:s}=Id();return x.createElement("button",{onClick:async()=>{const a=r(),l=a?Qd(a):0;s({type:"chatbot_new_chat",previousMessageCount:l}),o(),await e(""),await t(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:a=>{a.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:a=>{a.target.style.backgroundColor="var(--primaryColor, #107180)"}},x.createElement(xy,{width:16,height:16}),"New Chat")};function aa(t){if(typeof t=="string")return t;if(typeof t=="number")return String(t);if(!t)return"";if(Array.isArray(t))return t.map(aa).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t.props;if(e&&"children"in e)return aa(e.children)}return""}const Ey=()=>{const{getSessionId:t}=ia(),e=x.useCallback(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,s=o.type||"string";let a;if(a=typeof o.content=="string"?o.content:aa(o.content),gy("TRACKED",{id:o.id,sender:i,content:a.substring(0,50)+(a.length>50?"...":"")}),a.includes("rcb-options-container")||!a.trim())return;const l=t();by(l,o.id,a,i,s)},[t]);return x.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",e),()=>{window.removeEventListener("rcb-pre-inject-message",e)}),[e]),null},Cy=()=>(x.useEffect(()=>{const t=s=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(s.key))return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.contentEditable==="true"||a.classList.contains("rcb-chat-input-textarea")))return;const l=document.querySelector(".rcb-chat-window");if(!l)return;const c=Array.from(l.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(A=>A.offsetParent!==null);if(c.length>0){const A=c[c.length-1].querySelector(".rcb-checkbox-container");if(A&&A.offsetParent!==null){const h=Array.from(A.querySelectorAll(".rcb-checkbox-row-container")),f=A.querySelector(".rcb-checkbox-next-button");if(h.length>0){const g=[...h];return f&&g.push(f),void((p,y)=>{p.preventDefault();let w=-1;for(let b=0;b<y.length;b++)if(y[b]===document.activeElement||y[b].contains(document.activeElement)){w=b;break}w===-1&&(w=0);let v=w;switch(p.key){case"ArrowDown":case"ArrowRight":v=w<y.length-1?w+1:0;break;case"ArrowUp":case"ArrowLeft":v=w>0?w-1:y.length-1;break;case"Home":v=0;break;case"End":v=y.length-1;break;case"Enter":case" ":{const b=y[w],E=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void b.dispatchEvent(E)}default:return}y[v].focus(),y[v].setAttribute("tabindex","0"),y[v].classList.add("keyboard-focused"),y.forEach((b,E)=>{E!==v&&(b.setAttribute("tabindex","-1"),b.classList.remove("keyboard-focused"))})})(s,g)}}}let u=[];if(c.length>0){const A=c[c.length-1],h=Array.from(A.querySelectorAll(".rcb-options-container")).filter(f=>f.offsetParent!==null);if(h.length>0){const f=h[h.length-1];u=Array.from(f.querySelectorAll(".rcb-options"))}}if(u.length===0)return;const d=u.findIndex(A=>A===document.activeElement);switch(s.key){case"ArrowDown":case"ArrowRight":{let A;s.preventDefault(),A=d<u.length-1?d+1:0,u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus();break}case"ArrowUp":case"ArrowLeft":{let A;s.preventDefault(),A=d>0?d-1:u.length-1,u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus();break}case"Enter":case" ":if(s.preventDefault(),document.activeElement&&u.includes(document.activeElement)){const A=document.activeElement;if(A.classList.contains("rcb-checkbox-row-container")||A.closest(".rcb-checkbox-row-container")){const h=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});A.dispatchEvent(h);const f=A.querySelector(".rcb-checkbox-label"),g=f?f.textContent:A.textContent||"checkbox",p=A.querySelector(".rcb-checkbox-mark"),y=p&&p.style.backgroundColor?"checked":"unchecked";e("".concat(g," ").concat(y))}else{const h=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});A.dispatchEvent(h);const f=A.textContent||A.innerText;e("Selected: ".concat(f))}}break;case"Home":s.preventDefault(),u.length>0&&(u[0].setAttribute("tabindex","0"),u.forEach((A,h)=>{h!==0&&(A.setAttribute("tabindex","-1"),A.classList.remove("keyboard-focused"))}),u[0].classList.add("keyboard-focused"),u[0].focus());break;case"End":if(s.preventDefault(),u.length>0){const A=u.length-1;u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus()}}},e=s=>{const a=document.createElement("div");a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),a.className="sr-only",a.textContent=s,document.body.appendChild(a),setTimeout(()=>{document.body.contains(a)&&document.body.removeChild(a)},1e3)},n=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(s||(s=document.querySelector(".rcb-chat-window"),s||(s=document.querySelector('[class*="rcb-chat"]')),s||(s=document.querySelector(".qa-bot"))),!s)return;const a=s.closest(".embedded-qa-bot")!==null,l=Array.from(s.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(A=>A.offsetParent!==null);if(l.length===0)return;const c=l[l.length-1],u=Array.from(c.querySelectorAll(".rcb-options-container")).filter(A=>A.offsetParent!==null);let d=[];if(u.length>0){const A=u[u.length-1];d=Array.from(A.querySelectorAll(".rcb-options"))}if(d.length===0){let A=c.querySelector(".rcb-checkbox-container");if(!A&&s&&(A=s.querySelector(".rcb-checkbox-container")),A&&A.offsetParent!==null){const h=Array.from(A.querySelectorAll(".rcb-checkbox-row-container")).filter(f=>f.offsetParent!==null&&f.style.display!=="none");if(h.length>0){const f=A.querySelector(".rcb-checkbox-next-button"),g=[...h];if(f&&f.offsetParent!==null&&g.push(f),g.forEach((p,y)=>{p.setAttribute("tabindex",y===0?"0":"-1"),y===0?p.classList.add("keyboard-focused"):p.classList.remove("keyboard-focused")}),h.length>1){A.querySelectorAll(".keyboard-nav-hint").forEach(y=>y.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",p.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",A.insertBefore(p,A.firstChild)}return void setTimeout(()=>{g[0]&&g[0].offsetParent!==null&&!a&&g[0].focus()},150)}}}if(d.length>0){if(d.forEach((A,h)=>{const f=h===0?"0":"-1";A.setAttribute("tabindex",f),A.setAttribute("role","option"),A.setAttribute("aria-posinset",h+1),A.setAttribute("aria-setsize",d.length),h===0?A.classList.add("keyboard-focused"):A.classList.remove("keyboard-focused")}),d.length>1){const A=u.length>0?u[u.length-1]:null;if(A){A.querySelectorAll(".keyboard-nav-hint").forEach(f=>f.remove());const h=document.createElement("div");h.className="keyboard-nav-hint",h.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",h.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",A.insertBefore(h,A.firstChild)}}else{const A=u.length>0?u[u.length-1]:null;A&&A.querySelectorAll(".keyboard-nav-hint").forEach(h=>h.remove())}setTimeout(()=>{d[0]&&d[0].offsetParent!==null&&!a&&(d[0].focus(),d.length>1&&e("".concat(d.length," options available. Use arrow keys to navigate.")))},200)}},r=s=>{const a=s.querySelectorAll(".rcb-options");a.forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","button"),l.setAttribute("tabindex",c===0?"0":"-1"),l.setAttribute("aria-posinset",c+1),l.setAttribute("aria-setsize",a.length))}),s.querySelectorAll(".rcb-checkbox-row-container").forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","checkbox"),l.setAttribute("tabindex",c===0?"0":"-1"))})},o=new MutationObserver(s=>{s.forEach(a=>{if(a.type==="childList"){const u=Array.from(a.addedNodes),d=u.some(h=>{var f,g,p,y;return h.nodeType===Node.ELEMENT_NODE&&(((f=h.classList)===null||f===void 0?void 0:f.contains("rcb-options-container"))||((g=h.classList)===null||g===void 0?void 0:g.contains("rcb-options"))||((p=h.querySelector)===null||p===void 0?void 0:p.call(h,".rcb-options-container"))||((y=h.querySelector)===null||y===void 0?void 0:y.call(h,".rcb-options")))}),A=u.some(h=>{var f,g;return h.nodeType===Node.ELEMENT_NODE&&(((f=h.classList)===null||f===void 0?void 0:f.contains("rcb-checkbox-container"))||((g=h.querySelector)===null||g===void 0?void 0:g.call(h,".rcb-checkbox-container")))});if(d||A){let h=a.target;for(;h&&((l=h.classList)===null||l===void 0||!l.contains("qa-bot"))&&((c=h.classList)===null||c===void 0||!c.contains("rcb-chat-window"));){var l,c;h=h.parentElement}const f=h||document;r(f),f.querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(g=>{g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused")}),setTimeout(()=>n(h),100)}}})});o.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",t),r(document),n();const i=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(s=>{const a=s.querySelectorAll(".rcb-options-container .rcb-options").length>0,l=s.querySelectorAll(".rcb-checkbox-row-container").length>0;if(a){r(s);const c=s.querySelectorAll(".rcb-options[tabindex]").length;s.querySelectorAll(".rcb-options").length>c&&n(s)}if(l){r(s);const c=s.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;s.querySelectorAll(".rcb-checkbox-row-container").length>c&&n(s)}})},1e3);return()=>{document.removeEventListener("keydown",t),o.disconnect(),clearInterval(i)}},[]),null),Sy="#1a5b6e",Py="#107180",Dy="Arial, sans-serif",Rd="Q&A Bot",By="/chat-icon.svg",Ty="Type your question here...",Iy="Select an option to continue",My=!1,_y="Ask me a question!",Ud="/login",Oy={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},la=x.forwardRef((t,e)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:s,welcomeMessage:a,open:l,onOpenChange:c,isLoggedIn:u,allowAnonAccess:d=!1,actingUser:A,primaryColor:h,secondaryColor:f,botName:g,logo:p,placeholder:y,errorMessage:w,embedded:v,footerText:b,footerLink:E,tooltipText:k,loginUrl:P,customFlow:D,onAnalyticsEvent:I}=t,T=x.useRef("bot_".concat(Math.random().toString(36).substr(2,9)));x.useEffect(()=>{py()},[]);const M=x.useRef(null);M.current===null&&(M.current=Fd(),Go("CREATED",M.current));const B=x.useRef(!1),_=x.useRef({getSessionId:()=>M.current,isResetting:()=>B.current}),[N,O]=x.useState(u);x.useEffect(()=>{O(u)},[u]);const R=v!==void 0?v:My,Q=x.useCallback(V=>{var j;I&&I(Object.assign(Object.assign({},V),{timestamp:Date.now(),sessionId:(j=M.current)!==null&&j!==void 0?j:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:R}))},[I,R]),U=x.useMemo(()=>{const V=Object.assign({},Oy);V.general=Object.assign(Object.assign({},V.general),{primaryColor:h||Sy,secondaryColor:f||Py,fontFamily:Dy,embedded:R});const j=N===!1?[x.createElement(Md,{key:"login-button",loginUrl:P||Ud,isHeaderButton:!0})]:[x.createElement(wy,{key:"history-button"}),x.createElement(ly,{key:"user-icon"})];V.header={title:x.createElement("span",{style:{fontSize:14,fontWeight:500}},g||Rd),showAvatar:!0,avatar:p||By,buttons:[...j,Se.CLOSE_CHAT_BUTTON]},V.chatInput=Object.assign(Object.assign({},V.chatInput),{disabled:!1,enabledPlaceholderText:y||Ty,disabledPlaceholderText:w||Iy}),V.tooltip=Object.assign(Object.assign({},V.tooltip),{text:k||_y});const W=b?E?x.createElement("a",{href:E,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},b):x.createElement("span",{key:"footer-text"},b):null;return V.footer={text:W,buttons:[x.createElement(ky,{key:"new-chat-button"})]},V.chatWindow=Object.assign(Object.assign({},V.chatWindow),{defaultOpen:!!R}),V.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},V},[h,f,g,p,y,w,R,k,N,P,b,E]),C=x.useRef(null),G=(function(V){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x.useMemo(()=>{const W=(K,$)=>{if(V.current){const le=getComputedStyle(V.current).getPropertyValue(K);if(le&&le.trim()!=="")return le.trim();if(V.current.parentElement){const oe=getComputedStyle(V.current.parentElement).getPropertyValue(K);if(oe&&oe.trim()!=="")return oe.trim()}}return $};return{primaryColor:W("--primaryColor",j.primaryColor),secondaryColor:W("--secondaryColor",j.secondaryColor),fontFamily:W("--fontFamily",j.fontFamily)}},[V,j])})(C,U.general);((V,j)=>{x.useEffect(()=>{j.current&&(V?j.current.classList.add("bot-logged-in"):j.current.classList.remove("bot-logged-in"))},[V,j])})(N!==!1,C),(V=>{let{settings:j,themeColors:W}=V;x.useEffect(()=>{W&&(Object.entries(W).forEach(K=>{let[$,le]=K;le&&document.documentElement.style.setProperty("--".concat($),le)}),W.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",W.primaryColor),W.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",W.secondaryColor))},[W]),x.useEffect(()=>{var K,$;!((K=j.header)===null||K===void 0)&&K.title&&typeof j.header.title=="string"&&(j.header.title=x.createElement("div",{key:"header-title"},x.createElement("h1",{className:"sr-only"},j.header.title),x.createElement("span",{"aria-hidden":"true"},j.header.title))),j.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},j.chatHistory={disabled:!0},j.chatButton=Object.assign(Object.assign({},j.chatButton),{icon:($=j.header)===null||$===void 0?void 0:$.avatar}),j.event=Object.assign(Object.assign({},j.event),{rcbToggleChatWindow:!0})},[j])})({settings:U,themeColors:G});const S=x.useMemo(()=>{const V=(j=>{let{endpoint:W,ratingEndpoint:K,apiKey:$,sessionId:le,isResetting:oe=()=>!1,isLoggedIn:pe,allowAnonAccess:De=!1,loginUrl:Xe="/login",trackEvent:Ie}=j;if(pe===!1&&!De)return Ie?.({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:x.createElement(Md,{loginUrl:Xe}),chatDisabled:!0,path:"qa_loop"}};let Ye=null,Tt=!1;if(!W)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async qe=>{const{userInput:Je}=qe;if(oe&&oe()||!Je||Je.trim()==="")return null;if(Je==="👍 Helpful"||Je==="👎 Not helpful"){if(K&&Ye)try{const Be=Je==="👍 Helpful",je={"Content-Type":"application/json"};$&&(je["X-API-KEY"]=$);const Me=le();Me&&(je["X-Session-ID"]=Me,je["X-Query-ID"]=Ye),await fetch(K,{method:"POST",headers:je,credentials:"include",body:JSON.stringify({sessionId:Me,queryId:Ye,rating:Be?1:0})}),Ie?.({type:"chatbot_rating_sent",queryId:Ye,rating:Be?"helpful":"not_helpful"})}catch(Be){Fn("Error sending feedback:",Be)}return"Thanks for the feedback! Feel free to ask another question."}try{const Be=Od();Ye=Be,Ie?.({type:"chatbot_question_sent",queryId:Be,questionLength:Je.length});const je={"Content-Type":"application/json"};$&&(je["X-API-KEY"]=$);const Me=le();Me&&(je["X-Session-ID"]=Me,je["X-Query-ID"]=Be);const Ct={query:Je,session_id:Me,question_id:Be};Go("SENT to API",{session_id:Me,question_id:Be});const Xt=Date.now(),ot=await fetch(W,{method:"POST",headers:je,credentials:"include",body:JSON.stringify(Ct)}),hn=Date.now()-Xt;if(!ot.ok)throw new Error("API returned ".concat(ot.status));const St=await ot.json(),Jt=St.response||St.answer||St.text||St.message;if(!Jt)throw new Error("Invalid response format from API");const fn=(J=>{if(!J||typeof J!="string")return J;let ee=J.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return ee=ee.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),ce=>{let ae=ce,L="";const Y=ae.match(/([.,;:!?]+)$/);return Y&&(L=Y[1],ae=ae.slice(0,-L.length)),"[".concat(ae,"](").concat(ae,")").concat(L)}),ee})(Jt),Zt=(function(J){const{confidence:ee,tools_used:ce,metadata:ae}=J;if(!(ee||ce&&ce.length!==0))return"";const L=[];return ee&&L.push("• Confidence: ".concat(ee)),ce&&ce.length>0&&L.push("• Tools used: ".concat(ce.join(", "))),ae!=null&&ae.agent&&L.push("• Agent: ".concat(ae.agent)),`---
|
|
34
|
+
`),x.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},s),r),onClick:()=>{i({type:"chatbot_login_clicked",loginUrl:e})}},"Log In"))},ly=()=>x.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},x.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},x.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),x.createElement("circle",{cx:"12",cy:"7",r:"4"}))),ze=[];for(let t=0;t<256;++t)ze.push((t+256).toString(16).slice(1));let oa;const cy=new Uint8Array(16);var _d={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Od(t,e,n){var r;if(_d.randomUUID&&!t)return _d.randomUUID();const o=(t=t||{}).random??((r=t.rng)==null?void 0:r.call(t))??(function(){if(!oa){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");oa=crypto.getRandomValues.bind(crypto)}return oa(cy)})();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,(function(i,s=0){return(ze[i[s+0]]+ze[i[s+1]]+ze[i[s+2]]+ze[i[s+3]]+"-"+ze[i[s+4]]+ze[i[s+5]]+"-"+ze[i[s+6]]+ze[i[s+7]]+"-"+ze[i[s+8]]+ze[i[s+9]]+"-"+ze[i[s+10]]+ze[i[s+11]]+ze[i[s+12]]+ze[i[s+13]]+ze[i[s+14]]+ze[i[s+15]]).toLowerCase()})(o)}function qo(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const uy="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",dy="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",Ay="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",hy="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",fy="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",py=()=>{qo()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),hy,fy)},Go=function(t){if(qo()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(t),uy,"",...n)}},Rt=function(t){if(qo()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(t),dy,"",...n)}},gy=(t,e)=>{qo()&&console.log("%c[Message]%c ".concat(t),Ay,"",e)},my=function(){console.warn(...arguments)},Fn=function(){console.error(...arguments)},Ld="qa_bot_session_messages",Fd=()=>"qa_bot_session_".concat(Od()),Ur=()=>{try{const t=localStorage.getItem(Ld);return t?JSON.parse(t):{}}catch{return{}}},by=(t,e,n,r,o)=>{const i=Ur();if(!i[t]&&(i[t]={messages:[],startedAt:new Date().toISOString(),preview:""},Rt("NEW session created",{sessionId:t.slice(-12)})),i[t].messages.some(c=>c.id===e))return void Rt("DUPLICATE message skipped",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r});const s={id:e,content:n,sender:r,type:o,timestamp:Date.now()};i[t].messages.push(s),Rt("MESSAGE added",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r,totalInSession:i[t].messages.length});const a=i[t].messages,l=a.find(c=>{var u;return c.sender.toLowerCase()==="bot"&&((u=c.content)===null||u===void 0?void 0:u.trim())&&c.content.length>=100});if(l){const c=l.content;i[t].preview=c.slice(0,50)+(c.length>50?"...":"")}else{const c=a.find(u=>{var d;return u.sender.toLowerCase()==="user"&&((d=u.content)===null||d===void 0?void 0:d.trim())});if(c&&!i[t].preview){const u=c.content;i[t].preview=u.slice(0,50)+(u.length>50?"...":"")}}(c=>{var u;const d=()=>Object.values(c).reduce((A,h)=>A+h.messages.length,0);for(;d()>100&&Object.keys(c).length>1;){const A=(u=Object.entries(c).sort((h,f)=>{let[,g]=h,[,p]=f;return new Date(g.startedAt).getTime()-new Date(p.startedAt).getTime()})[0])===null||u===void 0?void 0:u[0];if(!A)break;delete c[A]}localStorage.setItem(Ld,JSON.stringify(c))})(i),Rt("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((c,u)=>c+u.messages.length,0)})},Qd=t=>{var e,n;return(n=(e=Ur()[t])===null||e===void 0?void 0:e.messages.length)!==null&&n!==void 0?n:0},vy=t=>{const e=Ur()[t];return e!=null&&e.startedAt?Date.now()-new Date(e.startedAt).getTime():0},Nd=x.createContext(void 0),yy=t=>{let{children:e,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=t;return x.createElement(Nd.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},e)},ia=()=>{const t=x.useContext(Nd);if(!t)throw new Error("useSession must be used within a SessionProvider");return t},wy=()=>{const[t,e]=x.useState(!1),[n,r]=x.useState([]),[o,i]=x.useState(null),[s,a]=x.useState(0),l=x.useRef(null),c=x.useRef(null),{replaceMessages:u}=_r(),{toggleTextAreaDisabled:d}=iu(),{setSessionId:A,getSessionId:h}=ia();x.useEffect(()=>{var g,p;const v=y=>{l.current&&!l.current.contains(y.target)&&c.current&&!c.current.contains(y.target)&&e(!1)},w=(p=(g=l.current)===null||g===void 0?void 0:g.getRootNode())!==null&&p!==void 0?p:document;return t&&w.addEventListener("mousedown",v),()=>{w.removeEventListener("mousedown",v)}},[t]);const f=g=>{var p;const v=h();if(Rt("RESTORE requested",{targetSession:g.slice(-12),currentSession:v?.slice(-12)}),g===v)return Rt("RESTORE skipped - already on this session"),void e(!1);const w=(E=>{var k;return((k=Ur()[E])===null||k===void 0?void 0:k.messages)||[]})(g).filter(E=>{var k;return(k=E.content)===null||k===void 0?void 0:k.trim()});Rt("Stored messages from our localStorage",{count:w.length,ids:w.map(E=>E.id.slice(-8))});const y=w.map(E=>({id:E.id,content:E.content,sender:E.sender.toUpperCase(),type:E.type||"string",timestamp:new Date(E.timestamp).toISOString()}));var b;A(g),Rt("Session ID updated",{newSession:g.slice(-12)}),u(y),Rt("replaceMessages called",{count:y.length}),b=(p=c.current)===null||p===void 0?void 0:p.getRootNode(),setTimeout(()=>{const E=(b||document).querySelector(".rcb-chat-body-container");E&&E.querySelectorAll(".rcb-bot-message").forEach(k=>{var P;let D=k.innerHTML,I=!1;D.includes("](")&&(D=D.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),I=!0),D.includes("<a href=")&&(D=D.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),I=!0),(D.includes("<a ")||!((P=k.textContent)===null||P===void 0)&&P.includes("<a href="))&&(k.textContent||"").includes("<a href=")&&(D=D.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),I=!0),I&&(k.innerHTML=D)})},50),d(!1),Rt("Chat input enabled after restore"),e(!1)};return x.createElement("div",{style:{position:"relative"}},x.createElement("button",{ref:c,className:"history-button",onClick:()=>{if(!t&&(r((()=>{const g=Ur();return Object.entries(g).map(p=>{let[v,w]=p;return Object.assign({sessionId:v},w)}).sort((p,v)=>new Date(v.startedAt).getTime()-new Date(p.startedAt).getTime())})()),c.current)){const g=c.current.closest(".rcb-chat-window");if(g){const p=g.getBoundingClientRect(),v=c.current.getBoundingClientRect();i(p.width+3),a(p.right-v.right-18+4)}}e(!t)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":t,"aria-haspopup":"menu"},x.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},x.createElement("circle",{cx:"12",cy:"12",r:"10"}),x.createElement("polyline",{points:"12 6 12 12 16 14"}))),t&&x.createElement("div",{ref:l,role:"menu",style:{position:"absolute",right:s?"-".concat(s,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?x.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(g=>x.createElement("button",{key:g.sessionId,role:"menuitem",onClick:()=>f(g.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:p=>{p.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent"}},x.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},g.preview||"New conversation"),x.createElement("span",{style:{fontSize:"12px",color:"#888"}},(p=>{const v=new Date(p),w=new Date().getTime()-v.getTime(),y=Math.floor(w/864e5);return y===0?v.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):y===1?"Yesterday":y<7?v.toLocaleDateString([],{weekday:"short"}):v.toLocaleDateString([],{month:"short",day:"numeric"})})(g.startedAt))))))};function sa(){return sa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sa.apply(null,arguments)}const zd=({width:t=24,height:e=24,color:n="currentColor",children:r,...o})=>x.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),xy=t=>x.createElement(zd,t,x.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),ky=()=>{const{restartFlow:t}=Fo(),{setTextAreaValue:e}=iu(),{messages:n}=_r(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=ia(),{trackEvent:s}=Id();return x.createElement("button",{onClick:async()=>{const a=r(),l=a?Qd(a):0;s({type:"chatbot_new_chat",previousMessageCount:l}),o(),await e(""),await t(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:a=>{a.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:a=>{a.target.style.backgroundColor="var(--primaryColor, #107180)"}},x.createElement(xy,{width:16,height:16}),"New Chat")};function aa(t){if(typeof t=="string")return t;if(typeof t=="number")return String(t);if(!t)return"";if(Array.isArray(t))return t.map(aa).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t.props;if(e&&"children"in e)return aa(e.children)}return""}const Ey=()=>{const{getSessionId:t}=ia(),e=x.useCallback(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,s=o.type||"string";let a;if(a=typeof o.content=="string"?o.content:aa(o.content),gy("TRACKED",{id:o.id,sender:i,content:a.substring(0,50)+(a.length>50?"...":"")}),a.includes("rcb-options-container")||!a.trim())return;const l=t();by(l,o.id,a,i,s)},[t]);return x.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",e),()=>{window.removeEventListener("rcb-pre-inject-message",e)}),[e]),null},Cy=()=>(x.useEffect(()=>{const t=s=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(s.key))return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.contentEditable==="true"||a.classList.contains("rcb-chat-input-textarea")))return;const l=document.querySelector(".rcb-chat-window");if(!l)return;const c=Array.from(l.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(A=>A.offsetParent!==null);if(c.length>0){const A=c[c.length-1].querySelector(".rcb-checkbox-container");if(A&&A.offsetParent!==null){const h=Array.from(A.querySelectorAll(".rcb-checkbox-row-container")),f=A.querySelector(".rcb-checkbox-next-button");if(h.length>0){const g=[...h];return f&&g.push(f),void((p,v)=>{p.preventDefault();let w=-1;for(let b=0;b<v.length;b++)if(v[b]===document.activeElement||v[b].contains(document.activeElement)){w=b;break}w===-1&&(w=0);let y=w;switch(p.key){case"ArrowDown":case"ArrowRight":y=w<v.length-1?w+1:0;break;case"ArrowUp":case"ArrowLeft":y=w>0?w-1:v.length-1;break;case"Home":y=0;break;case"End":y=v.length-1;break;case"Enter":case" ":{const b=v[w],E=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void b.dispatchEvent(E)}default:return}v[y].focus(),v[y].setAttribute("tabindex","0"),v[y].classList.add("keyboard-focused"),v.forEach((b,E)=>{E!==y&&(b.setAttribute("tabindex","-1"),b.classList.remove("keyboard-focused"))})})(s,g)}}}let u=[];if(c.length>0){const A=c[c.length-1],h=Array.from(A.querySelectorAll(".rcb-options-container")).filter(f=>f.offsetParent!==null);if(h.length>0){const f=h[h.length-1];u=Array.from(f.querySelectorAll(".rcb-options"))}}if(u.length===0)return;const d=u.findIndex(A=>A===document.activeElement);switch(s.key){case"ArrowDown":case"ArrowRight":{let A;s.preventDefault(),A=d<u.length-1?d+1:0,u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus();break}case"ArrowUp":case"ArrowLeft":{let A;s.preventDefault(),A=d>0?d-1:u.length-1,u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus();break}case"Enter":case" ":if(s.preventDefault(),document.activeElement&&u.includes(document.activeElement)){const A=document.activeElement;if(A.classList.contains("rcb-checkbox-row-container")||A.closest(".rcb-checkbox-row-container")){const h=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});A.dispatchEvent(h);const f=A.querySelector(".rcb-checkbox-label"),g=f?f.textContent:A.textContent||"checkbox",p=A.querySelector(".rcb-checkbox-mark"),v=p&&p.style.backgroundColor?"checked":"unchecked";e(`${g} ${v}`)}else{const h=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});A.dispatchEvent(h);const f=A.textContent||A.innerText;e(`Selected: ${f}`)}}break;case"Home":s.preventDefault(),u.length>0&&(u[0].setAttribute("tabindex","0"),u.forEach((A,h)=>{h!==0&&(A.setAttribute("tabindex","-1"),A.classList.remove("keyboard-focused"))}),u[0].classList.add("keyboard-focused"),u[0].focus());break;case"End":if(s.preventDefault(),u.length>0){const A=u.length-1;u[A].setAttribute("tabindex","0"),u.forEach((h,f)=>{f!==A&&(h.setAttribute("tabindex","-1"),h.classList.remove("keyboard-focused"))}),u[A].classList.add("keyboard-focused"),u[A].focus()}}},e=s=>{const a=document.createElement("div");a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),a.className="sr-only",a.textContent=s,document.body.appendChild(a),setTimeout(()=>{document.body.contains(a)&&document.body.removeChild(a)},1e3)},n=(s=null)=>{let a=s;if(a||(a=document.querySelector(".rcb-chat-window"),a||(a=document.querySelector('[class*="rcb-chat"]')),a||(a=document.querySelector(".qa-bot"))),!a)return;const l=a.closest(".embedded-qa-bot")!==null,c=Array.from(a.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(h=>h.offsetParent!==null);if(c.length===0)return;const u=c[c.length-1],d=Array.from(u.querySelectorAll(".rcb-options-container")).filter(h=>h.offsetParent!==null);let A=[];if(d.length>0){const h=d[d.length-1];A=Array.from(h.querySelectorAll(".rcb-options"))}if(A.length===0){let h=u.querySelector(".rcb-checkbox-container");if(!h&&a&&(h=a.querySelector(".rcb-checkbox-container")),h&&h.offsetParent!==null){const f=Array.from(h.querySelectorAll(".rcb-checkbox-row-container")).filter(g=>g.offsetParent!==null&&g.style.display!=="none");if(f.length>0){const g=h.querySelector(".rcb-checkbox-next-button"),p=[...f];if(g&&g.offsetParent!==null&&p.push(g),p.forEach((v,w)=>{v.setAttribute("tabindex",w===0?"0":"-1"),w===0?v.classList.add("keyboard-focused"):v.classList.remove("keyboard-focused")}),f.length>1){h.querySelectorAll(".keyboard-nav-hint").forEach(w=>w.remove());const v=document.createElement("div");v.className="keyboard-nav-hint",v.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",v.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",h.insertBefore(v,h.firstChild)}return void setTimeout(()=>{p[0]&&p[0].offsetParent!==null&&!l&&p[0].focus()},150)}}}if(A.length>0){if(A.forEach((h,f)=>{const g=f===0?"0":"-1";h.setAttribute("tabindex",g),h.setAttribute("role","option"),h.setAttribute("aria-posinset",f+1),h.setAttribute("aria-setsize",A.length),f===0?h.classList.add("keyboard-focused"):h.classList.remove("keyboard-focused")}),A.length>1){const h=d.length>0?d[d.length-1]:null;if(h){h.querySelectorAll(".keyboard-nav-hint").forEach(g=>g.remove());const f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",f.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",h.insertBefore(f,h.firstChild)}}else{const h=d.length>0?d[d.length-1]:null;h&&h.querySelectorAll(".keyboard-nav-hint").forEach(f=>f.remove())}setTimeout(()=>{A[0]&&A[0].offsetParent!==null&&!l&&(A[0].focus(),A.length>1&&e(`${A.length} options available. Use arrow keys to navigate.`))},200)}},r=s=>{const a=s.querySelectorAll(".rcb-options");a.forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","button"),l.setAttribute("tabindex",c===0?"0":"-1"),l.setAttribute("aria-posinset",c+1),l.setAttribute("aria-setsize",a.length))}),s.querySelectorAll(".rcb-checkbox-row-container").forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","checkbox"),l.setAttribute("tabindex",c===0?"0":"-1"))})},o=new MutationObserver(s=>{s.forEach(a=>{var l,c;if(a.type==="childList"){const u=Array.from(a.addedNodes),d=u.some(h=>{var f,g,p,v;return h.nodeType===Node.ELEMENT_NODE&&(((f=h.classList)==null?void 0:f.contains("rcb-options-container"))||((g=h.classList)==null?void 0:g.contains("rcb-options"))||((p=h.querySelector)==null?void 0:p.call(h,".rcb-options-container"))||((v=h.querySelector)==null?void 0:v.call(h,".rcb-options")))}),A=u.some(h=>{var f,g;return h.nodeType===Node.ELEMENT_NODE&&(((f=h.classList)==null?void 0:f.contains("rcb-checkbox-container"))||((g=h.querySelector)==null?void 0:g.call(h,".rcb-checkbox-container")))});if(d||A){let h=a.target;for(;h&&!((l=h.classList)!=null&&l.contains("qa-bot"))&&!((c=h.classList)!=null&&c.contains("rcb-chat-window"));)h=h.parentElement;const f=h||document;r(f),f.querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(g=>{g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused")}),setTimeout(()=>n(h),100)}}})});o.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",t),r(document),n();const i=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(s=>{const a=s.querySelectorAll(".rcb-options-container .rcb-options").length>0,l=s.querySelectorAll(".rcb-checkbox-row-container").length>0;if(a){r(s);const c=s.querySelectorAll(".rcb-options[tabindex]").length;s.querySelectorAll(".rcb-options").length>c&&n(s)}if(l){r(s);const c=s.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;s.querySelectorAll(".rcb-checkbox-row-container").length>c&&n(s)}})},1e3);return()=>{document.removeEventListener("keydown",t),o.disconnect(),clearInterval(i)}},[]),null),Sy="#1a5b6e",Py="#107180",Dy="Arial, sans-serif",Rd="Q&A Bot",By="/chat-icon.svg",Ty="Type your question here...",Iy="Select an option to continue",My=!1,_y="Ask me a question!",Ud="/login",Oy={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},la=x.forwardRef((t,e)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:s,welcomeMessage:a,open:l,onOpenChange:c,isLoggedIn:u,allowAnonAccess:d=!1,actingUser:A,primaryColor:h,secondaryColor:f,botName:g,logo:p,placeholder:v,errorMessage:w,embedded:y,footerText:b,footerLink:E,tooltipText:k,loginUrl:P,customFlow:D,onAnalyticsEvent:I}=t,T=x.useRef("bot_".concat(Math.random().toString(36).substr(2,9)));x.useEffect(()=>{py()},[]);const M=x.useRef(null);M.current===null&&(M.current=Fd(),Go("CREATED",M.current));const B=x.useRef(!1),_=x.useRef({getSessionId:()=>M.current,isResetting:()=>B.current}),[N,O]=x.useState(u);x.useEffect(()=>{O(u)},[u]);const R=y!==void 0?y:My,Q=x.useCallback(V=>{var j;I&&I(Object.assign(Object.assign({},V),{timestamp:Date.now(),sessionId:(j=M.current)!==null&&j!==void 0?j:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:R}))},[I,R]),U=x.useMemo(()=>{const V=Object.assign({},Oy);V.general=Object.assign(Object.assign({},V.general),{primaryColor:h||Sy,secondaryColor:f||Py,fontFamily:Dy,embedded:R});const j=N===!1?[x.createElement(Md,{key:"login-button",loginUrl:P||Ud,isHeaderButton:!0})]:[x.createElement(wy,{key:"history-button"}),x.createElement(ly,{key:"user-icon"})];V.header={title:x.createElement("span",{style:{fontSize:14,fontWeight:500}},g||Rd),showAvatar:!0,avatar:p||By,buttons:[...j,Se.CLOSE_CHAT_BUTTON]},V.chatInput=Object.assign(Object.assign({},V.chatInput),{disabled:!1,enabledPlaceholderText:v||Ty,disabledPlaceholderText:w||Iy}),V.tooltip=Object.assign(Object.assign({},V.tooltip),{text:k||_y});const W=b?E?x.createElement("a",{href:E,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},b):x.createElement("span",{key:"footer-text"},b):null;return V.footer={text:W,buttons:[x.createElement(ky,{key:"new-chat-button"})]},V.chatWindow=Object.assign(Object.assign({},V.chatWindow),{defaultOpen:!!R}),V.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},V},[h,f,g,p,v,w,R,k,N,P,b,E]),C=x.useRef(null),G=(function(V){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x.useMemo(()=>{const W=(K,$)=>{if(V.current){const le=getComputedStyle(V.current).getPropertyValue(K);if(le&&le.trim()!=="")return le.trim();if(V.current.parentElement){const oe=getComputedStyle(V.current.parentElement).getPropertyValue(K);if(oe&&oe.trim()!=="")return oe.trim()}}return $};return{primaryColor:W("--primaryColor",j.primaryColor),secondaryColor:W("--secondaryColor",j.secondaryColor),fontFamily:W("--fontFamily",j.fontFamily)}},[V,j])})(C,U.general);((V,j)=>{x.useEffect(()=>{j.current&&(V?j.current.classList.add("bot-logged-in"):j.current.classList.remove("bot-logged-in"))},[V,j])})(N!==!1,C),(V=>{let{settings:j,themeColors:W}=V;x.useEffect(()=>{W&&(Object.entries(W).forEach(K=>{let[$,le]=K;le&&document.documentElement.style.setProperty("--".concat($),le)}),W.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",W.primaryColor),W.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",W.secondaryColor))},[W]),x.useEffect(()=>{var K,$;!((K=j.header)===null||K===void 0)&&K.title&&typeof j.header.title=="string"&&(j.header.title=x.createElement("div",{key:"header-title"},x.createElement("h1",{className:"sr-only"},j.header.title),x.createElement("span",{"aria-hidden":"true"},j.header.title))),j.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},j.chatHistory={disabled:!0},j.chatButton=Object.assign(Object.assign({},j.chatButton),{icon:($=j.header)===null||$===void 0?void 0:$.avatar}),j.event=Object.assign(Object.assign({},j.event),{rcbToggleChatWindow:!0})},[j])})({settings:U,themeColors:G});const S=x.useMemo(()=>{const V=(j=>{let{endpoint:W,ratingEndpoint:K,apiKey:$,sessionId:le,isResetting:oe=()=>!1,isLoggedIn:pe,allowAnonAccess:De=!1,loginUrl:Xe="/login",trackEvent:Ie}=j;if(pe===!1&&!De)return Ie?.({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:x.createElement(Md,{loginUrl:Xe}),chatDisabled:!0,path:"qa_loop"}};let Ye=null,Tt=!1;if(!W)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async qe=>{const{userInput:Je}=qe;if(oe&&oe()||!Je||Je.trim()==="")return null;if(Je==="👍 Helpful"||Je==="👎 Not helpful"){if(K&&Ye)try{const Be=Je==="👍 Helpful",je={"Content-Type":"application/json"};$&&(je["X-API-KEY"]=$);const Me=le();Me&&(je["X-Session-ID"]=Me,je["X-Query-ID"]=Ye),await fetch(K,{method:"POST",headers:je,credentials:"include",body:JSON.stringify({sessionId:Me,queryId:Ye,rating:Be?1:0})}),Ie?.({type:"chatbot_rating_sent",queryId:Ye,rating:Be?"helpful":"not_helpful"})}catch(Be){Fn("Error sending feedback:",Be)}return"Thanks for the feedback! Feel free to ask another question."}try{const Be=Od();Ye=Be,Ie?.({type:"chatbot_question_sent",queryId:Be,questionLength:Je.length});const je={"Content-Type":"application/json"};$&&(je["X-API-KEY"]=$);const Me=le();Me&&(je["X-Session-ID"]=Me,je["X-Query-ID"]=Be);const Ct={query:Je,session_id:Me,question_id:Be};Go("SENT to API",{session_id:Me,question_id:Be});const Xt=Date.now(),ot=await fetch(W,{method:"POST",headers:je,credentials:"include",body:JSON.stringify(Ct)}),hn=Date.now()-Xt;if(!ot.ok)throw new Error("API returned ".concat(ot.status));const St=await ot.json(),Jt=St.response||St.answer||St.text||St.message;if(!Jt)throw new Error("Invalid response format from API");const fn=(J=>{if(!J||typeof J!="string")return J;let ee=J.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return ee=ee.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),ce=>{let ae=ce,L="";const Y=ae.match(/([.,;:!?]+)$/);return Y&&(L=Y[1],ae=ae.slice(0,-L.length)),"[".concat(ae,"](").concat(ae,")").concat(L)}),ee})(Jt),Zt=(function(J){const{confidence:ee,tools_used:ce,metadata:ae}=J;if(!(ee||ce&&ce.length!==0))return"";const L=[];return ee&&L.push("• Confidence: ".concat(ee)),ce&&ce.length>0&&L.push("• Tools used: ".concat(ce.join(", "))),ae!=null&&ae.agent&&L.push("• Agent: ".concat(ae.agent)),`---
|
|
35
35
|
`.concat(L.join(`
|
|
36
36
|
`))})(St),z=Zt?"".concat(fn,`
|
|
37
37
|
|
|
38
|
-
`).concat(Zt):fn;return await qe.injectMessage(z),Ie?.({type:"chatbot_answer_received",queryId:Be,responseTimeMs:hn,success:!0,responseLength:Jt.length,hasMetadata:!!Zt}),Tt=!0,setTimeout(async()=>{await qe.injectMessage("Feel free to ask another question.")},100),null}catch(Be){return Fn("Error in Q&A flow:",Be),Ie?.({type:"chatbot_answer_error",queryId:Ye??void 0,errorType:Be instanceof Error?Be.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:qe=>oe&&oe()||qe.userInput==="👍 Helpful"||qe.userInput==="👎 Not helpful"?[]:K&&Tt?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:s,apiKey:o,sessionId:_.current.getSessionId,isResetting:_.current.isResetting,isLoggedIn:N,allowAnonAccess:d,loginUrl:P||Ud,trackEvent:Q});return Object.assign(Object.assign({start:{message:a,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},V),D||{})},[o,i,s,a,N,d,P,D,A,Q]),X=x.useMemo(()=>{return[()=>ib(j),iy(),()=>sy(V)];var V,j},[]);return x.useEffect(()=>{const V=()=>{const W=document.querySelector(".rcb-chat-window");if(!W)return;const K=W.querySelector(".rcb-send-button");K&&(K.hasAttribute("tabindex")||K.setAttribute("tabindex","0"),K.hasAttribute("data-keyboard-enabled")||(K.setAttribute("data-keyboard-enabled","true"),K.addEventListener("keydown",$=>{if($.key==="Enter"||$.key===" "){$.preventDefault();const le=K&&Object.keys(K).find(pe=>pe.startsWith("__reactProps"));if(le){const pe=K[le],De=pe?.onMouseDown;if(De&&typeof De=="function")return void De($)}const oe=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});K.dispatchEvent(oe)}})))},j=setInterval(V,1e3);return V(),()=>clearInterval(j)},[]),Cy(),x.useEffect(()=>{const V=C.current;if(!V)return;const j=W=>{var K,$,le;const oe=($=(K=W.target).closest)===null||$===void 0?void 0:$.call(K,"a");oe&&oe.closest(".rcb-chat-body-container")&&(oe.classList.contains("qa-bot-login-button")||oe.closest(".rcb-options-container")||Q({type:"chatbot_link_clicked",linkUrl:oe.href,linkText:((le=oe.textContent)===null||le===void 0?void 0:le.trim())||""}))};return V.addEventListener("click",j),()=>V.removeEventListener("click",j)},[Q]),x.useEffect(()=>{if(!R){const V=j=>{const W=j.data.newState;c?.(W);const K=M.current;Q(W?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:K?Qd(K):0,durationMs:K?vy(K):0})};return window.addEventListener("rcb-toggle-chat-window",V),()=>{window.removeEventListener("rcb-toggle-chat-window",V)}}},[R,c,Q]),x.createElement("div",{className:"qa-bot ".concat(!((n=U.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:C,role:"region","aria-label":g||Rd},x.createElement(yy,{getSessionId:()=>M.current,setSessionId:V=>{const j=M.current;M.current=V,Go("RESTORED","".concat(j?.slice(-12)," -> ").concat(V.slice(-12)))},resetSession:()=>{const V=M.current;B.current=!0,M.current=Fd(),Go("RESET","".concat(V?.slice(-12)," -> ").concat(M.current.slice(-12)))},clearResettingFlag:()=>{B.current=!1}},x.createElement(ay,{trackEvent:Q},x.createElement(ru,null,x.createElement("div",null,x.createElement(Ey,null),x.createElement(Bd,{ref:e,embedded:((r=U.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:l||!1,enabled:N!==!1,onSetEnabled:V=>O(!!V&&void 0)}),x.createElement(R0,{key:"chatbot-".concat(T.current,"-").concat(N),settings:U,flow:S,plugins:X}),x.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),x.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});la.displayName="QABot",Sc('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const Ly=()=>{const[t,e]=x.useState(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{e(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(u=>{o.onloadedmetadata=()=>{o.play(),u()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const s=i.getContext("2d");if(!s)throw new Error("Could not get canvas context");s.drawImage(o,0,0,i.width,i.height);const a=await new Promise(u=>i.toBlob(u,"image/png"));if(!a)throw new Error("Could not create image blob");const l=new Date().toISOString().replace(/[:.]/g,"-"),c=new File([a],"screenshot-".concat(l,".png"),{type:"image/png"});return r.getTracks().forEach(u=>u.stop()),e(!1),c}catch(r){throw Fn("Error capturing screenshot:",r),e(!1),r}},isCapturing:t,isScreenCaptureAvailable:n()}},Fy=t=>x.createElement(zd,t,x.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),x.createElement("polyline",{points:"17 8 12 3 7 8"}),x.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Qy=t=>new Promise((e,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(t.name)));const o=r.result.split(",")[1];e({fileName:t.name,contentType:t.type,size:t.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(t.name))),r.readAsDataURL(t)}),Ny=t=>Promise.all(t.map(Qy)),zy=t=>t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(1)," KB"):"".concat((t/1048576).toFixed(1)," MB"),Ko=t=>{let{onFileUpload:e,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=t;const[s,a]=x.useState(!1),[l,c]=x.useState([]),[u,d]=x.useState(null),A=x.useRef(null),{captureScreenshot:h,isCapturing:f,isScreenCaptureAvailable:g}=Ly(),p=k=>{const P=document.createElement("div");P.setAttribute("aria-live","assertive"),P.setAttribute("aria-atomic","true"),P.className="sr-only",P.textContent=k,document.body.appendChild(P),setTimeout(()=>document.body.removeChild(P),1e3)},y=k=>{if(!k||k.length===0)return void my("FileUploadComponent: No valid files provided to handleFiles");let P;try{P=Array.from(k)}catch(M){return Fn("FileUploadComponent: Error converting files to array:",M),void p("Error processing selected files. Please try again.")}const D=[...l,...P];c(D);const I=P.length,T=P.map(M=>M.name).join(", ");p("".concat(I," file").concat(I>1?"s":""," selected: ").concat(T)),setTimeout(()=>{const M=document.querySelector(".rcb-chat-content");M&&(M.scrollTop=M.scrollHeight)},100),e&&e(D)},w=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},v=()=>{try{A.current&&A.current.click()}catch(k){Fn("FileUploadComponent: Error in handleButtonClick:",k),p("Error opening file selection dialog. Please try again.")}},b=()=>{d(null)},E=o&&g;return x.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},E&&x.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},x.createElement("button",{onClick:k=>{k.preventDefault(),(async()=>{try{const P=await h();y([P]),p("Screenshot captured successfully")}catch{p("Error capturing screenshot. Please try again.")}})()},disabled:f,"aria-describedby":"screenshot-help","aria-label":f?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:f?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},x.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),x.createElement("circle",{cx:"12",cy:"13",r:"4"})),f?"Taking screenshot...":"Take screenshot..."),x.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),x.createElement("div",{className:"file-upload-dropzone ".concat(s?"active":""),onDragEnter:w,onDragLeave:w,onDragOver:w,onDrop:k=>{var P;k.preventDefault(),k.stopPropagation(),a(!1);try{!((P=k.dataTransfer)===null||P===void 0)&&P.files&&k.dataTransfer.files.length>0&&y(k.dataTransfer.files)}catch(D){Fn("FileUploadComponent: Error in handleDrop:",D),p("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),v())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},x.createElement("input",{ref:A,type:"file",className:"file-input",onChange:k=>{var P;try{!((P=k.target)===null||P===void 0)&&P.files&&k.target.files.length>0&&y(k.target.files)}catch(D){Fn("FileUploadComponent: Error in handleFileSelect:",D),p("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),x.createElement("div",{className:"upload-content",onClick:v,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},x.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},x.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},x.createElement(Fy,null),x.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),x.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),l.length>0&&x.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},x.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),l.map((k,P)=>x.createElement("span",{key:P,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:D=>{D.stopPropagation(),(I=>{d(I)})(k)}},x.createElement("span",{onClick:D=>{D.stopPropagation(),(I=>{const T=l.filter((M,B)=>B!==I);c(T),e&&e(T)})(P)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(k.name)},"×"),k.name," (",zy(k.size),")"))))),(()=>{if(!u)return null;const k=u.type.startsWith("image/"),P=u.type.startsWith("text/"),D=u.type==="application/pdf";return x.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:b},x.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:I=>I.stopPropagation()},x.createElement("button",{onClick:b,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),x.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},u.name),k&&x.createElement("img",{src:URL.createObjectURL(u),alt:u.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),P&&x.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(u)),D&&x.createElement("iframe",{src:URL.createObjectURL(u),style:{width:"100%",height:"70vh",border:"none"},title:u.name}),!k&&!P&&!D&&x.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Ry(t,e){if(!e||Object.keys(e).length===0)return t;const n={};for(const[r,o]of Object.entries(t)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const s=!(!i.options&&!i.checkboxes);i.chatDisabled=s}n[r]=i}return n}function Xo(t){return async e=>{const n=await t(e);await e.injectMessage(n)}}const Uy=x.forwardRef((t,e)=>{const[n,r]=x.useState(t.defaultOpen||!1),o=x.useRef(null);return x.useImperativeHandle(e,()=>({addMessage:i=>{var s;(s=o.current)===null||s===void 0||s.addMessage(i)},setBotEnabled:i=>{var s;(s=o.current)===null||s===void 0||s.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(s=>!s),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),x.createElement(la,{ref:o,apiKey:t.apiKey,qaEndpoint:t.qaEndpoint,ratingEndpoint:t.ratingEndpoint,welcomeMessage:t.welcomeMessage,primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,botName:t.botName,logo:t.logo,placeholder:t.placeholder,errorMessage:t.errorMessage,embedded:t.embedded,isLoggedIn:t.isLoggedIn,allowAnonAccess:t.allowAnonAccess,open:n,onOpenChange:r,footerText:t.footerText,footerLink:t.footerLink,tooltipText:t.tooltipText,onAnalyticsEvent:t.onAnalyticsEvent})});Uy.displayName="ProgrammaticQABot";const wn={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"demo-key"},on={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},jd={SESSION_ID:"access-qa-bot-session-id"};function jy({welcome:t,setTicketForm:e,isLoggedIn:n,trackEvent:r}){return{start:{message:t,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(r({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(e({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(e({}),r({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:`Go ahead and ask your question! I'll do my best to help.
|
|
38
|
+
`).concat(Zt):fn;return await qe.injectMessage(z),Ie?.({type:"chatbot_answer_received",queryId:Be,responseTimeMs:hn,success:!0,responseLength:Jt.length,hasMetadata:!!Zt}),Tt=!0,setTimeout(async()=>{await qe.injectMessage("Feel free to ask another question.")},100),null}catch(Be){return Fn("Error in Q&A flow:",Be),Ie?.({type:"chatbot_answer_error",queryId:Ye??void 0,errorType:Be instanceof Error?Be.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:qe=>oe&&oe()||qe.userInput==="👍 Helpful"||qe.userInput==="👎 Not helpful"?[]:K&&Tt?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:s,apiKey:o,sessionId:_.current.getSessionId,isResetting:_.current.isResetting,isLoggedIn:N,allowAnonAccess:d,loginUrl:P||Ud,trackEvent:Q});return Object.assign(Object.assign({start:{message:a,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},V),D||{})},[o,i,s,a,N,d,P,D,A,Q]),X=x.useMemo(()=>{return[()=>ib(j),iy(),()=>sy(V)];var V,j},[]);return x.useEffect(()=>{const V=()=>{const W=document.querySelector(".rcb-chat-window");if(!W)return;const K=W.querySelector(".rcb-send-button");K&&(K.hasAttribute("tabindex")||K.setAttribute("tabindex","0"),K.hasAttribute("data-keyboard-enabled")||(K.setAttribute("data-keyboard-enabled","true"),K.addEventListener("keydown",$=>{if($.key==="Enter"||$.key===" "){$.preventDefault();const le=K&&Object.keys(K).find(pe=>pe.startsWith("__reactProps"));if(le){const pe=K[le],De=pe?.onMouseDown;if(De&&typeof De=="function")return void De($)}const oe=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});K.dispatchEvent(oe)}})))},j=setInterval(V,1e3);return V(),()=>clearInterval(j)},[]),Cy(),x.useEffect(()=>{const V=C.current;if(!V)return;const j=W=>{var K,$,le;const oe=($=(K=W.target).closest)===null||$===void 0?void 0:$.call(K,"a");oe&&oe.closest(".rcb-chat-body-container")&&(oe.classList.contains("qa-bot-login-button")||oe.closest(".rcb-options-container")||Q({type:"chatbot_link_clicked",linkUrl:oe.href,linkText:((le=oe.textContent)===null||le===void 0?void 0:le.trim())||""}))};return V.addEventListener("click",j),()=>V.removeEventListener("click",j)},[Q]),x.useEffect(()=>{if(!R){const V=j=>{const W=j.data.newState;c?.(W);const K=M.current;Q(W?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:K?Qd(K):0,durationMs:K?vy(K):0})};return window.addEventListener("rcb-toggle-chat-window",V),()=>{window.removeEventListener("rcb-toggle-chat-window",V)}}},[R,c,Q]),x.createElement("div",{className:"qa-bot ".concat(!((n=U.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:C,role:"region","aria-label":g||Rd},x.createElement(yy,{getSessionId:()=>M.current,setSessionId:V=>{const j=M.current;M.current=V,Go("RESTORED","".concat(j?.slice(-12)," -> ").concat(V.slice(-12)))},resetSession:()=>{const V=M.current;B.current=!0,M.current=Fd(),Go("RESET","".concat(V?.slice(-12)," -> ").concat(M.current.slice(-12)))},clearResettingFlag:()=>{B.current=!1}},x.createElement(ay,{trackEvent:Q},x.createElement(ru,null,x.createElement("div",null,x.createElement(Ey,null),x.createElement(Bd,{ref:e,embedded:((r=U.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:l||!1,enabled:N!==!1,onSetEnabled:V=>O(!!V&&void 0)}),x.createElement(R0,{key:"chatbot-".concat(T.current,"-").concat(N),settings:U,flow:S,plugins:X}),x.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}}),x.createElement("div",{id:"chat-input-help",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});la.displayName="QABot",Sc('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const Ly=()=>{const[t,e]=x.useState(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{e(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(u=>{o.onloadedmetadata=()=>{o.play(),u()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const s=i.getContext("2d");if(!s)throw new Error("Could not get canvas context");s.drawImage(o,0,0,i.width,i.height);const a=await new Promise(u=>i.toBlob(u,"image/png"));if(!a)throw new Error("Could not create image blob");const l=new Date().toISOString().replace(/[:.]/g,"-"),c=new File([a],"screenshot-".concat(l,".png"),{type:"image/png"});return r.getTracks().forEach(u=>u.stop()),e(!1),c}catch(r){throw Fn("Error capturing screenshot:",r),e(!1),r}},isCapturing:t,isScreenCaptureAvailable:n()}},Fy=t=>x.createElement(zd,t,x.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),x.createElement("polyline",{points:"17 8 12 3 7 8"}),x.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Qy=t=>new Promise((e,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(t.name)));const o=r.result.split(",")[1];e({fileName:t.name,contentType:t.type,size:t.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(t.name))),r.readAsDataURL(t)}),Ny=t=>Promise.all(t.map(Qy)),zy=t=>t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(1)," KB"):"".concat((t/1048576).toFixed(1)," MB"),Ko=t=>{let{onFileUpload:e,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=t;const[s,a]=x.useState(!1),[l,c]=x.useState([]),[u,d]=x.useState(null),A=x.useRef(null),{captureScreenshot:h,isCapturing:f,isScreenCaptureAvailable:g}=Ly(),p=k=>{const P=document.createElement("div");P.setAttribute("aria-live","assertive"),P.setAttribute("aria-atomic","true"),P.className="sr-only",P.textContent=k,document.body.appendChild(P),setTimeout(()=>document.body.removeChild(P),1e3)},v=k=>{if(!k||k.length===0)return void my("FileUploadComponent: No valid files provided to handleFiles");let P;try{P=Array.from(k)}catch(M){return Fn("FileUploadComponent: Error converting files to array:",M),void p("Error processing selected files. Please try again.")}const D=[...l,...P];c(D);const I=P.length,T=P.map(M=>M.name).join(", ");p("".concat(I," file").concat(I>1?"s":""," selected: ").concat(T)),setTimeout(()=>{const M=document.querySelector(".rcb-chat-content");M&&(M.scrollTop=M.scrollHeight)},100),e&&e(D)},w=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},y=()=>{try{A.current&&A.current.click()}catch(k){Fn("FileUploadComponent: Error in handleButtonClick:",k),p("Error opening file selection dialog. Please try again.")}},b=()=>{d(null)},E=o&&g;return x.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},E&&x.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},x.createElement("button",{onClick:k=>{k.preventDefault(),(async()=>{try{const P=await h();v([P]),p("Screenshot captured successfully")}catch{p("Error capturing screenshot. Please try again.")}})()},disabled:f,"aria-describedby":"screenshot-help","aria-label":f?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:f?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},x.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),x.createElement("circle",{cx:"12",cy:"13",r:"4"})),f?"Taking screenshot...":"Take screenshot..."),x.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),x.createElement("div",{className:"file-upload-dropzone ".concat(s?"active":""),onDragEnter:w,onDragLeave:w,onDragOver:w,onDrop:k=>{var P;k.preventDefault(),k.stopPropagation(),a(!1);try{!((P=k.dataTransfer)===null||P===void 0)&&P.files&&k.dataTransfer.files.length>0&&v(k.dataTransfer.files)}catch(D){Fn("FileUploadComponent: Error in handleDrop:",D),p("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),y())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},x.createElement("input",{ref:A,type:"file",className:"file-input",onChange:k=>{var P;try{!((P=k.target)===null||P===void 0)&&P.files&&k.target.files.length>0&&v(k.target.files)}catch(D){Fn("FileUploadComponent: Error in handleFileSelect:",D),p("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),x.createElement("div",{className:"upload-content",onClick:y,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},x.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},x.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},x.createElement(Fy,null),x.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),x.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),l.length>0&&x.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},x.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),l.map((k,P)=>x.createElement("span",{key:P,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:D=>{D.stopPropagation(),(I=>{d(I)})(k)}},x.createElement("span",{onClick:D=>{D.stopPropagation(),(I=>{const T=l.filter((M,B)=>B!==I);c(T),e&&e(T)})(P)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(k.name)},"×"),k.name," (",zy(k.size),")"))))),(()=>{if(!u)return null;const k=u.type.startsWith("image/"),P=u.type.startsWith("text/"),D=u.type==="application/pdf";return x.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:b},x.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:I=>I.stopPropagation()},x.createElement("button",{onClick:b,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),x.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},u.name),k&&x.createElement("img",{src:URL.createObjectURL(u),alt:u.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),P&&x.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(u)),D&&x.createElement("iframe",{src:URL.createObjectURL(u),style:{width:"100%",height:"70vh",border:"none"},title:u.name}),!k&&!P&&!D&&x.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Ry(t,e){if(!e||Object.keys(e).length===0)return t;const n={};for(const[r,o]of Object.entries(t)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const s=!(!i.options&&!i.checkboxes);i.chatDisabled=s}n[r]=i}return n}function Xo(t){return async e=>{const n=await t(e);await e.injectMessage(n)}}const Uy=x.forwardRef((t,e)=>{const[n,r]=x.useState(t.defaultOpen||!1),o=x.useRef(null);return x.useImperativeHandle(e,()=>({addMessage:i=>{var s;(s=o.current)===null||s===void 0||s.addMessage(i)},setBotEnabled:i=>{var s;(s=o.current)===null||s===void 0||s.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(s=>!s),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),x.createElement(la,{ref:o,apiKey:t.apiKey,qaEndpoint:t.qaEndpoint,ratingEndpoint:t.ratingEndpoint,welcomeMessage:t.welcomeMessage,primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,botName:t.botName,logo:t.logo,placeholder:t.placeholder,errorMessage:t.errorMessage,embedded:t.embedded,isLoggedIn:t.isLoggedIn,allowAnonAccess:t.allowAnonAccess,open:n,onOpenChange:r,footerText:t.footerText,footerLink:t.footerLink,tooltipText:t.tooltipText,onAnalyticsEvent:t.onAnalyticsEvent})});Uy.displayName="ProgrammaticQABot";const wn={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"demo-key"},on={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},jd={SESSION_ID:"access-qa-bot-session-id"};function jy({welcome:t,setTicketForm:e,isLoggedIn:n,trackEvent:r}){return{start:{message:t,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(r({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(e({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(e({}),r({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:`Go ahead and ask your question! I'll do my best to help.
|
|
39
39
|
|
|
40
40
|
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"qa_loop"}}}let ca=null;function Vy(t){ca=t}function te(){return ca?ca.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Re(t={}){const e=te();return{...e,email:t.email||e.email,name:t.name||e.name,accessId:t.accessId||e.accessId}}function ua(t){return t&&t.length>0?`
|
|
41
41
|
Attachments: ${t.length} file(s) attached`:""}const sr={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Hy(t,e="support",n=[]){const r={support:sr.SUPPORT,general_help:sr.SUPPORT,loginAccess:sr.LOGIN_ACCESS,loginProvider:sr.LOGIN_PROVIDER,security:sr.SECURITY}[e]||sr.SUPPORT,o={serviceDeskId:e==="security"?3:2,requestTypeId:r,requestFieldValues:{...t}};return n.length>0&&(o.attachments=await Ny(n)),o}async function Wy(t,e){var n,r;const o=`${wn.NETLIFY_BASE_URL}/api/v1/${e}`;try{const i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!i.ok){let a="";try{const l=await i.text();try{const c=JSON.parse(l);a=c.message||c.error||l}catch{a=l}}catch{a=`HTTP ${i.status} ${i.statusText}`}return i.status===403?a="The ticket service is temporarily unavailable. Please try again later or contact support directly.":i.status===404?a="Ticket service not found. Please try again later.":i.status===500?a="Server error. Please try again later.":i.status===401&&(a="Authentication error with the ticket service. Please contact support."),{success:!1,status:i.status,error:a}}const s=await i.json();return{success:!0,ticketKey:(n=s.data)==null?void 0:n.ticketKey,ticketUrl:(r=s.data)==null?void 0:r.ticketUrl}}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error"}}}async function Jo(t,e,n=[]){try{const r=await Hy(t,e,n);return await Wy(r,e==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function da(t,e="ticket"){return t?t.success?t.ticketUrl&&t.ticketKey?`Your ${e} has been submitted successfully.
|
|
@@ -256,7 +256,7 @@ Would you like to submit this security incident report?`},options:["Submit Secur
|
|
|
256
256
|
opacity: 0.85;
|
|
257
257
|
text-decoration: underline !important;
|
|
258
258
|
}
|
|
259
|
-
`;function lw(t){if(!t)return;const e=t.getRootNode();if(!(e instanceof ShadowRoot)||e.getElementById(Hd))return;const n=document.createElement("style");n.id=Hd,n.textContent=aw,e.appendChild(n)}const fa=x.forwardRef((t,e)=>{const{apiKey:n=wn.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=on.LOGIN_URL,userEmail:i,userName:s,accessId:a,actingUser:l,ringEffect:c,defaultOpen:u,onClose:d,open:A,onOpenChange:h,embedded:f=!1,welcome:g,qaEndpoint:p,ratingEndpoint:y,onAnalyticsEvent:w}=t,v=x.useRef(null),b=x.useRef(null),[E,k]=x.useState({}),P=x.useMemo(()=>({email:i,name:s,accessId:a}),[i,s,a]);x.useEffect(()=>{lw(b.current)},[]),x.useEffect(()=>{Vy({ticketForm:E,setTicketForm:k})},[E]),x.useImperativeHandle(e,()=>({addMessage:_=>{var N,O;(O=(N=v.current)==null?void 0:N.addMessage)==null||O.call(N,_)}}));const D=g||(r?on.WELCOME_MESSAGE:on.WELCOME_MESSAGE_LOGGED_OUT),I=x.useMemo(()=>sw(),[]),T=x.useCallback(_=>{w&&w({..._,type:_.type,timestamp:_.timestamp??Date.now(),sessionId:_.sessionId??I})},[w,I]),M=x.useCallback(_=>{w&&w({..._,type:_.type,timestamp:typeof _.timestamp=="number"?_.timestamp:Date.now(),sessionId:typeof _.sessionId=="string"?_.sessionId:I})},[w,I]),B=x.useMemo(()=>{const _=jy({welcome:D,setTicketForm:k,isLoggedIn:r,trackEvent:T}),N=Zy({ticketForm:{},setTicketForm:k,userInfo:P,trackEvent:T}),O=ew({ticketForm:{},setTicketForm:k,userInfo:P,trackEvent:T}),R=iw({sessionId:I,apiKey:n,trackEvent:T}),Q={..._,...N,...O,...R};return Ry(Q,{disableOnOptions:!0})},[D,P,I,n,r,T]);return m.jsx("div",{ref:b,children:m.jsx(la,{ref:v,isLoggedIn:r,actingUser:l,onAnalyticsEvent:M,apiKey:n,qaEndpoint:p||wn.QA_ENDPOINT,ratingEndpoint:y||wn.RATING_ENDPOINT,botName:on.BOT_NAME,logo:on.LOGO,primaryColor:on.PRIMARY_COLOR,secondaryColor:on.SECONDARY_COLOR,welcomeMessage:D,tooltipText:on.TOOLTIP,loginUrl:o,open:A,onOpenChange:h,embedded:f,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:B})})});fa.displayName="AccessQABot";const cw=Object.freeze(Object.defineProperty({__proto__:null,API_CONFIG:wn,AccessQABot:fa,BOT_CONFIG:on,QABot:fa},Symbol.toStringTag,{value:"Module"}));function Ae({alt:t=null,name:e=null,src:n=null}){return e?m.jsx("i",{className:`icon bi bi-${e}`}):m.jsx("img",{className:"icon",alt:t,src:n})}const Wd=()=>{const t=new Event("accessci-update-sections");document.dispatchEvent(t)};function Ut({children:t,headerComponents:e=null,icon:n=null,sectionId:r=null,title:o}){const i=r||o.toLowerCase().replace(/[^0-9a-z]+/g,"-");return x.useLayoutEffect(()=>(Wd(),Wd),[]),m.jsxs("section",{id:i,"data-section-title":o,"data-section-icon":n,children:[m.jsxs("div",{className:"flex-header",children:[m.jsxs("h2",{children:[n?m.jsx(Ae,{name:n}):null,o]}),e?m.jsx("div",{className:"header-components",children:e}):null]}),t]})}function uw({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`);if(!e||e.error||!e.length)return;const n=Ji(e[0].slack_link);return m.jsxs(Ut,{title:"User Community",icon:"people-fill",children:[m.jsx("p",{children:"Join the community by participating in an affinity group! Members get update about announcements, events, and outages."}),m.jsxs("div",{className:"button-group",children:[m.jsxs("a",{href:e[0].url,className:"btn secondary",children:[m.jsx(Ae,{name:"person-plus-fill"})," Join Affinity Group"]}),n?m.jsxs("a",{href:n,className:"btn",children:[m.jsx(Ae,{name:"slack"})," Connect on Slack"]}):null,m.jsxs("a",{href:"#questions-and-answers",className:"btn",children:[m.jsx(Ae,{name:"chat-fill"})," Ask and Answer Questions"]})]})]})}function dw({infoGroupId:t}){const e=Cr(t),n=Ke(e&&e.infoResourceIds.length?`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${e.infoResourceIds[0]}/?format=json`:null);if(!e)return;const{accessAllocated:r,name:o,description:i,imageUri:s,organizations:a}=e,l=r?"https://allocations.access-ci.org/get-your-first-project":null,c=n&&n.results?(n.results.compute||n.results.storage||{}).user_guide_url:null;return m.jsxs("div",{className:"resource-group-description",children:[s?m.jsx("img",{className:"resource-group-feature-image",src:s}):null,m.jsx("h1",{children:e.name}),a.map(u=>m.jsx("p",{children:m.jsxs("a",{href:u.organization_url||"#",children:[u.organization_favicon_url?m.jsx(Ae,{alt:u.organization_name,src:u.organization_favicon_url}):null,u.organization_name]})},u.organization_name)),i?m.jsx("p",{children:i}):null,m.jsxs("div",{style:{marginTop:"1rem"},children:[l?m.jsxs("a",{href:l,className:"btn secondary lg",children:[m.jsx(Ae,{name:"check2-circle"})," Get Started with ",o]}):null,c?m.jsxs("a",{href:c,className:"btn lg",children:[m.jsx(Ae,{name:"book"})," User Guide"]}):null]})]})}function Aw({column:t,row:e,style:n={}}){const r=t.format?t.format(e[t.key],e):e[t.key],o=["cell"];return t.class&&o.push(t.class),t.rowClass&&o.push(t.rowClass(e)),m.jsx("td",{className:o.join(" "),style:n,children:r})}const hw={text:Aw};function $o({columns:t,rows:e,classes:n,frozenColumns:r=0,maxHeight:o=400,minWidth:i,rowClasses:s=[],scrollResetOnUpdate:a=!1}){const l=x.useRef();x.useLayoutEffect(()=>{l.current&&a&&(l.current.scrollTop=0)},[e]);const c=[0];for(let f=0;f<r;f++)c[f+1]=c[f]+(t[f].width||100);const u=(f,g)=>f<r?{position:"sticky",left:`${c[f]}px`,minWidth:`${t[f].width||100}px`,width:`${t[f].width||100}px`,zIndex:g||1}:{},d=t.map((f,g)=>m.jsx("th",{className:f.headerClass||f.class||"",style:u(g,100),children:f.formatHeader?f.formatHeader(f.name,f):f.name},f.key)),A=e.map((f,g)=>{const p=t.map((y,w)=>{const v=hw[y.type||"text"];return m.jsx(v,{column:y,row:f,style:u(w)},y.key)});return m.jsx("tr",{className:s[g]||"",children:p},g)}),h={};return i&&(h.minWidth=i),m.jsx("div",{className:`grid ${n||""}`,style:{maxHeight:Number.isInteger(o)?`${o}px`:o||null},ref:l,children:m.jsxs("table",{className:"table",style:h,children:[m.jsx("thead",{children:m.jsx("tr",{children:d})}),m.jsx("tbody",{children:A})]})})}function fw({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`),n=e&&!e.error&&e.length?e[0].field_ask_ci_locale:null,r=n?`${n}.json`:null,o=Ke(r);if(!o||o.error||!o.topic_list||!o.topic_list.topics||!o.topic_list.topics.length)return;const i=[{key:"title",name:"Topic",format:(a,l)=>m.jsxs(m.Fragment,{children:[l.pinned?m.jsx(Ae,{name:"pin-fill"}):null,m.jsx("a",{href:`https://ask.cyberinfrastructure.org/t/${l.slug}/${l.id}`,children:a})]})},{key:"posts_count",name:"Posts",format:a=>a.toLocaleString("en-us")},{key:"bumped_at",name:"Last Update",format:a=>new Date(a).toLocaleString("en-US",{dateStyle:"medium"})}],s=[m.jsx("a",{href:n,className:"btn secondary",children:"Ask a Question"},"ask"),m.jsx("a",{href:n,className:"btn",children:"View All Topics"},"all")];return m.jsx(Ut,{title:"Questions and Answers",icon:"chat-fill",headerComponents:s,children:m.jsx($o,{columns:i,rows:o.topic_list.topics.slice(0,5)})})}var et="top",bt="bottom",vt="right",tt="left",pa="auto",Hr=[et,bt,vt,tt],ar="start",Wr="end",pw="clippingParents",Yd="viewport",Yr="popper",gw="reference",qd=Hr.reduce(function(t,e){return t.concat([e+"-"+ar,e+"-"+Wr])},[]),Gd=[].concat(Hr,[pa]).reduce(function(t,e){return t.concat([e,e+"-"+ar,e+"-"+Wr])},[]),mw="beforeRead",bw="read",vw="afterRead",yw="beforeMain",ww="main",xw="afterMain",kw="beforeWrite",Ew="write",Cw="afterWrite",Sw=[mw,bw,vw,yw,ww,xw,kw,Ew,Cw];function jt(t){return t?(t.nodeName||"").toLowerCase():null}function ct(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Nn(t){var e=ct(t).Element;return t instanceof e||t instanceof Element}function yt(t){var e=ct(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ga(t){if(typeof ShadowRoot>"u")return!1;var e=ct(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Pw(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!yt(i)||!jt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Dw(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!yt(o)||!jt(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Kd={name:"applyStyles",enabled:!0,phase:"write",fn:Pw,effect:Dw,requires:["computeStyles"]};function Vt(t){return t.split("-")[0]}var zn=Math.max,ei=Math.min,lr=Math.round;function ma(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Xd(){return!/^((?!chrome|android).)*safari/i.test(ma())}function cr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&yt(t)&&(o=t.offsetWidth>0&&lr(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&lr(r.height)/t.offsetHeight||1);var s=Nn(t)?ct(t):window,a=s.visualViewport,l=!Xd()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,A=r.height/i;return{width:d,height:A,top:u,right:c+d,bottom:u+A,left:c,x:c,y:u}}function ba(t){var e=cr(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Jd(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ga(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sn(t){return ct(t).getComputedStyle(t)}function Bw(t){return["table","td","th"].indexOf(jt(t))>=0}function xn(t){return((Nn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ti(t){return jt(t)==="html"?t:t.assignedSlot||t.parentNode||(ga(t)?t.host:null)||xn(t)}function Zd(t){return!yt(t)||sn(t).position==="fixed"?null:t.offsetParent}function Tw(t){var e=/firefox/i.test(ma()),n=/Trident/i.test(ma());if(n&&yt(t)){var r=sn(t);if(r.position==="fixed")return null}var o=ti(t);for(ga(o)&&(o=o.host);yt(o)&&["html","body"].indexOf(jt(o))<0;){var i=sn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function qr(t){for(var e=ct(t),n=Zd(t);n&&Bw(n)&&sn(n).position==="static";)n=Zd(n);return n&&(jt(n)==="html"||jt(n)==="body"&&sn(n).position==="static")?e:n||Tw(t)||e}function va(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gr(t,e,n){return zn(t,ei(e,n))}function Iw(t,e,n){var r=Gr(t,e,n);return r>n?n:r}function $d(){return{top:0,right:0,bottom:0,left:0}}function eA(t){return Object.assign({},$d(),t)}function tA(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Mw=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,eA(typeof e!="number"?e:tA(e,Hr))};function _w(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Vt(n.placement),l=va(a),c=[tt,vt].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=Mw(o.padding,n),A=ba(i),h=l==="y"?et:tt,f=l==="y"?bt:vt,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],p=s[l]-n.rects.reference[l],y=qr(i),w=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,v=g/2-p/2,b=d[h],E=w-A[u]-d[f],k=w/2-A[u]/2+v,P=Gr(b,k,E),D=l;n.modifiersData[r]=(e={},e[D]=P,e.centerOffset=P-k,e)}}function Ow(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Jd(e.elements.popper,o)&&(e.elements.arrow=o))}const Lw={name:"arrow",enabled:!0,phase:"main",fn:_w,effect:Ow,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ur(t){return t.split("-")[1]}var Fw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qw(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:lr(n*o)/o||0,y:lr(r*o)/o||0}}function nA(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,A=s.x,h=A===void 0?0:A,f=s.y,g=f===void 0?0:f,p=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=p.x,g=p.y;var y=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),v=tt,b=et,E=window;if(c){var k=qr(n),P="clientHeight",D="clientWidth";if(k===ct(n)&&(k=xn(n),sn(k).position!=="static"&&a==="absolute"&&(P="scrollHeight",D="scrollWidth")),k=k,o===et||(o===tt||o===vt)&&i===Wr){b=bt;var I=d&&k===E&&E.visualViewport?E.visualViewport.height:k[P];g-=I-r.height,g*=l?1:-1}if(o===tt||(o===et||o===bt)&&i===Wr){v=vt;var T=d&&k===E&&E.visualViewport?E.visualViewport.width:k[D];h-=T-r.width,h*=l?1:-1}}var M=Object.assign({position:a},c&&Fw),B=u===!0?Qw({x:h,y:g},ct(n)):{x:h,y:g};if(h=B.x,g=B.y,l){var _;return Object.assign({},M,(_={},_[b]=w?"0":"",_[v]=y?"0":"",_.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",_))}return Object.assign({},M,(e={},e[b]=w?g+"px":"",e[v]=y?h+"px":"",e.transform="",e))}function Nw(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Vt(e.placement),variation:ur(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,nA(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,nA(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nw,data:{}};var ni={passive:!0};function Rw(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=ct(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ni)}),a&&l.addEventListener("resize",n.update,ni),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ni)}),a&&l.removeEventListener("resize",n.update,ni)}}const Uw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rw,data:{}};var jw={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(t){return t.replace(/left|right|bottom|top/g,function(e){return jw[e]})}var Vw={start:"end",end:"start"};function rA(t){return t.replace(/start|end/g,function(e){return Vw[e]})}function ya(t){var e=ct(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wa(t){return cr(xn(t)).left+ya(t).scrollLeft}function Hw(t,e){var n=ct(t),r=xn(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Xd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wa(t),y:l}}function Ww(t){var e,n=xn(t),r=ya(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=zn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=zn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wa(t),l=-r.scrollTop;return sn(o||n).direction==="rtl"&&(a+=zn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function xa(t){var e=sn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oA(t){return["html","body","#document"].indexOf(jt(t))>=0?t.ownerDocument.body:yt(t)&&xa(t)?t:oA(ti(t))}function Kr(t,e){var n;e===void 0&&(e=[]);var r=oA(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=ct(r),s=o?[i].concat(i.visualViewport||[],xa(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(Kr(ti(s)))}function ka(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yw(t,e){var n=cr(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function iA(t,e,n){return e===Yd?ka(Hw(t,n)):Nn(e)?Yw(e,n):ka(Ww(xn(t)))}function qw(t){var e=Kr(ti(t)),n=["absolute","fixed"].indexOf(sn(t).position)>=0,r=n&&yt(t)?qr(t):t;return Nn(r)?e.filter(function(o){return Nn(o)&&Jd(o,r)&&jt(o)!=="body"}):[]}function Gw(t,e,n,r){var o=e==="clippingParents"?qw(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=iA(t,c,r);return l.top=zn(u.top,l.top),l.right=ei(u.right,l.right),l.bottom=ei(u.bottom,l.bottom),l.left=zn(u.left,l.left),l},iA(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sA(t){var e=t.reference,n=t.element,r=t.placement,o=r?Vt(r):null,i=r?ur(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case et:l={x:s,y:e.y-n.height};break;case bt:l={x:s,y:e.y+e.height};break;case vt:l={x:e.x+e.width,y:a};break;case tt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?va(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case ar:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Wr:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Xr(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?pw:a,c=n.rootBoundary,u=c===void 0?Yd:c,d=n.elementContext,A=d===void 0?Yr:d,h=n.altBoundary,f=h===void 0?!1:h,g=n.padding,p=g===void 0?0:g,y=eA(typeof p!="number"?p:tA(p,Hr)),w=A===Yr?gw:Yr,v=t.rects.popper,b=t.elements[f?w:A],E=Gw(Nn(b)?b:b.contextElement||xn(t.elements.popper),l,u,s),k=cr(t.elements.reference),P=sA({reference:k,element:v,placement:o}),D=ka(Object.assign({},v,P)),I=A===Yr?D:k,T={top:E.top-I.top+y.top,bottom:I.bottom-E.bottom+y.bottom,left:E.left-I.left+y.left,right:I.right-E.right+y.right},M=t.modifiersData.offset;if(A===Yr&&M){var B=M[o];Object.keys(T).forEach(function(_){var N=[vt,bt].indexOf(_)>=0?1:-1,O=[et,bt].indexOf(_)>=0?"y":"x";T[_]+=B[O]*N})}return T}function Kw(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gd:l,u=ur(r),d=u?a?qd:qd.filter(function(f){return ur(f)===u}):Hr,A=d.filter(function(f){return c.indexOf(f)>=0});A.length===0&&(A=d);var h=A.reduce(function(f,g){return f[g]=Xr(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Vt(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function Xw(t){if(Vt(t)===pa)return[];var e=ri(t);return[rA(t),e,rA(e)]}function Jw(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,A=n.altBoundary,h=n.flipVariations,f=h===void 0?!0:h,g=n.allowedAutoPlacements,p=e.options.placement,y=Vt(p),w=y===p,v=l||(w||!f?[ri(p)]:Xw(p)),b=[p].concat(v).reduce(function(j,W){return j.concat(Vt(W)===pa?Kw(e,{placement:W,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):W)},[]),E=e.rects.reference,k=e.rects.popper,P=new Map,D=!0,I=b[0],T=0;T<b.length;T++){var M=b[T],B=Vt(M),_=ur(M)===ar,N=[et,bt].indexOf(B)>=0,O=N?"width":"height",R=Xr(e,{placement:M,boundary:u,rootBoundary:d,altBoundary:A,padding:c}),Q=N?_?vt:tt:_?bt:et;E[O]>k[O]&&(Q=ri(Q));var U=ri(Q),C=[];if(i&&C.push(R[B]<=0),a&&C.push(R[Q]<=0,R[U]<=0),C.every(function(j){return j})){I=M,D=!1;break}P.set(M,C)}if(D)for(var G=f?3:1,S=function(W){var K=b.find(function($){var le=P.get($);if(le)return le.slice(0,W).every(function(oe){return oe})});if(K)return I=K,"break"},X=G;X>0;X--){var V=S(X);if(V==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const Zw={name:"flip",enabled:!0,phase:"main",fn:Jw,requiresIfExists:["offset"],data:{_skip:!1}};function aA(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function lA(t){return[et,vt,bt,tt].some(function(e){return t[e]>=0})}function $w(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Xr(e,{elementContext:"reference"}),a=Xr(e,{altBoundary:!0}),l=aA(s,r),c=aA(a,o,i),u=lA(l),d=lA(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const ex={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$w};function tx(t,e,n){var r=Vt(t),o=[tt,et].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[tt,vt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function nx(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Gd.reduce(function(u,d){return u[d]=tx(d,e.rects,i),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const rx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nx};function ox(t){var e=t.state,n=t.name;e.modifiersData[n]=sA({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const ix={name:"popperOffsets",enabled:!0,phase:"read",fn:ox,data:{}};function sx(t){return t==="x"?"y":"x"}function ax(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,A=n.tether,h=A===void 0?!0:A,f=n.tetherOffset,g=f===void 0?0:f,p=Xr(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Vt(e.placement),w=ur(e.placement),v=!w,b=va(y),E=sx(b),k=e.modifiersData.popperOffsets,P=e.rects.reference,D=e.rects.popper,I=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,T=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(k){if(i){var _,N=b==="y"?et:tt,O=b==="y"?bt:vt,R=b==="y"?"height":"width",Q=k[b],U=Q+p[N],C=Q-p[O],G=h?-D[R]/2:0,S=w===ar?P[R]:D[R],X=w===ar?-D[R]:-P[R],V=e.elements.arrow,j=h&&V?ba(V):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$d(),K=W[N],$=W[O],le=Gr(0,P[R],j[R]),oe=v?P[R]/2-G-le-K-T.mainAxis:S-le-K-T.mainAxis,pe=v?-P[R]/2+G+le+$+T.mainAxis:X+le+$+T.mainAxis,De=e.elements.arrow&&qr(e.elements.arrow),Xe=De?b==="y"?De.clientTop||0:De.clientLeft||0:0,Ie=(_=M?.[b])!=null?_:0,Ye=Q+oe-Ie-Xe,Tt=Q+pe-Ie,qe=Gr(h?ei(U,Ye):U,Q,h?zn(C,Tt):C);k[b]=qe,B[b]=qe-Q}if(a){var Je,Be=b==="x"?et:tt,je=b==="x"?bt:vt,Me=k[E],Ct=E==="y"?"height":"width",Xt=Me+p[Be],ot=Me-p[je],hn=[et,tt].indexOf(y)!==-1,St=(Je=M?.[E])!=null?Je:0,Jt=hn?Xt:Me-P[Ct]-D[Ct]-St+T.altAxis,fn=hn?Me+P[Ct]+D[Ct]-St-T.altAxis:ot,Zt=h&&hn?Iw(Jt,Me,fn):Gr(h?Jt:Xt,Me,h?fn:ot);k[E]=Zt,B[E]=Zt-Me}e.modifiersData[r]=B}}const lx={name:"preventOverflow",enabled:!0,phase:"main",fn:ax,requiresIfExists:["offset"]};function cx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ux(t){return t===ct(t)||!yt(t)?ya(t):cx(t)}function dx(t){var e=t.getBoundingClientRect(),n=lr(e.width)/t.offsetWidth||1,r=lr(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ax(t,e,n){n===void 0&&(n=!1);var r=yt(e),o=yt(e)&&dx(e),i=xn(e),s=cr(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(e)!=="body"||xa(i))&&(a=ux(e)),yt(e)?(l=cr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=wa(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function hx(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function fx(t){var e=hx(t);return Sw.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function px(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gx(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var cA={placement:"bottom",modifiers:[],strategy:"absolute"};function uA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mx(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?cA:o;return function(a,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},cA,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],A=!1,h={state:u,setOptions:function(y){var w=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,w),u.scrollParents={reference:Nn(a)?Kr(a):a.contextElement?Kr(a.contextElement):[],popper:Kr(l)};var v=fx(gx([].concat(r,u.options.modifiers)));return u.orderedModifiers=v.filter(function(b){return b.enabled}),f(),h.update()},forceUpdate:function(){if(!A){var y=u.elements,w=y.reference,v=y.popper;if(uA(w,v)){u.rects={reference:Ax(w,qr(v),u.options.strategy==="fixed"),popper:ba(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var E=u.orderedModifiers[b],k=E.fn,P=E.options,D=P===void 0?{}:P,I=E.name;typeof k=="function"&&(u=k({state:u,options:D,name:I,instance:h})||u)}}}},update:px(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){g(),A=!0}};if(!uA(a,l))return h;h.setOptions(c).then(function(p){!A&&c.onFirstUpdate&&c.onFirstUpdate(p)});function f(){u.orderedModifiers.forEach(function(p){var y=p.name,w=p.options,v=w===void 0?{}:w,b=p.effect;if(typeof b=="function"){var E=b({state:u,name:y,instance:h,options:v}),k=function(){};d.push(E||k)}})}function g(){d.forEach(function(p){return p()}),d=[]}return h}}var bx=[Uw,ix,zw,Kd,rx,Zw,lx,Lw,ex],vx=mx({defaultModifiers:bx}),yx="tippy-box",dA="tippy-content",wx="tippy-backdrop",AA="tippy-arrow",hA="tippy-svg-arrow",Rn={passive:!0,capture:!0},fA=function(){return document.body};function xx(t,e){return{}.hasOwnProperty.call(t,e)}function Ea(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function Ca(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function pA(t,e){return typeof t=="function"?t.apply(void 0,e):t}function gA(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function kx(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function Ex(t){return t.split(/\s+/).filter(Boolean)}function dr(t){return[].concat(t)}function mA(t,e){t.indexOf(e)===-1&&t.push(e)}function Cx(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function Sx(t){return t.split("-")[0]}function oi(t){return[].slice.call(t)}function bA(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Jr(){return document.createElement("div")}function Zr(t){return["Element","Fragment"].some(function(e){return Ca(t,e)})}function Px(t){return Ca(t,"NodeList")}function Dx(t){return Ca(t,"MouseEvent")}function Bx(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Tx(t){return Zr(t)?[t]:Px(t)?oi(t):Array.isArray(t)?t:oi(document.querySelectorAll(t))}function Sa(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function vA(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Ix(t){var e,n=dr(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function Mx(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,a=o.props,l=a.interactiveBorder,c=Sx(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,A=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,f=c==="left"?u.right.x:0,g=i.top-r+d>l,p=r-i.bottom-A>l,y=i.left-n+h>l,w=n-i.right-f>l;return g||p||y||w})}function Pa(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function yA(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ht={isTouch:!1},wA=0;function _x(){Ht.isTouch||(Ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",xA))}function xA(){var t=performance.now();t-wA<20&&(Ht.isTouch=!1,document.removeEventListener("mousemove",xA)),wA=t}function Ox(){var t=document.activeElement;if(Bx(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Lx(){document.addEventListener("touchstart",_x,Rn),window.addEventListener("blur",Ox)}var Fx=typeof window<"u"&&typeof document<"u",Qx=Fx?!!window.msCrypto:!1;function Ar(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function kA(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function Nx(t){return kA(`
|
|
259
|
+
`;function lw(t){if(!t)return;const e=t.getRootNode();if(!(e instanceof ShadowRoot)||e.getElementById(Hd))return;const n=document.createElement("style");n.id=Hd,n.textContent=aw,e.appendChild(n)}const fa=x.forwardRef((t,e)=>{const{apiKey:n=wn.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=on.LOGIN_URL,userEmail:i,userName:s,accessId:a,actingUser:l,ringEffect:c,defaultOpen:u,onClose:d,open:A,onOpenChange:h,embedded:f=!1,welcome:g,qaEndpoint:p,ratingEndpoint:v,onAnalyticsEvent:w}=t,y=x.useRef(null),b=x.useRef(null),[E,k]=x.useState({}),P=x.useMemo(()=>({email:i,name:s,accessId:a}),[i,s,a]);x.useEffect(()=>{lw(b.current)},[]),x.useEffect(()=>{Vy({ticketForm:E,setTicketForm:k})},[E]),x.useImperativeHandle(e,()=>({addMessage:_=>{var N,O;(O=(N=y.current)==null?void 0:N.addMessage)==null||O.call(N,_)}}));const D=g||(r?on.WELCOME_MESSAGE:on.WELCOME_MESSAGE_LOGGED_OUT),I=x.useMemo(()=>sw(),[]),T=x.useCallback(_=>{w&&w({..._,type:_.type,timestamp:_.timestamp??Date.now(),sessionId:_.sessionId??I})},[w,I]),M=x.useCallback(_=>{w&&w({..._,type:_.type,timestamp:typeof _.timestamp=="number"?_.timestamp:Date.now(),sessionId:typeof _.sessionId=="string"?_.sessionId:I})},[w,I]),B=x.useMemo(()=>{const _=jy({welcome:D,setTicketForm:k,isLoggedIn:r,trackEvent:T}),N=Zy({ticketForm:{},setTicketForm:k,userInfo:P,trackEvent:T}),O=ew({ticketForm:{},setTicketForm:k,userInfo:P,trackEvent:T}),R=iw({sessionId:I,apiKey:n,trackEvent:T}),Q={..._,...N,...O,...R};return Ry(Q,{disableOnOptions:!0})},[D,P,I,n,r,T]);return m.jsx("div",{ref:b,children:m.jsx(la,{ref:y,isLoggedIn:r,actingUser:l,onAnalyticsEvent:M,apiKey:n,qaEndpoint:p||wn.QA_ENDPOINT,ratingEndpoint:v||wn.RATING_ENDPOINT,botName:on.BOT_NAME,logo:on.LOGO,primaryColor:on.PRIMARY_COLOR,secondaryColor:on.SECONDARY_COLOR,welcomeMessage:D,tooltipText:on.TOOLTIP,loginUrl:o,open:A,onOpenChange:h,embedded:f,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:B})})});fa.displayName="AccessQABot";const cw=Object.freeze(Object.defineProperty({__proto__:null,API_CONFIG:wn,AccessQABot:fa,BOT_CONFIG:on,QABot:fa},Symbol.toStringTag,{value:"Module"}));function Ae({alt:t=null,name:e=null,src:n=null}){return e?m.jsx("i",{className:`icon bi bi-${e}`}):m.jsx("img",{className:"icon",alt:t,src:n})}const Wd=()=>{const t=new Event("accessci-update-sections");document.dispatchEvent(t)};function Ut({children:t,headerComponents:e=null,icon:n=null,sectionId:r=null,title:o}){const i=r||o.toLowerCase().replace(/[^0-9a-z]+/g,"-");return x.useLayoutEffect(()=>(Wd(),Wd),[]),m.jsxs("section",{id:i,"data-section-title":o,"data-section-icon":n,children:[m.jsxs("div",{className:"flex-header",children:[m.jsxs("h2",{children:[n?m.jsx(Ae,{name:n}):null,o]}),e?m.jsx("div",{className:"header-components",children:e}):null]}),t]})}function uw({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`);if(!e||e.error||!e.length)return;const n=Ji(e[0].slack_link);return m.jsxs(Ut,{title:"User Community",icon:"people-fill",children:[m.jsx("p",{children:"Join the community by participating in an affinity group! Members get update about announcements, events, and outages."}),m.jsxs("div",{className:"button-group",children:[m.jsxs("a",{href:e[0].url,className:"btn secondary",children:[m.jsx(Ae,{name:"person-plus-fill"})," Join Affinity Group"]}),n?m.jsxs("a",{href:n,className:"btn",children:[m.jsx(Ae,{name:"slack"})," Connect on Slack"]}):null,m.jsxs("a",{href:"#questions-and-answers",className:"btn",children:[m.jsx(Ae,{name:"chat-fill"})," Ask and Answer Questions"]})]})]})}function dw({infoGroupId:t}){const e=Cr(t),n=Ke(e&&e.infoResourceIds.length?`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${e.infoResourceIds[0]}/?format=json`:null);if(!e)return;const{accessAllocated:r,name:o,description:i,imageUri:s,organizations:a}=e,l=r?"https://allocations.access-ci.org/get-your-first-project":null,c=n&&n.results?(n.results.compute||n.results.storage||{}).user_guide_url:null;return m.jsxs("div",{className:"resource-group-description",children:[s?m.jsx("img",{className:"resource-group-feature-image",src:s}):null,m.jsx("h1",{children:e.name}),a.map(u=>m.jsx("p",{children:m.jsxs("a",{href:u.organization_url||"#",children:[u.organization_favicon_url?m.jsx(Ae,{alt:u.organization_name,src:u.organization_favicon_url}):null,u.organization_name]})},u.organization_name)),i?m.jsx("p",{children:i}):null,m.jsxs("div",{style:{marginTop:"1rem"},children:[l?m.jsxs("a",{href:l,className:"btn secondary lg",children:[m.jsx(Ae,{name:"check2-circle"})," Get Started with ",o]}):null,c?m.jsxs("a",{href:c,className:"btn lg",children:[m.jsx(Ae,{name:"book"})," User Guide"]}):null]})]})}function Aw({column:t,row:e,style:n={}}){const r=t.format?t.format(e[t.key],e):e[t.key],o=["cell"];return t.class&&o.push(t.class),t.rowClass&&o.push(t.rowClass(e)),m.jsx("td",{className:o.join(" "),style:n,children:r})}const hw={text:Aw};function $o({columns:t,rows:e,classes:n,frozenColumns:r=0,maxHeight:o=400,minWidth:i,rowClasses:s=[],scrollResetOnUpdate:a=!1}){const l=x.useRef();x.useLayoutEffect(()=>{l.current&&a&&(l.current.scrollTop=0)},[e]);const c=[0];for(let f=0;f<r;f++)c[f+1]=c[f]+(t[f].width||100);const u=(f,g)=>f<r?{position:"sticky",left:`${c[f]}px`,minWidth:`${t[f].width||100}px`,width:`${t[f].width||100}px`,zIndex:g||1}:{},d=t.map((f,g)=>m.jsx("th",{className:f.headerClass||f.class||"",style:u(g,100),children:f.formatHeader?f.formatHeader(f.name,f):f.name},f.key)),A=e.map((f,g)=>{const p=t.map((v,w)=>{const y=hw[v.type||"text"];return m.jsx(y,{column:v,row:f,style:u(w)},v.key)});return m.jsx("tr",{className:s[g]||"",children:p},g)}),h={};return i&&(h.minWidth=i),m.jsx("div",{className:`grid ${n||""}`,style:{maxHeight:Number.isInteger(o)?`${o}px`:o||null},ref:l,children:m.jsxs("table",{className:"table",style:h,children:[m.jsx("thead",{children:m.jsx("tr",{children:d})}),m.jsx("tbody",{children:A})]})})}function fw({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`),n=e&&!e.error&&e.length?e[0].field_ask_ci_locale:null,r=n?`${n}.json`:null,o=Ke(r);if(!o||o.error||!o.topic_list||!o.topic_list.topics||!o.topic_list.topics.length)return;const i=[{key:"title",name:"Topic",format:(a,l)=>m.jsxs(m.Fragment,{children:[l.pinned?m.jsx(Ae,{name:"pin-fill"}):null,m.jsx("a",{href:`https://ask.cyberinfrastructure.org/t/${l.slug}/${l.id}`,children:a})]})},{key:"posts_count",name:"Posts",format:a=>a.toLocaleString("en-us")},{key:"bumped_at",name:"Last Update",format:a=>new Date(a).toLocaleString("en-US",{dateStyle:"medium"})}],s=[m.jsx("a",{href:n,className:"btn secondary",children:"Ask a Question"},"ask"),m.jsx("a",{href:n,className:"btn",children:"View All Topics"},"all")];return m.jsx(Ut,{title:"Questions and Answers",icon:"chat-fill",headerComponents:s,children:m.jsx($o,{columns:i,rows:o.topic_list.topics.slice(0,5)})})}var et="top",bt="bottom",vt="right",tt="left",pa="auto",Hr=[et,bt,vt,tt],ar="start",Wr="end",pw="clippingParents",Yd="viewport",Yr="popper",gw="reference",qd=Hr.reduce(function(t,e){return t.concat([e+"-"+ar,e+"-"+Wr])},[]),Gd=[].concat(Hr,[pa]).reduce(function(t,e){return t.concat([e,e+"-"+ar,e+"-"+Wr])},[]),mw="beforeRead",bw="read",vw="afterRead",yw="beforeMain",ww="main",xw="afterMain",kw="beforeWrite",Ew="write",Cw="afterWrite",Sw=[mw,bw,vw,yw,ww,xw,kw,Ew,Cw];function jt(t){return t?(t.nodeName||"").toLowerCase():null}function ct(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Nn(t){var e=ct(t).Element;return t instanceof e||t instanceof Element}function yt(t){var e=ct(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ga(t){if(typeof ShadowRoot>"u")return!1;var e=ct(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Pw(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!yt(i)||!jt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Dw(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!yt(o)||!jt(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Kd={name:"applyStyles",enabled:!0,phase:"write",fn:Pw,effect:Dw,requires:["computeStyles"]};function Vt(t){return t.split("-")[0]}var zn=Math.max,ei=Math.min,lr=Math.round;function ma(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Xd(){return!/^((?!chrome|android).)*safari/i.test(ma())}function cr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&yt(t)&&(o=t.offsetWidth>0&&lr(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&lr(r.height)/t.offsetHeight||1);var s=Nn(t)?ct(t):window,a=s.visualViewport,l=!Xd()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,A=r.height/i;return{width:d,height:A,top:u,right:c+d,bottom:u+A,left:c,x:c,y:u}}function ba(t){var e=cr(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Jd(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ga(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sn(t){return ct(t).getComputedStyle(t)}function Bw(t){return["table","td","th"].indexOf(jt(t))>=0}function xn(t){return((Nn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ti(t){return jt(t)==="html"?t:t.assignedSlot||t.parentNode||(ga(t)?t.host:null)||xn(t)}function Zd(t){return!yt(t)||sn(t).position==="fixed"?null:t.offsetParent}function Tw(t){var e=/firefox/i.test(ma()),n=/Trident/i.test(ma());if(n&&yt(t)){var r=sn(t);if(r.position==="fixed")return null}var o=ti(t);for(ga(o)&&(o=o.host);yt(o)&&["html","body"].indexOf(jt(o))<0;){var i=sn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function qr(t){for(var e=ct(t),n=Zd(t);n&&Bw(n)&&sn(n).position==="static";)n=Zd(n);return n&&(jt(n)==="html"||jt(n)==="body"&&sn(n).position==="static")?e:n||Tw(t)||e}function va(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gr(t,e,n){return zn(t,ei(e,n))}function Iw(t,e,n){var r=Gr(t,e,n);return r>n?n:r}function $d(){return{top:0,right:0,bottom:0,left:0}}function eA(t){return Object.assign({},$d(),t)}function tA(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Mw=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,eA(typeof e!="number"?e:tA(e,Hr))};function _w(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Vt(n.placement),l=va(a),c=[tt,vt].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=Mw(o.padding,n),A=ba(i),h=l==="y"?et:tt,f=l==="y"?bt:vt,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],p=s[l]-n.rects.reference[l],v=qr(i),w=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,y=g/2-p/2,b=d[h],E=w-A[u]-d[f],k=w/2-A[u]/2+y,P=Gr(b,k,E),D=l;n.modifiersData[r]=(e={},e[D]=P,e.centerOffset=P-k,e)}}function Ow(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Jd(e.elements.popper,o)&&(e.elements.arrow=o))}const Lw={name:"arrow",enabled:!0,phase:"main",fn:_w,effect:Ow,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ur(t){return t.split("-")[1]}var Fw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qw(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:lr(n*o)/o||0,y:lr(r*o)/o||0}}function nA(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,A=s.x,h=A===void 0?0:A,f=s.y,g=f===void 0?0:f,p=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=p.x,g=p.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),y=tt,b=et,E=window;if(c){var k=qr(n),P="clientHeight",D="clientWidth";if(k===ct(n)&&(k=xn(n),sn(k).position!=="static"&&a==="absolute"&&(P="scrollHeight",D="scrollWidth")),k=k,o===et||(o===tt||o===vt)&&i===Wr){b=bt;var I=d&&k===E&&E.visualViewport?E.visualViewport.height:k[P];g-=I-r.height,g*=l?1:-1}if(o===tt||(o===et||o===bt)&&i===Wr){y=vt;var T=d&&k===E&&E.visualViewport?E.visualViewport.width:k[D];h-=T-r.width,h*=l?1:-1}}var M=Object.assign({position:a},c&&Fw),B=u===!0?Qw({x:h,y:g},ct(n)):{x:h,y:g};if(h=B.x,g=B.y,l){var _;return Object.assign({},M,(_={},_[b]=w?"0":"",_[y]=v?"0":"",_.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",_))}return Object.assign({},M,(e={},e[b]=w?g+"px":"",e[y]=v?h+"px":"",e.transform="",e))}function Nw(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Vt(e.placement),variation:ur(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,nA(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,nA(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nw,data:{}};var ni={passive:!0};function Rw(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=ct(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ni)}),a&&l.addEventListener("resize",n.update,ni),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ni)}),a&&l.removeEventListener("resize",n.update,ni)}}const Uw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rw,data:{}};var jw={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(t){return t.replace(/left|right|bottom|top/g,function(e){return jw[e]})}var Vw={start:"end",end:"start"};function rA(t){return t.replace(/start|end/g,function(e){return Vw[e]})}function ya(t){var e=ct(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wa(t){return cr(xn(t)).left+ya(t).scrollLeft}function Hw(t,e){var n=ct(t),r=xn(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Xd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wa(t),y:l}}function Ww(t){var e,n=xn(t),r=ya(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=zn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=zn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wa(t),l=-r.scrollTop;return sn(o||n).direction==="rtl"&&(a+=zn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function xa(t){var e=sn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oA(t){return["html","body","#document"].indexOf(jt(t))>=0?t.ownerDocument.body:yt(t)&&xa(t)?t:oA(ti(t))}function Kr(t,e){var n;e===void 0&&(e=[]);var r=oA(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=ct(r),s=o?[i].concat(i.visualViewport||[],xa(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(Kr(ti(s)))}function ka(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yw(t,e){var n=cr(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function iA(t,e,n){return e===Yd?ka(Hw(t,n)):Nn(e)?Yw(e,n):ka(Ww(xn(t)))}function qw(t){var e=Kr(ti(t)),n=["absolute","fixed"].indexOf(sn(t).position)>=0,r=n&&yt(t)?qr(t):t;return Nn(r)?e.filter(function(o){return Nn(o)&&Jd(o,r)&&jt(o)!=="body"}):[]}function Gw(t,e,n,r){var o=e==="clippingParents"?qw(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=iA(t,c,r);return l.top=zn(u.top,l.top),l.right=ei(u.right,l.right),l.bottom=ei(u.bottom,l.bottom),l.left=zn(u.left,l.left),l},iA(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sA(t){var e=t.reference,n=t.element,r=t.placement,o=r?Vt(r):null,i=r?ur(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case et:l={x:s,y:e.y-n.height};break;case bt:l={x:s,y:e.y+e.height};break;case vt:l={x:e.x+e.width,y:a};break;case tt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?va(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case ar:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Wr:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Xr(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?pw:a,c=n.rootBoundary,u=c===void 0?Yd:c,d=n.elementContext,A=d===void 0?Yr:d,h=n.altBoundary,f=h===void 0?!1:h,g=n.padding,p=g===void 0?0:g,v=eA(typeof p!="number"?p:tA(p,Hr)),w=A===Yr?gw:Yr,y=t.rects.popper,b=t.elements[f?w:A],E=Gw(Nn(b)?b:b.contextElement||xn(t.elements.popper),l,u,s),k=cr(t.elements.reference),P=sA({reference:k,element:y,placement:o}),D=ka(Object.assign({},y,P)),I=A===Yr?D:k,T={top:E.top-I.top+v.top,bottom:I.bottom-E.bottom+v.bottom,left:E.left-I.left+v.left,right:I.right-E.right+v.right},M=t.modifiersData.offset;if(A===Yr&&M){var B=M[o];Object.keys(T).forEach(function(_){var N=[vt,bt].indexOf(_)>=0?1:-1,O=[et,bt].indexOf(_)>=0?"y":"x";T[_]+=B[O]*N})}return T}function Kw(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gd:l,u=ur(r),d=u?a?qd:qd.filter(function(f){return ur(f)===u}):Hr,A=d.filter(function(f){return c.indexOf(f)>=0});A.length===0&&(A=d);var h=A.reduce(function(f,g){return f[g]=Xr(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Vt(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function Xw(t){if(Vt(t)===pa)return[];var e=ri(t);return[rA(t),e,rA(e)]}function Jw(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,A=n.altBoundary,h=n.flipVariations,f=h===void 0?!0:h,g=n.allowedAutoPlacements,p=e.options.placement,v=Vt(p),w=v===p,y=l||(w||!f?[ri(p)]:Xw(p)),b=[p].concat(y).reduce(function(j,W){return j.concat(Vt(W)===pa?Kw(e,{placement:W,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):W)},[]),E=e.rects.reference,k=e.rects.popper,P=new Map,D=!0,I=b[0],T=0;T<b.length;T++){var M=b[T],B=Vt(M),_=ur(M)===ar,N=[et,bt].indexOf(B)>=0,O=N?"width":"height",R=Xr(e,{placement:M,boundary:u,rootBoundary:d,altBoundary:A,padding:c}),Q=N?_?vt:tt:_?bt:et;E[O]>k[O]&&(Q=ri(Q));var U=ri(Q),C=[];if(i&&C.push(R[B]<=0),a&&C.push(R[Q]<=0,R[U]<=0),C.every(function(j){return j})){I=M,D=!1;break}P.set(M,C)}if(D)for(var G=f?3:1,S=function(W){var K=b.find(function($){var le=P.get($);if(le)return le.slice(0,W).every(function(oe){return oe})});if(K)return I=K,"break"},X=G;X>0;X--){var V=S(X);if(V==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const Zw={name:"flip",enabled:!0,phase:"main",fn:Jw,requiresIfExists:["offset"],data:{_skip:!1}};function aA(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function lA(t){return[et,vt,bt,tt].some(function(e){return t[e]>=0})}function $w(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Xr(e,{elementContext:"reference"}),a=Xr(e,{altBoundary:!0}),l=aA(s,r),c=aA(a,o,i),u=lA(l),d=lA(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const ex={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$w};function tx(t,e,n){var r=Vt(t),o=[tt,et].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[tt,vt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function nx(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Gd.reduce(function(u,d){return u[d]=tx(d,e.rects,i),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const rx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nx};function ox(t){var e=t.state,n=t.name;e.modifiersData[n]=sA({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const ix={name:"popperOffsets",enabled:!0,phase:"read",fn:ox,data:{}};function sx(t){return t==="x"?"y":"x"}function ax(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,A=n.tether,h=A===void 0?!0:A,f=n.tetherOffset,g=f===void 0?0:f,p=Xr(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Vt(e.placement),w=ur(e.placement),y=!w,b=va(v),E=sx(b),k=e.modifiersData.popperOffsets,P=e.rects.reference,D=e.rects.popper,I=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,T=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(k){if(i){var _,N=b==="y"?et:tt,O=b==="y"?bt:vt,R=b==="y"?"height":"width",Q=k[b],U=Q+p[N],C=Q-p[O],G=h?-D[R]/2:0,S=w===ar?P[R]:D[R],X=w===ar?-D[R]:-P[R],V=e.elements.arrow,j=h&&V?ba(V):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$d(),K=W[N],$=W[O],le=Gr(0,P[R],j[R]),oe=y?P[R]/2-G-le-K-T.mainAxis:S-le-K-T.mainAxis,pe=y?-P[R]/2+G+le+$+T.mainAxis:X+le+$+T.mainAxis,De=e.elements.arrow&&qr(e.elements.arrow),Xe=De?b==="y"?De.clientTop||0:De.clientLeft||0:0,Ie=(_=M?.[b])!=null?_:0,Ye=Q+oe-Ie-Xe,Tt=Q+pe-Ie,qe=Gr(h?ei(U,Ye):U,Q,h?zn(C,Tt):C);k[b]=qe,B[b]=qe-Q}if(a){var Je,Be=b==="x"?et:tt,je=b==="x"?bt:vt,Me=k[E],Ct=E==="y"?"height":"width",Xt=Me+p[Be],ot=Me-p[je],hn=[et,tt].indexOf(v)!==-1,St=(Je=M?.[E])!=null?Je:0,Jt=hn?Xt:Me-P[Ct]-D[Ct]-St+T.altAxis,fn=hn?Me+P[Ct]+D[Ct]-St-T.altAxis:ot,Zt=h&&hn?Iw(Jt,Me,fn):Gr(h?Jt:Xt,Me,h?fn:ot);k[E]=Zt,B[E]=Zt-Me}e.modifiersData[r]=B}}const lx={name:"preventOverflow",enabled:!0,phase:"main",fn:ax,requiresIfExists:["offset"]};function cx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ux(t){return t===ct(t)||!yt(t)?ya(t):cx(t)}function dx(t){var e=t.getBoundingClientRect(),n=lr(e.width)/t.offsetWidth||1,r=lr(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ax(t,e,n){n===void 0&&(n=!1);var r=yt(e),o=yt(e)&&dx(e),i=xn(e),s=cr(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(e)!=="body"||xa(i))&&(a=ux(e)),yt(e)?(l=cr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=wa(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function hx(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function fx(t){var e=hx(t);return Sw.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function px(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gx(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var cA={placement:"bottom",modifiers:[],strategy:"absolute"};function uA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mx(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?cA:o;return function(a,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},cA,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],A=!1,h={state:u,setOptions:function(v){var w=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},i,u.options,w),u.scrollParents={reference:Nn(a)?Kr(a):a.contextElement?Kr(a.contextElement):[],popper:Kr(l)};var y=fx(gx([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),f(),h.update()},forceUpdate:function(){if(!A){var v=u.elements,w=v.reference,y=v.popper;if(uA(w,y)){u.rects={reference:Ax(w,qr(y),u.options.strategy==="fixed"),popper:ba(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var E=u.orderedModifiers[b],k=E.fn,P=E.options,D=P===void 0?{}:P,I=E.name;typeof k=="function"&&(u=k({state:u,options:D,name:I,instance:h})||u)}}}},update:px(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){g(),A=!0}};if(!uA(a,l))return h;h.setOptions(c).then(function(p){!A&&c.onFirstUpdate&&c.onFirstUpdate(p)});function f(){u.orderedModifiers.forEach(function(p){var v=p.name,w=p.options,y=w===void 0?{}:w,b=p.effect;if(typeof b=="function"){var E=b({state:u,name:v,instance:h,options:y}),k=function(){};d.push(E||k)}})}function g(){d.forEach(function(p){return p()}),d=[]}return h}}var bx=[Uw,ix,zw,Kd,rx,Zw,lx,Lw,ex],vx=mx({defaultModifiers:bx}),yx="tippy-box",dA="tippy-content",wx="tippy-backdrop",AA="tippy-arrow",hA="tippy-svg-arrow",Rn={passive:!0,capture:!0},fA=function(){return document.body};function xx(t,e){return{}.hasOwnProperty.call(t,e)}function Ea(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function Ca(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function pA(t,e){return typeof t=="function"?t.apply(void 0,e):t}function gA(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function kx(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function Ex(t){return t.split(/\s+/).filter(Boolean)}function dr(t){return[].concat(t)}function mA(t,e){t.indexOf(e)===-1&&t.push(e)}function Cx(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function Sx(t){return t.split("-")[0]}function oi(t){return[].slice.call(t)}function bA(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Jr(){return document.createElement("div")}function Zr(t){return["Element","Fragment"].some(function(e){return Ca(t,e)})}function Px(t){return Ca(t,"NodeList")}function Dx(t){return Ca(t,"MouseEvent")}function Bx(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Tx(t){return Zr(t)?[t]:Px(t)?oi(t):Array.isArray(t)?t:oi(document.querySelectorAll(t))}function Sa(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function vA(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Ix(t){var e,n=dr(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function Mx(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,a=o.props,l=a.interactiveBorder,c=Sx(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,A=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,f=c==="left"?u.right.x:0,g=i.top-r+d>l,p=r-i.bottom-A>l,v=i.left-n+h>l,w=n-i.right-f>l;return g||p||v||w})}function Pa(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function yA(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ht={isTouch:!1},wA=0;function _x(){Ht.isTouch||(Ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",xA))}function xA(){var t=performance.now();t-wA<20&&(Ht.isTouch=!1,document.removeEventListener("mousemove",xA)),wA=t}function Ox(){var t=document.activeElement;if(Bx(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Lx(){document.addEventListener("touchstart",_x,Rn),window.addEventListener("blur",Ox)}var Fx=typeof window<"u"&&typeof document<"u",Qx=Fx?!!window.msCrypto:!1;function Ar(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function kA(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function Nx(t){return kA(`
|
|
260
260
|
%ctippy.js
|
|
261
261
|
|
|
262
262
|
%c`+kA(t)+`
|
|
@@ -265,7 +265,7 @@ Would you like to submit this security incident report?`},options:["Submit Secur
|
|
|
265
265
|
`)}function EA(t){return[Nx(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var $r;zx();function zx(){$r=new Set}function an(t,e){if(t&&!$r.has(e)){var n;$r.add(e),(n=console).warn.apply(n,EA(e))}}function Da(t,e){if(t&&!$r.has(e)){var n;$r.add(e),(n=console).error.apply(n,EA(e))}}function Rx(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Da(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Da(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var CA={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ux={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ut=Object.assign({appendTo:fA,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},CA,Ux),jx=Object.keys(ut),Vx=function(e){DA(e,[]);var n=Object.keys(e);n.forEach(function(r){ut[r]=e[r]})};function SA(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var a;r[i]=t[i]!==void 0?t[i]:(a=ut[i])!=null?a:s}return r},{});return Object.assign({},t,n)}function Hx(t,e){var n=e?Object.keys(SA(Object.assign({},ut,{plugins:e}))):jx,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function PA(t,e){var n=Object.assign({},e,{content:pA(e.content,[t])},e.ignoreAttributes?{}:Hx(t,e.plugins));return n.aria=Object.assign({},ut.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function DA(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=kx(ut,Object.keys(CA)),i=!xx(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),an(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
266
266
|
|
|
267
267
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
268
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Wx=function(){return"innerHTML"};function Ba(t,e){t[Wx()]=e}function BA(t){var e=Jr();return t===!0?e.className=AA:(e.className=hA,Zr(t)?e.appendChild(t):Ba(e,t)),e}function TA(t,e){Zr(e.content)?(Ba(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Ba(t,e.content):t.textContent=e.content)}function Ta(t){var e=t.firstElementChild,n=oi(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(dA)}),arrow:n.find(function(r){return r.classList.contains(AA)||r.classList.contains(hA)}),backdrop:n.find(function(r){return r.classList.contains(wx)})}}function IA(t){var e=Jr(),n=Jr();n.className=yx,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Jr();r.className=dA,r.setAttribute("data-state","hidden"),TA(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=Ta(e),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&TA(c,t.props),s.arrow?u?i.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(BA(s.arrow))):l.appendChild(BA(s.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:o}}IA.$$tippy=!0;var Yx=1,ii=[],Ia=[];function qx(t,e){var n=PA(t,Object.assign({},ut,SA(bA(e)))),r,o,i,s=!1,a=!1,l=!1,c=!1,u,d,A,h=[],f=gA(Ye,n.interactiveDebounce),g,p=Yx++,
|
|
268
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Wx=function(){return"innerHTML"};function Ba(t,e){t[Wx()]=e}function BA(t){var e=Jr();return t===!0?e.className=AA:(e.className=hA,Zr(t)?e.appendChild(t):Ba(e,t)),e}function TA(t,e){Zr(e.content)?(Ba(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Ba(t,e.content):t.textContent=e.content)}function Ta(t){var e=t.firstElementChild,n=oi(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(dA)}),arrow:n.find(function(r){return r.classList.contains(AA)||r.classList.contains(hA)}),backdrop:n.find(function(r){return r.classList.contains(wx)})}}function IA(t){var e=Jr(),n=Jr();n.className=yx,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Jr();r.className=dA,r.setAttribute("data-state","hidden"),TA(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=Ta(e),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&TA(c,t.props),s.arrow?u?i.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(BA(s.arrow))):l.appendChild(BA(s.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:o}}IA.$$tippy=!0;var Yx=1,ii=[],Ia=[];function qx(t,e){var n=PA(t,Object.assign({},ut,SA(bA(e)))),r,o,i,s=!1,a=!1,l=!1,c=!1,u,d,A,h=[],f=gA(Ye,n.interactiveDebounce),g,p=Yx++,v=null,w=Cx(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:p,reference:t,popper:Jr(),popperInstance:v,props:n,state:y,plugins:w,clearDelayTimeouts:Jt,setProps:fn,setContent:Zt,show:z,hide:J,hideWithInteractivity:ee,enable:hn,disable:St,unmount:ce,destroy:ae};if(!n.render)return Da(!0,"render() function has not been supplied."),b;var E=n.render(b),k=E.popper,P=E.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+b.id,b.popper=k,t._tippy=b,k._tippy=b;var D=w.map(function(L){return L.fn(b)}),I=t.hasAttribute("aria-expanded");return De(),G(),Q(),U("onCreate",[b]),n.showOnCreate&&Xt(),k.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&N().addEventListener("mousemove",f)}),b;function T(){var L=b.props.touch;return Array.isArray(L)?L:[L,0]}function M(){return T()[0]==="hold"}function B(){var L;return!!((L=b.props.render)!=null&&L.$$tippy)}function _(){return g||t}function N(){var L=_().parentNode;return L?Ix(L):document}function O(){return Ta(k)}function R(L){return b.state.isMounted&&!b.state.isVisible||Ht.isTouch||u&&u.type==="focus"?0:Ea(b.props.delay,L?0:1,ut.delay)}function Q(L){L===void 0&&(L=!1),k.style.pointerEvents=b.props.interactive&&!L?"":"none",k.style.zIndex=""+b.props.zIndex}function U(L,Y,Z){if(Z===void 0&&(Z=!0),D.forEach(function(ue){ue[L]&&ue[L].apply(ue,Y)}),Z){var de;(de=b.props)[L].apply(de,Y)}}function C(){var L=b.props.aria;if(L.content){var Y="aria-"+L.content,Z=k.id,de=dr(b.props.triggerTarget||t);de.forEach(function(ue){var ve=ue.getAttribute(Y);if(b.state.isVisible)ue.setAttribute(Y,ve?ve+" "+Z:Z);else{var Ne=ve&&ve.replace(Z,"").trim();Ne?ue.setAttribute(Y,Ne):ue.removeAttribute(Y)}})}}function G(){if(!(I||!b.props.aria.expanded)){var L=dr(b.props.triggerTarget||t);L.forEach(function(Y){b.props.interactive?Y.setAttribute("aria-expanded",b.state.isVisible&&Y===_()?"true":"false"):Y.removeAttribute("aria-expanded")})}}function S(){N().removeEventListener("mousemove",f),ii=ii.filter(function(L){return L!==f})}function X(L){if(!(Ht.isTouch&&(l||L.type==="mousedown"))){var Y=L.composedPath&&L.composedPath()[0]||L.target;if(!(b.props.interactive&&yA(k,Y))){if(dr(b.props.triggerTarget||t).some(function(Z){return yA(Z,Y)})){if(Ht.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[b,L]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||K())}}}function V(){l=!0}function j(){l=!1}function W(){var L=N();L.addEventListener("mousedown",X,!0),L.addEventListener("touchend",X,Rn),L.addEventListener("touchstart",j,Rn),L.addEventListener("touchmove",V,Rn)}function K(){var L=N();L.removeEventListener("mousedown",X,!0),L.removeEventListener("touchend",X,Rn),L.removeEventListener("touchstart",j,Rn),L.removeEventListener("touchmove",V,Rn)}function $(L,Y){oe(L,function(){!b.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&Y()})}function le(L,Y){oe(L,Y)}function oe(L,Y){var Z=O().box;function de(ue){ue.target===Z&&(Pa(Z,"remove",de),Y())}if(L===0)return Y();Pa(Z,"remove",d),Pa(Z,"add",de),d=de}function pe(L,Y,Z){Z===void 0&&(Z=!1);var de=dr(b.props.triggerTarget||t);de.forEach(function(ue){ue.addEventListener(L,Y,Z),h.push({node:ue,eventType:L,handler:Y,options:Z})})}function De(){M()&&(pe("touchstart",Ie,{passive:!0}),pe("touchend",Tt,{passive:!0})),Ex(b.props.trigger).forEach(function(L){if(L!=="manual")switch(pe(L,Ie),L){case"mouseenter":pe("mouseleave",Tt);break;case"focus":pe(Qx?"focusout":"blur",qe);break;case"focusin":pe("focusout",qe);break}})}function Xe(){h.forEach(function(L){var Y=L.node,Z=L.eventType,de=L.handler,ue=L.options;Y.removeEventListener(Z,de,ue)}),h=[]}function Ie(L){var Y,Z=!1;if(!(!b.state.isEnabled||Je(L)||a)){var de=((Y=u)==null?void 0:Y.type)==="focus";u=L,g=L.currentTarget,G(),!b.state.isVisible&&Dx(L)&&ii.forEach(function(ue){return ue(L)}),L.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?Z=!0:Xt(L),L.type==="click"&&(s=!Z),Z&&!de&&ot(L)}}function Ye(L){var Y=L.target,Z=_().contains(Y)||k.contains(Y);if(!(L.type==="mousemove"&&Z)){var de=Ct().concat(k).map(function(ue){var ve,Ne=ue._tippy,Ge=(ve=Ne.popperInstance)==null?void 0:ve.state;return Ge?{popperRect:ue.getBoundingClientRect(),popperState:Ge,props:n}:null}).filter(Boolean);Mx(de,L)&&(S(),ot(L))}}function Tt(L){var Y=Je(L)||b.props.trigger.indexOf("click")>=0&&s;if(!Y){if(b.props.interactive){b.hideWithInteractivity(L);return}ot(L)}}function qe(L){b.props.trigger.indexOf("focusin")<0&&L.target!==_()||b.props.interactive&&L.relatedTarget&&k.contains(L.relatedTarget)||ot(L)}function Je(L){return Ht.isTouch?M()!==L.type.indexOf("touch")>=0:!1}function Be(){je();var L=b.props,Y=L.popperOptions,Z=L.placement,de=L.offset,ue=L.getReferenceClientRect,ve=L.moveTransition,Ne=B()?Ta(k).arrow:null,Ge=ue?{getBoundingClientRect:ue,contextElement:ue.contextElement||_()}:t,ap={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Wi){var kr=Wi.state;if(B()){var RS=O(),Dl=RS.box;["placement","reference-hidden","escaped"].forEach(function(Yi){Yi==="placement"?Dl.setAttribute("data-placement",kr.placement):kr.attributes.popper["data-popper-"+Yi]?Dl.setAttribute("data-"+Yi,""):Dl.removeAttribute("data-"+Yi)}),kr.attributes.popper={}}}},Kn=[{name:"offset",options:{offset:de}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ve}},ap];B()&&Ne&&Kn.push({name:"arrow",options:{element:Ne,padding:3}}),Kn.push.apply(Kn,Y?.modifiers||[]),b.popperInstance=vx(Ge,k,Object.assign({},Y,{placement:Z,onFirstUpdate:A,modifiers:Kn}))}function je(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Me(){var L=b.props.appendTo,Y,Z=_();b.props.interactive&&L===fA||L==="parent"?Y=Z.parentNode:Y=pA(L,[Z]),Y.contains(k)||Y.appendChild(k),b.state.isMounted=!0,Be(),an(b.props.interactive&&L===ut.appendTo&&Z.nextElementSibling!==k,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
269
269
|
|
|
270
270
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
271
271
|
|
|
@@ -276,6 +276,6 @@ Would you like to submit this security incident report?`},options:["Submit Secur
|
|
|
276
276
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
277
277
|
|
|
278
278
|
`,`1) content: element.innerHTML
|
|
279
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var a=o.reduce(function(l,c){var u=c&&qx(c,r);return u&&l.push(u),l},[]);return Zr(t)?a[0]:a}eo.defaultProps=ut,eo.setDefaultProps=Vx,eo.currentInput=Ht,Object.assign({},Kd,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),eo.setDefaultProps({render:IA});function Gx({color:t="var(--contrast-6)",icon:e="info-circle-fill",tooltip:n}){const r=x.useRef(null);return x.useLayoutEffect(()=>{r.current&&eo(r.current,{content:n,theme:"access",appendTo:r.current.parentElement})},[r.current]),m.jsx("button",{className:"info-tip",style:{color:t},ref:r,children:m.jsx(Ae,{name:e})})}function Kx({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/kb/${t}`);if(!(!e||e.error||!e.length))return m.jsx(Ut,{title:"Documentation",icon:"book",children:m.jsx("ul",{children:e.map(({title:n,description:r,link:o})=>m.jsxs("li",{children:[m.jsx("a",{href:Rl(o),children:n}),r?m.jsx(Gx,{tooltip:Ji(r)}):null]},n))})})}function Xx({children:t,icon:e="megaphone-fill"}){return m.jsxs("div",{className:"alert",children:[e?m.jsx(Ae,{name:e}):null,m.jsx("div",{className:"alert-body",children:t})]})}function Jx({children:t}){const[e,n]=x.useState(!1);return m.jsxs("div",{className:`expand-text ${e?"expanded":"contracted"}`,children:[t,m.jsxs("button",{className:"expand-button",onClick:()=>n(!e),children:[m.jsx(Ae,{name:`caret-${e?"up":"left"}-fill`}),e?"Less":"More"]})]})}function Zx({date__end:t,date__start:e,description:n,location:r,registration:o,speaker:i,title:s}){const a=o,l=a?m.jsx("a",{href:a,children:s}):s,c=[];let u=null;const d=e,A=t;if(d){const h=new Date(d),f=new Date(A||d),[g,p]=[h,f].map(k=>k.toLocaleString("en-US",{dateStyle:"long"})),[y,w]=[h,f].map(k=>k.toLocaleString("en-US",{timeStyle:"short"})),v=h.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ")[2],b=[`${g},`,y];(w!=y||p!=g)&&(b.push("-"),p!=g&&b.push(`${p},`),b.push(w)),b.push(`(${v})`),c.push(m.jsx(Ae,{name:"calendar"}),b.join(" ")),i&&c.push(m.jsx(Ae,{name:"people-fill"}),i),r&&c.push(m.jsx(Ae,{name:"geo-alt-fill"}),r);const E=h.toLocaleString("en-US",{dateStyle:"medium"}).split(",")[0].split(" ").map(k=>m.jsx("span",{children:k},k));u=a?m.jsx("a",{href:a,className:"event-icon",children:E}):m.jsx("div",{className:"event-icon",children:E})}return m.jsxs("div",{className:"event",children:[u,m.jsxs("div",{className:"event-details",children:[m.jsx("h3",{children:l}),c.length?m.jsx("div",{className:"event-metadata",children:c}):null,n?m.jsx(Jx,{children:m.jsx("div",{children:Zi(n)})}):null]})]})}function $x({infoGroupId:t}){const e=Cr(t),n=Ke("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/current_outages/"),r=Ke("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/future_outages/"),o=Ke(`https://support.access-ci.org/api/1.1/events/ag/${t}`),i=Xi([e,n,r],(a,l,c)=>[...l.results,...c.results].filter(u=>u.AffectedResources.some(d=>a.infoResourceIds.includes(d.ResourceID))),[]),s=Xi([o],a=>a.filter(l=>new Date(l.date__start)>=new Date),[]);if(!(!i.length&&!s.length))return m.jsxs(Ut,{title:"Announcements and Events",icon:"calendar3",children:[i.map(({Subject:a,Content:l})=>m.jsxs(Xx,{children:[a," ",m.jsx("a",{href:"https://operations.access-ci.org/infrastructure_news_view",children:"Learn more."})]},a)),s.map(a=>m.jsx(Zx,{...a},a.title))]})}function e1({children:t,headingLevel:e=2,title:n}){const[r,o]=x.useState(!1),i=`h${e}`;return m.jsxs("div",{className:"accordion",children:[m.jsx(i,{className:"accordion-heading",children:m.jsxs("button",{"aria-expanded":r,onClick:()=>o(!r),children:[n,m.jsx(Ae,{name:r?"caret-up-fill":"caret-down-fill"})]})}),m.jsx("div",{className:"accordion-content",style:{display:r?"block":"none"},children:t})]})}function t1({resource_descriptive_name:t,resource_description:e,compute:n,storage:r}){const o=(n||r||{}).recommended_use;return m.jsxs(e1,{title:t,children:[e?Zi(e):null,o?m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Recommended Use"}),Zi(o)]}):null]})}function n1({infoGroupId:t}){const e=Cr(t),n=Ke(e?e.infoResourceIds.map(l=>`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${l}/?format=json`):null,{defaultValue:[]}),r=n.filter(l=>l.results&&l.results.cider_type=="Compute").map(l=>({...l.results.compute,key:l.results.info_resourceid,name:l.results.resource_descriptive_name,format:(c,u)=>{const d=l.results.compute[u.attr];return u.format&&d?u.format(d,u):d||m.jsx(m.Fragment,{children:"—"})}})),o=n.length?[{name:"Nodes",attr:"node_count",format:l=>l.toLocaleString("en-us")},{name:"CPU Type",attr:"cpu_type"},{name:"CPU Speed",attr:"cpu_speed_ghz",format:l=>`${l} Ghz`},{name:"CPU Cores per Node",attr:"cpu_count_per_node"},{name:"RAM per CPU Core",attr:"memory_per_cpu_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"GPU",attr:"gpu_description"},{name:"Local Storage per Node",attr:"local_storage_per_node_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"Network Interconnect",attr:"interconnect"},{name:"Operating System",attr:"operating_system"},{name:"Batch System",attr:"batch_system"}].filter(l=>r.some(c=>c[l.attr])):[],i={key:"name",name:"Attribute",format:l=>m.jsx("strong",{children:l})},s=r.length>0&&o.length>0,a={compute:[],storage:[],other:[]};for(let{results:l}of n)(a[l.cider_type.toLowerCase()]||a.other).push(m.jsx(t1,{...l},l.resource_descriptive_name));return m.jsxs(m.Fragment,{children:[s||a.compute.length>0?m.jsxs(Ut,{title:"Compute Resources",icon:"cpu-fill",children:[a.compute,s&&m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Specifications"}),m.jsx($o,{columns:[i,...r],rows:o,maxHeight:null})]})]}):null,a.storage.length>0?m.jsx(Ut,{title:"Storage Resources",icon:"hdd-fill",children:a.storage}):null,a.other.length>0?m.jsx(Ut,{title:"Other Resources",icon:"stars",children:a.other}):null]})}function MA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function _A(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MA(Object(n),!0).forEach(function(r){o1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function si(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?si=function(e){return typeof e}:si=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}function ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function li(t,e,n){return e&&r1(t.prototype,e),t}function o1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ma(t,e)}function hr(t){return hr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hr(t)}function Ma(t,e){return Ma=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Ma(t,e)}function s1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l1(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a1(t)}function c1(t){var e=s1();return function(){var r=hr(t),o;if(e){var i=hr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return l1(this,o)}}function u1(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=hr(t),t!==null););return t}function ci(){return typeof Reflect<"u"&&Reflect.get?ci=Reflect.get:ci=function(e,n,r){var o=u1(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}},ci.apply(this,arguments)}var d1={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function kn(t){console.error("[Glide warn]: ".concat(t))}function Dt(t){return parseInt(t)}function _a(t){return typeof t=="string"}function to(t){var e=si(t);return e==="function"||e==="object"&&!!t}function ui(t){return typeof t=="function"}function A1(t){return typeof t>"u"}function Oa(t){return t.constructor===Array}function h1(t,e,n){var r={};for(var o in e)ui(e[o])?r[o]=e[o](t,r,n):kn("Extension must be a function");for(var i in r)ui(r[i].mount)&&r[i].mount();return r}function Te(t,e,n){Object.defineProperty(t,e,n)}function OA(t,e){var n=Object.assign({},t,e);if(e.hasOwnProperty("classes")){n.classes=Object.assign({},t.classes,e.classes);var r=["direction","type","slide","arrow","nav"];r.forEach(function(o){e.classes.hasOwnProperty(o)&&(n.classes[o]=_A(_A({},t.classes[o]),e.classes[o]))})}return e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var f1=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(this,t),this.events=e,this.hop=e.hasOwnProperty}return li(t,[{key:"on",value:function(n,r){if(Oa(n)){for(var o=0;o<n.length;o++)this.on(n[o],r);return}this.hop.call(this.events,n)||(this.events[n]=[]);var i=this.events[n].push(r)-1;return{remove:function(){delete this.events[n][i]}}}},{key:"emit",value:function(n,r){if(Oa(n)){for(var o=0;o<n.length;o++)this.emit(n[o],r);return}this.hop.call(this.events,n)&&this.events[n].forEach(function(i){i(r||{})})}}]),t})(),p1=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ai(this,t),this._c={},this._t=[],this._e=new f1,this.disabled=!1,this.selector=e,this.settings=OA(d1,n),this.index=this.settings.startAt}return li(t,[{key:"mount",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._e.emit("mount.before"),to(n)?this._c=h1(this,n,this._e):kn("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Oa(n)?this._t=n:kn("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.settings=OA(this.settings,n),n.hasOwnProperty("startAt")&&(this.index=n.startAt),this._e.emit("update"),this}},{key:"go",value:function(n){return this._c.Run.make(n),this}},{key:"move",value:function(n){return this._c.Transition.disable(),this._c.Move.make(n),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n&&(this.settings.autoplay=n),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(n,r){return this._e.on(n,r),this}},{key:"isType",value:function(n){return this.settings.type===n}},{key:"settings",get:function(){return this._o},set:function(n){to(n)?this._o=n:kn("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(n){this._i=Dt(n)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(n){this._d=!!n}}]),t})();function g1(t,e,n){var r={mount:function(){this._o=!1},make:function(c){var u=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=c,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after(function(){u.isStart()&&n.emit("run.start",u.move),u.isEnd()&&n.emit("run.end",u.move),u.isOffset()&&(u._o=!1,n.emit("run.offset",u.move)),n.emit("run.after",u.move),t.enable()}))},calculate:function(){var c=this.move,u=this.length,d=c.steps,A=c.direction,h=1;if(A==="="){if(t.settings.bound&&Dt(d)>u){t.index=u;return}t.index=d;return}if(A===">"&&d===">"){t.index=u;return}if(A==="<"&&d==="<"){t.index=0;return}if(A==="|"&&(h=t.settings.perView||1),A===">"||A==="|"&&d===">"){var f=o(h);f>u&&(this._o=!0),t.index=i(f,h);return}if(A==="<"||A==="|"&&d==="<"){var g=s(h);g<0&&(this._o=!0),t.index=a(g,h);return}kn("Invalid direction pattern [".concat(A).concat(d,"] has been used"))},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return c?this._o?c==="|>"?this.move.direction==="|"&&this.move.steps===">":c==="|<"?this.move.direction==="|"&&this.move.steps==="<":this.move.direction===c:!1:this._o},isBound:function(){return t.isType("slider")&&t.settings.focusAt!=="center"&&t.settings.bound}};function o(l){var c=t.index;return t.isType("carousel")?c+l:c+(l-c%l)}function i(l,c){var u=r.length;return l<=u?l:t.isType("carousel")?l-(u+1):t.settings.rewind?r.isBound()&&!r.isEnd()?u:0:r.isBound()?u:Math.floor(u/c)*c}function s(l){var c=t.index;if(t.isType("carousel"))return c-l;var u=Math.ceil(c/l);return(u-1)*l}function a(l,c){var u=r.length;return l>=0?l:t.isType("carousel")?l+(u+1):t.settings.rewind?r.isBound()&&r.isStart()?u:Math.floor(u/c)*c:0}return Te(r,"move",{get:function(){return this._m},set:function(c){var u=c.substr(1);this._m={direction:c.substr(0,1),steps:u?Dt(u)?Dt(u):u:0}}}),Te(r,"length",{get:function(){var c=t.settings,u=e.Html.slides.length;return this.isBound()?u-1-(Dt(c.perView)-1)+Dt(c.focusAt):u-1}}),Te(r,"offset",{get:function(){return this._o}}),r}function LA(){return new Date().getTime()}function FA(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,i,s,a=0,l=function(){a=n.leading===!1?0:LA(),r=null,s=t.apply(o,i),r||(o=i=null)},c=function(){var d=LA();!a&&n.leading===!1&&(a=d);var A=e-(d-a);return o=this,i=arguments,A<=0||A>e?(r&&(clearTimeout(r),r=null),a=d,s=t.apply(o,i),r||(o=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,A)),s};return c.cancel=function(){clearTimeout(r),a=0,r=o=i=null},c}var di={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function m1(t,e,n){var r={apply:function(i){for(var s=0,a=i.length;s<a;s++){var l=i[s].style,c=e.Direction.value;s!==0?l[di[c][0]]="".concat(this.value/2,"px"):l[di[c][0]]="",s!==i.length-1?l[di[c][1]]="".concat(this.value/2,"px"):l[di[c][1]]=""}},remove:function(i){for(var s=0,a=i.length;s<a;s++){var l=i[s].style;l.marginLeft="",l.marginRight=""}}};return Te(r,"value",{get:function(){return Dt(t.settings.gap)}}),Te(r,"grow",{get:function(){return r.value*e.Sizes.length}}),Te(r,"reductor",{get:function(){var i=t.settings.perView;return r.value*(i-1)/i}}),n.on(["build.after","update"],FA(function(){r.apply(e.Html.wrapper.children)},30)),n.on("destroy",function(){r.remove(e.Html.wrapper.children)}),r}function QA(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}return[]}function La(t){return Array.prototype.slice.call(t)}var b1='[data-glide-el="track"]';function v1(t,e,n){var r={mount:function(){this.root=t.selector,this.track=this.root.querySelector(b1),this.collectSlides()},collectSlides:function(){this.slides=La(this.wrapper.children).filter(function(i){return!i.classList.contains(t.settings.classes.slide.clone)})}};return Te(r,"root",{get:function(){return r._r},set:function(i){_a(i)&&(i=document.querySelector(i)),i!==null?r._r=i:kn("Root element must be a existing Html node")}}),Te(r,"track",{get:function(){return r._t},set:function(i){r._t=i}}),Te(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",function(){r.collectSlides()}),r}function y1(t,e,n){var r={mount:function(){this.value=t.settings.peek}};return Te(r,"value",{get:function(){return r._v},set:function(i){to(i)?(i.before=Dt(i.before),i.after=Dt(i.after)):i=Dt(i),r._v=i}}),Te(r,"reductor",{get:function(){var i=r.value,s=t.settings.perView;return to(i)?i.before/s+i.after/s:i*2/s}}),n.on(["resize","update"],function(){r.mount()}),r}function w1(t,e,n){var r={mount:function(){this._o=0},make:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.offset=s,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:i.value})})}};return Te(r,"offset",{get:function(){return r._o},set:function(i){r._o=A1(i)?0:Dt(i)}}),Te(r,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),Te(r,"value",{get:function(){var i=this.offset,s=this.translate;return e.Direction.is("rtl")?s+i:s-i}}),n.on(["build.before","run"],function(){r.make()}),r}function x1(t,e,n){var r={setupSlides:function(){for(var i="".concat(this.slideWidth,"px"),s=e.Html.slides,a=0;a<s.length;a++)s[a].style.width=i},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var i=e.Html.slides,s=0;s<i.length;s++)i[s].style.width="";e.Html.wrapper.style.width=""}};return Te(r,"length",{get:function(){return e.Html.slides.length}}),Te(r,"width",{get:function(){return e.Html.track.offsetWidth}}),Te(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+e.Gaps.grow+e.Clones.grow}}),Te(r,"slideWidth",{get:function(){return r.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){r.setupSlides(),r.setupWrapper()}),n.on("destroy",function(){r.remove()}),r}function k1(t,e,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var i=t.settings.classes,s=e.Html.slides[t.index];s&&(s.classList.add(i.slide.active),QA(s).forEach(function(a){a.classList.remove(i.slide.active)}))},removeClasses:function(){var i=t.settings.classes,s=i.type,a=i.slide;e.Html.root.classList.remove(s[t.settings.type]),e.Html.slides.forEach(function(l){l.classList.remove(a.active)})}};return n.on(["destroy","update"],function(){r.removeClasses()}),n.on(["resize","update"],function(){r.mount()}),n.on("move.after",function(){r.activeClass()}),r}function E1(t,e,n){var r={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=e.Html.slides,a=t.settings,l=a.perView,c=a.classes,u=a.cloningRatio;if(s.length>0)for(var d=+!!t.settings.peek,A=l+d+Math.round(l/2),h=s.slice(0,A).reverse(),f=s.slice(A*-1),g=0;g<Math.max(u,Math.floor(l/s.length));g++){for(var p=0;p<h.length;p++){var y=h[p].cloneNode(!0);y.classList.add(c.slide.clone),i.push(y)}for(var w=0;w<f.length;w++){var v=f[w].cloneNode(!0);v.classList.add(c.slide.clone),i.unshift(v)}}return i},append:function(){for(var i=this.items,s=e.Html,a=s.wrapper,l=s.slides,c=Math.floor(i.length/2),u=i.slice(0,c).reverse(),d=i.slice(c*-1).reverse(),A="".concat(e.Sizes.slideWidth,"px"),h=0;h<d.length;h++)a.appendChild(d[h]);for(var f=0;f<u.length;f++)a.insertBefore(u[f],l[0]);for(var g=0;g<i.length;g++)i[g].style.width=A},remove:function(){for(var i=this.items,s=0;s<i.length;s++)e.Html.wrapper.removeChild(i[s])}};return Te(r,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*r.items.length}}),n.on("update",function(){r.remove(),r.mount(),r.append()}),n.on("build.before",function(){t.isType("carousel")&&r.append()}),n.on("destroy",function(){r.remove()}),r}var NA=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(this,t),this.listeners=e}return li(t,[{key:"on",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;_a(n)&&(n=[n]);for(var s=0;s<n.length;s++)this.listeners[n[s]]=o,r.addEventListener(n[s],this.listeners[n[s]],i)}},{key:"off",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_a(n)&&(n=[n]);for(var i=0;i<n.length;i++)r.removeEventListener(n[i],this.listeners[n[i]],o)}},{key:"destroy",value:function(){delete this.listeners}}]),t})();function C1(t,e,n){var r=new NA,o={mount:function(){this.bind()},bind:function(){r.on("resize",window,FA(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",function(){o.unbind(),r.destroy()}),o}var S1=["ltr","rtl"],P1={">":"<","<":">","=":"="};function D1(t,e,n){var r={mount:function(){this.value=t.settings.direction},resolve:function(i){var s=i.slice(0,1);return this.is("rtl")?i.split(s).join(P1[s]):i},is:function(i){return this.value===i},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return Te(r,"value",{get:function(){return r._v},set:function(i){S1.indexOf(i)>-1?r._v=i:kn("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){r.removeClass()}),n.on("update",function(){r.mount()}),n.on(["build.before","update"],function(){r.addClass()}),r}function B1(t,e){return{modify:function(r){return e.Direction.is("rtl")?-r:r}}}function T1(t,e){return{modify:function(r){var o=Math.floor(r/e.Sizes.slideWidth);return r+e.Gaps.value*o}}}function I1(t,e){return{modify:function(r){return r+e.Clones.grow/2}}}function M1(t,e){return{modify:function(r){if(t.settings.focusAt>=0){var o=e.Peek.value;return to(o)?r-o.before:r-o}return r}}}function _1(t,e){return{modify:function(r){var o=e.Gaps.value,i=e.Sizes.width,s=t.settings.focusAt,a=e.Sizes.slideWidth;return s==="center"?r-(i/2-a/2):r-a*s-o*s}}}function O1(t,e,n){var r=[T1,I1,M1,_1].concat(t._t,[B1]);return{mutate:function(i){for(var s=0;s<r.length;s++){var a=r[s];ui(a)&&ui(a().modify)?i=a(t,e,n).modify(i):kn("Transformer should be a function that returns an object with `modify()` method")}return i}}}function L1(t,e,n){var r={set:function(i){var s=O1(t,e).mutate(i),a="translate3d(".concat(-1*s,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=a,e.Html.wrapper.style.webkitTransform=a,e.Html.wrapper.style.transform=a},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,s=t.index,a=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(s-a):(s+a)%i},getTravelDistance:function(){var i=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i*-1:i}};return n.on("move",function(o){if(!t.isType("carousel")||!e.Run.isOffset())return r.set(o.movement);e.Transition.after(function(){n.emit("translate.jump"),r.set(e.Sizes.slideWidth*t.index)});var i=e.Sizes.slideWidth*e.Translate.getStartIndex();return r.set(i-e.Translate.getTravelDistance())}),n.on("destroy",function(){r.remove()}),r}function F1(t,e,n){var r=!1,o={compose:function(s){var a=t.settings;return r?"".concat(s," 0ms ").concat(a.animationTimingFunc):"".concat(s," ").concat(this.duration,"ms ").concat(a.animationTimingFunc)},set:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(s)},remove:function(){e.Html.wrapper.style.transition=""},after:function(s){setTimeout(function(){s()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return Te(o,"duration",{get:function(){var s=t.settings;return t.isType("slider")&&e.Run.offset?s.rewindDuration:s.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o}var zA=!1;try{var RA=Object.defineProperty({},"passive",{get:function(){zA=!0}});window.addEventListener("testPassive",null,RA),window.removeEventListener("testPassive",null,RA)}catch{}var UA=zA,Q1='[data-glide-el="controls[nav]"]',Fa='[data-glide-el^="controls"]',N1="".concat(Fa,' [data-glide-dir*="<"]'),z1="".concat(Fa,' [data-glide-dir*=">"]');function R1(t,e,n){var r=new NA,o=UA?{passive:!0}:!1,i={mount:function(){this._n=e.Html.root.querySelectorAll(Q1),this._c=e.Html.root.querySelectorAll(Fa),this._arrowControls={previous:e.Html.root.querySelectorAll(N1),next:e.Html.root.querySelectorAll(z1)},this.addBindings()},setActive:function(){for(var a=0;a<this._n.length;a++)this.addClass(this._n[a].children)},removeActive:function(){for(var a=0;a<this._n.length;a++)this.removeClass(this._n[a].children)},addClass:function(a){var l=t.settings,c=a[t.index];c&&(c.classList.add(l.classes.nav.active),QA(c).forEach(function(u){u.classList.remove(l.classes.nav.active)}))},removeClass:function(a){var l=a[t.index];l?.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var a=i._arrowControls.next,l=i._arrowControls.previous;this.resetArrowState(a,l),t.index===0&&this.disableArrow(l),t.index===e.Run.length&&this.disableArrow(a)}},resetArrowState:function(){for(var a=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(d){La(d).forEach(function(A){A.classList.remove(a.classes.arrow.disabled)})})},disableArrow:function(){for(var a=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(d){La(d).forEach(function(A){A.classList.add(a.classes.arrow.disabled)})})},addBindings:function(){for(var a=0;a<this._c.length;a++)this.bind(this._c[a].children)},removeBindings:function(){for(var a=0;a<this._c.length;a++)this.unbind(this._c[a].children)},bind:function(a){for(var l=0;l<a.length;l++)r.on("click",a[l],this.click),r.on("touchstart",a[l],this.click,o)},unbind:function(a){for(var l=0;l<a.length;l++)r.off(["click","touchstart"],a[l])},click:function(a){!UA&&a.type==="touchstart"&&a.preventDefault();var l=a.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(l))}};return Te(i,"items",{get:function(){return i._c}}),n.on(["mount.after","move.after"],function(){i.setActive()}),n.on(["mount.after","run"],function(){i.setArrowState()}),n.on("destroy",function(){i.removeBindings(),i.removeActive(),r.destroy()}),i}var U1={Html:v1,Translate:L1,Transition:F1,Direction:D1,Peek:y1,Sizes:x1,Gaps:m1,Move:w1,Clones:E1,Resize:C1,Build:k1,Run:g1},j1=(function(t){i1(n,t);var e=c1(n);function n(){return ai(this,n),e.apply(this,arguments)}return li(n,[{key:"mount",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ci(hr(n.prototype),"mount",this).call(this,Object.assign({},U1,o))}}]),n})(p1);function Ai({children:t,cssClass:e=""}){const n=x.useRef(null);return x.useEffect(()=>{n.current&&new j1(n.current).mount({Controls:R1})},[]),m.jsx("section",{className:`carousel ${e}`,children:m.jsxs("div",{className:"glide",ref:n,children:[m.jsx("div",{className:"glide__track","data-glide-el":"track",children:m.jsx("ul",{className:"glide__slides",children:t})}),m.jsxs("div",{className:"glide__arrows","data-glide-el":"controls",children:[m.jsx("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M0 12l10.975 11 2.848-2.828-6.176-6.176H24v-3.992H7.646l6.176-6.176L10.975 1 0 12z"})})}),m.jsx("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z"})})})]})]})})}function jA({children:t}){return m.jsx("li",{className:"glide__slide",children:t})}function V1({title:t,description:e,linkText:n,linkURI:r,imageURI:o,imageAltText:i}){return m.jsx(jA,{children:m.jsxs("span",{className:"slide-inner",children:[o&&m.jsx("a",{href:r,className:"slide-image",children:m.jsx("img",{src:o,alt:i})}),m.jsxs("span",{className:"slide-text",children:[t&&m.jsx("h2",{children:t}),e&&m.jsx("p",{children:e}),n&&m.jsx("a",{href:r,children:n})]})]})})}Ai.Slide=jA,Ai.ImageSlide=V1;function H1({children:t,maxHeight:e="400px"}){return m.jsx("div",{className:"scroll-text",children:m.jsx("div",{className:"scroll-text-inner",style:{maxHeight:e},children:t})})}const W1="https://allocations.access-ci.org/current-projects.json";function hi({icon:t,text:e,title:n}){if(e)return m.jsxs("abbr",{className:"project-meta",title:n,children:[m.jsx(Ae,{name:t}),e]})}function Y1({infoGroupId:t}){const e=Cr(t),n=Ke(e?`${W1}?${e.infoResourceIds.map(o=>`info_resourceids[]=${o}`).join("&")}`:null);if(!n||!n.projects||!n.projects.length)return null;const r=[{key:"resourceName",name:"Resource"},{key:"allocation",name:"Current Allocation",format:(o,i)=>i.units=="[Yes = 1, No = 0]"?o==1?"Yes":"No":`${o.toLocaleString("en-us")} ${i.units||""}`}];return m.jsx(Ut,{title:"Recent Projects",icon:"pc-display",children:m.jsx(Ai,{cssclassName:"carousel-projects",children:n.projects.map(o=>m.jsxs(Ai.Slide,{children:[m.jsx("h3",{children:o.requestTitle}),m.jsxs("div",{className:"project-metadata",children:[m.jsx(hi,{icon:"cash-coin",text:o.allocationType,title:"Allocation Type"}),m.jsx(hi,{icon:"person-fill",text:`${o.pi} (${o.piInstitution})`,title:"Primary Investigator"}),m.jsx(hi,{icon:"folder",text:o.fos,title:"Field of Science"}),m.jsx(hi,{icon:"calendar-range",text:[o.beginDate,o.endDate].map(i=>new Date(i).toLocaleString("en-US",{dateStyle:"medium"})).join(" to "),title:"Project Dates"})]}),m.jsxs(H1,{children:[m.jsx("p",{children:o.abstract}),m.jsx($o,{columns:r,rows:o.resources,maxHeight:null})]})]},o.requestTitle))})})}function no(t){return t+.5|0}const En=(t,e,n)=>Math.max(Math.min(t,n),e);function ro(t){return En(no(t*2.55),0,255)}function Cn(t){return En(no(t*255),0,255)}function ln(t){return En(no(t/2.55)/100,0,1)}function VA(t){return En(no(t*100),0,100)}const wt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Qa=[..."0123456789ABCDEF"],q1=t=>Qa[t&15],G1=t=>Qa[(t&240)>>4]+Qa[t&15],fi=t=>(t&240)>>4===(t&15),K1=t=>fi(t.r)&&fi(t.g)&&fi(t.b)&&fi(t.a);function X1(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&wt[t[1]]*17,g:255&wt[t[2]]*17,b:255&wt[t[3]]*17,a:e===5?wt[t[4]]*17:255}:(e===7||e===9)&&(n={r:wt[t[1]]<<4|wt[t[2]],g:wt[t[3]]<<4|wt[t[4]],b:wt[t[5]]<<4|wt[t[6]],a:e===9?wt[t[7]]<<4|wt[t[8]]:255})),n}const J1=(t,e)=>t<255?e(t):"";function Z1(t){var e=K1(t)?q1:G1;return t?"#"+e(t.r)+e(t.g)+e(t.b)+J1(t.a,e):void 0}const $1=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function HA(t,e,n){const r=e*Math.min(n,1-n),o=(i,s=(i+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function e2(t,e,n){const r=(o,i=(o+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function t2(t,e,n){const r=HA(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function n2(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}function Na(t){const n=t.r/255,r=t.g/255,o=t.b/255,i=Math.max(n,r,o),s=Math.min(n,r,o),a=(i+s)/2;let l,c,u;return i!==s&&(u=i-s,c=a>.5?u/(2-i-s):u/(i+s),l=n2(n,r,o,u,i),l=l*60+.5),[l|0,c||0,a]}function za(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Cn)}function Ra(t,e,n){return za(HA,t,e,n)}function r2(t,e,n){return za(t2,t,e,n)}function o2(t,e,n){return za(e2,t,e,n)}function WA(t){return(t%360+360)%360}function i2(t){const e=$1.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ro(+e[5]):Cn(+e[5]));const o=WA(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=r2(o,i,s):e[1]==="hsv"?r=o2(o,i,s):r=Ra(o,i,s),{r:r[0],g:r[1],b:r[2],a:n}}function s2(t,e){var n=Na(t);n[0]=WA(n[0]+e),n=Ra(n),t.r=n[0],t.g=n[1],t.b=n[2]}function a2(t){if(!t)return;const e=Na(t),n=e[0],r=VA(e[1]),o=VA(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${ln(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const YA={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},qA={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function l2(){const t={},e=Object.keys(qA),n=Object.keys(YA);let r,o,i,s,a;for(r=0;r<e.length;r++){for(s=a=e[r],o=0;o<n.length;o++)i=n[o],a=a.replace(i,YA[i]);i=parseInt(qA[s],16),t[a]=[i>>16&255,i>>8&255,i&255]}return t}let pi;function c2(t){pi||(pi=l2(),pi.transparent=[0,0,0,0]);const e=pi[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const u2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function d2(t){const e=u2.exec(t);let n=255,r,o,i;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?ro(s):En(s*255,0,255)}return r=+e[1],o=+e[3],i=+e[5],r=255&(e[2]?ro(r):En(r,0,255)),o=255&(e[4]?ro(o):En(o,0,255)),i=255&(e[6]?ro(i):En(i,0,255)),{r,g:o,b:i,a:n}}}function A2(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ln(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Ua=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,fr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function h2(t,e,n){const r=fr(ln(t.r)),o=fr(ln(t.g)),i=fr(ln(t.b));return{r:Cn(Ua(r+n*(fr(ln(e.r))-r))),g:Cn(Ua(o+n*(fr(ln(e.g))-o))),b:Cn(Ua(i+n*(fr(ln(e.b))-i))),a:t.a+n*(e.a-t.a)}}function gi(t,e,n){if(t){let r=Na(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Ra(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function GA(t,e){return t&&Object.assign(e||{},t)}function KA(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Cn(t[3]))):(e=GA(t,{r:0,g:0,b:0,a:1}),e.a=Cn(e.a)),e}function f2(t){return t.charAt(0)==="r"?d2(t):i2(t)}class oo{constructor(e){if(e instanceof oo)return e;const n=typeof e;let r;n==="object"?r=KA(e):n==="string"&&(r=X1(e)||c2(e)||f2(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=GA(this._rgb);return e&&(e.a=ln(e.a)),e}set rgb(e){this._rgb=KA(e)}rgbString(){return this._valid?A2(this._rgb):void 0}hexString(){return this._valid?Z1(this._rgb):void 0}hslString(){return this._valid?a2(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,o=e.rgb;let i;const s=n===i?.5:n,a=2*s-1,l=r.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=s*r.a+(1-s)*o.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=h2(this._rgb,e._rgb,n)),this}clone(){return new oo(this.rgb)}alpha(e){return this._rgb.a=Cn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=no(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return gi(this._rgb,2,e),this}darken(e){return gi(this._rgb,2,-e),this}saturate(e){return gi(this._rgb,1,e),this}desaturate(e){return gi(this._rgb,1,-e),this}rotate(e){return s2(this._rgb,e),this}}function cn(){}const p2=(()=>{let t=0;return()=>t++})();function we(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function he(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function xt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Wt(t,e){return xt(t)?t:e}function fe(t,e){return typeof t>"u"?e:t}const g2=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,XA=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Ee(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function be(t,e,n,r){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(n,t[o],o);else if(he(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(n,t[s[o]],s[o])}function mi(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function bi(t){if(Fe(t))return t.map(bi);if(he(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let o=0;for(;o<r;++o)e[n[o]]=bi(t[n[o]]);return e}return t}function JA(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function m2(t,e,n,r){if(!JA(t))return;const o=e[t],i=n[t];he(o)&&he(i)?io(o,i,r):e[t]=bi(i)}function io(t,e,n){const r=Fe(e)?e:[e],o=r.length;if(!he(t))return t;n=n||{};const i=n.merger||m2;let s;for(let a=0;a<o;++a){if(s=r[a],!he(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)i(l[c],t,s,n)}return t}function so(t,e){return io(t,e,{merger:b2})}function b2(t,e,n){if(!JA(t))return;const r=e[t],o=n[t];he(r)&&he(o)?so(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=bi(o))}const ZA={"":t=>t,x:t=>t.x,y:t=>t.y};function v2(t){const e=t.split("."),n=[];let r="";for(const o of e)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function y2(t){const e=v2(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Sn(t,e){return(ZA[e]||(ZA[e]=y2(e)))(t)}function ja(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ao=t=>typeof t<"u",Pn=t=>typeof t=="function",$A=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function w2(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Qe=Math.PI,dt=2*Qe,vi=Number.POSITIVE_INFINITY,x2=Qe/180,At=Qe/2,Un=Qe/4,eh=Qe*2/3,th=Math.log10,Dn=Math.sign;function yi(t,e,n){return Math.abs(t-e)<n}function nh(t){const e=Math.round(t);t=yi(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(th(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function k2(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((o,i)=>o-i).pop(),e}function E2(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function wi(t){return!E2(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function C2(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function S2(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Yt(t){return t*(Qe/180)}function P2(t){return t*(180/Qe)}function rh(t){if(!xt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function D2(t,e){const n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Qe&&(i+=dt),{angle:i,distance:o}}function B2(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function jn(t){return(t%dt+dt)%dt}function Va(t,e,n,r){const o=jn(t),i=jn(e),s=jn(n),a=jn(i-o),l=jn(s-o),c=jn(o-i),u=jn(o-s);return o===i||o===s||r&&i===s||a>l&&c<u}function Bt(t,e,n){return Math.max(e,Math.min(n,t))}function T2(t){return Bt(t,-32768,32767)}function pr(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Ha(t,e,n){n=n||(s=>t[s]<e);let r=t.length-1,o=0,i;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Wa=(t,e,n,r)=>Ha(t,n,r?o=>{const i=t[o][e];return i<n||i===n&&t[o+1][e]===n}:o=>t[o][e]<n),I2=(t,e,n)=>Ha(t,n,r=>t[r][e]>=n);function M2(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}const oh=["push","pop","shift","splice","unshift"];function _2(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),oh.forEach(n=>{const r="_onData"+ja(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...i)}),s}})})}function ih(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);o!==-1&&r.splice(o,1),!(r.length>0)&&(oh.forEach(i=>{delete t[i]}),delete t._chartjs)}function sh(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ah=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function lh(t,e){let n=[],r=!1;return function(...o){n=o,r||(r=!0,ah.call(window,()=>{r=!1,t.apply(e,n)}))}}function O2(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Ya=t=>t==="start"?"left":t==="end"?"right":"center",He=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,L2=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,xi=t=>t===0||t===1,ch=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*dt/n)),uh=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*dt/n)+1,lo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*At)+1,easeOutSine:t=>Math.sin(t*At),easeInOutSine:t=>-.5*(Math.cos(Qe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>xi(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>xi(t)?t:ch(t,.075,.3),easeOutElastic:t=>xi(t)?t:uh(t,.075,.3),easeInOutElastic(t){return xi(t)?t:t<.5?.5*ch(t*2,.1125,.45):.5+.5*uh(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-lo.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?lo.easeInBounce(t*2)*.5:lo.easeOutBounce(t*2-1)*.5+.5};function dh(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Ah(t){return dh(t)?t:new oo(t)}function qa(t){return dh(t)?t:new oo(t).saturate(.5).darken(.1).hexString()}const F2=["x","y","borderWidth","radius","tension"],Q2=["color","borderColor","backgroundColor"];function N2(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Q2},numbers:{type:"number",properties:F2}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function z2(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const hh=new Map;function R2(t,e){e=e||{};const n=t+JSON.stringify(e);let r=hh.get(n);return r||(r=new Intl.NumberFormat(t,e),hh.set(n,r)),r}function ki(t,e,n){return R2(e,n).format(t)}const U2={values(t){return Fe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let o,i=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=j2(t,n)}const s=th(Math.abs(i)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ki(t,r,l)}};function j2(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var fh={formatters:U2};function V2(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:fh.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Vn=Object.create(null),Ga=Object.create(null);function co(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;r<o;++r){const i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function Ka(t,e,n){return typeof e=="string"?io(co(t,e),n):io(co(t,""),e)}class H2{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>qa(o.backgroundColor),this.hoverBorderColor=(r,o)=>qa(o.borderColor),this.hoverColor=(r,o)=>qa(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Ka(this,e,n)}get(e){return co(this,e)}describe(e,n){return Ka(Ga,e,n)}override(e,n){return Ka(Vn,e,n)}route(e,n,r,o){const i=co(this,e),s=co(this,r),a="_"+n;Object.defineProperties(i,{[a]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[o];return he(l)?Object.assign({},c,l):fe(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var Pe=new H2({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[N2,z2,V2]);function W2(t){return!t||we(t.size)||we(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ph(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Hn(t,e,n){const r=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function gh(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function mh(t,e,n,r){bh(t,e,n,r,null)}function bh(t,e,n,r,o){let i,s,a,l,c,u,d,A;const h=e.pointStyle,f=e.rotation,g=e.radius;let p=(f||0)*x2;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(p),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(g)||g<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,r,o/2,g,0,0,dt):t.arc(n,r,g,0,dt),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(n+Math.sin(p)*u,r-Math.cos(p)*g),p+=eh,t.lineTo(n+Math.sin(p)*u,r-Math.cos(p)*g),p+=eh,t.lineTo(n+Math.sin(p)*u,r-Math.cos(p)*g),t.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(p+Un)*l,d=Math.cos(p+Un)*(o?o/2-c:l),a=Math.sin(p+Un)*l,A=Math.sin(p+Un)*(o?o/2-c:l),t.arc(n-d,r-a,c,p-Qe,p-At),t.arc(n+A,r-s,c,p-At,p),t.arc(n+d,r+a,c,p,p+At),t.arc(n-A,r+s,c,p+At,p+Qe),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*g,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}p+=Un;case"rectRot":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+A,r-s),t.lineTo(n+d,r+a),t.lineTo(n-A,r+s),t.closePath();break;case"crossRot":p+=Un;case"cross":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s);break;case"star":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s),p+=Un,d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s);break;case"line":s=o?o/2:Math.cos(p)*g,a=Math.sin(p)*g,t.moveTo(n-s,r-a),t.lineTo(n+s,r+a);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(p)*(o?o/2:g),r+Math.sin(p)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function vh(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Xa(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ja(t){t.restore()}function Y2(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),we(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function q2(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function G2(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function uo(t,e,n,r,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,Y2(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&G2(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),we(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,r,i.maxWidth)),t.fillText(c,n,r,i.maxWidth),q2(t,n,r,c,i),r+=Number(o.lineHeight);t.restore()}function Ei(t,e){const{x:n,y:r,w:o,h:i,radius:s}=e;t.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*Qe,Qe,!0),t.lineTo(n,r+i-s.bottomLeft),t.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Qe,At,!0),t.lineTo(n+o-s.bottomRight,r+i),t.arc(n+o-s.bottomRight,r+i-s.bottomRight,s.bottomRight,At,0,!0),t.lineTo(n+o,r+s.topRight),t.arc(n+o-s.topRight,r+s.topRight,s.topRight,0,-At,!0),t.lineTo(n+s.topLeft,r)}const K2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,X2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function J2(t,e){const n=(""+t).match(K2);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Z2=t=>+t||0;function yh(t,e){const n={},r=he(e),o=r?Object.keys(e):e,i=he(t)?r?s=>fe(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)n[s]=Z2(i(s));return n}function wh(t){return yh(t,{top:"y",right:"x",bottom:"y",left:"x"})}function gr(t){return yh(t,["topLeft","topRight","bottomLeft","bottomRight"])}function kt(t){const e=wh(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function We(t,e){t=t||{},e=e||Pe.font;let n=fe(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=fe(t.style,e.style);r&&!(""+r).match(X2)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:fe(t.family,e.family),lineHeight:J2(fe(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:fe(t.weight,e.weight),string:""};return o.string=W2(o),o}function Ci(t,e,n,r){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function $2(t,e,n){const{min:r,max:o}=t,i=XA(e,(o-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(i)),max:s(o,i)}}function mr(t,e){return Object.assign(Object.create(t),e)}function Za(t,e=[""],n,r,o=()=>t[0]){const i=n||t;typeof r>"u"&&(r=Sh("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:o,override:a=>Za([a,...t],e,i,r)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return kh(a,l,()=>ak(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Ph(a).includes(l)},ownKeys(a){return Ph(a)},set(a,l,c){const u=a._storage||(a._storage=o());return a[l]=u[l]=c,delete a._keys,!0}})}function br(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:xh(t,r),setContext:i=>br(t,i,n,r),override:i=>br(t.override(i),e,n,r)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return kh(i,s,()=>tk(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function xh(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Pn(n)?n:()=>n,isIndexable:Pn(r)?r:()=>r}}const ek=(t,e)=>t?t+ja(e):e,$a=(t,e)=>he(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function kh(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function tk(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:s}=t;let a=r[e];return Pn(a)&&s.isScriptable(e)&&(a=nk(e,a,t,n)),Fe(a)&&a.length&&(a=rk(e,a,t,s.isIndexable)),$a(e,a)&&(a=br(a,o,i&&i[e],s)),a}function nk(t,e,n,r){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||r);return a.delete(t),$a(t,l)&&(l=el(o._scopes,o,t,l)),l}function rk(t,e,n,r){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=n;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(he(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=el(c,o,t,u);e.push(br(d,i,s&&s[t],a))}}return e}function Eh(t,e,n){return Pn(t)?t(e,n):t}const ok=(t,e)=>t===!0?e:typeof t=="string"?Sn(e,t):void 0;function ik(t,e,n,r,o){for(const i of e){const s=ok(n,i);if(s){t.add(s);const a=Eh(s._fallback,n,o);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function el(t,e,n,r){const o=e._rootScopes,i=Eh(e._fallback,n,r),s=[...t,...o],a=new Set;a.add(r);let l=Ch(a,s,n,i||n,r);return l===null||typeof i<"u"&&i!==n&&(l=Ch(a,s,i,l,r),l===null)?!1:Za(Array.from(a),[""],o,i,()=>sk(e,n,r))}function Ch(t,e,n,r,o){for(;n;)n=ik(t,e,n,r,o);return n}function sk(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];return Fe(o)&&he(n)?n:o||{}}function ak(t,e,n,r){let o;for(const i of e)if(o=Sh(ek(i,t),n),typeof o<"u")return $a(t,o)?el(n,r,t,o):o}function Sh(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Ph(t){let e=t._keys;return e||(e=t._keys=lk(t._scopes)),e}function lk(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(r);return Array.from(e)}function ck(t,e,n,r){const{iScale:o}=t,{key:i="r"}=this._parsing,s=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;++a)c=a+n,u=e[c],s[a]={r:o.parse(Sn(u,i),c)};return s}function tl(){return typeof window<"u"&&typeof document<"u"}function nl(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Si(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Pi=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function uk(t,e){return Pi(t).getPropertyValue(e)}const dk=["top","right","bottom","left"];function Wn(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=dk[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Ak=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function hk(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let s=!1,a,l;if(Ak(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Yn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=Pi(n),i=o.boxSizing==="border-box",s=Wn(o,"padding"),a=Wn(o,"border","width"),{x:l,y:c,box:u}=hk(t,n),d=s.left+(u&&a.left),A=s.top+(u&&a.top);let{width:h,height:f}=e;return i&&(h-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-A)/f*n.height/r)}}function fk(t,e,n){let r,o;if(e===void 0||n===void 0){const i=t&&nl(t);if(!i)e=t.clientWidth,n=t.clientHeight;else{const s=i.getBoundingClientRect(),a=Pi(i),l=Wn(a,"border","width"),c=Wn(a,"padding");e=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Si(a.maxWidth,i,"clientWidth"),o=Si(a.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:r||vi,maxHeight:o||vi}}const Bn=t=>Math.round(t*10)/10;function pk(t,e,n,r){const o=Pi(t),i=Wn(o,"margin"),s=Si(o.maxWidth,t,"clientWidth")||vi,a=Si(o.maxHeight,t,"clientHeight")||vi,l=fk(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const A=Wn(o,"border","width"),h=Wn(o,"padding");c-=h.width+A.width,u-=h.height+A.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=Bn(Math.min(c,s,l.maxWidth)),u=Bn(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Bn(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Bn(Math.floor(u*r))),{width:c,height:u}}function Dh(t,e,n){const r=e||1,o=Bn(t.height*r),i=Bn(t.width*r);t.height=Bn(t.height),t.width=Bn(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=r,s.height=o,s.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const gk=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};tl()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function Bh(t,e){const n=uk(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const mk=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},bk=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function vr(t,e,n){return t?mk(e,n):bk()}function Th(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Ih(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Di(t,e,n){return t.options.clip?t[n]:e[n]}function vk(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Di(n,e,"left"),right:Di(n,e,"right"),top:Di(r,e,"top"),bottom:Di(r,e,"bottom")}:e}function yk(t,e){const n=e._clip;if(n.disabled)return!1;const r=vk(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}class wk{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,o){const i=n.listeners[o],s=n.duration;i.forEach(a=>a({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=ah.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,r,e,"progress")),i.length||(r.running=!1,this._notify(o,r,e,"complete"),r.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var un=new wk;const Mh="transparent",xk={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Ah(t||Mh),o=r.valid&&Ah(e||Mh);return o&&o.valid?o.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class kk{constructor(e,n,r,o){const i=n[r];o=Ci([e.to,o,i,e.from]);const s=Ci([e.from,i,o]);this._active=!0,this._fn=e.fn||xk[e.type||typeof s],this._easing=lo[e.easing]||lo.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Ci([e.to,n,o,e.from]),this._from=Ci([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||n<r),!this._active){this._target[o]=a,this._notify(!0);return}if(n<0){this._target[o]=i;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let o=0;o<r.length;o++)r[o][n]()}}class _h{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!he(e))return;const n=Object.keys(Pe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!he(i))return;const s={};for(const a of n)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!r.has(a))&&r.set(a,s)})})}_animateOptions(e,n){const r=n.options,o=Ck(e,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&Ek(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,n){const r=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let d=i[c];const A=r.get(c);if(d)if(A&&d.active()){d.update(A,u,a);continue}else d.cancel();if(!A||!A.duration){e[c]=u;continue}i[c]=d=new kk(A,e,c,u),o.push(d)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return un.add(this._chart,r),!0}}function Ek(t,e){const n=[],r=Object.keys(e);for(let o=0;o<r.length;o++){const i=t[r[o]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Ck(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Oh(t,e){const n=t&&t.options||{},r=n.reverse,o=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:r?i:o,end:r?o:i}}function Sk(t,e,n){if(n===!1)return!1;const r=Oh(t,n),o=Oh(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function Pk(t){let e,n,r,o;return he(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:t===!1}}function Lh(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Fh(t,e,n,r={}){const o=t.keys,i=r.mode==="single";let s,a,l,c;if(e===null)return;let u=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===n){if(u=!0,r.all)continue;break}c=t.values[l],xt(c)&&(i||e===0||Dn(e)===Dn(c))&&(e+=c)}return!u&&!r.all?0:e}function Dk(t,e){const{iScale:n,vScale:r}=e,o=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[o]:u,[i]:t[u]};return a}function rl(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Bk(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Tk(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function Ik(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Qh(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const i=t[o.index];if(n&&i>0||!n&&i<0)return o.index}return null}function Nh(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:a}=r,l=i.axis,c=s.axis,u=Bk(i,s,r),d=e.length;let A;for(let h=0;h<d;++h){const f=e[h],{[l]:g,[c]:p}=f,y=f._stacks||(f._stacks={});A=y[c]=Ik(o,u,g),A[a]=p,A._top=Qh(A,s,!0,r.type),A._bottom=Qh(A,s,!1,r.type);const w=A._visualValues||(A._visualValues={});w[a]=p}}function ol(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Mk(t,e){return mr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function _k(t,e,n){return mr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Ao(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const il=t=>t==="reset"||t==="none",zh=(t,e)=>e?t:Object.assign({},t),Ok=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Lh(n,!0),values:null};class Bi{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=rl(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ao(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(d,A,h,f)=>d==="x"?A:d==="r"?f:h,i=n.xAxisID=fe(r.xAxisID,ol(e,"x")),s=n.yAxisID=fe(r.yAxisID,ol(e,"y")),a=n.rAxisID=fe(r.rAxisID,ol(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,i,s,a),u=n.vAxisID=o(l,s,i,a);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ih(this._data,this),e._stacked&&Ao(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(he(n)){const o=this._cachedMeta;this._data=Dk(n,o)}else if(r!==n){if(r){ih(r,this);const o=this._cachedMeta;Ao(o),o._parsed=[]}n&&Object.isExtensible(n)&&_2(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=rl(n.vScale,n),n.stack!==r.stack&&(o=!0,Ao(n),n.stack=r.stack),this._resyncElements(e),(o||i!==n._stacked)&&(Nh(this,n._parsed),n._stacked=rl(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:s}=r,a=i.axis;let l=e===0&&n===o.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,A;if(this._parsing===!1)r._parsed=o,r._sorted=!0,A=o;else{Fe(o[e])?A=this.parseArrayData(r,o,e,n):he(o[e])?A=this.parseObjectData(r,o,e,n):A=this.parsePrimitiveData(r,o,e,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+e]=d=A[u],l&&(h()&&(l=!1),c=d);r._sorted=l}s&&Nh(this,A)}parsePrimitiveData(e,n,r,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),u=i===s,d=new Array(o);let A,h,f;for(A=0,h=o;A<h;++A)f=A+r,d[A]={[a]:u||i.parse(c[f],f),[l]:s.parse(n[f],f)};return d}parseArrayData(e,n,r,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,u,d;for(l=0,c=o;l<c;++l)u=l+r,d=n[u],a[l]={x:i.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(e,n,r,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let u,d,A,h;for(u=0,d=o;u<d;++u)A=u+r,h=n[A],c[u]={x:i.parse(Sn(h,a),A),y:s.parse(Sn(h,l),A)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const o=this.chart,i=this._cachedMeta,s=n[e.axis],a={keys:Lh(o,!0),values:n._stacks[e.axis]._visualValues};return Fh(a,s,i.index,{mode:r})}updateRangeFromParsed(e,n,r,o){const i=r[n.axis];let s=i===null?NaN:i;const a=o&&r._stacks[n.axis];o&&a&&(o.values=a,s=Fh(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const r=this._cachedMeta,o=r._parsed,i=r._sorted&&e===r.iScale,s=o.length,a=this._getOtherScale(e),l=Ok(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Tk(a);let A,h;function f(){h=o[A];const g=h[a.axis];return!xt(h[e.axis])||u>g||d<g}for(A=0;A<s&&!(!f()&&(this.updateRangeFromParsed(c,e,h,l),i));++A);if(i){for(A=s-1;A>=0;--A)if(!f()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let o,i,s;for(o=0,i=n.length;o<i;++o)s=n[o][e.axis],xt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,o=n.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Pk(fe(this.options.clip,Sk(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,o=r.data||[],i=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,a,l),u=a;u<a+l;++u){const d=o[u];d.hidden||(d.active&&c?s.push(d):d.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=_k(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=Mk(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const o=n==="active",i=this._cachedDataOpts,s=e+"-"+n,a=i[s],l=this.enableOptionSharing&&ao(r);if(a)return zh(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=o?[`${e}Hover`,"hover",e,""]:[e,""],A=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Pe.elements[e]),f=()=>this.getContext(r,o,n),g=c.resolveNamedOptions(A,h,f,d);return g.$shared&&(g.$shared=l,i[s]=Object.freeze(zh(g,l))),g}_resolveAnimations(e,n,r){const o=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),A=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(A,this.getContext(e,r,n))}const c=new _h(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||il(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),o=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:s}}updateElement(e,n,r,o){il(o)?Object.assign(e,r):this._resolveAnimations(n,o).update(e,r)}updateSharedOptions(e,n,r){e&&!il(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,o){e.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=r.length,i=n.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,n,r=!0){const o=this._cachedMeta,i=o.data,s=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,n),r&&this.updateElements(i,e,n,"reset")}updateElements(e,n,r,o){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const o=r._parsed.splice(e,n);r._stacked&&Ao(r,o)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,o]=e;this[n](r,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Lk(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let o=0,i=n.length;o<i;o++)r=r.concat(n[o].controller.getAllParsedValues(t));t._cache.$bar=sh(r.sort((o,i)=>o-i))}return t._cache.$bar}function Fk(t){const e=t.iScale,n=Lk(e,t.type);let r=e._length,o,i,s,a;const l=()=>{s===32767||s===-32768||(ao(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(o=0,i=n.length;o<i;++o)s=e.getPixelForValue(n[o]),l();for(a=void 0,o=0,i=e.ticks.length;o<i;++o)s=e.getPixelForTick(o),l();return r}function Qk(t,e,n,r){const o=n.barThickness;let i,s;return we(o)?(i=e.min*n.categoryPercentage,s=n.barPercentage):(i=o*r,s=1),{chunk:i/r,ratio:s,start:e.pixels[t]-i/2}}function Nk(t,e,n,r){const o=e.pixels,i=o[t];let s=t>0?o[t-1]:null,a=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;s===null&&(s=i-(a===null?e.end-e.start:a-i)),a===null&&(a=i+i-s);const c=i-(i-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function zk(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),s=Math.min(o,i),a=Math.max(o,i);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:i,min:s,max:a}}function Rh(t,e,n,r){return Fe(t)?zk(t,e,n,r):e[n.axis]=n.parse(t,r),e}function Uh(t,e,n,r){const o=t.iScale,i=t.vScale,s=o.getLabels(),a=o===i,l=[];let c,u,d,A;for(c=n,u=n+r;c<u;++c)A=e[c],d={},d[o.axis]=a||o.parse(s[c],c),l.push(Rh(A,d,i,c));return l}function sl(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Rk(t,e,n){return t!==0?Dn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function Uk(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}function jk(t,e,n,r){let o=e.borderSkipped;const i={};if(!o){t.borderSkipped=i;return}if(o===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=Uk(t);o==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[jh(u,s,a,l)]=!0,o=c)),i[jh(o,s,a,l)]=!0,t.borderSkipped=i}function jh(t,e,n,r){return r?(t=Vk(t,e,n),t=Vh(t,n,e)):t=Vh(t,e,n),t}function Vk(t,e,n){return t===e?n:t===n?e:t}function Vh(t,e,n){return t==="start"?e:t==="end"?n:t}function Hk(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class Wk extends Bi{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,n,r,o){return Uh(e,n,r,o)}parseArrayData(e,n,r,o){return Uh(e,n,r,o)}parseObjectData(e,n,r,o){const{iScale:i,vScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=i.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let A,h,f,g;for(A=r,h=r+o;A<h;++A)g=n[A],f={},f[i.axis]=i.parse(Sn(g,c),A),d.push(Rh(Sn(g,u),f,s,A));return d}updateRangeFromParsed(e,n,r,o){super.updateRangeFromParsed(e,n,r,o);const i=r._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:o}=n,i=this.getParsed(e),s=i._custom,a=sl(s)?"["+s.start+", "+s.end+"]":""+o.getLabelForValue(i[o.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,o){const i=o==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:A}=this._getSharedOptions(n,o);for(let h=n;h<n+r;h++){const f=this.getParsed(h),g=i||we(f[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,u),y=(f._stacks||{})[a.axis],w={horizontal:c,base:g.base,enableBorderRadius:!y||sl(f._custom)||s===y._top||s===y._bottom,x:c?g.head:p.center,y:c?p.center:g.head,height:c?p.size:Math.abs(g.size),width:c?Math.abs(g.size):p.size};A&&(w.options=d||this.resolveDataElementOptions(h,e[h].active?"active":o));const v=w.options||e[h].options;jk(w,v,y,s),Hk(w,v,u.ratio),this.updateElement(e[h],h,w,o)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,o=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[r.axis],c=u=>{const d=u._parsed.find(h=>h[r.axis]===l),A=d&&d[u.vScale.axis];if(we(A)||isNaN(A))return!0};for(const u of o)if(!(n!==void 0&&c(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)e[fe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,r){const o=this._getStacks(e,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,s;for(i=0,s=n.data.length;i<s;++i)o.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const a=e.barThickness;return{min:a||Fk(n),pixels:o,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:o},options:{base:i,minBarLength:s}}=this,a=i||0,l=this.getParsed(e),c=l._custom,u=sl(c);let d=l[n.axis],A=0,h=r?this.applyStack(n,l,r):d,f,g;h!==d&&(A=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&Dn(d)!==Dn(c.barEnd)&&(A=0),A+=d);const p=!we(i)&&!u?i:A;let y=n.getPixelForValue(p);if(this.chart.getDataVisibility(e)?f=n.getPixelForValue(A+h):f=y,g=f-y,Math.abs(g)<s){g=Rk(g,n,a)*s,d===a&&(y-=g/2);const w=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),b=Math.min(w,v),E=Math.max(w,v);y=Math.max(Math.min(y,E),b),f=y+g,r&&!u&&(l._stacks[n.axis]._visualValues[o]=n.getValueForPixel(f)-n.getValueForPixel(y))}if(y===n.getPixelForValue(a)){const w=Dn(g)*n.getLineWidthForValue(a)/2;y+=w,g-=w}return{size:g,base:y,head:f,center:f+g/2}}_calculateBarIndexPixels(e,n){const r=n.scale,o=this.options,i=o.skipNull,s=fe(o.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(e):n.stackCount,d=o.barThickness==="flex"?Nk(e,n,o,u*c):Qk(e,n,o,u*c),A=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(fe(A,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+h;a=d.start+d.chunk*f+d.chunk/2,l=Math.min(s,d.chunk*d.ratio)}else a=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,o=r.length;let i=0;for(;i<o;++i)this.getParsed(i)[n.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}function Yk(t,e,n){let r=1,o=1,i=0,s=0;if(e<dt){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),A=Math.sin(l),h=(v,b,E)=>Va(v,a,l,!0)?1:Math.max(b,b*n,E,E*n),f=(v,b,E)=>Va(v,a,l,!0)?-1:Math.min(b,b*n,E,E*n),g=h(0,c,d),p=h(At,u,A),y=f(Qe,c,d),w=f(Qe+At,u,A);r=(g-y)/2,o=(p-w)/2,i=-(g+y)/2,s=-(p+w)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:s}}class qk extends Bi{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(a||d.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let i=l=>+r[l];if(he(r[e])){const{key:l="value"}=this._parsing;i=c=>+Sn(r[c],l)}let s,a;for(s=e,a=e+n;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return Yt(this.options.rotation-90)}_getCircumference(){return Yt(this.options.circumference)}_getRotationExtents(){let e=dt,n=-dt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const o=this.chart.getDatasetMeta(r).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),n=Math.max(n,i+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(g2(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:A,ratioY:h,offsetX:f,offsetY:g}=Yk(d,u,l),p=(r.width-s)/A,y=(r.height-s)/h,w=Math.max(Math.min(p,y)/2,0),v=XA(this.options.radius,w),b=Math.max(v*l,0),E=(v-b)/this._getVisibleDatasetWeightTotal();this.offsetX=f*v,this.offsetY=g*v,o.total=this.calculateTotal(),this.outerRadius=v-E*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-E*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const r=this.options,o=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/dt)}updateElements(e,n,r,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,A=i&&c.animateScale,h=A?0:this.innerRadius,f=A?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(n,o);let y=this._getRotation(),w;for(w=0;w<n;++w)y+=this._circumference(w,i);for(w=n;w<n+r;++w){const v=this._circumference(w,i),b=e[w],E={x:u+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+v,circumference:v,outerRadius:f,innerRadius:h};p&&(E.options=g||this.resolveDataElementOptions(w,b.active?"active":o)),y+=v,this.updateElement(b,w,E,o)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,o;for(o=0;o<n.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!n[o].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?dt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=ki(n._parsed[e],r.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const r=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=r.data.datasets.length;o<i;++o)if(r.isDatasetVisible(o)){s=r.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,o=e.length;r<o;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(fe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Gk extends Bi{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:o}}=e.legend.options;return n.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=ki(n._parsed[e].r,r.options.locale);return{label:o[e]||"",value:i}}parseObjectData(e,n,r,o){return ck.bind(this)(e,n,r,o)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{const i=this.getParsed(o).r;!isNaN(i)&&this.chart.getDataVisibility(o)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,o=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),a=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,r,o){const i=o==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,A=c.getIndexAngle(0)-.5*Qe;let h=A,f;const g=360/this.countVisibleElements();for(f=0;f<n;++f)h+=this._computeAngle(f,o,g);for(f=n;f<n+r;f++){const p=e[f];let y=h,w=h+this._computeAngle(f,o,g),v=s.getDataVisibility(f)?c.getDistanceFromCenterForValue(this.getParsed(f).r):0;h=w,i&&(l.animateScale&&(v=0),l.animateRotate&&(y=w=A));const b={x:u,y:d,innerRadius:0,outerRadius:v,startAngle:y,endAngle:w,options:this.resolveDataElementOptions(f,p.active?"active":o)};this.updateElement(p,f,b,o)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((r,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Yt(this.resolveDataElementOptions(e,n).angle||r):0}}function qn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class al{static override(e){Object.assign(al.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return qn()}parse(){return qn()}format(){return qn()}add(){return qn()}diff(){return qn()}startOf(){return qn()}endOf(){return qn()}}var Kk={_date:al};function Xk(t,e,n,r){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?I2:Wa;if(r){if(o._sharedOptions){const u=i[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const A=c(i,e,n-d),h=c(i,e,n+d);return{lo:A.lo,hi:h.hi}}}}else{const u=c(i,e,n);if(l){const{vScale:d}=o._cachedMeta,{_parsed:A}=t,h=A.slice(0,u.lo+1).reverse().findIndex(g=>!we(g[d.axis]));u.lo-=Math.max(0,h);const f=A.slice(u.hi).findIndex(g=>!we(g[d.axis]));u.hi+=Math.max(0,f)}return u}}return{lo:0,hi:i.length-1}}function Ti(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:u}=i[a],{lo:d,hi:A}=Xk(i[a],e,s,o);for(let h=d;h<=A;++h){const f=u[h];f.skip||r(f,c,h)}}}function Jk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,o){const i=e?Math.abs(r.x-o.x):0,s=n?Math.abs(r.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function ll(t,e,n,r,o){const i=[];return!o&&!t.isPointInArea(e)||Ti(t,n,e,function(a,l,c){!o&&!vh(a,t.chartArea,0)||a.inRange(e.x,e.y,r)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function Zk(t,e,n,r){let o=[];function i(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=D2(s,{x:e.x,y:e.y});Va(d,c,u)&&o.push({element:s,datasetIndex:a,index:l})}return Ti(t,n,e,i),o}function $k(t,e,n,r,o,i){let s=[];const a=Jk(n);let l=Number.POSITIVE_INFINITY;function c(u,d,A){const h=u.inRange(e.x,e.y,o);if(r&&!h)return;const f=u.getCenterPoint(o);if(!(!!i||t.isPointInArea(f))&&!h)return;const p=a(e,f);p<l?(s=[{element:u,datasetIndex:d,index:A}],l=p):p===l&&s.push({element:u,datasetIndex:d,index:A})}return Ti(t,n,e,c),s}function cl(t,e,n,r,o,i){return!i&&!t.isPointInArea(e)?[]:n==="r"&&!r?Zk(t,e,n,o):$k(t,e,n,r,o,i)}function Hh(t,e,n,r,o){const i=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Ti(t,n,e,(l,c,u)=>{l[s]&&l[s](e[n],o)&&(i.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,o))}),r&&!a?[]:i}var eE={modes:{index(t,e,n,r){const o=Yn(e,t),i=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?ll(t,o,i,r,s):cl(t,o,i,!1,r,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?ll(t,o,i,r,s):cl(t,o,i,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;return ll(t,o,i,r,s)},nearest(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;return cl(t,o,i,n.intersect,r,s)},x(t,e,n,r){const o=Yn(e,t);return Hh(t,o,"x",n.intersect,r)},y(t,e,n,r){const o=Yn(e,t);return Hh(t,o,"y",n.intersect,r)}}};const Wh=["left","top","right","bottom"];function ho(t,e){return t.filter(n=>n.pos===e)}function Yh(t,e){return t.filter(n=>Wh.indexOf(n.pos)===-1&&n.box.axis===e)}function fo(t,e){return t.sort((n,r)=>{const o=e?r:n,i=e?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function tE(t){const e=[];let n,r,o,i,s,a;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function nE(t){const e={};for(const n of t){const{stack:r,pos:o,stackWeight:i}=n;if(!r||!Wh.includes(o))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function rE(t,e){const n=nE(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=o):(a.width=r,a.height=u?u*o:l&&e.availableHeight)}return n}function oE(t){const e=tE(t),n=fo(e.filter(c=>c.box.fullSize),!0),r=fo(ho(e,"left"),!0),o=fo(ho(e,"right")),i=fo(ho(e,"top"),!0),s=fo(ho(e,"bottom")),a=Yh(e,"x"),l=Yh(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:ho(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function qh(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Gh(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function iE(t,e,n,r){const{pos:o,box:i}=n,s=t.maxPadding;if(!he(o)){n.size&&(t[o]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?i.height:i.width),n.size=d.size/d.count,t[o]+=n.size}i.getPadding&&Gh(s,i.getPadding());const a=Math.max(0,e.outerWidth-qh(s,t,"left","right")),l=Math.max(0,e.outerHeight-qh(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function sE(t){const e=t.maxPadding;function n(r){const o=Math.max(e[r]-t[r],0);return t[r]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function aE(t,e){const n=e.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],n[s])}),i}return r(t?["left","right"]:["top","bottom"])}function po(t,e,n,r){const o=[];let i,s,a,l,c,u;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,aE(a.horizontal,e));const{same:d,other:A}=iE(e,n,a,r);c|=d&&o.length,u=u||A,l.fullSize||o.push(a)}return c&&po(o,e,n,r)||u}function Ii(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function Kh(t,e,n,r){const o=n.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=r[a.stack]||{placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,A=c.size||l.height;ao(c.start)&&(s=c.start),l.fullSize?Ii(l,o.left,s,n.outerWidth-o.right-o.left,A):Ii(l,e.left+c.placed,s,d,A),c.start=s,c.placed+=d,s=l.bottom}else{const d=e.h*u,A=c.size||l.width;ao(c.start)&&(i=c.start),l.fullSize?Ii(l,i,o.top,A,n.outerHeight-o.bottom-o.top):Ii(l,i,e.top+c.placed,A,d),c.start=i,c.placed+=d,i=l.right}}e.x=i,e.y=s}var Et={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=kt(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(n-o.height,0),a=oE(t.boxes),l=a.vertical,c=a.horizontal;be(t.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,p)=>p.box.options&&p.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),A=Object.assign({},o);Gh(A,kt(r));const h=Object.assign({maxPadding:A,w:i,h:s,x:o.left,y:o.top},o),f=rE(l.concat(c),d);po(a.fullSize,h,d,f),po(l,h,d,f),po(c,h,d,f)&&po(l,h,d,f),sE(h),Kh(a.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,Kh(a.rightAndBottom,h,d,f),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},be(a.chartArea,g=>{const p=g.box;Object.assign(p,t.chartArea),p.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Xh{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,o){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(e){return!0}updateConfig(e){}}class lE extends Xh{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Mi="$chartjs",cE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jh=t=>t===null||t==="";function uE(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[Mi]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Jh(o)){const i=Bh(t,"width");i!==void 0&&(t.width=i)}if(Jh(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Bh(t,"height");i!==void 0&&(t.height=i)}return t}const Zh=gk?{passive:!0}:!1;function dE(t,e,n){t&&t.addEventListener(e,n,Zh)}function AE(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Zh)}function hE(t,e){const n=cE[t.type]||t.type,{x:r,y:o}=Yn(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:o!==void 0?o:null}}function _i(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function fE(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||_i(a.addedNodes,r),s=s&&!_i(a.removedNodes,r);s&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function pE(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||_i(a.removedNodes,r),s=s&&!_i(a.addedNodes,r);s&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const go=new Map;let $h=0;function ef(){const t=window.devicePixelRatio;t!==$h&&($h=t,go.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function gE(t,e){go.size||window.addEventListener("resize",ef),go.set(t,e)}function mE(t){go.delete(t),go.size||window.removeEventListener("resize",ef)}function bE(t,e,n){const r=t.canvas,o=r&&nl(r);if(!o)return;const i=lh((a,l)=>{const c=o.clientWidth;n(a,l),c<o.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return s.observe(o),gE(t,i),s}function ul(t,e,n){n&&n.disconnect(),e==="resize"&&mE(t)}function vE(t,e,n){const r=t.canvas,o=lh(i=>{t.ctx!==null&&n(hE(i,t))},t);return dE(r,e,o),o}class yE extends Xh{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(uE(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Mi])return!1;const r=n[Mi].initial;["height","width"].forEach(i=>{const s=r[i];we(s)?n.removeAttribute(i):n.setAttribute(i,s)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[Mi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const o=e.$proxies||(e.$proxies={}),s={attach:fE,detach:pE,resize:bE}[n]||vE;o[n]=s(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),o=r[n];if(!o)return;({attach:ul,detach:ul,resize:ul}[n]||AE)(e,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,o){return pk(e,n,r,o)}isAttached(e){const n=e&&nl(e);return!!(n&&n.isConnected)}}function wE(t){return!tl()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?lE:yE}let yr=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return wi(this.x)&&wi(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const o={};return e.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}};function xE(t,e){const n=t.options.ticks,r=kE(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?CE(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return SE(e,c,i,s/o),c;const u=EE(i,e,o);if(s>0){let d,A;const h=s>1?Math.round((l-a)/(s-1)):null;for(Oi(e,c,u,we(h)?0:a-h,a),d=0,A=s-1;d<A;d++)Oi(e,c,u,i[d],i[d+1]);return Oi(e,c,u,l,we(h)?e.length:l+h),c}return Oi(e,c,u),c}function kE(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}function EE(t,e,n){const r=PE(t),o=e.length/n;if(!r)return Math.max(o,1);const i=k2(r);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function CE(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function SE(t,e,n,r){let o=0,i=n[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=n[o*r])}function Oi(t,e,n,r,o){const i=fe(r,0),s=Math.min(fe(o,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),o&&(l=o-r,n=l/Math.floor(l/n)),u=i;u<0;)a++,u=Math.round(i+a*n);for(c=Math.max(i,0);c<s;c++)c===u&&(e.push(t[c]),a++,u=Math.round(i+a*n))}function PE(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const DE=t=>t==="left"?"right":t==="right"?"left":t,tf=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,nf=(t,e)=>Math.min(e||t,t);function rf(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function BE(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(n&&(r===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function TE(t,e){be(t,n=>{const r=n.gc,o=r.length/2;let i;if(o>e){for(i=0;i<o;++i)delete n.data[r[i]];r.splice(0,o)}})}function mo(t){return t.drawTicks?t.tickLength:0}function of(t,e){if(!t.display)return 0;const n=We(t.font,e),r=kt(t.padding);return(Fe(t.text)?t.text.length:1)*n.lineHeight+r.height}function IE(t,e){return mr(t,{scale:e,type:"scale"})}function ME(t,e,n){return mr(t,{tick:n,index:e,type:"tick"})}function _E(t,e,n){let r=Ya(t);return(n&&e!=="right"||!n&&e==="right")&&(r=DE(r)),r}function OE(t,e,n,r){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,A,h,f;const g=s-o,p=a-i;if(t.isHorizontal()){if(h=He(r,i,a),he(n)){const y=Object.keys(n)[0],w=n[y];f=u[y].getPixelForValue(w)+g-e}else n==="center"?f=(c.bottom+c.top)/2+g-e:f=tf(t,n,e);A=a-i}else{if(he(n)){const y=Object.keys(n)[0],w=n[y];h=u[y].getPixelForValue(w)-p+e}else n==="center"?h=(c.left+c.right)/2-p+e:h=tf(t,n,e);f=He(r,s,o),d=n==="left"?-At:At}return{titleX:h,titleY:f,maxWidth:A,rotation:d}}class wr extends yr{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:o}=this;return e=Wt(e,Number.POSITIVE_INFINITY),n=Wt(n,Number.NEGATIVE_INFINITY),r=Wt(r,Number.POSITIVE_INFINITY),o=Wt(o,Number.NEGATIVE_INFINITY),{min:Wt(e,r),max:Wt(n,o),minDefined:xt(e),maxDefined:xt(n)}}getMinMax(e){let{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(n=Math.min(n,s.min)),i||(r=Math.max(r,s.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:Wt(n,Wt(r,n)),max:Wt(r,Wt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ee(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=$2(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?rf(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=xE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ee(this.options.afterUpdate,[this])}beforeSetDimensions(){Ee(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ee(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ee(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ee(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r],i.label=Ee(n.callback,[i.value,r,e],this)}afterTickToLabelConversion(){Ee(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ee(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=nf(this.ticks.length,e.ticks.maxTicksLimit),o=n.minRotation||0,i=n.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!n.display||o>=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const u=this._getLabelSizes(),d=u.widest.width,A=u.highest.height,h=Bt(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:h/(r-1),d+6>a&&(a=h/(r-(e.offset?.5:1)),l=this.maxHeight-mo(e.grid)-n.padding-of(e.title,this.chart.options.font),c=Math.sqrt(d*d+A*A),s=P2(Math.min(Math.asin(Bt((u.highest.height+6)/a,-1,1)),Math.asin(Bt(l/c,-1,1))-Math.asin(Bt(A/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ee(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ee(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=of(o,n.options.font);if(a?(e.width=this.maxWidth,e.height=mo(i)+l):(e.height=this.maxHeight,e.width=mo(i)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:A}=this._getLabelSizes(),h=r.padding*2,f=Yt(this.labelRotation),g=Math.cos(f),p=Math.sin(f);if(a){const y=r.mirror?0:p*d.width+g*A.height;e.height=Math.min(this.maxHeight,e.height+y+h)}else{const y=r.mirror?0:g*d.width+p*A.height;e.width=Math.min(this.maxWidth,e.width+y+h)}this._calculatePadding(c,u,p,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let A=0,h=0;l?c?(A=o*e.width,h=r*n.height):(A=r*e.height,h=o*n.width):i==="start"?h=n.width:i==="end"?A=e.width:i!=="inner"&&(A=e.width/2,h=n.width/2),this.paddingLeft=Math.max((A-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;i==="start"?(u=0,d=e.height):i==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ee(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)we(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=rf(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(n/nf(n,r));let c=0,u=0,d,A,h,f,g,p,y,w,v,b,E;for(d=0;d<n;d+=l){if(f=e[d].label,g=this._resolveTickFontOptions(d),o.font=p=g.string,y=i[p]=i[p]||{data:{},gc:[]},w=g.lineHeight,v=b=0,!we(f)&&!Fe(f))v=ph(o,y.data,y.gc,v,f),b=w;else if(Fe(f))for(A=0,h=f.length;A<h;++A)E=f[A],!we(E)&&!Fe(E)&&(v=ph(o,y.data,y.gc,v,E),b+=w);s.push(v),a.push(b),c=Math.max(v,c),u=Math.max(b,u)}TE(i,n);const k=s.indexOf(c),P=a.indexOf(u),D=I=>({width:s[I]||0,height:a[I]||0});return{first:D(0),last:D(n-1),widest:D(k),highest:D(P),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return T2(this._alignToPixels?Hn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=ME(this.getContext(),e,r))}return this.$context||(this.$context=IE(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Yt(this.labelRotation),r=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*r>a*o?a/r:l/o:l*o<a*r?l/r:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),A=mo(i),h=[],f=a.setContext(this.getContext()),g=f.display?f.width:0,p=g/2,y=function(R){return Hn(r,R,g)};let w,v,b,E,k,P,D,I,T,M,B,_;if(s==="top")w=y(this.bottom),P=this.bottom-A,I=w-p,M=y(e.top)+p,_=e.bottom;else if(s==="bottom")w=y(this.top),M=e.top,_=y(e.bottom)-p,P=w+p,I=this.top+A;else if(s==="left")w=y(this.right),k=this.right-A,D=w-p,T=y(e.left)+p,B=e.right;else if(s==="right")w=y(this.left),T=e.left,B=y(e.right)-p,k=w+p,D=this.left+A;else if(n==="x"){if(s==="center")w=y((e.top+e.bottom)/2+.5);else if(he(s)){const R=Object.keys(s)[0],Q=s[R];w=y(this.chart.scales[R].getPixelForValue(Q))}M=e.top,_=e.bottom,P=w+p,I=P+A}else if(n==="y"){if(s==="center")w=y((e.left+e.right)/2);else if(he(s)){const R=Object.keys(s)[0],Q=s[R];w=y(this.chart.scales[R].getPixelForValue(Q))}k=w-p,D=k-A,T=e.left,B=e.right}const N=fe(o.ticks.maxTicksLimit,d),O=Math.max(1,Math.ceil(d/N));for(v=0;v<d;v+=O){const R=this.getContext(v),Q=i.setContext(R),U=a.setContext(R),C=Q.lineWidth,G=Q.color,S=U.dash||[],X=U.dashOffset,V=Q.tickWidth,j=Q.tickColor,W=Q.tickBorderDash||[],K=Q.tickBorderDashOffset;b=BE(this,v,l),b!==void 0&&(E=Hn(r,b,C),c?k=D=T=B=E:P=I=M=_=E,h.push({tx1:k,ty1:P,tx2:D,ty2:I,x1:T,y1:M,x2:B,y2:_,width:C,color:G,borderDash:S,borderDashOffset:X,tickWidth:V,tickColor:j,tickBorderDash:W,tickBorderDashOffset:K}))}return this._ticksLength=d,this._borderValue=w,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:o,ticks:i}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=i,A=mo(r.grid),h=A+u,f=d?-u:h,g=-Yt(this.labelRotation),p=[];let y,w,v,b,E,k,P,D,I,T,M,B,_="middle";if(o==="top")k=this.bottom-f,P=this._getXAxisLabelAlignment();else if(o==="bottom")k=this.top+f,P=this._getXAxisLabelAlignment();else if(o==="left"){const O=this._getYAxisLabelAlignment(A);P=O.textAlign,E=O.x}else if(o==="right"){const O=this._getYAxisLabelAlignment(A);P=O.textAlign,E=O.x}else if(n==="x"){if(o==="center")k=(e.top+e.bottom)/2+h;else if(he(o)){const O=Object.keys(o)[0],R=o[O];k=this.chart.scales[O].getPixelForValue(R)+h}P=this._getXAxisLabelAlignment()}else if(n==="y"){if(o==="center")E=(e.left+e.right)/2-h;else if(he(o)){const O=Object.keys(o)[0],R=o[O];E=this.chart.scales[O].getPixelForValue(R)}P=this._getYAxisLabelAlignment(A).textAlign}n==="y"&&(l==="start"?_="top":l==="end"&&(_="bottom"));const N=this._getLabelSizes();for(y=0,w=a.length;y<w;++y){v=a[y],b=v.label;const O=i.setContext(this.getContext(y));D=this.getPixelForTick(y)+i.labelOffset,I=this._resolveTickFontOptions(y),T=I.lineHeight,M=Fe(b)?b.length:1;const R=M/2,Q=O.color,U=O.textStrokeColor,C=O.textStrokeWidth;let G=P;s?(E=D,P==="inner"&&(y===w-1?G=this.options.reverse?"left":"right":y===0?G=this.options.reverse?"right":"left":G="center"),o==="top"?c==="near"||g!==0?B=-M*T+T/2:c==="center"?B=-N.highest.height/2-R*T+T:B=-N.highest.height+T/2:c==="near"||g!==0?B=T/2:c==="center"?B=N.highest.height/2-R*T:B=N.highest.height-M*T,d&&(B*=-1),g!==0&&!O.showLabelBackdrop&&(E+=T/2*Math.sin(g))):(k=D,B=(1-M)*T/2);let S;if(O.showLabelBackdrop){const X=kt(O.backdropPadding),V=N.heights[y],j=N.widths[y];let W=B-X.top,K=0-X.left;switch(_){case"middle":W-=V/2;break;case"bottom":W-=V;break}switch(P){case"center":K-=j/2;break;case"right":K-=j;break;case"inner":y===w-1?K-=j:y>0&&(K-=j/2);break}S={left:K,top:W,width:j+X.width,height:V+X.height,color:O.backdropColor}}p.push({label:b,font:I,textOffset:B,options:{rotation:g,color:Q,strokeColor:U,strokeWidth:C,textAlign:G,textBaseline:_,translation:[E,k],backdrop:S}})}return p}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Yt(this.labelRotation))return e==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,u;return n==="left"?o?(u=this.right+i,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?o?(u=this.left+i,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:o,width:i,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,o,i,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,s=o.length;i<s;++i){const l=o[i];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:o}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,A;this.isHorizontal()?(c=Hn(e,this.left,s)-s/2,u=Hn(e,this.right,a)+a/2,d=A=l):(d=Hn(e,this.top,s)-s/2,A=Hn(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,A),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,o=this._computeLabelArea();o&&Xa(r,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,u=s.textOffset;uo(r,c,0,u,l,a)}o&&Ja(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:o}}=this;if(!r.display)return;const i=We(r.font),s=kt(r.padding),a=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||he(n)?(l+=s.bottom,Fe(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:A}=OE(this,l,n,a);uo(e,r.text,0,0,i,{color:r.color,maxWidth:d,rotation:A,textAlign:_E(a,n,o),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=fe(e.grid&&e.grid.z,-1),o=fe(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==wr.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,s;for(i=0,s=n.length;i<s;++i){const a=n[i];a[r]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return We(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Li{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;QE(n)&&(r=this.register(n));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,LE(e,s,r),this.override&&Pe.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,o=this.scope;r in n&&delete n[r],o&&r in Pe[o]&&(delete Pe[o][r],this.override&&delete Vn[r])}}function LE(t,e,n){const r=io(Object.create(null),[n?Pe.get(n):{},Pe.get(e),t.defaults]);Pe.set(e,r),t.defaultRoutes&&FE(e,t.defaultRoutes),t.descriptors&&Pe.describe(e,t.descriptors)}function FE(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Pe.route(i,o,l,a)})}function QE(t){return"id"in t&&"defaults"in t}class NE{constructor(){this.controllers=new Li(Bi,"datasets",!0),this.elements=new Li(yr,"elements"),this.plugins=new Li(Object,"plugins"),this.scales=new Li(wr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):be(o,s=>{const a=r||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,r){const o=ja(e);Ee(r["before"+o],[],r),n[e](r),Ee(r["after"+o],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const o=n.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return o}}var qt=new NE;class zE{constructor(){this._init=void 0}notify(e,n,r,o){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,n,r);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),s}_notify(e,n,r,o){o=o||{};for(const i of e){const s=i.plugin,a=s[r],l=[n,o,i.options];if(Ee(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){we(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,o=fe(r.options&&r.options.plugins,{}),i=RE(r);return o===!1&&!n?[]:jE(e,i,o,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(n,r),e,"stop"),this._notify(o(r,n),e,"start")}}function RE(t){const e={},n=[],r=Object.keys(qt.plugins.items);for(let i=0;i<r.length;i++)n.push(qt.getPlugin(r[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function UE(t,e){return!e&&t===!1?null:t===!0?{}:t}function jE(t,{plugins:e,localIds:n},r,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=UE(r[l],o);c!==null&&i.push({plugin:a,options:VE(t.config,{plugin:a,local:n[l]},c,s)})}return i}function VE(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(r,i);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dl(t,e){const n=Pe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function HE(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function WE(t,e){return t===e?"_index_":"_value_"}function sf(t){if(t==="x"||t==="y"||t==="r")return t}function YE(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Al(t,...e){if(sf(t))return t;for(const n of e){const r=n.axis||YE(n.position)||t.length>1&&sf(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function af(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function qE(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return af(t,"x",n[0])||af(t,"y",n[0])}return{}}function GE(t,e){const n=Vn[t.type]||{scales:{}},r=e.scales||{},o=dl(t.type,e),i=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!he(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Al(s,a,qE(s,t),Pe.scales[a.type]),c=WE(l,o),u=n.scales||{};i[s]=so(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||dl(a,e),u=(Vn[a]||{}).scales||{};Object.keys(u).forEach(d=>{const A=HE(d,l),h=s[A+"AxisID"]||A;i[h]=i[h]||Object.create(null),so(i[h],[{axis:A},r[h],u[d]])})}),Object.keys(i).forEach(s=>{const a=i[s];so(a,[Pe.scales[a.type],Pe.scale])}),i}function lf(t){const e=t.options||(t.options={});e.plugins=fe(e.plugins,{}),e.scales=GE(t,e)}function cf(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function KE(t){return t=t||{},t.data=cf(t.data),lf(t),t}const uf=new Map,df=new Set;function Fi(t,e){let n=uf.get(t);return n||(n=e(),uf.set(t,n),df.add(n)),n}const bo=(t,e,n)=>{const r=Sn(e,n);r!==void 0&&t.add(r)};let XE=class{constructor(e){this._config=KE(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cf(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),lf(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Fi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Fi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Fi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Fi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let o=r.get(e);return(!o||n)&&(o=new Map,r.set(e,o)),o}getOptionScopes(e,n,r){const{options:o,type:i}=this,s=this._cachedScopes(e,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>bo(l,e,d))),u.forEach(d=>bo(l,o,d)),u.forEach(d=>bo(l,Vn[i]||{},d)),u.forEach(d=>bo(l,Pe,d)),u.forEach(d=>bo(l,Ga,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),df.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Vn[n]||{},Pe.datasets[n]||{},{type:n},Pe,Ga]}resolveNamedOptions(e,n,r,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Af(this._resolverCache,e,o);let l=s;if(ZE(s,n)){i.$shared=!1,r=Pn(r)?r():r;const c=this.createResolver(e,r,a);l=br(s,r,c)}for(const c of n)i[c]=l[c];return i}createResolver(e,n,r=[""],o){const{resolver:i}=Af(this._resolverCache,e,r);return he(n)?br(i,n,void 0,o):i}};function Af(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);return i||(i={resolver:Za(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(o,i)),i}const JE=t=>he(t)&&Object.getOwnPropertyNames(t).some(e=>Pn(t[e]));function ZE(t,e){const{isScriptable:n,isIndexable:r}=xh(t);for(const o of e){const i=n(o),s=r(o),a=(s||i)&&t[o];if(i&&(Pn(a)||JE(a))||s&&Fe(a))return!0}return!1}var $E="4.5.1";const eC=["top","bottom","left","right","chartArea"];function hf(t,e){return t==="top"||t==="bottom"||eC.indexOf(t)===-1&&e==="x"}function ff(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function pf(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ee(n&&n.onComplete,[t],e)}function tC(t){const e=t.chart,n=e.options.animation;Ee(n&&n.onProgress,[t],e)}function gf(t){return tl()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Qi={},mf=t=>{const e=gf(t);return Object.values(Qi).filter(n=>n.canvas===e).pop()};function nC(t,e,n){const r=Object.keys(t);for(const o of r){const i=+o;if(i>=e){const s=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=s)}}}function rC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let hl=class{static defaults=Pe;static instances=Qi;static overrides=Vn;static registry=qt;static version=$E;static getChart=mf;static register(...e){qt.add(...e),bf()}static unregister(...e){qt.remove(...e),bf()}constructor(e,n){const r=this.config=new XE(n),o=gf(e),i=mf(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||wE(o)),this.platform.updateConfig(r);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=p2(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=O2(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Qi[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}un.listen(this,"complete",pf),un.listen(this,"progress",tC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return we(e)?n&&i?i:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dh(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return gh(this.canvas,this.ctx),this}stop(){return un.stop(this),this}resize(e,n){un.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,n,i),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Dh(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ee(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};be(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,o=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const a=n[s],l=Al(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),be(i,s=>{const a=s.options,l=a.id,c=Al(l,a),u=fe(a.type,s.dtype);(a.position===void 0||hf(a.position,c)!==hf(s.dposition))&&(a.position=s.dposition),o[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const A=qt.getScale(u);d=new A({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,e)}),be(o,(s,a)=>{s||delete r[a]}),be(r,s=>{Et.configure(this,s,s.options),Et.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((o,i)=>o.index-i.index),r>n){for(let o=n;o<r;++o)this._destroyDatasetMeta(o);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(ff("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r<o;r++){const i=n[r];let s=this.getDatasetMeta(r);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=i.indexAxis||dl(a,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=qt.getController(a),{datasetElementType:c,dataElementType:u}=Pe.datasets[a];Object.assign(l,{dataElementType:qt.getElement(u),datasetElementType:c&&qt.getElement(c)}),s.controller=new l(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){be(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),A=!o&&i.indexOf(d)===-1;d.buildOrUpdateElements(A),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),o||be(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ff("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){be(this.scales,e=>{Et.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!$A(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const s=r==="_removeElements"?-i:i;nC(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=r(0);for(let i=1;i<n;i++)if(!$A(o,r(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Et.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],be(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Pn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),o={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(r.controller._update(n),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(un.has(this)?this.attached&&!un.running(this)&&un.start(this):(this.draw(),pf({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let o,i;for(o=0,i=n.length;o<i;++o){const s=n[o];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=yk(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Xa(n,o),e.controller.draw(),o&&Ja(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return vh(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,o){const i=eE.modes[n];return typeof i=="function"?i(this,e,r,o):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=mr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);ao(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(i,{visible:r}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),un.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),gh(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(i,s)=>{n.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};be(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){be(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},be(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const o=r?"set":"remove";let i,s,a,l;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!mi(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const o=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=i(n,e),a=r?e:i(e,n);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:o=[],options:i}=this,s=n,a=this._getActiveElements(e,o,r,s),l=w2(e),c=rC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Ee(i.onHover,[e,a,this],this),l&&Ee(i.onClick,[e,a,this],this));const u=!mi(a,o);return(u||n)&&(this._active=a,this._updateHoverStyles(a,o,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,o){if(e.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}};function bf(){return be(hl.instances,t=>t._plugins.invalidate())}function vf(t,e){const{x:n,y:r,base:o,width:i,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,a=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:a,top:c,right:l,bottom:u}}function Tn(t,e,n,r){return t?0:Bt(e,n,r)}function oC(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=wh(r);return{t:Tn(o.top,i.top,0,n),r:Tn(o.right,i.right,0,e),b:Tn(o.bottom,i.bottom,0,n),l:Tn(o.left,i.left,0,e)}}function iC(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=gr(o),s=Math.min(e,n),a=t.borderSkipped,l=r||he(o);return{topLeft:Tn(!l||a.top||a.left,i.topLeft,0,s),topRight:Tn(!l||a.top||a.right,i.topRight,0,s),bottomLeft:Tn(!l||a.bottom||a.left,i.bottomLeft,0,s),bottomRight:Tn(!l||a.bottom||a.right,i.bottomRight,0,s)}}function sC(t){const e=vf(t),n=e.right-e.left,r=e.bottom-e.top,o=oC(t,n/2,r/2),i=iC(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function fl(t,e,n,r){const o=e===null,i=n===null,a=t&&!(o&&i)&&vf(t,r);return a&&(o||pr(e,a.left,a.right))&&(i||pr(n,a.top,a.bottom))}function aC(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function lC(t,e){t.rect(e.x,e.y,e.w,e.h)}function pl(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+s,radius:t.radius}}class cC extends yr{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:s}=sC(this),a=aC(s.radius)?Ei:lC;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),a(e,pl(s,n,i)),e.clip(),a(e,pl(i,-n,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,pl(i,n)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,n,r){return fl(this,e,n,r)}inXRange(e,n){return fl(this,e,null,n)}inYRange(e,n){return fl(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}const gl=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yf=gl.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function wf(t){return gl[t%gl.length]}function xf(t){return yf[t%yf.length]}function uC(t,e){return t.borderColor=wf(e),t.backgroundColor=xf(e),++e}function dC(t,e){return t.backgroundColor=t.data.map(()=>wf(e++)),e}function AC(t,e){return t.backgroundColor=t.data.map(()=>xf(e++)),e}function hC(t){let e=0;return(n,r)=>{const o=t.getDatasetMeta(r).controller;o instanceof qk?e=dC(n,e):o instanceof Gk?e=AC(n,e):o&&(e=uC(n,e))}}function kf(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function fC(t){return t&&(t.borderColor||t.backgroundColor)}function pC(){return Pe.borderColor!=="rgba(0,0,0,0.1)"||Pe.backgroundColor!=="rgba(0,0,0,0.1)"}var gC={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=t.config,{elements:i}=o,s=kf(r)||fC(o)||i&&kf(i)||pC();if(!n.forceOverride&&s)return;const a=hC(t);r.forEach(a)}};const Ef=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},mC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Cf extends yr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ee(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,o)=>e.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,o=We(r.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Ef(r,i);let c,u;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,i,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let d=e;i.textAlign="left",i.textBaseline="middle";let A=-1,h=-u;return this.legendItems.forEach((f,g)=>{const p=r+n/2+i.measureText(f.text).width;(g===0||c[c.length-1]+p+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,h+=u,A++),l[g]={left:0,top:h,row:A,width:p,height:o},c[c.length-1]+=p+a}),d}_fitCols(e,n,r,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,A=0,h=0,f=0,g=0;return this.legendItems.forEach((p,y)=>{const{itemWidth:w,itemHeight:v}=bC(r,n,i,p,o);y>0&&h+v+2*a>u&&(d+=A+a,c.push({width:A,height:h}),f+=A+a,g++,A=h=0),l[y]={left:f,top:h,col:g,width:w,height:v},A=Math.max(A,w),h+=v+a}),d+=A,c.push({width:A,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,s=vr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=He(r,this.left+o,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=He(r,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=He(r,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=He(r,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Xa(e,this),this._draw(),Ja(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:s}=e,a=Pe.color,l=vr(e.rtl,this.left,this.width),c=We(s.font),{padding:u}=s,d=c.size,A=d/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:f,boxHeight:g,itemHeight:p}=Ef(s,d),y=function(k,P,D){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;o.save();const I=fe(D.lineWidth,1);if(o.fillStyle=fe(D.fillStyle,a),o.lineCap=fe(D.lineCap,"butt"),o.lineDashOffset=fe(D.lineDashOffset,0),o.lineJoin=fe(D.lineJoin,"miter"),o.lineWidth=I,o.strokeStyle=fe(D.strokeStyle,a),o.setLineDash(fe(D.lineDash,[])),s.usePointStyle){const T={radius:g*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:I},M=l.xPlus(k,f/2),B=P+A;bh(o,T,M,B,s.pointStyleWidth&&f)}else{const T=P+Math.max((d-g)/2,0),M=l.leftForLtr(k,f),B=gr(D.borderRadius);o.beginPath(),Object.values(B).some(_=>_!==0)?Ei(o,{x:M,y:T,w:f,h:g,radius:B}):o.rect(M,T,f,g),o.fill(),I!==0&&o.stroke()}o.restore()},w=function(k,P,D){uo(o,D.text,k,P+p/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},v=this.isHorizontal(),b=this._computeTitleHeight();v?h={x:He(i,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:He(i,this.top+b+u,this.bottom-n[0].height),line:0},Th(this.ctx,e.textDirection);const E=p+u;this.legendItems.forEach((k,P)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const D=o.measureText(k.text).width,I=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),T=f+A+D;let M=h.x,B=h.y;l.setWidth(this.width),v?P>0&&M+T+u>this.right&&(B=h.y+=E,h.line++,M=h.x=He(i,this.left+u,this.right-r[h.line])):P>0&&B+E>this.bottom&&(M=h.x=M+n[h.line].width+u,h.line++,B=h.y=He(i,this.top+b+u,this.bottom-n[h.line].height));const _=l.x(M);if(y(_,B,k),M=L2(I,M+f+A,v?M+T:this.right,e.rtl),w(l.x(M),B,k),v)h.x+=T+u;else if(typeof k.text!="string"){const N=c.lineHeight;h.y+=Sf(k,N)+u}else h.y+=E}),Ih(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=We(n.font),o=kt(n.padding);if(!n.display)return;const i=vr(e.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=o.top+l;let u,d=this.left,A=this.width;if(this.isHorizontal())A=Math.max(...this.lineWidths),u=this.top+c,d=He(e.align,d,this.right-A);else{const f=this.columnSizes.reduce((g,p)=>Math.max(g,p.height),0);u=c+He(e.align,this.top,this.bottom-f-e.labels.padding-this._computeTitleHeight())}const h=He(a,d,d+A);s.textAlign=i.textAlign(Ya(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,uo(s,n.text,h,u,r)}_computeTitleHeight(){const e=this.options.title,n=We(e.font),r=kt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,o,i;if(pr(e,this.left,this.right)&&pr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(o=i[r],pr(e,o.left,o.left+o.width)&&pr(n,o.top,o.top+o.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!wC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=mC(o,r);o&&!i&&Ee(n.onLeave,[e,o,this],this),this._hoveredItem=r,r&&!i&&Ee(n.onHover,[e,r,this],this)}else r&&Ee(n.onClick,[e,r,this],this)}}function bC(t,e,n,r,o){const i=vC(r,t,e,n),s=yC(o,r,e.lineHeight);return{itemWidth:i,itemHeight:s}}function vC(t,e,n,r){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+n.size/2+r.measureText(o).width}function yC(t,e,n){let r=t;return typeof e.text!="string"&&(r=Sf(e,n)),r}function Sf(t,e){const n=t.text?t.text.length:0;return e*n}function wC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var xC={id:"legend",_element:Cf,start(t,e,n){const r=t.legend=new Cf({ctx:t.ctx,options:n,chart:t});Et.configure(t,r,n),Et.addBox(t,r)},stop(t){Et.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Et.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=kt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Pf extends yr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const o=Fe(r.text)?r.text.length:1;this._padding=kt(r.padding);const i=o*We(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:o,right:i,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=He(a,r,i),d=n+e,c=i-r):(s.position==="left"?(u=r+e,d=He(a,o,n),l=Qe*-.5):(u=i-e,d=He(a,n,o),l=Qe*.5),c=o-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=We(n.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(i);uo(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Ya(n.align),textBaseline:"middle",translation:[s,a]})}}function kC(t,e){const n=new Pf({ctx:t.ctx,options:e,chart:t});Et.configure(t,n,e),Et.addBox(t,n),t.titleBlock=n}var EC={id:"title",_element:Pf,start(t,e,n){kC(t,n)},stop(t){const e=t.titleBlock;Et.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Et.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vo={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),o+=l.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((a,l)=>a+l)/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=B2(e,c);u<o&&(o=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Gt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function dn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
279
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var a=o.reduce(function(l,c){var u=c&&qx(c,r);return u&&l.push(u),l},[]);return Zr(t)?a[0]:a}eo.defaultProps=ut,eo.setDefaultProps=Vx,eo.currentInput=Ht,Object.assign({},Kd,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),eo.setDefaultProps({render:IA});function Gx({color:t="var(--contrast-6)",icon:e="info-circle-fill",tooltip:n}){const r=x.useRef(null);return x.useLayoutEffect(()=>{r.current&&eo(r.current,{content:n,theme:"access",appendTo:r.current.parentElement})},[r.current]),m.jsx("button",{className:"info-tip",style:{color:t},ref:r,children:m.jsx(Ae,{name:e})})}function Kx({infoGroupId:t}){const e=Ke(`https://support.access-ci.org/api/1.0/kb/${t}`);if(!(!e||e.error||!e.length))return m.jsx(Ut,{title:"Documentation",icon:"book",children:m.jsx("ul",{children:e.map(({title:n,description:r,link:o})=>m.jsxs("li",{children:[m.jsx("a",{href:Rl(o),children:n}),r?m.jsx(Gx,{tooltip:Ji(r)}):null]},n))})})}function Xx({children:t,icon:e="megaphone-fill"}){return m.jsxs("div",{className:"alert",children:[e?m.jsx(Ae,{name:e}):null,m.jsx("div",{className:"alert-body",children:t})]})}function Jx({children:t}){const[e,n]=x.useState(!1);return m.jsxs("div",{className:`expand-text ${e?"expanded":"contracted"}`,children:[t,m.jsxs("button",{className:"expand-button",onClick:()=>n(!e),children:[m.jsx(Ae,{name:`caret-${e?"up":"left"}-fill`}),e?"Less":"More"]})]})}function Zx({date__end:t,date__start:e,description:n,location:r,registration:o,speaker:i,title:s}){const a=o,l=a?m.jsx("a",{href:a,children:s}):s,c=[];let u=null;const d=e,A=t;if(d){const h=new Date(d),f=new Date(A||d),[g,p]=[h,f].map(k=>k.toLocaleString("en-US",{dateStyle:"long"})),[v,w]=[h,f].map(k=>k.toLocaleString("en-US",{timeStyle:"short"})),y=h.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ")[2],b=[`${g},`,v];(w!=v||p!=g)&&(b.push("-"),p!=g&&b.push(`${p},`),b.push(w)),b.push(`(${y})`),c.push(m.jsx(Ae,{name:"calendar"}),b.join(" ")),i&&c.push(m.jsx(Ae,{name:"people-fill"}),i),r&&c.push(m.jsx(Ae,{name:"geo-alt-fill"}),r);const E=h.toLocaleString("en-US",{dateStyle:"medium"}).split(",")[0].split(" ").map(k=>m.jsx("span",{children:k},k));u=a?m.jsx("a",{href:a,className:"event-icon",children:E}):m.jsx("div",{className:"event-icon",children:E})}return m.jsxs("div",{className:"event",children:[u,m.jsxs("div",{className:"event-details",children:[m.jsx("h3",{children:l}),c.length?m.jsx("div",{className:"event-metadata",children:c}):null,n?m.jsx(Jx,{children:m.jsx("div",{children:Zi(n)})}):null]})]})}function $x({infoGroupId:t}){const e=Cr(t),n=Ke("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/current_outages/"),r=Ke("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/future_outages/"),o=Ke(`https://support.access-ci.org/api/1.1/events/ag/${t}`),i=Xi([e,n,r],(a,l,c)=>[...l.results,...c.results].filter(u=>u.AffectedResources.some(d=>a.infoResourceIds.includes(d.ResourceID))),[]),s=Xi([o],a=>a.filter(l=>new Date(l.date__start)>=new Date),[]);if(!(!i.length&&!s.length))return m.jsxs(Ut,{title:"Announcements and Events",icon:"calendar3",children:[i.map(({Subject:a,Content:l})=>m.jsxs(Xx,{children:[a," ",m.jsx("a",{href:"https://operations.access-ci.org/infrastructure_news_view",children:"Learn more."})]},a)),s.map(a=>m.jsx(Zx,{...a},a.title))]})}function e1({children:t,headingLevel:e=2,title:n}){const[r,o]=x.useState(!1),i=`h${e}`;return m.jsxs("div",{className:"accordion",children:[m.jsx(i,{className:"accordion-heading",children:m.jsxs("button",{"aria-expanded":r,onClick:()=>o(!r),children:[n,m.jsx(Ae,{name:r?"caret-up-fill":"caret-down-fill"})]})}),m.jsx("div",{className:"accordion-content",style:{display:r?"block":"none"},children:t})]})}function t1({resource_descriptive_name:t,resource_description:e,compute:n,storage:r}){const o=(n||r||{}).recommended_use;return m.jsxs(e1,{title:t,children:[e?Zi(e):null,o?m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Recommended Use"}),Zi(o)]}):null]})}function n1({infoGroupId:t}){const e=Cr(t),n=Ke(e?e.infoResourceIds.map(l=>`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${l}/?format=json`):null,{defaultValue:[]}),r=n.filter(l=>l.results&&l.results.cider_type=="Compute").map(l=>({...l.results.compute,key:l.results.info_resourceid,name:l.results.resource_descriptive_name,format:(c,u)=>{const d=l.results.compute[u.attr];return u.format&&d?u.format(d,u):d||m.jsx(m.Fragment,{children:"—"})}})),o=n.length?[{name:"Nodes",attr:"node_count",format:l=>l.toLocaleString("en-us")},{name:"CPU Type",attr:"cpu_type"},{name:"CPU Speed",attr:"cpu_speed_ghz",format:l=>`${l} Ghz`},{name:"CPU Cores per Node",attr:"cpu_count_per_node"},{name:"RAM per CPU Core",attr:"memory_per_cpu_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"GPU",attr:"gpu_description"},{name:"Local Storage per Node",attr:"local_storage_per_node_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"Network Interconnect",attr:"interconnect"},{name:"Operating System",attr:"operating_system"},{name:"Batch System",attr:"batch_system"}].filter(l=>r.some(c=>c[l.attr])):[],i={key:"name",name:"Attribute",format:l=>m.jsx("strong",{children:l})},s=r.length>0&&o.length>0,a={compute:[],storage:[],other:[]};for(let{results:l}of n)(a[l.cider_type.toLowerCase()]||a.other).push(m.jsx(t1,{...l},l.resource_descriptive_name));return m.jsxs(m.Fragment,{children:[s||a.compute.length>0?m.jsxs(Ut,{title:"Compute Resources",icon:"cpu-fill",children:[a.compute,s&&m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:"Specifications"}),m.jsx($o,{columns:[i,...r],rows:o,maxHeight:null})]})]}):null,a.storage.length>0?m.jsx(Ut,{title:"Storage Resources",icon:"hdd-fill",children:a.storage}):null,a.other.length>0?m.jsx(Ut,{title:"Other Resources",icon:"stars",children:a.other}):null]})}function MA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function _A(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MA(Object(n),!0).forEach(function(r){o1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function si(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?si=function(e){return typeof e}:si=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}function ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function li(t,e,n){return e&&r1(t.prototype,e),t}function o1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ma(t,e)}function hr(t){return hr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hr(t)}function Ma(t,e){return Ma=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Ma(t,e)}function s1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l1(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a1(t)}function c1(t){var e=s1();return function(){var r=hr(t),o;if(e){var i=hr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return l1(this,o)}}function u1(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=hr(t),t!==null););return t}function ci(){return typeof Reflect<"u"&&Reflect.get?ci=Reflect.get:ci=function(e,n,r){var o=u1(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}},ci.apply(this,arguments)}var d1={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function kn(t){console.error("[Glide warn]: ".concat(t))}function Dt(t){return parseInt(t)}function _a(t){return typeof t=="string"}function to(t){var e=si(t);return e==="function"||e==="object"&&!!t}function ui(t){return typeof t=="function"}function A1(t){return typeof t>"u"}function Oa(t){return t.constructor===Array}function h1(t,e,n){var r={};for(var o in e)ui(e[o])?r[o]=e[o](t,r,n):kn("Extension must be a function");for(var i in r)ui(r[i].mount)&&r[i].mount();return r}function Te(t,e,n){Object.defineProperty(t,e,n)}function OA(t,e){var n=Object.assign({},t,e);if(e.hasOwnProperty("classes")){n.classes=Object.assign({},t.classes,e.classes);var r=["direction","type","slide","arrow","nav"];r.forEach(function(o){e.classes.hasOwnProperty(o)&&(n.classes[o]=_A(_A({},t.classes[o]),e.classes[o]))})}return e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var f1=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(this,t),this.events=e,this.hop=e.hasOwnProperty}return li(t,[{key:"on",value:function(n,r){if(Oa(n)){for(var o=0;o<n.length;o++)this.on(n[o],r);return}this.hop.call(this.events,n)||(this.events[n]=[]);var i=this.events[n].push(r)-1;return{remove:function(){delete this.events[n][i]}}}},{key:"emit",value:function(n,r){if(Oa(n)){for(var o=0;o<n.length;o++)this.emit(n[o],r);return}this.hop.call(this.events,n)&&this.events[n].forEach(function(i){i(r||{})})}}]),t})(),p1=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ai(this,t),this._c={},this._t=[],this._e=new f1,this.disabled=!1,this.selector=e,this.settings=OA(d1,n),this.index=this.settings.startAt}return li(t,[{key:"mount",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._e.emit("mount.before"),to(n)?this._c=h1(this,n,this._e):kn("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Oa(n)?this._t=n:kn("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.settings=OA(this.settings,n),n.hasOwnProperty("startAt")&&(this.index=n.startAt),this._e.emit("update"),this}},{key:"go",value:function(n){return this._c.Run.make(n),this}},{key:"move",value:function(n){return this._c.Transition.disable(),this._c.Move.make(n),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n&&(this.settings.autoplay=n),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(n,r){return this._e.on(n,r),this}},{key:"isType",value:function(n){return this.settings.type===n}},{key:"settings",get:function(){return this._o},set:function(n){to(n)?this._o=n:kn("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(n){this._i=Dt(n)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(n){this._d=!!n}}]),t})();function g1(t,e,n){var r={mount:function(){this._o=!1},make:function(c){var u=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=c,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after(function(){u.isStart()&&n.emit("run.start",u.move),u.isEnd()&&n.emit("run.end",u.move),u.isOffset()&&(u._o=!1,n.emit("run.offset",u.move)),n.emit("run.after",u.move),t.enable()}))},calculate:function(){var c=this.move,u=this.length,d=c.steps,A=c.direction,h=1;if(A==="="){if(t.settings.bound&&Dt(d)>u){t.index=u;return}t.index=d;return}if(A===">"&&d===">"){t.index=u;return}if(A==="<"&&d==="<"){t.index=0;return}if(A==="|"&&(h=t.settings.perView||1),A===">"||A==="|"&&d===">"){var f=o(h);f>u&&(this._o=!0),t.index=i(f,h);return}if(A==="<"||A==="|"&&d==="<"){var g=s(h);g<0&&(this._o=!0),t.index=a(g,h);return}kn("Invalid direction pattern [".concat(A).concat(d,"] has been used"))},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return c?this._o?c==="|>"?this.move.direction==="|"&&this.move.steps===">":c==="|<"?this.move.direction==="|"&&this.move.steps==="<":this.move.direction===c:!1:this._o},isBound:function(){return t.isType("slider")&&t.settings.focusAt!=="center"&&t.settings.bound}};function o(l){var c=t.index;return t.isType("carousel")?c+l:c+(l-c%l)}function i(l,c){var u=r.length;return l<=u?l:t.isType("carousel")?l-(u+1):t.settings.rewind?r.isBound()&&!r.isEnd()?u:0:r.isBound()?u:Math.floor(u/c)*c}function s(l){var c=t.index;if(t.isType("carousel"))return c-l;var u=Math.ceil(c/l);return(u-1)*l}function a(l,c){var u=r.length;return l>=0?l:t.isType("carousel")?l+(u+1):t.settings.rewind?r.isBound()&&r.isStart()?u:Math.floor(u/c)*c:0}return Te(r,"move",{get:function(){return this._m},set:function(c){var u=c.substr(1);this._m={direction:c.substr(0,1),steps:u?Dt(u)?Dt(u):u:0}}}),Te(r,"length",{get:function(){var c=t.settings,u=e.Html.slides.length;return this.isBound()?u-1-(Dt(c.perView)-1)+Dt(c.focusAt):u-1}}),Te(r,"offset",{get:function(){return this._o}}),r}function LA(){return new Date().getTime()}function FA(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,i,s,a=0,l=function(){a=n.leading===!1?0:LA(),r=null,s=t.apply(o,i),r||(o=i=null)},c=function(){var d=LA();!a&&n.leading===!1&&(a=d);var A=e-(d-a);return o=this,i=arguments,A<=0||A>e?(r&&(clearTimeout(r),r=null),a=d,s=t.apply(o,i),r||(o=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,A)),s};return c.cancel=function(){clearTimeout(r),a=0,r=o=i=null},c}var di={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function m1(t,e,n){var r={apply:function(i){for(var s=0,a=i.length;s<a;s++){var l=i[s].style,c=e.Direction.value;s!==0?l[di[c][0]]="".concat(this.value/2,"px"):l[di[c][0]]="",s!==i.length-1?l[di[c][1]]="".concat(this.value/2,"px"):l[di[c][1]]=""}},remove:function(i){for(var s=0,a=i.length;s<a;s++){var l=i[s].style;l.marginLeft="",l.marginRight=""}}};return Te(r,"value",{get:function(){return Dt(t.settings.gap)}}),Te(r,"grow",{get:function(){return r.value*e.Sizes.length}}),Te(r,"reductor",{get:function(){var i=t.settings.perView;return r.value*(i-1)/i}}),n.on(["build.after","update"],FA(function(){r.apply(e.Html.wrapper.children)},30)),n.on("destroy",function(){r.remove(e.Html.wrapper.children)}),r}function QA(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}return[]}function La(t){return Array.prototype.slice.call(t)}var b1='[data-glide-el="track"]';function v1(t,e,n){var r={mount:function(){this.root=t.selector,this.track=this.root.querySelector(b1),this.collectSlides()},collectSlides:function(){this.slides=La(this.wrapper.children).filter(function(i){return!i.classList.contains(t.settings.classes.slide.clone)})}};return Te(r,"root",{get:function(){return r._r},set:function(i){_a(i)&&(i=document.querySelector(i)),i!==null?r._r=i:kn("Root element must be a existing Html node")}}),Te(r,"track",{get:function(){return r._t},set:function(i){r._t=i}}),Te(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",function(){r.collectSlides()}),r}function y1(t,e,n){var r={mount:function(){this.value=t.settings.peek}};return Te(r,"value",{get:function(){return r._v},set:function(i){to(i)?(i.before=Dt(i.before),i.after=Dt(i.after)):i=Dt(i),r._v=i}}),Te(r,"reductor",{get:function(){var i=r.value,s=t.settings.perView;return to(i)?i.before/s+i.after/s:i*2/s}}),n.on(["resize","update"],function(){r.mount()}),r}function w1(t,e,n){var r={mount:function(){this._o=0},make:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.offset=s,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:i.value})})}};return Te(r,"offset",{get:function(){return r._o},set:function(i){r._o=A1(i)?0:Dt(i)}}),Te(r,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),Te(r,"value",{get:function(){var i=this.offset,s=this.translate;return e.Direction.is("rtl")?s+i:s-i}}),n.on(["build.before","run"],function(){r.make()}),r}function x1(t,e,n){var r={setupSlides:function(){for(var i="".concat(this.slideWidth,"px"),s=e.Html.slides,a=0;a<s.length;a++)s[a].style.width=i},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var i=e.Html.slides,s=0;s<i.length;s++)i[s].style.width="";e.Html.wrapper.style.width=""}};return Te(r,"length",{get:function(){return e.Html.slides.length}}),Te(r,"width",{get:function(){return e.Html.track.offsetWidth}}),Te(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+e.Gaps.grow+e.Clones.grow}}),Te(r,"slideWidth",{get:function(){return r.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){r.setupSlides(),r.setupWrapper()}),n.on("destroy",function(){r.remove()}),r}function k1(t,e,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var i=t.settings.classes,s=e.Html.slides[t.index];s&&(s.classList.add(i.slide.active),QA(s).forEach(function(a){a.classList.remove(i.slide.active)}))},removeClasses:function(){var i=t.settings.classes,s=i.type,a=i.slide;e.Html.root.classList.remove(s[t.settings.type]),e.Html.slides.forEach(function(l){l.classList.remove(a.active)})}};return n.on(["destroy","update"],function(){r.removeClasses()}),n.on(["resize","update"],function(){r.mount()}),n.on("move.after",function(){r.activeClass()}),r}function E1(t,e,n){var r={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=e.Html.slides,a=t.settings,l=a.perView,c=a.classes,u=a.cloningRatio;if(s.length>0)for(var d=+!!t.settings.peek,A=l+d+Math.round(l/2),h=s.slice(0,A).reverse(),f=s.slice(A*-1),g=0;g<Math.max(u,Math.floor(l/s.length));g++){for(var p=0;p<h.length;p++){var v=h[p].cloneNode(!0);v.classList.add(c.slide.clone),i.push(v)}for(var w=0;w<f.length;w++){var y=f[w].cloneNode(!0);y.classList.add(c.slide.clone),i.unshift(y)}}return i},append:function(){for(var i=this.items,s=e.Html,a=s.wrapper,l=s.slides,c=Math.floor(i.length/2),u=i.slice(0,c).reverse(),d=i.slice(c*-1).reverse(),A="".concat(e.Sizes.slideWidth,"px"),h=0;h<d.length;h++)a.appendChild(d[h]);for(var f=0;f<u.length;f++)a.insertBefore(u[f],l[0]);for(var g=0;g<i.length;g++)i[g].style.width=A},remove:function(){for(var i=this.items,s=0;s<i.length;s++)e.Html.wrapper.removeChild(i[s])}};return Te(r,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*r.items.length}}),n.on("update",function(){r.remove(),r.mount(),r.append()}),n.on("build.before",function(){t.isType("carousel")&&r.append()}),n.on("destroy",function(){r.remove()}),r}var NA=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(this,t),this.listeners=e}return li(t,[{key:"on",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;_a(n)&&(n=[n]);for(var s=0;s<n.length;s++)this.listeners[n[s]]=o,r.addEventListener(n[s],this.listeners[n[s]],i)}},{key:"off",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_a(n)&&(n=[n]);for(var i=0;i<n.length;i++)r.removeEventListener(n[i],this.listeners[n[i]],o)}},{key:"destroy",value:function(){delete this.listeners}}]),t})();function C1(t,e,n){var r=new NA,o={mount:function(){this.bind()},bind:function(){r.on("resize",window,FA(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",function(){o.unbind(),r.destroy()}),o}var S1=["ltr","rtl"],P1={">":"<","<":">","=":"="};function D1(t,e,n){var r={mount:function(){this.value=t.settings.direction},resolve:function(i){var s=i.slice(0,1);return this.is("rtl")?i.split(s).join(P1[s]):i},is:function(i){return this.value===i},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return Te(r,"value",{get:function(){return r._v},set:function(i){S1.indexOf(i)>-1?r._v=i:kn("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){r.removeClass()}),n.on("update",function(){r.mount()}),n.on(["build.before","update"],function(){r.addClass()}),r}function B1(t,e){return{modify:function(r){return e.Direction.is("rtl")?-r:r}}}function T1(t,e){return{modify:function(r){var o=Math.floor(r/e.Sizes.slideWidth);return r+e.Gaps.value*o}}}function I1(t,e){return{modify:function(r){return r+e.Clones.grow/2}}}function M1(t,e){return{modify:function(r){if(t.settings.focusAt>=0){var o=e.Peek.value;return to(o)?r-o.before:r-o}return r}}}function _1(t,e){return{modify:function(r){var o=e.Gaps.value,i=e.Sizes.width,s=t.settings.focusAt,a=e.Sizes.slideWidth;return s==="center"?r-(i/2-a/2):r-a*s-o*s}}}function O1(t,e,n){var r=[T1,I1,M1,_1].concat(t._t,[B1]);return{mutate:function(i){for(var s=0;s<r.length;s++){var a=r[s];ui(a)&&ui(a().modify)?i=a(t,e,n).modify(i):kn("Transformer should be a function that returns an object with `modify()` method")}return i}}}function L1(t,e,n){var r={set:function(i){var s=O1(t,e).mutate(i),a="translate3d(".concat(-1*s,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=a,e.Html.wrapper.style.webkitTransform=a,e.Html.wrapper.style.transform=a},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,s=t.index,a=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(s-a):(s+a)%i},getTravelDistance:function(){var i=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i*-1:i}};return n.on("move",function(o){if(!t.isType("carousel")||!e.Run.isOffset())return r.set(o.movement);e.Transition.after(function(){n.emit("translate.jump"),r.set(e.Sizes.slideWidth*t.index)});var i=e.Sizes.slideWidth*e.Translate.getStartIndex();return r.set(i-e.Translate.getTravelDistance())}),n.on("destroy",function(){r.remove()}),r}function F1(t,e,n){var r=!1,o={compose:function(s){var a=t.settings;return r?"".concat(s," 0ms ").concat(a.animationTimingFunc):"".concat(s," ").concat(this.duration,"ms ").concat(a.animationTimingFunc)},set:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(s)},remove:function(){e.Html.wrapper.style.transition=""},after:function(s){setTimeout(function(){s()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return Te(o,"duration",{get:function(){var s=t.settings;return t.isType("slider")&&e.Run.offset?s.rewindDuration:s.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o}var zA=!1;try{var RA=Object.defineProperty({},"passive",{get:function(){zA=!0}});window.addEventListener("testPassive",null,RA),window.removeEventListener("testPassive",null,RA)}catch{}var UA=zA,Q1='[data-glide-el="controls[nav]"]',Fa='[data-glide-el^="controls"]',N1="".concat(Fa,' [data-glide-dir*="<"]'),z1="".concat(Fa,' [data-glide-dir*=">"]');function R1(t,e,n){var r=new NA,o=UA?{passive:!0}:!1,i={mount:function(){this._n=e.Html.root.querySelectorAll(Q1),this._c=e.Html.root.querySelectorAll(Fa),this._arrowControls={previous:e.Html.root.querySelectorAll(N1),next:e.Html.root.querySelectorAll(z1)},this.addBindings()},setActive:function(){for(var a=0;a<this._n.length;a++)this.addClass(this._n[a].children)},removeActive:function(){for(var a=0;a<this._n.length;a++)this.removeClass(this._n[a].children)},addClass:function(a){var l=t.settings,c=a[t.index];c&&(c.classList.add(l.classes.nav.active),QA(c).forEach(function(u){u.classList.remove(l.classes.nav.active)}))},removeClass:function(a){var l=a[t.index];l?.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var a=i._arrowControls.next,l=i._arrowControls.previous;this.resetArrowState(a,l),t.index===0&&this.disableArrow(l),t.index===e.Run.length&&this.disableArrow(a)}},resetArrowState:function(){for(var a=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(d){La(d).forEach(function(A){A.classList.remove(a.classes.arrow.disabled)})})},disableArrow:function(){for(var a=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(d){La(d).forEach(function(A){A.classList.add(a.classes.arrow.disabled)})})},addBindings:function(){for(var a=0;a<this._c.length;a++)this.bind(this._c[a].children)},removeBindings:function(){for(var a=0;a<this._c.length;a++)this.unbind(this._c[a].children)},bind:function(a){for(var l=0;l<a.length;l++)r.on("click",a[l],this.click),r.on("touchstart",a[l],this.click,o)},unbind:function(a){for(var l=0;l<a.length;l++)r.off(["click","touchstart"],a[l])},click:function(a){!UA&&a.type==="touchstart"&&a.preventDefault();var l=a.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(l))}};return Te(i,"items",{get:function(){return i._c}}),n.on(["mount.after","move.after"],function(){i.setActive()}),n.on(["mount.after","run"],function(){i.setArrowState()}),n.on("destroy",function(){i.removeBindings(),i.removeActive(),r.destroy()}),i}var U1={Html:v1,Translate:L1,Transition:F1,Direction:D1,Peek:y1,Sizes:x1,Gaps:m1,Move:w1,Clones:E1,Resize:C1,Build:k1,Run:g1},j1=(function(t){i1(n,t);var e=c1(n);function n(){return ai(this,n),e.apply(this,arguments)}return li(n,[{key:"mount",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ci(hr(n.prototype),"mount",this).call(this,Object.assign({},U1,o))}}]),n})(p1);function Ai({children:t,cssClass:e=""}){const n=x.useRef(null);return x.useEffect(()=>{n.current&&new j1(n.current).mount({Controls:R1})},[]),m.jsx("section",{className:`carousel ${e}`,children:m.jsxs("div",{className:"glide",ref:n,children:[m.jsx("div",{className:"glide__track","data-glide-el":"track",children:m.jsx("ul",{className:"glide__slides",children:t})}),m.jsxs("div",{className:"glide__arrows","data-glide-el":"controls",children:[m.jsx("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M0 12l10.975 11 2.848-2.828-6.176-6.176H24v-3.992H7.646l6.176-6.176L10.975 1 0 12z"})})}),m.jsx("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z"})})})]})]})})}function jA({children:t}){return m.jsx("li",{className:"glide__slide",children:t})}function V1({title:t,description:e,linkText:n,linkURI:r,imageURI:o,imageAltText:i}){return m.jsx(jA,{children:m.jsxs("span",{className:"slide-inner",children:[o&&m.jsx("a",{href:r,className:"slide-image",children:m.jsx("img",{src:o,alt:i})}),m.jsxs("span",{className:"slide-text",children:[t&&m.jsx("h2",{children:t}),e&&m.jsx("p",{children:e}),n&&m.jsx("a",{href:r,children:n})]})]})})}Ai.Slide=jA,Ai.ImageSlide=V1;function H1({children:t,maxHeight:e="400px"}){return m.jsx("div",{className:"scroll-text",children:m.jsx("div",{className:"scroll-text-inner",style:{maxHeight:e},children:t})})}const W1="https://allocations.access-ci.org/current-projects.json";function hi({icon:t,text:e,title:n}){if(e)return m.jsxs("abbr",{className:"project-meta",title:n,children:[m.jsx(Ae,{name:t}),e]})}function Y1({infoGroupId:t}){const e=Cr(t),n=Ke(e?`${W1}?${e.infoResourceIds.map(o=>`info_resourceids[]=${o}`).join("&")}`:null);if(!n||!n.projects||!n.projects.length)return null;const r=[{key:"resourceName",name:"Resource"},{key:"allocation",name:"Current Allocation",format:(o,i)=>i.units=="[Yes = 1, No = 0]"?o==1?"Yes":"No":`${o.toLocaleString("en-us")} ${i.units||""}`}];return m.jsx(Ut,{title:"Recent Projects",icon:"pc-display",children:m.jsx(Ai,{cssclassName:"carousel-projects",children:n.projects.map(o=>m.jsxs(Ai.Slide,{children:[m.jsx("h3",{children:o.requestTitle}),m.jsxs("div",{className:"project-metadata",children:[m.jsx(hi,{icon:"cash-coin",text:o.allocationType,title:"Allocation Type"}),m.jsx(hi,{icon:"person-fill",text:`${o.pi} (${o.piInstitution})`,title:"Primary Investigator"}),m.jsx(hi,{icon:"folder",text:o.fos,title:"Field of Science"}),m.jsx(hi,{icon:"calendar-range",text:[o.beginDate,o.endDate].map(i=>new Date(i).toLocaleString("en-US",{dateStyle:"medium"})).join(" to "),title:"Project Dates"})]}),m.jsxs(H1,{children:[m.jsx("p",{children:o.abstract}),m.jsx($o,{columns:r,rows:o.resources,maxHeight:null})]})]},o.requestTitle))})})}function no(t){return t+.5|0}const En=(t,e,n)=>Math.max(Math.min(t,n),e);function ro(t){return En(no(t*2.55),0,255)}function Cn(t){return En(no(t*255),0,255)}function ln(t){return En(no(t/2.55)/100,0,1)}function VA(t){return En(no(t*100),0,100)}const wt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Qa=[..."0123456789ABCDEF"],q1=t=>Qa[t&15],G1=t=>Qa[(t&240)>>4]+Qa[t&15],fi=t=>(t&240)>>4===(t&15),K1=t=>fi(t.r)&&fi(t.g)&&fi(t.b)&&fi(t.a);function X1(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&wt[t[1]]*17,g:255&wt[t[2]]*17,b:255&wt[t[3]]*17,a:e===5?wt[t[4]]*17:255}:(e===7||e===9)&&(n={r:wt[t[1]]<<4|wt[t[2]],g:wt[t[3]]<<4|wt[t[4]],b:wt[t[5]]<<4|wt[t[6]],a:e===9?wt[t[7]]<<4|wt[t[8]]:255})),n}const J1=(t,e)=>t<255?e(t):"";function Z1(t){var e=K1(t)?q1:G1;return t?"#"+e(t.r)+e(t.g)+e(t.b)+J1(t.a,e):void 0}const $1=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function HA(t,e,n){const r=e*Math.min(n,1-n),o=(i,s=(i+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function e2(t,e,n){const r=(o,i=(o+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function t2(t,e,n){const r=HA(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function n2(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}function Na(t){const n=t.r/255,r=t.g/255,o=t.b/255,i=Math.max(n,r,o),s=Math.min(n,r,o),a=(i+s)/2;let l,c,u;return i!==s&&(u=i-s,c=a>.5?u/(2-i-s):u/(i+s),l=n2(n,r,o,u,i),l=l*60+.5),[l|0,c||0,a]}function za(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Cn)}function Ra(t,e,n){return za(HA,t,e,n)}function r2(t,e,n){return za(t2,t,e,n)}function o2(t,e,n){return za(e2,t,e,n)}function WA(t){return(t%360+360)%360}function i2(t){const e=$1.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ro(+e[5]):Cn(+e[5]));const o=WA(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=r2(o,i,s):e[1]==="hsv"?r=o2(o,i,s):r=Ra(o,i,s),{r:r[0],g:r[1],b:r[2],a:n}}function s2(t,e){var n=Na(t);n[0]=WA(n[0]+e),n=Ra(n),t.r=n[0],t.g=n[1],t.b=n[2]}function a2(t){if(!t)return;const e=Na(t),n=e[0],r=VA(e[1]),o=VA(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${ln(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const YA={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},qA={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function l2(){const t={},e=Object.keys(qA),n=Object.keys(YA);let r,o,i,s,a;for(r=0;r<e.length;r++){for(s=a=e[r],o=0;o<n.length;o++)i=n[o],a=a.replace(i,YA[i]);i=parseInt(qA[s],16),t[a]=[i>>16&255,i>>8&255,i&255]}return t}let pi;function c2(t){pi||(pi=l2(),pi.transparent=[0,0,0,0]);const e=pi[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const u2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function d2(t){const e=u2.exec(t);let n=255,r,o,i;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?ro(s):En(s*255,0,255)}return r=+e[1],o=+e[3],i=+e[5],r=255&(e[2]?ro(r):En(r,0,255)),o=255&(e[4]?ro(o):En(o,0,255)),i=255&(e[6]?ro(i):En(i,0,255)),{r,g:o,b:i,a:n}}}function A2(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ln(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Ua=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,fr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function h2(t,e,n){const r=fr(ln(t.r)),o=fr(ln(t.g)),i=fr(ln(t.b));return{r:Cn(Ua(r+n*(fr(ln(e.r))-r))),g:Cn(Ua(o+n*(fr(ln(e.g))-o))),b:Cn(Ua(i+n*(fr(ln(e.b))-i))),a:t.a+n*(e.a-t.a)}}function gi(t,e,n){if(t){let r=Na(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Ra(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function GA(t,e){return t&&Object.assign(e||{},t)}function KA(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Cn(t[3]))):(e=GA(t,{r:0,g:0,b:0,a:1}),e.a=Cn(e.a)),e}function f2(t){return t.charAt(0)==="r"?d2(t):i2(t)}class oo{constructor(e){if(e instanceof oo)return e;const n=typeof e;let r;n==="object"?r=KA(e):n==="string"&&(r=X1(e)||c2(e)||f2(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=GA(this._rgb);return e&&(e.a=ln(e.a)),e}set rgb(e){this._rgb=KA(e)}rgbString(){return this._valid?A2(this._rgb):void 0}hexString(){return this._valid?Z1(this._rgb):void 0}hslString(){return this._valid?a2(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,o=e.rgb;let i;const s=n===i?.5:n,a=2*s-1,l=r.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=s*r.a+(1-s)*o.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=h2(this._rgb,e._rgb,n)),this}clone(){return new oo(this.rgb)}alpha(e){return this._rgb.a=Cn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=no(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return gi(this._rgb,2,e),this}darken(e){return gi(this._rgb,2,-e),this}saturate(e){return gi(this._rgb,1,e),this}desaturate(e){return gi(this._rgb,1,-e),this}rotate(e){return s2(this._rgb,e),this}}function cn(){}const p2=(()=>{let t=0;return()=>t++})();function we(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function he(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function xt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Wt(t,e){return xt(t)?t:e}function fe(t,e){return typeof t>"u"?e:t}const g2=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,XA=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Ee(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function be(t,e,n,r){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(n,t[o],o);else if(he(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(n,t[s[o]],s[o])}function mi(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function bi(t){if(Fe(t))return t.map(bi);if(he(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let o=0;for(;o<r;++o)e[n[o]]=bi(t[n[o]]);return e}return t}function JA(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function m2(t,e,n,r){if(!JA(t))return;const o=e[t],i=n[t];he(o)&&he(i)?io(o,i,r):e[t]=bi(i)}function io(t,e,n){const r=Fe(e)?e:[e],o=r.length;if(!he(t))return t;n=n||{};const i=n.merger||m2;let s;for(let a=0;a<o;++a){if(s=r[a],!he(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)i(l[c],t,s,n)}return t}function so(t,e){return io(t,e,{merger:b2})}function b2(t,e,n){if(!JA(t))return;const r=e[t],o=n[t];he(r)&&he(o)?so(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=bi(o))}const ZA={"":t=>t,x:t=>t.x,y:t=>t.y};function v2(t){const e=t.split("."),n=[];let r="";for(const o of e)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function y2(t){const e=v2(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Sn(t,e){return(ZA[e]||(ZA[e]=y2(e)))(t)}function ja(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ao=t=>typeof t<"u",Pn=t=>typeof t=="function",$A=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function w2(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Qe=Math.PI,dt=2*Qe,vi=Number.POSITIVE_INFINITY,x2=Qe/180,At=Qe/2,Un=Qe/4,eh=Qe*2/3,th=Math.log10,Dn=Math.sign;function yi(t,e,n){return Math.abs(t-e)<n}function nh(t){const e=Math.round(t);t=yi(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(th(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function k2(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((o,i)=>o-i).pop(),e}function E2(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function wi(t){return!E2(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function C2(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function S2(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Yt(t){return t*(Qe/180)}function P2(t){return t*(180/Qe)}function rh(t){if(!xt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function D2(t,e){const n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Qe&&(i+=dt),{angle:i,distance:o}}function B2(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function jn(t){return(t%dt+dt)%dt}function Va(t,e,n,r){const o=jn(t),i=jn(e),s=jn(n),a=jn(i-o),l=jn(s-o),c=jn(o-i),u=jn(o-s);return o===i||o===s||r&&i===s||a>l&&c<u}function Bt(t,e,n){return Math.max(e,Math.min(n,t))}function T2(t){return Bt(t,-32768,32767)}function pr(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Ha(t,e,n){n=n||(s=>t[s]<e);let r=t.length-1,o=0,i;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Wa=(t,e,n,r)=>Ha(t,n,r?o=>{const i=t[o][e];return i<n||i===n&&t[o+1][e]===n}:o=>t[o][e]<n),I2=(t,e,n)=>Ha(t,n,r=>t[r][e]>=n);function M2(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}const oh=["push","pop","shift","splice","unshift"];function _2(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),oh.forEach(n=>{const r="_onData"+ja(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...i)}),s}})})}function ih(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);o!==-1&&r.splice(o,1),!(r.length>0)&&(oh.forEach(i=>{delete t[i]}),delete t._chartjs)}function sh(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ah=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function lh(t,e){let n=[],r=!1;return function(...o){n=o,r||(r=!0,ah.call(window,()=>{r=!1,t.apply(e,n)}))}}function O2(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Ya=t=>t==="start"?"left":t==="end"?"right":"center",He=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,L2=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,xi=t=>t===0||t===1,ch=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*dt/n)),uh=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*dt/n)+1,lo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*At)+1,easeOutSine:t=>Math.sin(t*At),easeInOutSine:t=>-.5*(Math.cos(Qe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>xi(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>xi(t)?t:ch(t,.075,.3),easeOutElastic:t=>xi(t)?t:uh(t,.075,.3),easeInOutElastic(t){return xi(t)?t:t<.5?.5*ch(t*2,.1125,.45):.5+.5*uh(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-lo.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?lo.easeInBounce(t*2)*.5:lo.easeOutBounce(t*2-1)*.5+.5};function dh(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Ah(t){return dh(t)?t:new oo(t)}function qa(t){return dh(t)?t:new oo(t).saturate(.5).darken(.1).hexString()}const F2=["x","y","borderWidth","radius","tension"],Q2=["color","borderColor","backgroundColor"];function N2(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Q2},numbers:{type:"number",properties:F2}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function z2(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const hh=new Map;function R2(t,e){e=e||{};const n=t+JSON.stringify(e);let r=hh.get(n);return r||(r=new Intl.NumberFormat(t,e),hh.set(n,r)),r}function ki(t,e,n){return R2(e,n).format(t)}const U2={values(t){return Fe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let o,i=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=j2(t,n)}const s=th(Math.abs(i)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ki(t,r,l)}};function j2(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var fh={formatters:U2};function V2(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:fh.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Vn=Object.create(null),Ga=Object.create(null);function co(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;r<o;++r){const i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function Ka(t,e,n){return typeof e=="string"?io(co(t,e),n):io(co(t,""),e)}class H2{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>qa(o.backgroundColor),this.hoverBorderColor=(r,o)=>qa(o.borderColor),this.hoverColor=(r,o)=>qa(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Ka(this,e,n)}get(e){return co(this,e)}describe(e,n){return Ka(Ga,e,n)}override(e,n){return Ka(Vn,e,n)}route(e,n,r,o){const i=co(this,e),s=co(this,r),a="_"+n;Object.defineProperties(i,{[a]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[o];return he(l)?Object.assign({},c,l):fe(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var Pe=new H2({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[N2,z2,V2]);function W2(t){return!t||we(t.size)||we(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ph(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Hn(t,e,n){const r=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function gh(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function mh(t,e,n,r){bh(t,e,n,r,null)}function bh(t,e,n,r,o){let i,s,a,l,c,u,d,A;const h=e.pointStyle,f=e.rotation,g=e.radius;let p=(f||0)*x2;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(p),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(g)||g<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,r,o/2,g,0,0,dt):t.arc(n,r,g,0,dt),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(n+Math.sin(p)*u,r-Math.cos(p)*g),p+=eh,t.lineTo(n+Math.sin(p)*u,r-Math.cos(p)*g),p+=eh,t.lineTo(n+Math.sin(p)*u,r-Math.cos(p)*g),t.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(p+Un)*l,d=Math.cos(p+Un)*(o?o/2-c:l),a=Math.sin(p+Un)*l,A=Math.sin(p+Un)*(o?o/2-c:l),t.arc(n-d,r-a,c,p-Qe,p-At),t.arc(n+A,r-s,c,p-At,p),t.arc(n+d,r+a,c,p,p+At),t.arc(n-A,r+s,c,p+At,p+Qe),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*g,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}p+=Un;case"rectRot":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+A,r-s),t.lineTo(n+d,r+a),t.lineTo(n-A,r+s),t.closePath();break;case"crossRot":p+=Un;case"cross":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s);break;case"star":d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s),p+=Un,d=Math.cos(p)*(o?o/2:g),s=Math.cos(p)*g,a=Math.sin(p)*g,A=Math.sin(p)*(o?o/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+A,r-s),t.lineTo(n-A,r+s);break;case"line":s=o?o/2:Math.cos(p)*g,a=Math.sin(p)*g,t.moveTo(n-s,r-a),t.lineTo(n+s,r+a);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(p)*(o?o/2:g),r+Math.sin(p)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function vh(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Xa(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ja(t){t.restore()}function Y2(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),we(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function q2(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function G2(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function uo(t,e,n,r,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,Y2(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&G2(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),we(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,r,i.maxWidth)),t.fillText(c,n,r,i.maxWidth),q2(t,n,r,c,i),r+=Number(o.lineHeight);t.restore()}function Ei(t,e){const{x:n,y:r,w:o,h:i,radius:s}=e;t.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*Qe,Qe,!0),t.lineTo(n,r+i-s.bottomLeft),t.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Qe,At,!0),t.lineTo(n+o-s.bottomRight,r+i),t.arc(n+o-s.bottomRight,r+i-s.bottomRight,s.bottomRight,At,0,!0),t.lineTo(n+o,r+s.topRight),t.arc(n+o-s.topRight,r+s.topRight,s.topRight,0,-At,!0),t.lineTo(n+s.topLeft,r)}const K2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,X2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function J2(t,e){const n=(""+t).match(K2);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Z2=t=>+t||0;function yh(t,e){const n={},r=he(e),o=r?Object.keys(e):e,i=he(t)?r?s=>fe(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)n[s]=Z2(i(s));return n}function wh(t){return yh(t,{top:"y",right:"x",bottom:"y",left:"x"})}function gr(t){return yh(t,["topLeft","topRight","bottomLeft","bottomRight"])}function kt(t){const e=wh(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function We(t,e){t=t||{},e=e||Pe.font;let n=fe(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=fe(t.style,e.style);r&&!(""+r).match(X2)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:fe(t.family,e.family),lineHeight:J2(fe(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:fe(t.weight,e.weight),string:""};return o.string=W2(o),o}function Ci(t,e,n,r){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function $2(t,e,n){const{min:r,max:o}=t,i=XA(e,(o-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(i)),max:s(o,i)}}function mr(t,e){return Object.assign(Object.create(t),e)}function Za(t,e=[""],n,r,o=()=>t[0]){const i=n||t;typeof r>"u"&&(r=Sh("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:o,override:a=>Za([a,...t],e,i,r)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return kh(a,l,()=>ak(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Ph(a).includes(l)},ownKeys(a){return Ph(a)},set(a,l,c){const u=a._storage||(a._storage=o());return a[l]=u[l]=c,delete a._keys,!0}})}function br(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:xh(t,r),setContext:i=>br(t,i,n,r),override:i=>br(t.override(i),e,n,r)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return kh(i,s,()=>tk(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function xh(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Pn(n)?n:()=>n,isIndexable:Pn(r)?r:()=>r}}const ek=(t,e)=>t?t+ja(e):e,$a=(t,e)=>he(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function kh(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function tk(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:s}=t;let a=r[e];return Pn(a)&&s.isScriptable(e)&&(a=nk(e,a,t,n)),Fe(a)&&a.length&&(a=rk(e,a,t,s.isIndexable)),$a(e,a)&&(a=br(a,o,i&&i[e],s)),a}function nk(t,e,n,r){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||r);return a.delete(t),$a(t,l)&&(l=el(o._scopes,o,t,l)),l}function rk(t,e,n,r){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=n;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(he(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=el(c,o,t,u);e.push(br(d,i,s&&s[t],a))}}return e}function Eh(t,e,n){return Pn(t)?t(e,n):t}const ok=(t,e)=>t===!0?e:typeof t=="string"?Sn(e,t):void 0;function ik(t,e,n,r,o){for(const i of e){const s=ok(n,i);if(s){t.add(s);const a=Eh(s._fallback,n,o);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function el(t,e,n,r){const o=e._rootScopes,i=Eh(e._fallback,n,r),s=[...t,...o],a=new Set;a.add(r);let l=Ch(a,s,n,i||n,r);return l===null||typeof i<"u"&&i!==n&&(l=Ch(a,s,i,l,r),l===null)?!1:Za(Array.from(a),[""],o,i,()=>sk(e,n,r))}function Ch(t,e,n,r,o){for(;n;)n=ik(t,e,n,r,o);return n}function sk(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];return Fe(o)&&he(n)?n:o||{}}function ak(t,e,n,r){let o;for(const i of e)if(o=Sh(ek(i,t),n),typeof o<"u")return $a(t,o)?el(n,r,t,o):o}function Sh(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Ph(t){let e=t._keys;return e||(e=t._keys=lk(t._scopes)),e}function lk(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(r);return Array.from(e)}function ck(t,e,n,r){const{iScale:o}=t,{key:i="r"}=this._parsing,s=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;++a)c=a+n,u=e[c],s[a]={r:o.parse(Sn(u,i),c)};return s}function tl(){return typeof window<"u"&&typeof document<"u"}function nl(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Si(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Pi=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function uk(t,e){return Pi(t).getPropertyValue(e)}const dk=["top","right","bottom","left"];function Wn(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=dk[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Ak=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function hk(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let s=!1,a,l;if(Ak(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Yn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=Pi(n),i=o.boxSizing==="border-box",s=Wn(o,"padding"),a=Wn(o,"border","width"),{x:l,y:c,box:u}=hk(t,n),d=s.left+(u&&a.left),A=s.top+(u&&a.top);let{width:h,height:f}=e;return i&&(h-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-A)/f*n.height/r)}}function fk(t,e,n){let r,o;if(e===void 0||n===void 0){const i=t&&nl(t);if(!i)e=t.clientWidth,n=t.clientHeight;else{const s=i.getBoundingClientRect(),a=Pi(i),l=Wn(a,"border","width"),c=Wn(a,"padding");e=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Si(a.maxWidth,i,"clientWidth"),o=Si(a.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:r||vi,maxHeight:o||vi}}const Bn=t=>Math.round(t*10)/10;function pk(t,e,n,r){const o=Pi(t),i=Wn(o,"margin"),s=Si(o.maxWidth,t,"clientWidth")||vi,a=Si(o.maxHeight,t,"clientHeight")||vi,l=fk(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const A=Wn(o,"border","width"),h=Wn(o,"padding");c-=h.width+A.width,u-=h.height+A.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=Bn(Math.min(c,s,l.maxWidth)),u=Bn(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Bn(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Bn(Math.floor(u*r))),{width:c,height:u}}function Dh(t,e,n){const r=e||1,o=Bn(t.height*r),i=Bn(t.width*r);t.height=Bn(t.height),t.width=Bn(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=r,s.height=o,s.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const gk=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};tl()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function Bh(t,e){const n=uk(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const mk=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},bk=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function vr(t,e,n){return t?mk(e,n):bk()}function Th(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Ih(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Di(t,e,n){return t.options.clip?t[n]:e[n]}function vk(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Di(n,e,"left"),right:Di(n,e,"right"),top:Di(r,e,"top"),bottom:Di(r,e,"bottom")}:e}function yk(t,e){const n=e._clip;if(n.disabled)return!1;const r=vk(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}class wk{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,o){const i=n.listeners[o],s=n.duration;i.forEach(a=>a({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=ah.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,r,e,"progress")),i.length||(r.running=!1,this._notify(o,r,e,"complete"),r.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var un=new wk;const Mh="transparent",xk={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Ah(t||Mh),o=r.valid&&Ah(e||Mh);return o&&o.valid?o.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class kk{constructor(e,n,r,o){const i=n[r];o=Ci([e.to,o,i,e.from]);const s=Ci([e.from,i,o]);this._active=!0,this._fn=e.fn||xk[e.type||typeof s],this._easing=lo[e.easing]||lo.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Ci([e.to,n,o,e.from]),this._from=Ci([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||n<r),!this._active){this._target[o]=a,this._notify(!0);return}if(n<0){this._target[o]=i;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let o=0;o<r.length;o++)r[o][n]()}}class _h{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!he(e))return;const n=Object.keys(Pe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!he(i))return;const s={};for(const a of n)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!r.has(a))&&r.set(a,s)})})}_animateOptions(e,n){const r=n.options,o=Ck(e,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&Ek(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,n){const r=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let d=i[c];const A=r.get(c);if(d)if(A&&d.active()){d.update(A,u,a);continue}else d.cancel();if(!A||!A.duration){e[c]=u;continue}i[c]=d=new kk(A,e,c,u),o.push(d)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return un.add(this._chart,r),!0}}function Ek(t,e){const n=[],r=Object.keys(e);for(let o=0;o<r.length;o++){const i=t[r[o]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Ck(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Oh(t,e){const n=t&&t.options||{},r=n.reverse,o=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:r?i:o,end:r?o:i}}function Sk(t,e,n){if(n===!1)return!1;const r=Oh(t,n),o=Oh(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function Pk(t){let e,n,r,o;return he(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:t===!1}}function Lh(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Fh(t,e,n,r={}){const o=t.keys,i=r.mode==="single";let s,a,l,c;if(e===null)return;let u=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===n){if(u=!0,r.all)continue;break}c=t.values[l],xt(c)&&(i||e===0||Dn(e)===Dn(c))&&(e+=c)}return!u&&!r.all?0:e}function Dk(t,e){const{iScale:n,vScale:r}=e,o=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[o]:u,[i]:t[u]};return a}function rl(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Bk(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Tk(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function Ik(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Qh(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const i=t[o.index];if(n&&i>0||!n&&i<0)return o.index}return null}function Nh(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:a}=r,l=i.axis,c=s.axis,u=Bk(i,s,r),d=e.length;let A;for(let h=0;h<d;++h){const f=e[h],{[l]:g,[c]:p}=f,v=f._stacks||(f._stacks={});A=v[c]=Ik(o,u,g),A[a]=p,A._top=Qh(A,s,!0,r.type),A._bottom=Qh(A,s,!1,r.type);const w=A._visualValues||(A._visualValues={});w[a]=p}}function ol(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Mk(t,e){return mr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function _k(t,e,n){return mr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Ao(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const il=t=>t==="reset"||t==="none",zh=(t,e)=>e?t:Object.assign({},t),Ok=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Lh(n,!0),values:null};class Bi{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=rl(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ao(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(d,A,h,f)=>d==="x"?A:d==="r"?f:h,i=n.xAxisID=fe(r.xAxisID,ol(e,"x")),s=n.yAxisID=fe(r.yAxisID,ol(e,"y")),a=n.rAxisID=fe(r.rAxisID,ol(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,i,s,a),u=n.vAxisID=o(l,s,i,a);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ih(this._data,this),e._stacked&&Ao(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(he(n)){const o=this._cachedMeta;this._data=Dk(n,o)}else if(r!==n){if(r){ih(r,this);const o=this._cachedMeta;Ao(o),o._parsed=[]}n&&Object.isExtensible(n)&&_2(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=rl(n.vScale,n),n.stack!==r.stack&&(o=!0,Ao(n),n.stack=r.stack),this._resyncElements(e),(o||i!==n._stacked)&&(Nh(this,n._parsed),n._stacked=rl(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:s}=r,a=i.axis;let l=e===0&&n===o.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,A;if(this._parsing===!1)r._parsed=o,r._sorted=!0,A=o;else{Fe(o[e])?A=this.parseArrayData(r,o,e,n):he(o[e])?A=this.parseObjectData(r,o,e,n):A=this.parsePrimitiveData(r,o,e,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+e]=d=A[u],l&&(h()&&(l=!1),c=d);r._sorted=l}s&&Nh(this,A)}parsePrimitiveData(e,n,r,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),u=i===s,d=new Array(o);let A,h,f;for(A=0,h=o;A<h;++A)f=A+r,d[A]={[a]:u||i.parse(c[f],f),[l]:s.parse(n[f],f)};return d}parseArrayData(e,n,r,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,u,d;for(l=0,c=o;l<c;++l)u=l+r,d=n[u],a[l]={x:i.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(e,n,r,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let u,d,A,h;for(u=0,d=o;u<d;++u)A=u+r,h=n[A],c[u]={x:i.parse(Sn(h,a),A),y:s.parse(Sn(h,l),A)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const o=this.chart,i=this._cachedMeta,s=n[e.axis],a={keys:Lh(o,!0),values:n._stacks[e.axis]._visualValues};return Fh(a,s,i.index,{mode:r})}updateRangeFromParsed(e,n,r,o){const i=r[n.axis];let s=i===null?NaN:i;const a=o&&r._stacks[n.axis];o&&a&&(o.values=a,s=Fh(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const r=this._cachedMeta,o=r._parsed,i=r._sorted&&e===r.iScale,s=o.length,a=this._getOtherScale(e),l=Ok(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Tk(a);let A,h;function f(){h=o[A];const g=h[a.axis];return!xt(h[e.axis])||u>g||d<g}for(A=0;A<s&&!(!f()&&(this.updateRangeFromParsed(c,e,h,l),i));++A);if(i){for(A=s-1;A>=0;--A)if(!f()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let o,i,s;for(o=0,i=n.length;o<i;++o)s=n[o][e.axis],xt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,o=n.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Pk(fe(this.options.clip,Sk(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,o=r.data||[],i=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,a,l),u=a;u<a+l;++u){const d=o[u];d.hidden||(d.active&&c?s.push(d):d.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=_k(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=Mk(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const o=n==="active",i=this._cachedDataOpts,s=e+"-"+n,a=i[s],l=this.enableOptionSharing&&ao(r);if(a)return zh(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=o?[`${e}Hover`,"hover",e,""]:[e,""],A=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Pe.elements[e]),f=()=>this.getContext(r,o,n),g=c.resolveNamedOptions(A,h,f,d);return g.$shared&&(g.$shared=l,i[s]=Object.freeze(zh(g,l))),g}_resolveAnimations(e,n,r){const o=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),A=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(A,this.getContext(e,r,n))}const c=new _h(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||il(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),o=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:s}}updateElement(e,n,r,o){il(o)?Object.assign(e,r):this._resolveAnimations(n,o).update(e,r)}updateSharedOptions(e,n,r){e&&!il(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,o){e.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=r.length,i=n.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,n,r=!0){const o=this._cachedMeta,i=o.data,s=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,n),r&&this.updateElements(i,e,n,"reset")}updateElements(e,n,r,o){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const o=r._parsed.splice(e,n);r._stacked&&Ao(r,o)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,o]=e;this[n](r,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Lk(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let o=0,i=n.length;o<i;o++)r=r.concat(n[o].controller.getAllParsedValues(t));t._cache.$bar=sh(r.sort((o,i)=>o-i))}return t._cache.$bar}function Fk(t){const e=t.iScale,n=Lk(e,t.type);let r=e._length,o,i,s,a;const l=()=>{s===32767||s===-32768||(ao(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(o=0,i=n.length;o<i;++o)s=e.getPixelForValue(n[o]),l();for(a=void 0,o=0,i=e.ticks.length;o<i;++o)s=e.getPixelForTick(o),l();return r}function Qk(t,e,n,r){const o=n.barThickness;let i,s;return we(o)?(i=e.min*n.categoryPercentage,s=n.barPercentage):(i=o*r,s=1),{chunk:i/r,ratio:s,start:e.pixels[t]-i/2}}function Nk(t,e,n,r){const o=e.pixels,i=o[t];let s=t>0?o[t-1]:null,a=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;s===null&&(s=i-(a===null?e.end-e.start:a-i)),a===null&&(a=i+i-s);const c=i-(i-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function zk(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),s=Math.min(o,i),a=Math.max(o,i);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:i,min:s,max:a}}function Rh(t,e,n,r){return Fe(t)?zk(t,e,n,r):e[n.axis]=n.parse(t,r),e}function Uh(t,e,n,r){const o=t.iScale,i=t.vScale,s=o.getLabels(),a=o===i,l=[];let c,u,d,A;for(c=n,u=n+r;c<u;++c)A=e[c],d={},d[o.axis]=a||o.parse(s[c],c),l.push(Rh(A,d,i,c));return l}function sl(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Rk(t,e,n){return t!==0?Dn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function Uk(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}function jk(t,e,n,r){let o=e.borderSkipped;const i={};if(!o){t.borderSkipped=i;return}if(o===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=Uk(t);o==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[jh(u,s,a,l)]=!0,o=c)),i[jh(o,s,a,l)]=!0,t.borderSkipped=i}function jh(t,e,n,r){return r?(t=Vk(t,e,n),t=Vh(t,n,e)):t=Vh(t,e,n),t}function Vk(t,e,n){return t===e?n:t===n?e:t}function Vh(t,e,n){return t==="start"?e:t==="end"?n:t}function Hk(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class Wk extends Bi{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,n,r,o){return Uh(e,n,r,o)}parseArrayData(e,n,r,o){return Uh(e,n,r,o)}parseObjectData(e,n,r,o){const{iScale:i,vScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=i.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let A,h,f,g;for(A=r,h=r+o;A<h;++A)g=n[A],f={},f[i.axis]=i.parse(Sn(g,c),A),d.push(Rh(Sn(g,u),f,s,A));return d}updateRangeFromParsed(e,n,r,o){super.updateRangeFromParsed(e,n,r,o);const i=r._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:o}=n,i=this.getParsed(e),s=i._custom,a=sl(s)?"["+s.start+", "+s.end+"]":""+o.getLabelForValue(i[o.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,o){const i=o==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:A}=this._getSharedOptions(n,o);for(let h=n;h<n+r;h++){const f=this.getParsed(h),g=i||we(f[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,u),v=(f._stacks||{})[a.axis],w={horizontal:c,base:g.base,enableBorderRadius:!v||sl(f._custom)||s===v._top||s===v._bottom,x:c?g.head:p.center,y:c?p.center:g.head,height:c?p.size:Math.abs(g.size),width:c?Math.abs(g.size):p.size};A&&(w.options=d||this.resolveDataElementOptions(h,e[h].active?"active":o));const y=w.options||e[h].options;jk(w,y,v,s),Hk(w,y,u.ratio),this.updateElement(e[h],h,w,o)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,o=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[r.axis],c=u=>{const d=u._parsed.find(h=>h[r.axis]===l),A=d&&d[u.vScale.axis];if(we(A)||isNaN(A))return!0};for(const u of o)if(!(n!==void 0&&c(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)e[fe(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,r){const o=this._getStacks(e,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,s;for(i=0,s=n.data.length;i<s;++i)o.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const a=e.barThickness;return{min:a||Fk(n),pixels:o,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:o},options:{base:i,minBarLength:s}}=this,a=i||0,l=this.getParsed(e),c=l._custom,u=sl(c);let d=l[n.axis],A=0,h=r?this.applyStack(n,l,r):d,f,g;h!==d&&(A=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&Dn(d)!==Dn(c.barEnd)&&(A=0),A+=d);const p=!we(i)&&!u?i:A;let v=n.getPixelForValue(p);if(this.chart.getDataVisibility(e)?f=n.getPixelForValue(A+h):f=v,g=f-v,Math.abs(g)<s){g=Rk(g,n,a)*s,d===a&&(v-=g/2);const w=n.getPixelForDecimal(0),y=n.getPixelForDecimal(1),b=Math.min(w,y),E=Math.max(w,y);v=Math.max(Math.min(v,E),b),f=v+g,r&&!u&&(l._stacks[n.axis]._visualValues[o]=n.getValueForPixel(f)-n.getValueForPixel(v))}if(v===n.getPixelForValue(a)){const w=Dn(g)*n.getLineWidthForValue(a)/2;v+=w,g-=w}return{size:g,base:v,head:f,center:f+g/2}}_calculateBarIndexPixels(e,n){const r=n.scale,o=this.options,i=o.skipNull,s=fe(o.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(e):n.stackCount,d=o.barThickness==="flex"?Nk(e,n,o,u*c):Qk(e,n,o,u*c),A=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(fe(A,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+h;a=d.start+d.chunk*f+d.chunk/2,l=Math.min(s,d.chunk*d.ratio)}else a=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,o=r.length;let i=0;for(;i<o;++i)this.getParsed(i)[n.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}function Yk(t,e,n){let r=1,o=1,i=0,s=0;if(e<dt){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),A=Math.sin(l),h=(y,b,E)=>Va(y,a,l,!0)?1:Math.max(b,b*n,E,E*n),f=(y,b,E)=>Va(y,a,l,!0)?-1:Math.min(b,b*n,E,E*n),g=h(0,c,d),p=h(At,u,A),v=f(Qe,c,d),w=f(Qe+At,u,A);r=(g-v)/2,o=(p-w)/2,i=-(g+v)/2,s=-(p+w)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:s}}class qk extends Bi{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(a||d.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let i=l=>+r[l];if(he(r[e])){const{key:l="value"}=this._parsing;i=c=>+Sn(r[c],l)}let s,a;for(s=e,a=e+n;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return Yt(this.options.rotation-90)}_getCircumference(){return Yt(this.options.circumference)}_getRotationExtents(){let e=dt,n=-dt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const o=this.chart.getDatasetMeta(r).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),n=Math.max(n,i+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(g2(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:A,ratioY:h,offsetX:f,offsetY:g}=Yk(d,u,l),p=(r.width-s)/A,v=(r.height-s)/h,w=Math.max(Math.min(p,v)/2,0),y=XA(this.options.radius,w),b=Math.max(y*l,0),E=(y-b)/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=g*y,o.total=this.calculateTotal(),this.outerRadius=y-E*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-E*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const r=this.options,o=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/dt)}updateElements(e,n,r,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,A=i&&c.animateScale,h=A?0:this.innerRadius,f=A?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(n,o);let v=this._getRotation(),w;for(w=0;w<n;++w)v+=this._circumference(w,i);for(w=n;w<n+r;++w){const y=this._circumference(w,i),b=e[w],E={x:u+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+y,circumference:y,outerRadius:f,innerRadius:h};p&&(E.options=g||this.resolveDataElementOptions(w,b.active?"active":o)),v+=y,this.updateElement(b,w,E,o)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,o;for(o=0;o<n.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!n[o].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?dt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=ki(n._parsed[e],r.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const r=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=r.data.datasets.length;o<i;++o)if(r.isDatasetVisible(o)){s=r.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,o=e.length;r<o;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(fe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Gk extends Bi{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:o}}=e.legend.options;return n.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=ki(n._parsed[e].r,r.options.locale);return{label:o[e]||"",value:i}}parseObjectData(e,n,r,o){return ck.bind(this)(e,n,r,o)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{const i=this.getParsed(o).r;!isNaN(i)&&this.chart.getDataVisibility(o)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,o=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),a=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,r,o){const i=o==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,A=c.getIndexAngle(0)-.5*Qe;let h=A,f;const g=360/this.countVisibleElements();for(f=0;f<n;++f)h+=this._computeAngle(f,o,g);for(f=n;f<n+r;f++){const p=e[f];let v=h,w=h+this._computeAngle(f,o,g),y=s.getDataVisibility(f)?c.getDistanceFromCenterForValue(this.getParsed(f).r):0;h=w,i&&(l.animateScale&&(y=0),l.animateRotate&&(v=w=A));const b={x:u,y:d,innerRadius:0,outerRadius:y,startAngle:v,endAngle:w,options:this.resolveDataElementOptions(f,p.active?"active":o)};this.updateElement(p,f,b,o)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((r,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Yt(this.resolveDataElementOptions(e,n).angle||r):0}}function qn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class al{static override(e){Object.assign(al.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return qn()}parse(){return qn()}format(){return qn()}add(){return qn()}diff(){return qn()}startOf(){return qn()}endOf(){return qn()}}var Kk={_date:al};function Xk(t,e,n,r){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?I2:Wa;if(r){if(o._sharedOptions){const u=i[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const A=c(i,e,n-d),h=c(i,e,n+d);return{lo:A.lo,hi:h.hi}}}}else{const u=c(i,e,n);if(l){const{vScale:d}=o._cachedMeta,{_parsed:A}=t,h=A.slice(0,u.lo+1).reverse().findIndex(g=>!we(g[d.axis]));u.lo-=Math.max(0,h);const f=A.slice(u.hi).findIndex(g=>!we(g[d.axis]));u.hi+=Math.max(0,f)}return u}}return{lo:0,hi:i.length-1}}function Ti(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:u}=i[a],{lo:d,hi:A}=Xk(i[a],e,s,o);for(let h=d;h<=A;++h){const f=u[h];f.skip||r(f,c,h)}}}function Jk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,o){const i=e?Math.abs(r.x-o.x):0,s=n?Math.abs(r.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function ll(t,e,n,r,o){const i=[];return!o&&!t.isPointInArea(e)||Ti(t,n,e,function(a,l,c){!o&&!vh(a,t.chartArea,0)||a.inRange(e.x,e.y,r)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function Zk(t,e,n,r){let o=[];function i(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=D2(s,{x:e.x,y:e.y});Va(d,c,u)&&o.push({element:s,datasetIndex:a,index:l})}return Ti(t,n,e,i),o}function $k(t,e,n,r,o,i){let s=[];const a=Jk(n);let l=Number.POSITIVE_INFINITY;function c(u,d,A){const h=u.inRange(e.x,e.y,o);if(r&&!h)return;const f=u.getCenterPoint(o);if(!(!!i||t.isPointInArea(f))&&!h)return;const p=a(e,f);p<l?(s=[{element:u,datasetIndex:d,index:A}],l=p):p===l&&s.push({element:u,datasetIndex:d,index:A})}return Ti(t,n,e,c),s}function cl(t,e,n,r,o,i){return!i&&!t.isPointInArea(e)?[]:n==="r"&&!r?Zk(t,e,n,o):$k(t,e,n,r,o,i)}function Hh(t,e,n,r,o){const i=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Ti(t,n,e,(l,c,u)=>{l[s]&&l[s](e[n],o)&&(i.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,o))}),r&&!a?[]:i}var eE={modes:{index(t,e,n,r){const o=Yn(e,t),i=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?ll(t,o,i,r,s):cl(t,o,i,!1,r,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?ll(t,o,i,r,s):cl(t,o,i,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;return ll(t,o,i,r,s)},nearest(t,e,n,r){const o=Yn(e,t),i=n.axis||"xy",s=n.includeInvisible||!1;return cl(t,o,i,n.intersect,r,s)},x(t,e,n,r){const o=Yn(e,t);return Hh(t,o,"x",n.intersect,r)},y(t,e,n,r){const o=Yn(e,t);return Hh(t,o,"y",n.intersect,r)}}};const Wh=["left","top","right","bottom"];function ho(t,e){return t.filter(n=>n.pos===e)}function Yh(t,e){return t.filter(n=>Wh.indexOf(n.pos)===-1&&n.box.axis===e)}function fo(t,e){return t.sort((n,r)=>{const o=e?r:n,i=e?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function tE(t){const e=[];let n,r,o,i,s,a;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function nE(t){const e={};for(const n of t){const{stack:r,pos:o,stackWeight:i}=n;if(!r||!Wh.includes(o))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function rE(t,e){const n=nE(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=o):(a.width=r,a.height=u?u*o:l&&e.availableHeight)}return n}function oE(t){const e=tE(t),n=fo(e.filter(c=>c.box.fullSize),!0),r=fo(ho(e,"left"),!0),o=fo(ho(e,"right")),i=fo(ho(e,"top"),!0),s=fo(ho(e,"bottom")),a=Yh(e,"x"),l=Yh(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:ho(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function qh(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Gh(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function iE(t,e,n,r){const{pos:o,box:i}=n,s=t.maxPadding;if(!he(o)){n.size&&(t[o]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?i.height:i.width),n.size=d.size/d.count,t[o]+=n.size}i.getPadding&&Gh(s,i.getPadding());const a=Math.max(0,e.outerWidth-qh(s,t,"left","right")),l=Math.max(0,e.outerHeight-qh(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function sE(t){const e=t.maxPadding;function n(r){const o=Math.max(e[r]-t[r],0);return t[r]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function aE(t,e){const n=e.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],n[s])}),i}return r(t?["left","right"]:["top","bottom"])}function po(t,e,n,r){const o=[];let i,s,a,l,c,u;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,aE(a.horizontal,e));const{same:d,other:A}=iE(e,n,a,r);c|=d&&o.length,u=u||A,l.fullSize||o.push(a)}return c&&po(o,e,n,r)||u}function Ii(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function Kh(t,e,n,r){const o=n.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=r[a.stack]||{placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,A=c.size||l.height;ao(c.start)&&(s=c.start),l.fullSize?Ii(l,o.left,s,n.outerWidth-o.right-o.left,A):Ii(l,e.left+c.placed,s,d,A),c.start=s,c.placed+=d,s=l.bottom}else{const d=e.h*u,A=c.size||l.width;ao(c.start)&&(i=c.start),l.fullSize?Ii(l,i,o.top,A,n.outerHeight-o.bottom-o.top):Ii(l,i,e.top+c.placed,A,d),c.start=i,c.placed+=d,i=l.right}}e.x=i,e.y=s}var Et={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=kt(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(n-o.height,0),a=oE(t.boxes),l=a.vertical,c=a.horizontal;be(t.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,p)=>p.box.options&&p.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),A=Object.assign({},o);Gh(A,kt(r));const h=Object.assign({maxPadding:A,w:i,h:s,x:o.left,y:o.top},o),f=rE(l.concat(c),d);po(a.fullSize,h,d,f),po(l,h,d,f),po(c,h,d,f)&&po(l,h,d,f),sE(h),Kh(a.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,Kh(a.rightAndBottom,h,d,f),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},be(a.chartArea,g=>{const p=g.box;Object.assign(p,t.chartArea),p.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Xh{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,o){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(e){return!0}updateConfig(e){}}class lE extends Xh{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Mi="$chartjs",cE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jh=t=>t===null||t==="";function uE(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[Mi]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Jh(o)){const i=Bh(t,"width");i!==void 0&&(t.width=i)}if(Jh(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Bh(t,"height");i!==void 0&&(t.height=i)}return t}const Zh=gk?{passive:!0}:!1;function dE(t,e,n){t&&t.addEventListener(e,n,Zh)}function AE(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Zh)}function hE(t,e){const n=cE[t.type]||t.type,{x:r,y:o}=Yn(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:o!==void 0?o:null}}function _i(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function fE(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||_i(a.addedNodes,r),s=s&&!_i(a.removedNodes,r);s&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function pE(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||_i(a.removedNodes,r),s=s&&!_i(a.addedNodes,r);s&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const go=new Map;let $h=0;function ef(){const t=window.devicePixelRatio;t!==$h&&($h=t,go.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function gE(t,e){go.size||window.addEventListener("resize",ef),go.set(t,e)}function mE(t){go.delete(t),go.size||window.removeEventListener("resize",ef)}function bE(t,e,n){const r=t.canvas,o=r&&nl(r);if(!o)return;const i=lh((a,l)=>{const c=o.clientWidth;n(a,l),c<o.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return s.observe(o),gE(t,i),s}function ul(t,e,n){n&&n.disconnect(),e==="resize"&&mE(t)}function vE(t,e,n){const r=t.canvas,o=lh(i=>{t.ctx!==null&&n(hE(i,t))},t);return dE(r,e,o),o}class yE extends Xh{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(uE(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Mi])return!1;const r=n[Mi].initial;["height","width"].forEach(i=>{const s=r[i];we(s)?n.removeAttribute(i):n.setAttribute(i,s)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[Mi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const o=e.$proxies||(e.$proxies={}),s={attach:fE,detach:pE,resize:bE}[n]||vE;o[n]=s(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),o=r[n];if(!o)return;({attach:ul,detach:ul,resize:ul}[n]||AE)(e,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,o){return pk(e,n,r,o)}isAttached(e){const n=e&&nl(e);return!!(n&&n.isConnected)}}function wE(t){return!tl()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?lE:yE}let yr=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return wi(this.x)&&wi(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const o={};return e.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}};function xE(t,e){const n=t.options.ticks,r=kE(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?CE(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return SE(e,c,i,s/o),c;const u=EE(i,e,o);if(s>0){let d,A;const h=s>1?Math.round((l-a)/(s-1)):null;for(Oi(e,c,u,we(h)?0:a-h,a),d=0,A=s-1;d<A;d++)Oi(e,c,u,i[d],i[d+1]);return Oi(e,c,u,l,we(h)?e.length:l+h),c}return Oi(e,c,u),c}function kE(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}function EE(t,e,n){const r=PE(t),o=e.length/n;if(!r)return Math.max(o,1);const i=k2(r);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function CE(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function SE(t,e,n,r){let o=0,i=n[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=n[o*r])}function Oi(t,e,n,r,o){const i=fe(r,0),s=Math.min(fe(o,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),o&&(l=o-r,n=l/Math.floor(l/n)),u=i;u<0;)a++,u=Math.round(i+a*n);for(c=Math.max(i,0);c<s;c++)c===u&&(e.push(t[c]),a++,u=Math.round(i+a*n))}function PE(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const DE=t=>t==="left"?"right":t==="right"?"left":t,tf=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,nf=(t,e)=>Math.min(e||t,t);function rf(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function BE(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(n&&(r===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function TE(t,e){be(t,n=>{const r=n.gc,o=r.length/2;let i;if(o>e){for(i=0;i<o;++i)delete n.data[r[i]];r.splice(0,o)}})}function mo(t){return t.drawTicks?t.tickLength:0}function of(t,e){if(!t.display)return 0;const n=We(t.font,e),r=kt(t.padding);return(Fe(t.text)?t.text.length:1)*n.lineHeight+r.height}function IE(t,e){return mr(t,{scale:e,type:"scale"})}function ME(t,e,n){return mr(t,{tick:n,index:e,type:"tick"})}function _E(t,e,n){let r=Ya(t);return(n&&e!=="right"||!n&&e==="right")&&(r=DE(r)),r}function OE(t,e,n,r){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,A,h,f;const g=s-o,p=a-i;if(t.isHorizontal()){if(h=He(r,i,a),he(n)){const v=Object.keys(n)[0],w=n[v];f=u[v].getPixelForValue(w)+g-e}else n==="center"?f=(c.bottom+c.top)/2+g-e:f=tf(t,n,e);A=a-i}else{if(he(n)){const v=Object.keys(n)[0],w=n[v];h=u[v].getPixelForValue(w)-p+e}else n==="center"?h=(c.left+c.right)/2-p+e:h=tf(t,n,e);f=He(r,s,o),d=n==="left"?-At:At}return{titleX:h,titleY:f,maxWidth:A,rotation:d}}class wr extends yr{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:o}=this;return e=Wt(e,Number.POSITIVE_INFINITY),n=Wt(n,Number.NEGATIVE_INFINITY),r=Wt(r,Number.POSITIVE_INFINITY),o=Wt(o,Number.NEGATIVE_INFINITY),{min:Wt(e,r),max:Wt(n,o),minDefined:xt(e),maxDefined:xt(n)}}getMinMax(e){let{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(n=Math.min(n,s.min)),i||(r=Math.max(r,s.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:Wt(n,Wt(r,n)),max:Wt(r,Wt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ee(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=$2(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?rf(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=xE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ee(this.options.afterUpdate,[this])}beforeSetDimensions(){Ee(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ee(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ee(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ee(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r],i.label=Ee(n.callback,[i.value,r,e],this)}afterTickToLabelConversion(){Ee(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ee(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=nf(this.ticks.length,e.ticks.maxTicksLimit),o=n.minRotation||0,i=n.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!n.display||o>=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const u=this._getLabelSizes(),d=u.widest.width,A=u.highest.height,h=Bt(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:h/(r-1),d+6>a&&(a=h/(r-(e.offset?.5:1)),l=this.maxHeight-mo(e.grid)-n.padding-of(e.title,this.chart.options.font),c=Math.sqrt(d*d+A*A),s=P2(Math.min(Math.asin(Bt((u.highest.height+6)/a,-1,1)),Math.asin(Bt(l/c,-1,1))-Math.asin(Bt(A/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ee(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ee(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=of(o,n.options.font);if(a?(e.width=this.maxWidth,e.height=mo(i)+l):(e.height=this.maxHeight,e.width=mo(i)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:A}=this._getLabelSizes(),h=r.padding*2,f=Yt(this.labelRotation),g=Math.cos(f),p=Math.sin(f);if(a){const v=r.mirror?0:p*d.width+g*A.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=r.mirror?0:g*d.width+p*A.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,u,p,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let A=0,h=0;l?c?(A=o*e.width,h=r*n.height):(A=r*e.height,h=o*n.width):i==="start"?h=n.width:i==="end"?A=e.width:i!=="inner"&&(A=e.width/2,h=n.width/2),this.paddingLeft=Math.max((A-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;i==="start"?(u=0,d=e.height):i==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ee(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)we(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=rf(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(n/nf(n,r));let c=0,u=0,d,A,h,f,g,p,v,w,y,b,E;for(d=0;d<n;d+=l){if(f=e[d].label,g=this._resolveTickFontOptions(d),o.font=p=g.string,v=i[p]=i[p]||{data:{},gc:[]},w=g.lineHeight,y=b=0,!we(f)&&!Fe(f))y=ph(o,v.data,v.gc,y,f),b=w;else if(Fe(f))for(A=0,h=f.length;A<h;++A)E=f[A],!we(E)&&!Fe(E)&&(y=ph(o,v.data,v.gc,y,E),b+=w);s.push(y),a.push(b),c=Math.max(y,c),u=Math.max(b,u)}TE(i,n);const k=s.indexOf(c),P=a.indexOf(u),D=I=>({width:s[I]||0,height:a[I]||0});return{first:D(0),last:D(n-1),widest:D(k),highest:D(P),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return T2(this._alignToPixels?Hn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=ME(this.getContext(),e,r))}return this.$context||(this.$context=IE(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Yt(this.labelRotation),r=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*r>a*o?a/r:l/o:l*o<a*r?l/r:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),A=mo(i),h=[],f=a.setContext(this.getContext()),g=f.display?f.width:0,p=g/2,v=function(R){return Hn(r,R,g)};let w,y,b,E,k,P,D,I,T,M,B,_;if(s==="top")w=v(this.bottom),P=this.bottom-A,I=w-p,M=v(e.top)+p,_=e.bottom;else if(s==="bottom")w=v(this.top),M=e.top,_=v(e.bottom)-p,P=w+p,I=this.top+A;else if(s==="left")w=v(this.right),k=this.right-A,D=w-p,T=v(e.left)+p,B=e.right;else if(s==="right")w=v(this.left),T=e.left,B=v(e.right)-p,k=w+p,D=this.left+A;else if(n==="x"){if(s==="center")w=v((e.top+e.bottom)/2+.5);else if(he(s)){const R=Object.keys(s)[0],Q=s[R];w=v(this.chart.scales[R].getPixelForValue(Q))}M=e.top,_=e.bottom,P=w+p,I=P+A}else if(n==="y"){if(s==="center")w=v((e.left+e.right)/2);else if(he(s)){const R=Object.keys(s)[0],Q=s[R];w=v(this.chart.scales[R].getPixelForValue(Q))}k=w-p,D=k-A,T=e.left,B=e.right}const N=fe(o.ticks.maxTicksLimit,d),O=Math.max(1,Math.ceil(d/N));for(y=0;y<d;y+=O){const R=this.getContext(y),Q=i.setContext(R),U=a.setContext(R),C=Q.lineWidth,G=Q.color,S=U.dash||[],X=U.dashOffset,V=Q.tickWidth,j=Q.tickColor,W=Q.tickBorderDash||[],K=Q.tickBorderDashOffset;b=BE(this,y,l),b!==void 0&&(E=Hn(r,b,C),c?k=D=T=B=E:P=I=M=_=E,h.push({tx1:k,ty1:P,tx2:D,ty2:I,x1:T,y1:M,x2:B,y2:_,width:C,color:G,borderDash:S,borderDashOffset:X,tickWidth:V,tickColor:j,tickBorderDash:W,tickBorderDashOffset:K}))}return this._ticksLength=d,this._borderValue=w,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:o,ticks:i}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=i,A=mo(r.grid),h=A+u,f=d?-u:h,g=-Yt(this.labelRotation),p=[];let v,w,y,b,E,k,P,D,I,T,M,B,_="middle";if(o==="top")k=this.bottom-f,P=this._getXAxisLabelAlignment();else if(o==="bottom")k=this.top+f,P=this._getXAxisLabelAlignment();else if(o==="left"){const O=this._getYAxisLabelAlignment(A);P=O.textAlign,E=O.x}else if(o==="right"){const O=this._getYAxisLabelAlignment(A);P=O.textAlign,E=O.x}else if(n==="x"){if(o==="center")k=(e.top+e.bottom)/2+h;else if(he(o)){const O=Object.keys(o)[0],R=o[O];k=this.chart.scales[O].getPixelForValue(R)+h}P=this._getXAxisLabelAlignment()}else if(n==="y"){if(o==="center")E=(e.left+e.right)/2-h;else if(he(o)){const O=Object.keys(o)[0],R=o[O];E=this.chart.scales[O].getPixelForValue(R)}P=this._getYAxisLabelAlignment(A).textAlign}n==="y"&&(l==="start"?_="top":l==="end"&&(_="bottom"));const N=this._getLabelSizes();for(v=0,w=a.length;v<w;++v){y=a[v],b=y.label;const O=i.setContext(this.getContext(v));D=this.getPixelForTick(v)+i.labelOffset,I=this._resolveTickFontOptions(v),T=I.lineHeight,M=Fe(b)?b.length:1;const R=M/2,Q=O.color,U=O.textStrokeColor,C=O.textStrokeWidth;let G=P;s?(E=D,P==="inner"&&(v===w-1?G=this.options.reverse?"left":"right":v===0?G=this.options.reverse?"right":"left":G="center"),o==="top"?c==="near"||g!==0?B=-M*T+T/2:c==="center"?B=-N.highest.height/2-R*T+T:B=-N.highest.height+T/2:c==="near"||g!==0?B=T/2:c==="center"?B=N.highest.height/2-R*T:B=N.highest.height-M*T,d&&(B*=-1),g!==0&&!O.showLabelBackdrop&&(E+=T/2*Math.sin(g))):(k=D,B=(1-M)*T/2);let S;if(O.showLabelBackdrop){const X=kt(O.backdropPadding),V=N.heights[v],j=N.widths[v];let W=B-X.top,K=0-X.left;switch(_){case"middle":W-=V/2;break;case"bottom":W-=V;break}switch(P){case"center":K-=j/2;break;case"right":K-=j;break;case"inner":v===w-1?K-=j:v>0&&(K-=j/2);break}S={left:K,top:W,width:j+X.width,height:V+X.height,color:O.backdropColor}}p.push({label:b,font:I,textOffset:B,options:{rotation:g,color:Q,strokeColor:U,strokeWidth:C,textAlign:G,textBaseline:_,translation:[E,k],backdrop:S}})}return p}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Yt(this.labelRotation))return e==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,u;return n==="left"?o?(u=this.right+i,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?o?(u=this.left+i,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:o,width:i,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,o,i,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,s=o.length;i<s;++i){const l=o[i];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:o}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,A;this.isHorizontal()?(c=Hn(e,this.left,s)-s/2,u=Hn(e,this.right,a)+a/2,d=A=l):(d=Hn(e,this.top,s)-s/2,A=Hn(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,A),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,o=this._computeLabelArea();o&&Xa(r,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,u=s.textOffset;uo(r,c,0,u,l,a)}o&&Ja(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:o}}=this;if(!r.display)return;const i=We(r.font),s=kt(r.padding),a=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||he(n)?(l+=s.bottom,Fe(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:A}=OE(this,l,n,a);uo(e,r.text,0,0,i,{color:r.color,maxWidth:d,rotation:A,textAlign:_E(a,n,o),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=fe(e.grid&&e.grid.z,-1),o=fe(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==wr.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,s;for(i=0,s=n.length;i<s;++i){const a=n[i];a[r]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return We(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Li{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;QE(n)&&(r=this.register(n));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,LE(e,s,r),this.override&&Pe.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,o=this.scope;r in n&&delete n[r],o&&r in Pe[o]&&(delete Pe[o][r],this.override&&delete Vn[r])}}function LE(t,e,n){const r=io(Object.create(null),[n?Pe.get(n):{},Pe.get(e),t.defaults]);Pe.set(e,r),t.defaultRoutes&&FE(e,t.defaultRoutes),t.descriptors&&Pe.describe(e,t.descriptors)}function FE(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Pe.route(i,o,l,a)})}function QE(t){return"id"in t&&"defaults"in t}class NE{constructor(){this.controllers=new Li(Bi,"datasets",!0),this.elements=new Li(yr,"elements"),this.plugins=new Li(Object,"plugins"),this.scales=new Li(wr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):be(o,s=>{const a=r||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,r){const o=ja(e);Ee(r["before"+o],[],r),n[e](r),Ee(r["after"+o],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const o=n.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return o}}var qt=new NE;class zE{constructor(){this._init=void 0}notify(e,n,r,o){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,n,r);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),s}_notify(e,n,r,o){o=o||{};for(const i of e){const s=i.plugin,a=s[r],l=[n,o,i.options];if(Ee(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){we(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,o=fe(r.options&&r.options.plugins,{}),i=RE(r);return o===!1&&!n?[]:jE(e,i,o,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(n,r),e,"stop"),this._notify(o(r,n),e,"start")}}function RE(t){const e={},n=[],r=Object.keys(qt.plugins.items);for(let i=0;i<r.length;i++)n.push(qt.getPlugin(r[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function UE(t,e){return!e&&t===!1?null:t===!0?{}:t}function jE(t,{plugins:e,localIds:n},r,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=UE(r[l],o);c!==null&&i.push({plugin:a,options:VE(t.config,{plugin:a,local:n[l]},c,s)})}return i}function VE(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(r,i);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dl(t,e){const n=Pe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function HE(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function WE(t,e){return t===e?"_index_":"_value_"}function sf(t){if(t==="x"||t==="y"||t==="r")return t}function YE(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Al(t,...e){if(sf(t))return t;for(const n of e){const r=n.axis||YE(n.position)||t.length>1&&sf(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function af(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function qE(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return af(t,"x",n[0])||af(t,"y",n[0])}return{}}function GE(t,e){const n=Vn[t.type]||{scales:{}},r=e.scales||{},o=dl(t.type,e),i=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!he(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Al(s,a,qE(s,t),Pe.scales[a.type]),c=WE(l,o),u=n.scales||{};i[s]=so(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||dl(a,e),u=(Vn[a]||{}).scales||{};Object.keys(u).forEach(d=>{const A=HE(d,l),h=s[A+"AxisID"]||A;i[h]=i[h]||Object.create(null),so(i[h],[{axis:A},r[h],u[d]])})}),Object.keys(i).forEach(s=>{const a=i[s];so(a,[Pe.scales[a.type],Pe.scale])}),i}function lf(t){const e=t.options||(t.options={});e.plugins=fe(e.plugins,{}),e.scales=GE(t,e)}function cf(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function KE(t){return t=t||{},t.data=cf(t.data),lf(t),t}const uf=new Map,df=new Set;function Fi(t,e){let n=uf.get(t);return n||(n=e(),uf.set(t,n),df.add(n)),n}const bo=(t,e,n)=>{const r=Sn(e,n);r!==void 0&&t.add(r)};let XE=class{constructor(e){this._config=KE(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cf(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),lf(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Fi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Fi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Fi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Fi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let o=r.get(e);return(!o||n)&&(o=new Map,r.set(e,o)),o}getOptionScopes(e,n,r){const{options:o,type:i}=this,s=this._cachedScopes(e,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>bo(l,e,d))),u.forEach(d=>bo(l,o,d)),u.forEach(d=>bo(l,Vn[i]||{},d)),u.forEach(d=>bo(l,Pe,d)),u.forEach(d=>bo(l,Ga,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),df.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Vn[n]||{},Pe.datasets[n]||{},{type:n},Pe,Ga]}resolveNamedOptions(e,n,r,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Af(this._resolverCache,e,o);let l=s;if(ZE(s,n)){i.$shared=!1,r=Pn(r)?r():r;const c=this.createResolver(e,r,a);l=br(s,r,c)}for(const c of n)i[c]=l[c];return i}createResolver(e,n,r=[""],o){const{resolver:i}=Af(this._resolverCache,e,r);return he(n)?br(i,n,void 0,o):i}};function Af(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);return i||(i={resolver:Za(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(o,i)),i}const JE=t=>he(t)&&Object.getOwnPropertyNames(t).some(e=>Pn(t[e]));function ZE(t,e){const{isScriptable:n,isIndexable:r}=xh(t);for(const o of e){const i=n(o),s=r(o),a=(s||i)&&t[o];if(i&&(Pn(a)||JE(a))||s&&Fe(a))return!0}return!1}var $E="4.5.1";const eC=["top","bottom","left","right","chartArea"];function hf(t,e){return t==="top"||t==="bottom"||eC.indexOf(t)===-1&&e==="x"}function ff(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function pf(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ee(n&&n.onComplete,[t],e)}function tC(t){const e=t.chart,n=e.options.animation;Ee(n&&n.onProgress,[t],e)}function gf(t){return tl()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Qi={},mf=t=>{const e=gf(t);return Object.values(Qi).filter(n=>n.canvas===e).pop()};function nC(t,e,n){const r=Object.keys(t);for(const o of r){const i=+o;if(i>=e){const s=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=s)}}}function rC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let hl=class{static defaults=Pe;static instances=Qi;static overrides=Vn;static registry=qt;static version=$E;static getChart=mf;static register(...e){qt.add(...e),bf()}static unregister(...e){qt.remove(...e),bf()}constructor(e,n){const r=this.config=new XE(n),o=gf(e),i=mf(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||wE(o)),this.platform.updateConfig(r);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=p2(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=O2(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Qi[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}un.listen(this,"complete",pf),un.listen(this,"progress",tC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return we(e)?n&&i?i:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dh(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return gh(this.canvas,this.ctx),this}stop(){return un.stop(this),this}resize(e,n){un.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,n,i),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Dh(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ee(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};be(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,o=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const a=n[s],l=Al(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),be(i,s=>{const a=s.options,l=a.id,c=Al(l,a),u=fe(a.type,s.dtype);(a.position===void 0||hf(a.position,c)!==hf(s.dposition))&&(a.position=s.dposition),o[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const A=qt.getScale(u);d=new A({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,e)}),be(o,(s,a)=>{s||delete r[a]}),be(r,s=>{Et.configure(this,s,s.options),Et.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((o,i)=>o.index-i.index),r>n){for(let o=n;o<r;++o)this._destroyDatasetMeta(o);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(ff("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r<o;r++){const i=n[r];let s=this.getDatasetMeta(r);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=i.indexAxis||dl(a,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=qt.getController(a),{datasetElementType:c,dataElementType:u}=Pe.datasets[a];Object.assign(l,{dataElementType:qt.getElement(u),datasetElementType:c&&qt.getElement(c)}),s.controller=new l(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){be(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),A=!o&&i.indexOf(d)===-1;d.buildOrUpdateElements(A),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),o||be(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ff("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){be(this.scales,e=>{Et.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!$A(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const s=r==="_removeElements"?-i:i;nC(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=r(0);for(let i=1;i<n;i++)if(!$A(o,r(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Et.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],be(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Pn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),o={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(r.controller._update(n),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(un.has(this)?this.attached&&!un.running(this)&&un.start(this):(this.draw(),pf({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let o,i;for(o=0,i=n.length;o<i;++o){const s=n[o];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=yk(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Xa(n,o),e.controller.draw(),o&&Ja(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return vh(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,o){const i=eE.modes[n];return typeof i=="function"?i(this,e,r,o):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=mr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);ao(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(i,{visible:r}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),un.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),gh(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(i,s)=>{n.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};be(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){be(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},be(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const o=r?"set":"remove";let i,s,a,l;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!mi(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const o=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=i(n,e),a=r?e:i(e,n);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:o=[],options:i}=this,s=n,a=this._getActiveElements(e,o,r,s),l=w2(e),c=rC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Ee(i.onHover,[e,a,this],this),l&&Ee(i.onClick,[e,a,this],this));const u=!mi(a,o);return(u||n)&&(this._active=a,this._updateHoverStyles(a,o,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,o){if(e.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}};function bf(){return be(hl.instances,t=>t._plugins.invalidate())}function vf(t,e){const{x:n,y:r,base:o,width:i,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,a=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:a,top:c,right:l,bottom:u}}function Tn(t,e,n,r){return t?0:Bt(e,n,r)}function oC(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=wh(r);return{t:Tn(o.top,i.top,0,n),r:Tn(o.right,i.right,0,e),b:Tn(o.bottom,i.bottom,0,n),l:Tn(o.left,i.left,0,e)}}function iC(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=gr(o),s=Math.min(e,n),a=t.borderSkipped,l=r||he(o);return{topLeft:Tn(!l||a.top||a.left,i.topLeft,0,s),topRight:Tn(!l||a.top||a.right,i.topRight,0,s),bottomLeft:Tn(!l||a.bottom||a.left,i.bottomLeft,0,s),bottomRight:Tn(!l||a.bottom||a.right,i.bottomRight,0,s)}}function sC(t){const e=vf(t),n=e.right-e.left,r=e.bottom-e.top,o=oC(t,n/2,r/2),i=iC(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function fl(t,e,n,r){const o=e===null,i=n===null,a=t&&!(o&&i)&&vf(t,r);return a&&(o||pr(e,a.left,a.right))&&(i||pr(n,a.top,a.bottom))}function aC(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function lC(t,e){t.rect(e.x,e.y,e.w,e.h)}function pl(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+s,radius:t.radius}}class cC extends yr{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:s}=sC(this),a=aC(s.radius)?Ei:lC;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),a(e,pl(s,n,i)),e.clip(),a(e,pl(i,-n,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,pl(i,n)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,n,r){return fl(this,e,n,r)}inXRange(e,n){return fl(this,e,null,n)}inYRange(e,n){return fl(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}const gl=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yf=gl.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function wf(t){return gl[t%gl.length]}function xf(t){return yf[t%yf.length]}function uC(t,e){return t.borderColor=wf(e),t.backgroundColor=xf(e),++e}function dC(t,e){return t.backgroundColor=t.data.map(()=>wf(e++)),e}function AC(t,e){return t.backgroundColor=t.data.map(()=>xf(e++)),e}function hC(t){let e=0;return(n,r)=>{const o=t.getDatasetMeta(r).controller;o instanceof qk?e=dC(n,e):o instanceof Gk?e=AC(n,e):o&&(e=uC(n,e))}}function kf(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function fC(t){return t&&(t.borderColor||t.backgroundColor)}function pC(){return Pe.borderColor!=="rgba(0,0,0,0.1)"||Pe.backgroundColor!=="rgba(0,0,0,0.1)"}var gC={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=t.config,{elements:i}=o,s=kf(r)||fC(o)||i&&kf(i)||pC();if(!n.forceOverride&&s)return;const a=hC(t);r.forEach(a)}};const Ef=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},mC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Cf extends yr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ee(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,o)=>e.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,o=We(r.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Ef(r,i);let c,u;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,i,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let d=e;i.textAlign="left",i.textBaseline="middle";let A=-1,h=-u;return this.legendItems.forEach((f,g)=>{const p=r+n/2+i.measureText(f.text).width;(g===0||c[c.length-1]+p+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,h+=u,A++),l[g]={left:0,top:h,row:A,width:p,height:o},c[c.length-1]+=p+a}),d}_fitCols(e,n,r,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,A=0,h=0,f=0,g=0;return this.legendItems.forEach((p,v)=>{const{itemWidth:w,itemHeight:y}=bC(r,n,i,p,o);v>0&&h+y+2*a>u&&(d+=A+a,c.push({width:A,height:h}),f+=A+a,g++,A=h=0),l[v]={left:f,top:h,col:g,width:w,height:y},A=Math.max(A,w),h+=y+a}),d+=A,c.push({width:A,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,s=vr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=He(r,this.left+o,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=He(r,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=He(r,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=He(r,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Xa(e,this),this._draw(),Ja(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:s}=e,a=Pe.color,l=vr(e.rtl,this.left,this.width),c=We(s.font),{padding:u}=s,d=c.size,A=d/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:f,boxHeight:g,itemHeight:p}=Ef(s,d),v=function(k,P,D){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;o.save();const I=fe(D.lineWidth,1);if(o.fillStyle=fe(D.fillStyle,a),o.lineCap=fe(D.lineCap,"butt"),o.lineDashOffset=fe(D.lineDashOffset,0),o.lineJoin=fe(D.lineJoin,"miter"),o.lineWidth=I,o.strokeStyle=fe(D.strokeStyle,a),o.setLineDash(fe(D.lineDash,[])),s.usePointStyle){const T={radius:g*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:I},M=l.xPlus(k,f/2),B=P+A;bh(o,T,M,B,s.pointStyleWidth&&f)}else{const T=P+Math.max((d-g)/2,0),M=l.leftForLtr(k,f),B=gr(D.borderRadius);o.beginPath(),Object.values(B).some(_=>_!==0)?Ei(o,{x:M,y:T,w:f,h:g,radius:B}):o.rect(M,T,f,g),o.fill(),I!==0&&o.stroke()}o.restore()},w=function(k,P,D){uo(o,D.text,k,P+p/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},y=this.isHorizontal(),b=this._computeTitleHeight();y?h={x:He(i,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:He(i,this.top+b+u,this.bottom-n[0].height),line:0},Th(this.ctx,e.textDirection);const E=p+u;this.legendItems.forEach((k,P)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const D=o.measureText(k.text).width,I=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),T=f+A+D;let M=h.x,B=h.y;l.setWidth(this.width),y?P>0&&M+T+u>this.right&&(B=h.y+=E,h.line++,M=h.x=He(i,this.left+u,this.right-r[h.line])):P>0&&B+E>this.bottom&&(M=h.x=M+n[h.line].width+u,h.line++,B=h.y=He(i,this.top+b+u,this.bottom-n[h.line].height));const _=l.x(M);if(v(_,B,k),M=L2(I,M+f+A,y?M+T:this.right,e.rtl),w(l.x(M),B,k),y)h.x+=T+u;else if(typeof k.text!="string"){const N=c.lineHeight;h.y+=Sf(k,N)+u}else h.y+=E}),Ih(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=We(n.font),o=kt(n.padding);if(!n.display)return;const i=vr(e.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=o.top+l;let u,d=this.left,A=this.width;if(this.isHorizontal())A=Math.max(...this.lineWidths),u=this.top+c,d=He(e.align,d,this.right-A);else{const f=this.columnSizes.reduce((g,p)=>Math.max(g,p.height),0);u=c+He(e.align,this.top,this.bottom-f-e.labels.padding-this._computeTitleHeight())}const h=He(a,d,d+A);s.textAlign=i.textAlign(Ya(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,uo(s,n.text,h,u,r)}_computeTitleHeight(){const e=this.options.title,n=We(e.font),r=kt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,o,i;if(pr(e,this.left,this.right)&&pr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(o=i[r],pr(e,o.left,o.left+o.width)&&pr(n,o.top,o.top+o.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!wC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=mC(o,r);o&&!i&&Ee(n.onLeave,[e,o,this],this),this._hoveredItem=r,r&&!i&&Ee(n.onHover,[e,r,this],this)}else r&&Ee(n.onClick,[e,r,this],this)}}function bC(t,e,n,r,o){const i=vC(r,t,e,n),s=yC(o,r,e.lineHeight);return{itemWidth:i,itemHeight:s}}function vC(t,e,n,r){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+n.size/2+r.measureText(o).width}function yC(t,e,n){let r=t;return typeof e.text!="string"&&(r=Sf(e,n)),r}function Sf(t,e){const n=t.text?t.text.length:0;return e*n}function wC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var xC={id:"legend",_element:Cf,start(t,e,n){const r=t.legend=new Cf({ctx:t.ctx,options:n,chart:t});Et.configure(t,r,n),Et.addBox(t,r)},stop(t){Et.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Et.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=kt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Pf extends yr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const o=Fe(r.text)?r.text.length:1;this._padding=kt(r.padding);const i=o*We(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:o,right:i,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=He(a,r,i),d=n+e,c=i-r):(s.position==="left"?(u=r+e,d=He(a,o,n),l=Qe*-.5):(u=i-e,d=He(a,n,o),l=Qe*.5),c=o-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=We(n.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(i);uo(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Ya(n.align),textBaseline:"middle",translation:[s,a]})}}function kC(t,e){const n=new Pf({ctx:t.ctx,options:e,chart:t});Et.configure(t,n,e),Et.addBox(t,n),t.titleBlock=n}var EC={id:"title",_element:Pf,start(t,e,n){kC(t,n)},stop(t){const e=t.titleBlock;Et.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Et.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vo={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),o+=l.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((a,l)=>a+l)/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=B2(e,c);u<o&&(o=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Gt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function dn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
280
280
|
`)>-1?t.split(`
|
|
281
|
-
`):t}function CC(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Df(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=We(e.bodyFont),c=We(e.titleFont),u=We(e.footerFont),d=i.length,A=o.length,h=r.length,f=kt(e.padding);let g=f.height,p=0,y=r.reduce((b,E)=>b+E.before.length+E.lines.length+E.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=h*b+(y-h)*l.lineHeight+(y-1)*e.bodySpacing}A&&(g+=e.footerMarginTop+A*u.lineHeight+(A-1)*e.footerSpacing);let w=0;const v=function(b){p=Math.max(p,n.measureText(b).width+w)};return n.save(),n.font=c.string,be(t.title,v),n.font=l.string,be(t.beforeBody.concat(t.afterBody),v),w=e.displayColors?s+2+e.boxPadding:0,be(r,b=>{be(b.before,v),be(b.lines,v),be(b.after,v)}),w=0,n.font=u.string,be(t.footer,v),n.restore(),p+=f.width,{width:p,height:g}}function SC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function PC(t,e,n,r){const{x:o,width:i}=r,s=n.caretSize+n.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function DC(t,e,n,r){const{x:o,width:i}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return r==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),PC(c,t,e,n)&&(c="center"),c}function Bf(t,e,n){const r=n.yAlign||e.yAlign||SC(t,n);return{xAlign:n.xAlign||e.xAlign||DC(t,e,n,r),yAlign:r}}function BC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function TC(t,e,n){let{y:r,height:o}=t;return e==="top"?r+=n:e==="bottom"?r-=o+n:r-=o/2,r}function Tf(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:A,bottomRight:h}=gr(s);let f=BC(e,a);const g=TC(e,l,c);return l==="center"?a==="left"?f+=c:a==="right"&&(f-=c):a==="left"?f-=Math.max(u,A)+o:a==="right"&&(f+=Math.max(d,h)+o),{x:Bt(f,0,r.width-e.width),y:Bt(g,0,r.height-e.height)}}function Ni(t,e,n){const r=kt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function If(t){return Gt([],dn(t))}function IC(t,e,n){return mr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Mf(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const _f={beforeTitle:cn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:cn,beforeBody:cn,beforeLabel:cn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return we(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:cn,afterBody:cn,beforeFooter:cn,footer:cn,afterFooter:cn};function nt(t,e,n,r){const o=t[e].call(n,r);return typeof o>"u"?_f[e].call(n,r):o}class Of extends yr{static positioners=vo;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new _h(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=IC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,o=nt(r,"beforeTitle",this,e),i=nt(r,"title",this,e),s=nt(r,"afterTitle",this,e);let a=[];return a=Gt(a,dn(o)),a=Gt(a,dn(i)),a=Gt(a,dn(s)),a}getBeforeBody(e,n){return If(nt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,o=[];return be(e,i=>{const s={before:[],lines:[],after:[]},a=Mf(r,i);Gt(s.before,dn(nt(a,"beforeLabel",this,i))),Gt(s.lines,nt(a,"label",this,i)),Gt(s.after,dn(nt(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,n){return If(nt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,o=nt(r,"beforeFooter",this,e),i=nt(r,"footer",this,e),s=nt(r,"afterFooter",this,e);let a=[];return a=Gt(a,dn(o)),a=Gt(a,dn(i)),a=Gt(a,dn(s)),a}_createItems(e){const n=this._active,r=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(CC(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,A)=>e.filter(u,d,A,r))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,r))),be(a,u=>{const d=Mf(e.callbacks,u);o.push(nt(d,"labelColor",this,u)),i.push(nt(d,"labelPointStyle",this,u)),s.push(nt(d,"labelTextColor",this,u))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=vo[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=Df(this,r),c=Object.assign({},a,l),u=Bf(this.chart,r,c),d=Tf(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,o){const i=this.getCaretPosition(e,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=gr(a),{x:A,y:h}=e,{width:f,height:g}=n;let p,y,w,v,b,E;return i==="center"?(b=h+g/2,o==="left"?(p=A,y=p-s,v=b+s,E=b-s):(p=A+f,y=p+s,v=b-s,E=b+s),w=p):(o==="left"?y=A+Math.max(l,u)+s:o==="right"?y=A+f-Math.max(c,d)-s:y=this.caretX,i==="top"?(v=h,b=v-s,p=y-s,w=y+s):(v=h+g,b=v+s,p=y+s,w=y-s),E=v),{x1:p,x2:y,x3:w,y1:v,y2:b,y3:E}}drawTitle(e,n,r){const o=this.title,i=o.length;let s,a,l;if(i){const c=vr(r.rtl,this.x,this.width);for(e.x=Ni(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=We(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<i;++l)n.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,n,r,o,i){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=i,u=We(i.bodyFont),d=Ni(this,"left",i),A=o.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,f=n.y+h;if(i.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=o.leftForLtr(A,c)+c/2,y=f+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,mh(e,g,p,y),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,mh(e,g,p,y)}else{e.lineWidth=he(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const g=o.leftForLtr(A,c),p=o.leftForLtr(o.xPlus(A,1),c-2),y=gr(s.borderRadius);Object.values(y).some(w=>w!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Ei(e,{x:g,y:f,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Ei(e,{x:p,y:f+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(g,f,c,l),e.strokeRect(g,f,c,l),e.fillStyle=s.backgroundColor,e.fillRect(p,f+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=We(r.bodyFont);let A=d.lineHeight,h=0;const f=vr(r.rtl,this.x,this.width),g=function(D){n.fillText(D,f.x(e.x+h),e.y+A/2),e.y+=A+i},p=f.textAlign(s);let y,w,v,b,E,k,P;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,e.x=Ni(this,p,r),n.fillStyle=r.bodyColor,be(this.beforeBody,g),h=a&&p!=="right"?s==="center"?c/2+u:c+2+u:0,b=0,k=o.length;b<k;++b){for(y=o[b],w=this.labelTextColors[b],n.fillStyle=w,be(y.before,g),v=y.lines,a&&v.length&&(this._drawColorBox(n,e,b,f,r),A=Math.max(d.lineHeight,l)),E=0,P=v.length;E<P;++E)g(v[E]),A=d.lineHeight;be(y.after,g)}h=0,A=d.lineHeight,be(this.afterBody,g),e.y-=i}drawFooter(e,n,r){const o=this.footer,i=o.length;let s,a;if(i){const l=vr(r.rtl,this.x,this.width);for(e.x=Ni(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=We(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<i;++a)n.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,n,r,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:u}=r,{topLeft:d,topRight:A,bottomLeft:h,bottomRight:f}=gr(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(e,n,r,o),n.lineTo(a+c-A,l),n.quadraticCurveTo(a+c,l,a+c,l+A),s==="center"&&i==="right"&&this.drawCaret(e,n,r,o),n.lineTo(a+c,l+u-f),n.quadraticCurveTo(a+c,l+u,a+c-f,l+u),s==="bottom"&&this.drawCaret(e,n,r,o),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),s==="center"&&i==="left"&&this.drawCaret(e,n,r,o),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const s=vo[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Df(this,e),l=Object.assign({},s,this._size),c=Bf(n,e,l),u=Tf(e,l,c,n);(o._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=kt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,o,n),Th(e,n.textDirection),i.y+=s.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),Ih(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!mi(r,o),s=this._positionChanged(o,n);(i||s)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,n,r),a=this._positionChanged(s,e),l=n||!mi(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:o,options:i}=this,s=vo[i.position].call(this,e,n);return s!==!1&&(r!==s.x||o!==s.y)}}var MC={id:"tooltip",_element:Of,positioners:vo,afterInit(t,e,n){n&&(t.tooltip=new Of({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:_f},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const _C=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function OC(t,e,n,r){const o=t.indexOf(e);if(o===-1)return _C(t,e,n,r);const i=t.lastIndexOf(e);return o!==i?n:o}const LC=(t,e)=>t===null?null:Bt(Math.round(t),0,e);function Lf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class FC extends wr{static id="category";static defaults={ticks:{callback:Lf}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:o,label:i}of n)r[o]===i&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(we(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:OC(r,e,fe(n,e),this._addedLabels),LC(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,o=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=n;s++)o.push({value:s});return o}getLabelForValue(e){return Lf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function QC(t,e){const n=[],{bounds:o,step:i,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:A}=t,h=i||1,f=u-1,{min:g,max:p}=e,y=!we(s),w=!we(a),v=!we(c),b=(p-g)/(d+1);let E=nh((p-g)/f/h)*h,k,P,D,I;if(E<1e-14&&!y&&!w)return[{value:g},{value:p}];I=Math.ceil(p/E)-Math.floor(g/E),I>f&&(E=nh(I*E/f/h)*h),we(l)||(k=Math.pow(10,l),E=Math.ceil(E*k)/k),o==="ticks"?(P=Math.floor(g/E)*E,D=Math.ceil(p/E)*E):(P=g,D=p),y&&w&&i&&C2((a-s)/i,E/1e3)?(I=Math.round(Math.min((a-s)/E,u)),E=(a-s)/I,P=s,D=a):v?(P=y?s:P,D=w?a:D,I=c-1,E=(D-P)/I):(I=(D-P)/E,yi(I,Math.round(I),E/1e3)?I=Math.round(I):I=Math.ceil(I));const T=Math.max(rh(E),rh(P));k=Math.pow(10,we(l)?T:l),P=Math.round(P*k)/k,D=Math.round(D*k)/k;let M=0;for(y&&(A&&P!==s?(n.push({value:s}),P<s&&M++,yi(Math.round((P+M*E)*k)/k,s,Ff(s,b,t))&&M++):P<s&&M++);M<I;++M){const B=Math.round((P+M*E)*k)/k;if(w&&B>a)break;n.push({value:B})}return w&&A&&D!==a?n.length&&yi(n[n.length-1].value,a,Ff(a,b,t))?n[n.length-1].value=a:n.push({value:a}):(!w||D===a)&&n.push({value:D}),n}function Ff(t,e,{horizontal:n,minRotation:r}){const o=Yt(r),i=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class NC extends wr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return we(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const s=l=>o=n?o:l,a=l=>i=r?i:l;if(e){const l=Dn(o),c=Dn(i);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(o===i){let l=i===0?1:Math.abs(i*.05);a(i+l),e||s(o-l)}this.min=o,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=QC(o,i);return e.bounds==="ticks"&&S2(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const o=(r-n)/Math.max(e.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return ki(e,this.chart.options.locale,this.options.ticks.format)}}class zC extends NC{static id="linear";static defaults={ticks:{callback:fh.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=xt(e)?e:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Yt(this.options.ticks.minRotation),o=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const zi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rt=Object.keys(zi);function Qf(t,e){return t-e}function Nf(t,e){if(we(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),xt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(o&&(s=o==="week"&&(wi(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,o)),+s)}function zf(t,e,n,r){const o=rt.length;for(let i=rt.indexOf(t);i<o-1;++i){const s=zi[rt[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(a*s.size))<=r)return rt[i]}return rt[o-1]}function RC(t,e,n,r,o){for(let i=rt.length-1;i>=rt.indexOf(n);i--){const s=rt[i];if(zi[s].common&&t._adapter.diff(o,r,s)>=e-1)return s}return rt[n?rt.indexOf(n):0]}function UC(t){for(let e=rt.indexOf(t)+1,n=rt.length;e<n;++e)if(zi[rt[e]].common)return rt[e]}function Rf(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:o}=Ha(n,e),i=n[r]>=e?n[r]:n[o];t[i]=!0}}function jC(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,r))l=n[a],l>=0&&(e[l].major=!0);return e}function Uf(t,e,n){const r=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,r.push({value:a,major:!1});return i===0||!n?r:jC(t,r,o,n)}class jf extends wr{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),o=this._adapter=new Kk._date(e.adapters.date);o.init(n),so(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Nf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=xt(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=xt(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=M2(o,i,s);return this._unit=n.unit||(r.autoSkip?zf(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):RC(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:UC(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Uf(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?n=1-o:n=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Bt(n,0,s),r=Bt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,s=i.unit||zf(i.minUnit,n,r,this._getLabelCapacity(n)),a=fe(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=wi(l)||l===!0,u={};let d=n,A,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const f=o.ticks.source==="data"&&this.getDataTimestamps();for(A=d,h=0;A<r;A=+e.add(A,a,s),h++)Rf(u,A,f);return(A===r||o.bounds==="ticks"||h===1)&&Rf(u,A,f),Object.keys(u).sort(Qf).map(g=>+g)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const o=this.options.time.displayFormats,i=this._unit,s=n||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,n,r,o){const i=this.options,s=i.ticks.callback;if(s)return Ee(s,[e,n,r],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],A=r[n],h=c&&d&&A&&A.major;return this._adapter.format(e,o||(h?d:u))}generateTickLabels(e){let n,r,o;for(n=0,r=e.length;n<r;++n)o=e[n],o.label=this._tickFormatFunction(o.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,o=Yt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:r*i+a*s,h:r*s+a*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Uf(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n<r;++n)e=e.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const o=this.getLabels();for(n=0,r=o.length;n<r;++n)e.push(Nf(this,o[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return sh(e.sort(Qf))}}function Ri(t,e,n){let r=0,o=t.length-1,i,s,a,l;n?(e>=t[r].pos&&e<=t[o].pos&&({lo:r,hi:o}=Wa(t,"pos",e)),{pos:i,time:a}=t[r],{pos:s,time:l}=t[o]):(e>=t[r].time&&e<=t[o].time&&({lo:r,hi:o}=Wa(t,"time",e)),{time:i,pos:a}=t[r],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class HS extends jf{static id="timeseries";static defaults=jf.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Ri(n,this.min),this._tableRange=Ri(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,o=[],i=[];let s,a,l,c,u;for(s=0,a=e.length;s<a;++s)c=e[s],c>=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=o.length;s<a;++s)u=o[s+1],l=o[s-1],c=o[s],Math.round((u+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Ri(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Ri(this._table,r*this._tableRange+this._minPos,!0)}}hl.register(gC,Wk,cC,FC,zC,xC,EC,MC);function VC({type:t="bar",data:e,options:n}){const r=x.useRef(null),o=x.useRef(null);return x.useLayoutEffect(()=>{o.current&&(r.current?(r.current.options=n,r.current.data=e,r.current.update()):r.current=new hl(o.current,{type:t,data:e,options:n}))},[t,e,n]),m.jsx("div",{className:"chart",children:m.jsx("canvas",{ref:o})})}const Vf=["--teal-700","--yellow-400","--teal-400","--orange-400","--green-400","--red-400"],ml=["0 - 1s","1 - 30s","30s - 30min","30 - 60min","1 - 5hr","5 - 10hr","10 - 18hr","18+hr"],bl=(t,e,n=0)=>`${t.toFixed(n)} ${e}${t==1?"":"s"}`,Hf=t=>{const e=t/3600;if(e>=1)return bl(e,"hour",1);const n=t/60;return n>=1?bl(n,"minute",0):bl(t,"second",0)},Ui=t=>t.replace(/ \([^)]+\)/,"");function HC({infoGroupId:t}){const[e,n]=x.useState("overview"),r=xp(t).filter(c=>c.cider_type=="Compute"),o=Ke(r.length?r.map(c=>`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${c.info_resourceid}/`):null,{defaultValue:[]}),i=Ke(e!=="overview"?`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${e}/queue/job_walltime`:null);if(!o.length||!r.length)return;const s=o.map((c,u)=>c.error?c:{...c.data[0],...r[u]}).filter(c=>!c.error);if(!s.length)return;const a=[m.jsxs("select",{value:e,onChange:c=>n(c.target.value),children:[m.jsx("option",{value:"overview",children:"Overview"},"overview"),s.map(c=>m.jsx("option",{value:c.info_resourceid,children:Ui(c.resource_descriptive_name)},c.info_resourceid))]},"select")];let l=null;if(e==="overview")l=m.jsx("div",{className:"cards",children:s.map(({info_resourceid:c,job_count:u,median_expansion_factor:d,median_wait_time:A,median_wall_time:h,resource_descriptive_name:f})=>m.jsxs("p",{className:"card metrics-overview",children:[m.jsxs("b",{children:[Ui(f),":"]})," Users ran"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"file-earmark-code"}),parseInt(u).toLocaleString("en-us")," jobs"]})," ","during the last 30 days. Waiting in the queue caused an average"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"calculator"}),((d-1)*100).toLocaleString("en-us",{maximumFractionDigits:0}),"% increase"]})," ","in the total completion time. The average job waited for"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"hourglass-split"})," ",Hf(A)]})," ","and ran for"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"stopwatch"}),Hf(h)]}),"."," ",m.jsx("a",{title:`Wait time chart for ${Ui(f)}`,href:"#",onClick:g=>{g.preventDefault(),n(c)},children:"View chart »"})]},c))});else if(i&&i.info_resource_id===e){const c={},u=ml;for(let f of i.data)c[f.queue]=c[f.queue]||{label:f.queue,data:Array(ml.length).fill(null)},c[f.queue].data[ml.indexOf(f.job_walltime)]=f.median_wait_time/60;const d=Object.values(c);d.forEach((f,g)=>{let p=Vf[g%(Vf.length-1)];f.backgroundColor=getComputedStyle(document.body).getPropertyValue(p)});const A=s.find(f=>f.info_resourceid==i.info_resource_id),h={interaction:{intersect:!1,mode:"index"},plugins:{title:{display:!0,text:`Median Wait Time by Queue on ${Ui(A.resource_descriptive_name)}: Last 30 Days`}},scales:{x:{title:{display:!0,text:"Job Wall Time (Run Time)"}},y:{title:{display:!0,text:"Median Wait Time (Minutes)"}}}};l=m.jsxs(m.Fragment,{children:[m.jsx(VC,{type:"bar",data:{labels:u,datasets:d},options:h}),m.jsx("p",{children:m.jsx("a",{href:"#",onClick:f=>{f.preventDefault(),n("overview")},children:"« Back to overview"})})]})}return m.jsxs(Ut,{title:"Wait Time",icon:"hourglass-split",headerComponents:a,children:[l,m.jsxs("p",{className:"metrics-disclaimer",children:[m.jsx(Ae,{name:"info-circle"}),"These metrics describe activity from ACCESS projects. Many resources have additional projects that are not part of ACCESS."]})]})}function An(t){return Array.isArray?Array.isArray(t):qf(t)==="[object Array]"}function WC(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function YC(t){return t==null?"":WC(t)}function Kt(t){return typeof t=="string"}function Wf(t){return typeof t=="number"}function qC(t){return t===!0||t===!1||GC(t)&&qf(t)=="[object Boolean]"}function Yf(t){return typeof t=="object"}function GC(t){return Yf(t)&&t!==null}function ht(t){return t!=null}function vl(t){return!t.trim().length}function qf(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const KC="Incorrect 'index' type",XC=t=>`Invalid value for key ${t}`,JC=t=>`Pattern length exceeds max of ${t}.`,ZC=t=>`Missing ${t} property in key`,$C=t=>`Property 'weight' in key '${t}' must be a positive integer`,Gf=Object.prototype.hasOwnProperty;class eS{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let o=Kf(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Kf(t){let e=null,n=null,r=null,o=1,i=null;if(Kt(t)||An(t))r=t,e=Xf(t),n=yl(t);else{if(!Gf.call(t,"name"))throw new Error(ZC("name"));const s=t.name;if(r=s,Gf.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($C(s));e=Xf(s),n=yl(s),i=t.getFn}return{path:e,id:n,weight:o,src:r,getFn:i}}function Xf(t){return An(t)?t:t.split(".")}function yl(t){return An(t)?t.join("."):t}function tS(t,e){let n=[],r=!1;const o=(i,s,a)=>{if(ht(i))if(!s[a])n.push(i);else{let l=s[a];const c=i[l];if(!ht(c))return;if(a===s.length-1&&(Kt(c)||Wf(c)||qC(c)))n.push(YC(c));else if(An(c)){r=!0;for(let u=0,d=c.length;u<d;u+=1)o(c[u],s,a+1)}else s.length&&o(c,s,a+1)}};return o(t,Kt(e)?e.split("."):e,0),r?n:n[0]}var ne={...{isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:tS,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const nS=/[^ ]+/g;function rS(t=1,e=3){const n=new Map,r=Math.pow(10,e);return{get(o){const i=o.match(nS).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*t),a=parseFloat(Math.round(s*r)/r);return n.set(i,a),a},clear(){n.clear()}}}class wl{constructor({getFn:e=ne.getFn,fieldNormWeight:n=ne.fieldNormWeight}={}){this.norm=rS(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Kt(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Kt(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!ht(e)||vl(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(e):this.getFn(e,o.path);if(ht(s)){if(An(s)){let a=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(ht(u))if(Kt(u)&&!vl(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else An(u)&&u.forEach((d,A)=>{l.push({nestedArrIndex:A,value:d})})}r.$[i]=a}else if(Kt(s)&&!vl(s)){let a={v:s,n:this.norm.get(s)};r.$[i]=a}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Jf(t,e,{getFn:n=ne.getFn,fieldNormWeight:r=ne.fieldNormWeight}={}){const o=new wl({getFn:n,fieldNormWeight:r});return o.setKeys(t.map(Kf)),o.setSources(e),o.create(),o}function oS(t,{getFn:e=ne.getFn,fieldNormWeight:n=ne.fieldNormWeight}={}){const{keys:r,records:o}=t,i=new wl({getFn:e,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function ji(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ne.distance,ignoreLocation:i=ne.ignoreLocation}={}){const s=e/t.length;if(i)return s;const a=Math.abs(r-n);return o?s+a/o:a?1:s}function iS(t=[],e=ne.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=t.length;i<s;i+=1){let a=t[i];a&&r===-1?r=i:!a&&r!==-1&&(o=i-1,o-r+1>=e&&n.push([r,o]),r=-1)}return t[i-1]&&i-r>=e&&n.push([r,i-1]),n}const Gn=32;function sS(t,e,n,{location:r=ne.location,distance:o=ne.distance,threshold:i=ne.threshold,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,includeMatches:l=ne.includeMatches,ignoreLocation:c=ne.ignoreLocation}={}){if(e.length>Gn)throw new Error(JC(Gn));const u=e.length,d=t.length,A=Math.max(0,Math.min(r,d));let h=i,f=A;const g=a>1||l,p=g?Array(d):[];let y;for(;(y=t.indexOf(e,f))>-1;){let P=ji(e,{currentLocation:y,expectedLocation:A,distance:o,ignoreLocation:c});if(h=Math.min(P,h),f=y+u,g){let D=0;for(;D<u;)p[y+D]=1,D+=1}}f=-1;let w=[],v=1,b=u+d;const E=1<<u-1;for(let P=0;P<u;P+=1){let D=0,I=b;for(;D<I;)ji(e,{errors:P,currentLocation:A+I,expectedLocation:A,distance:o,ignoreLocation:c})<=h?D=I:b=I,I=Math.floor((b-D)/2+D);b=I;let T=Math.max(1,A-I+1),M=s?d:Math.min(A+I,d)+u,B=Array(M+2);B[M+1]=(1<<P)-1;for(let N=M;N>=T;N-=1){let O=N-1,R=n[t.charAt(O)];if(g&&(p[O]=+!!R),B[N]=(B[N+1]<<1|1)&R,P&&(B[N]|=(w[N+1]|w[N])<<1|1|w[N+1]),B[N]&E&&(v=ji(e,{errors:P,currentLocation:O,expectedLocation:A,distance:o,ignoreLocation:c}),v<=h)){if(h=v,f=O,f<=A)break;T=Math.max(1,2*A-f)}}if(ji(e,{errors:P+1,currentLocation:A,expectedLocation:A,distance:o,ignoreLocation:c})>h)break;w=B}const k={isMatch:f>=0,score:Math.max(.001,v)};if(g){const P=iS(p,a);P.length?l&&(k.indices=P):k.isMatch=!1}return k}function aS(t){let e={};for(let n=0,r=t.length;n<r;n+=1){const o=t.charAt(n);e[o]=(e[o]||0)|1<<r-n-1}return e}const Vi=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class Zf{constructor(e,{location:n=ne.location,threshold:r=ne.threshold,distance:o=ne.distance,includeMatches:i=ne.includeMatches,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,isCaseSensitive:l=ne.isCaseSensitive,ignoreDiacritics:c=ne.ignoreDiacritics,ignoreLocation:u=ne.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u},e=l?e:e.toLowerCase(),e=c?Vi(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const d=(h,f)=>{this.chunks.push({pattern:h,alphabet:aS(h),startIndex:f})},A=this.pattern.length;if(A>Gn){let h=0;const f=A%Gn,g=A-f;for(;h<g;)d(this.pattern.substr(h,Gn),h),h+=Gn;if(f){const p=A-Gn;d(this.pattern.substr(p),p)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(e=n?e:e.toLowerCase(),e=r?Vi(e):e,this.pattern===e){let g={isMatch:!0,score:0};return o&&(g.indices=[[0,e.length-1]]),g}const{location:i,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:c,ignoreLocation:u}=this.options;let d=[],A=0,h=!1;this.chunks.forEach(({pattern:g,alphabet:p,startIndex:y})=>{const{isMatch:w,score:v,indices:b}=sS(e,g,p,{location:i+y,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:c,includeMatches:o,ignoreLocation:u});w&&(h=!0),A+=v,w&&b&&(d=[...d,...b])});let f={isMatch:h,score:h?A/this.chunks.length:1};return h&&o&&(f.indices=d),f}}class In{constructor(e){this.pattern=e}static isMultiMatch(e){return $f(e,this.multiRegex)}static isSingleMatch(e){return $f(e,this.singleRegex)}search(){}}function $f(t,e){const n=t.match(e);return n?n[1]:null}class lS extends In{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class cS extends In{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class uS extends In{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class dS extends In{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class AS extends In{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class hS extends In{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class ep extends In{constructor(e,{location:n=ne.location,threshold:r=ne.threshold,distance:o=ne.distance,includeMatches:i=ne.includeMatches,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,isCaseSensitive:l=ne.isCaseSensitive,ignoreDiacritics:c=ne.ignoreDiacritics,ignoreLocation:u=ne.ignoreLocation}={}){super(e),this._bitapSearch=new Zf(e,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class tp extends In{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const o=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const xl=[lS,tp,uS,dS,hS,AS,cS,ep],np=xl.length,fS=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pS="|";function gS(t,e={}){return t.split(pS).map(n=>{let r=n.trim().split(fS).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const a=r[i];let l=!1,c=-1;for(;!l&&++c<np;){const u=xl[c];let d=u.isMultiMatch(a);d&&(o.push(new u(d,e)),l=!0)}if(!l)for(c=-1;++c<np;){const u=xl[c];let d=u.isSingleMatch(a);if(d){o.push(new u(d,e));break}}}return o})}const mS=new Set([ep.type,tp.type]);class bS{constructor(e,{isCaseSensitive:n=ne.isCaseSensitive,ignoreDiacritics:r=ne.ignoreDiacritics,includeMatches:o=ne.includeMatches,minMatchCharLength:i=ne.minMatchCharLength,ignoreLocation:s=ne.ignoreLocation,findAllMatches:a=ne.findAllMatches,location:l=ne.location,threshold:c=ne.threshold,distance:u=ne.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:i,findAllMatches:a,ignoreLocation:s,location:l,threshold:c,distance:u},e=n?e:e.toLowerCase(),e=r?Vi(e):e,this.pattern=e,this.query=gS(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o,ignoreDiacritics:i}=this.options;e=o?e:e.toLowerCase(),e=i?Vi(e):e;let s=0,a=[],l=0;for(let c=0,u=n.length;c<u;c+=1){const d=n[c];a.length=0,s=0;for(let A=0,h=d.length;A<h;A+=1){const f=d[A],{isMatch:g,indices:p,score:y}=f.search(e);if(g){if(s+=1,l+=y,r){const w=f.constructor.type;mS.has(w)?a=[...a,...p]:a.push(p)}}else{l=0,s=0,a.length=0;break}}if(s){let A={isMatch:!0,score:l/s};return r&&(A.indices=a),A}}return{isMatch:!1,score:1}}}const kl=[];function vS(...t){kl.push(...t)}function El(t,e){for(let n=0,r=kl.length;n<r;n+=1){let o=kl[n];if(o.condition(t,e))return new o(t,e)}return new Zf(t,e)}const Hi={AND:"$and",OR:"$or"},Cl={PATH:"$path",PATTERN:"$val"},Sl=t=>!!(t[Hi.AND]||t[Hi.OR]),yS=t=>!!t[Cl.PATH],wS=t=>!An(t)&&Yf(t)&&!Sl(t),rp=t=>({[Hi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function op(t,e,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=yS(o);if(!s&&i.length>1&&!Sl(o))return r(rp(o));if(wS(o)){const l=s?o[Cl.PATH]:i[0],c=s?o[Cl.PATTERN]:o[l];if(!Kt(c))throw new Error(XC(l));const u={keyId:yl(l),pattern:c};return n&&(u.searcher=El(c,e)),u}let a={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];An(c)&&c.forEach(u=>{a.children.push(r(u))})}),a};return Sl(t)||(t=rp(t)),r(t)}function xS(t,{ignoreFieldNorm:e=ne.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const a=o?o.weight:null;r*=Math.pow(s===0&&a?Number.EPSILON:s,(a||1)*(e?1:i))}),n.score=r})}function kS(t,e){const n=t.matches;e.matches=[],ht(n)&&n.forEach(r=>{if(!ht(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),e.matches.push(s)})}function ES(t,e){e.score=t.score}function CS(t,e,{includeMatches:n=ne.includeMatches,includeScore:r=ne.includeScore}={}){const o=[];return n&&o.push(kS),r&&o.push(ES),t.map(i=>{const{idx:s}=i,a={item:e[s],refIndex:s};return o.length&&o.forEach(l=>{l(i,a)}),a})}class xr{constructor(e,n={},r){this.options={...ne,...n},this.options.useExtendedSearch,this._keyStore=new eS(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof wl))throw new Error(KC);this._myIndex=n||Jf(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){ht(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:a}=this.options;let l=Kt(e)?Kt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return xS(l,{ignoreFieldNorm:a}),i&&l.sort(s),Wf(n)&&n>-1&&(l=l.slice(0,n)),CS(l,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e){const n=El(e,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:a})=>{if(!ht(i))return;const{isMatch:l,score:c,indices:u}=n.searchIn(i);l&&o.push({item:i,idx:s,matches:[{score:c,value:i,norm:a,indices:u}]})}),o}_searchLogical(e){const n=op(e,this.options),r=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:A}=a,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:A});return h&&h.length?[{idx:c,item:l,matches:h}]:[]}const u=[];for(let d=0,A=a.children.length;d<A;d+=1){const h=a.children[d],f=r(h,l,c);if(f.length)u.push(...f);else if(a.operator===Hi.AND)return[]}return u},o=this._myIndex.records,i={},s=[];return o.forEach(({$:a,i:l})=>{if(ht(a)){let c=r(n,a,l);c.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},s.push(i[l])),c.forEach(({matches:u})=>{i[l].matches.push(...u)}))}}),s}_searchObjectList(e){const n=El(e,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:a})=>{if(!ht(s))return;let l=[];r.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:s[u],searcher:n}))}),l.length&&i.push({idx:a,item:s,matches:l})}),i}_findMatches({key:e,value:n,searcher:r}){if(!ht(n))return[];let o=[];if(An(n))n.forEach(({v:i,i:s,n:a})=>{if(!ht(i))return;const{isMatch:l,score:c,indices:u}=r.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:s,norm:a,indices:u})});else{const{v:i,n:s}=n,{isMatch:a,score:l,indices:c}=r.searchIn(i);a&&o.push({score:l,key:e,value:i,norm:s,indices:c})}return o}}xr.version="7.1.0",xr.createIndex=Jf,xr.parseIndex=oS,xr.config=ne,xr.parseQuery=op,vS(bS);function SS({highlight:t,text:e}){if(!t||!t.length)return e;const n=new RegExp(t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"gi"),r=[...e.matchAll(n)];if(!r.length)return e;const o=[];let i=0;for(let s of r)s.index>i&&o.push(e.substr(i,s.index)),o.push(m.jsx("span",{className:"highlight",children:s[0]})),i=s.index+s[0].length;return o.push(e.substr(i)),o}function PS({delay:t=300,placeholder:e,setSearchText:n,width:r="calc(var(--width) / 4)"}){const o=x.useRef(null),i=x.useRef(null),[s,a]=x.useState(""),l=()=>{a(""),n(""),o.current.value="",o.current.focus()};return x.useLayoutEffect(()=>{o.current&&o.current.addEventListener("keyup",()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,n(o.current.value),a(o.current.value)},t)})},[o.current]),m.jsx(m.Fragment,{children:m.jsxs("div",{className:"search",children:[m.jsx("input",{placeholder:e,style:{width:r},ref:o}),s.length?m.jsx("button",{className:"btn btn-clear",title:"Clear search",onClick:l,children:m.jsx(Ae,{name:"x-lg"})}):null]})})}const DS=["software_name","software_description","software_web_page","software_documentation","software_use_link","software_versions"];function BS({infoGroupId:t}){const e=Ke("https://sds-ara-api.access-ci.org/api/v1",{body:JSON.stringify({rps:[t],columns:DS}),headers:{"Content-Type":"application/json","X-API-Key":"asSuQQ0IfIEUrSRTl44aqn2ZpMPpJ_G02BgemAY4WN0"},method:"POST"}),[n,r]=x.useState(""),o=x.useMemo(()=>e?.data&&e.data.length?new xr(e.data,{keys:[{name:"software_name",weight:.6},{name:"software_description",weight:.4}]}):null,[e?.data]);if(!e?.data||!e.data.length)return;const i=A=>m.jsx(SS,{text:A,highlight:n}),c=[{key:"software_name",name:"Package",format:(A,h)=>{const f=i(A),g=h.software_web_page||h.software_documentation,p=h.software_use_link&&h.software_use_link.length?h.software_use_link[0]:"";return m.jsxs("span",{style:{lineHeight:1.3},children:[g?m.jsx("a",{href:g,children:f},"name"):f," ",h.software_documentation&&m.jsx("a",{href:h.software_documentation,title:`Documentation for ${A}`,children:m.jsx(Ae,{name:"book"})},"documentation")," ",p&&p!=h.software_documentation&&m.jsx("a",{href:p,title:`Usage example for ${A}`,children:m.jsx(Ae,{name:"terminal"})},"use")]})}},{key:"software_versions",name:"Versions",format:(A,h)=>h.rps[t].software_versions.join(", ")},{key:"software_description",name:"Description",format:(A,h)=>{const f=/Description Source:[ ]+(http[^ ]+)/,g=A.match(f);return m.jsxs(m.Fragment,{children:[i(A.replace(f,""))," ",g?m.jsx("a",{href:g[1],title:`Description source for ${h.software_name}`,children:m.jsx(Ae,{name:"info-circle"})}):null]})}}],u=n.length?o.search(n).map(A=>A.item):e.data,d=[m.jsx(PS,{placeholder:"Search software packages...",setSearchText:r},"search")];return m.jsx(Ut,{title:"Software",icon:"terminal",headerComponents:d,children:m.jsx($o,{columns:c,rows:u,scrollResetOnUpdate:!0})})}function TS({prompt:t="Jump To:"}){const[e,n]=x.useState([]),r=x.useRef(null),o=()=>{const s=[];for(let a of r.current.querySelectorAll("[data-section-title]"))s.push({icon:a.dataset.sectionIcon,id:a.id,title:a.dataset.sectionTitle});n(s)},i=s=>{const a=r.current.querySelector(`#${s}`);a&&a.scrollIntoView()};return x.useEffect(()=>{r.current&&(o(),document.addEventListener("accessci-update-sections",o))},[r.current]),m.jsx("div",{ref:s=>r.current=s?.parentElement,children:e.length>=2?m.jsxs("nav",{className:"section-navigation",children:[t?m.jsx("h2",{children:t}):null,m.jsx("ul",{children:e.map(({icon:s,id:a,title:l})=>m.jsx("li",{children:m.jsxs("a",{href:`#${a}`,onClick:c=>{c.preventDefault(),i(a)},children:[s?m.jsxs(m.Fragment,{children:[m.jsx(Ae,{name:s})," "]}):null,l]})},a))})]}):null})}function IS({baseUri:t,showBreadcrumbs:e=!0}){const{infoGroupId:n}=fg(),r=Cr(n),o=[{name:"Resources",href:t}];return r&&o.push({name:r.name}),m.jsxs(m.Fragment,{children:[e&&m.jsx(qi,{expandWidth:!0,items:o,topBorder:!0}),m.jsxs("div",{className:"resource-group-detail",children:[m.jsx(dw,{infoGroupId:n}),m.jsx(TS,{}),m.jsx(n1,{infoGroupId:n}),m.jsx(Kx,{infoGroupId:n}),m.jsx($x,{infoGroupId:n}),m.jsx(uw,{infoGroupId:n}),m.jsx(BS,{infoGroupId:n}),m.jsx(Y1,{infoGroupId:n}),m.jsx(HC,{infoGroupId:n}),m.jsx(fw,{infoGroupId:n})]})]})}const MS=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"})),_S={"ACCESS Pegasus":"https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico","ACCESS OnDemand":"https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico","Advance reservations":"calendar-check","Composable hardware fabric":"boxes","Compute Resources":"cpu-fill","CPU Compute":"cpu-fill","GPU Compute":"cpu","Innovative / Novel Compute":"lightbulb","Large Memory Nodes":"arrows-fullscreen",Preemption:"clock-history","Science Gateway support":"globe","Service / Other":"stars","Storage Resources":"hdd-fill","Virtual Machines":"pc-display-horizontal",Cloud:"cloud",Storage:"hdd-fill"};function ip({active:t,tagCategory:e,tagId:n,iconUri:r,name:o,toggleTag:i}){const s=r||_S[o]||"tag";return m.jsx("li",{className:`tag tag-category-${e.name.toLowerCase().replace(/[^a-z]+/g,"-")}${t.tagIds.has(n)?" active":""}`,children:m.jsxs("button",{href:"#",disabled:t.disabledTagIds.has(n),onClick:a=>{a.preventDefault(),i(n)},children:[s.startsWith("http")?m.jsx(Ae,{alt:o,src:s}):m.jsx(Ae,{name:s}),o]})})}function sp({children:t}){return m.jsx("ul",{className:"tags",children:t})}function OS({active:t,baseUri:e,description:n,imageType:r,imageUri:o,name:i,infoGroupId:s,parentInfoGroupId:a,tags:l,toggleTag:c}){const u=`${e}/${a||s}`;return m.jsxs("div",{className:"resource-group",children:[m.jsx("a",{className:`resource-group-image image-type-${r}`,href:u,children:o?m.jsx("img",{src:o}):m.jsx(Ae,{name:"motherboard"})}),m.jsxs("div",{className:"resource-group-text",children:[m.jsx("h3",{children:m.jsx("a",{href:u,children:i})}),m.jsx(sp,{children:l.map(d=>m.jsx(ip,{...d,active:t,toggleTag:c},d.tagId))}),m.jsxs("p",{children:[n&&n,m.jsx("br",{}),m.jsxs("a",{href:u,children:["Learn more about ",i," »"]})]})]})]})}function LS({active:t,baseUri:e,name:n,resourceGroups:r,toggleTag:o}){return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:n}),r.filter(({infoGroupId:i})=>t.infoGroupIds.has(i)).map(i=>m.jsx(OS,{...i,baseUri:e,active:t,toggleTag:o},i.infoGroupId))]})}function FS({active:t,clearTags:e,tagCategories:n,toggleTag:r}){const[o,i]=x.useState(!1),s=x.useRef(null);return x.useEffect(()=>{const a=()=>i(!1);return document.body.addEventListener("click",a),()=>document.body.removeEventListener("click",a)},[]),m.jsxs("section",{className:"filters-outer",onClick:a=>{a.stopPropagation()},children:[m.jsxs("button",{ref:s,onClick:()=>i(!o),className:`btn-filters btn ${o?"active":""}`,children:[m.jsx(Ae,{name:"filter"})," Filters",t.tagIds.size>0?m.jsx("span",{className:"active-tag-count",children:t.tagIds.size}):null]}),o?m.jsxs("div",{className:"filters-inner",children:[n.map(a=>m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:a.name}),m.jsx(sp,{children:a.tags.map(l=>m.jsx(ip,{...l,active:t,toggleTag:r}))})]})),m.jsxs("button",{onClick:e,disabled:t.tagIds.size==0,className:"btn danger",children:[m.jsx(Ae,{name:"trash"})," Clear Filters"]})]}):null]})}function QS({setBotOpen:t}){const e=x.useRef(null),n=[{title:"Browse resources",icon:"filter-square",description:"Filter resources to find the best match for your research.",onClick:r=>{r.preventDefault(),e.current&&e.current.nextSibling.scrollIntoView({bahavior:"smooth"})}},{title:"Ask a question",icon:"question-circle",onClick:r=>{r.preventDefault(),t(!0)},description:"You have resource questions. Our Q&A bot has answers!",login:!0},{title:"Get suggestions",icon:"card-checklist",href:"https://ara.access-ci.org/",description:"Fill out a form to get resource recommendations."},{title:"Read news",icon:"newspaper",href:"https://access-ci.org/tag/resource-providers/",description:"See the latest news from resource providers."}];return m.jsxs("section",{id:"resource-pathways",ref:e,children:[m.jsxs("p",{className:"intro",children:["ACCESS provides advanced computing resources ",m.jsx("strong",{children:"at no cost"})," ","to researchers and educators."]}),m.jsx("ul",{className:"resource-pathways",children:n.map(({title:r,icon:o,href:i,description:s,login:a,onClick:l},c)=>m.jsx("li",{className:`resource-pathway-${c}`,children:m.jsxs("a",{href:i||"#",onClick:l,children:[o?m.jsx(Ae,{name:o}):null," ",m.jsxs("span",{className:"detail",children:[m.jsx("span",{className:"title",children:r}),m.jsx("span",{className:"description",children:s}),a?m.jsxs("span",{className:"login",children:[m.jsx(Ae,{name:"key"})," Requires ACCESS Login"]}):null]})]})},r))})]})}function NS({baseUri:t,title:e,setBotOpen:n,showBreadcrumbs:r=!0,showTitle:o=!0}){const[i,s]=x.useState([]),a=zl(),l=x.useMemo(()=>a?Ep(a,i):null,[a,i]),c=d=>s(i.includes(d)?i.filter(A=>A!=d):[...i,d]),u=()=>s([]);return m.jsxs(m.Fragment,{children:[r&&m.jsx(qi,{expandWidth:!0,items:[{name:"Resources"}],topBorder:!0}),e&&m.jsx("h1",{className:o?"":"visually-hidden",children:e}),m.jsx(QS,{setBotOpen:n}),m.jsxs("div",{id:"browse-resources",children:[l?m.jsx(FS,{tagCategories:a.tagCategories,active:l,clearTags:u,toggleTag:c}):null,a?a.resourceCategories.filter(({resourceCategoryId:d})=>l.resourceCategoryIds.has(d)).map(d=>m.jsx(LS,{...d,active:l,baseUri:t,clearTags:u,toggleTag:c},d.name)):null]})]})}const zS=Object.freeze(Object.defineProperty({__proto__:null,default:NS},Symbol.toStringTag,{value:"Module"}));ge.Breadcrumbs=mc,ge.Footer=bc,ge.FooterMenus=vc,ge.Header=yc,ge.QABot=wc,ge.ResourceCatalog=xc,ge.SiteMenus=kc,ge.TableOfContents=Ec,ge.UniversalMenus=Cc,ge.breadcrumbs=ym,ge.footer=wm,ge.footerMenus=xm,ge.header=km,ge.loginMenuItem=Ol,ge.myAccessMenuItem=_l,ge.qaBot=Em,ge.resourceCatalog=Cm,ge.siteMenus=Sm,ge.tableOfContents=Pm,ge.universalMenuItems=Ml,ge.universalMenus=Dm,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})}));
|
|
281
|
+
`):t}function CC(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Df(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=We(e.bodyFont),c=We(e.titleFont),u=We(e.footerFont),d=i.length,A=o.length,h=r.length,f=kt(e.padding);let g=f.height,p=0,v=r.reduce((b,E)=>b+E.before.length+E.lines.length+E.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=h*b+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}A&&(g+=e.footerMarginTop+A*u.lineHeight+(A-1)*e.footerSpacing);let w=0;const y=function(b){p=Math.max(p,n.measureText(b).width+w)};return n.save(),n.font=c.string,be(t.title,y),n.font=l.string,be(t.beforeBody.concat(t.afterBody),y),w=e.displayColors?s+2+e.boxPadding:0,be(r,b=>{be(b.before,y),be(b.lines,y),be(b.after,y)}),w=0,n.font=u.string,be(t.footer,y),n.restore(),p+=f.width,{width:p,height:g}}function SC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function PC(t,e,n,r){const{x:o,width:i}=r,s=n.caretSize+n.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function DC(t,e,n,r){const{x:o,width:i}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return r==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),PC(c,t,e,n)&&(c="center"),c}function Bf(t,e,n){const r=n.yAlign||e.yAlign||SC(t,n);return{xAlign:n.xAlign||e.xAlign||DC(t,e,n,r),yAlign:r}}function BC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function TC(t,e,n){let{y:r,height:o}=t;return e==="top"?r+=n:e==="bottom"?r-=o+n:r-=o/2,r}function Tf(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:A,bottomRight:h}=gr(s);let f=BC(e,a);const g=TC(e,l,c);return l==="center"?a==="left"?f+=c:a==="right"&&(f-=c):a==="left"?f-=Math.max(u,A)+o:a==="right"&&(f+=Math.max(d,h)+o),{x:Bt(f,0,r.width-e.width),y:Bt(g,0,r.height-e.height)}}function Ni(t,e,n){const r=kt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function If(t){return Gt([],dn(t))}function IC(t,e,n){return mr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Mf(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const _f={beforeTitle:cn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:cn,beforeBody:cn,beforeLabel:cn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return we(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:cn,afterBody:cn,beforeFooter:cn,footer:cn,afterFooter:cn};function nt(t,e,n,r){const o=t[e].call(n,r);return typeof o>"u"?_f[e].call(n,r):o}class Of extends yr{static positioners=vo;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new _h(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=IC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,o=nt(r,"beforeTitle",this,e),i=nt(r,"title",this,e),s=nt(r,"afterTitle",this,e);let a=[];return a=Gt(a,dn(o)),a=Gt(a,dn(i)),a=Gt(a,dn(s)),a}getBeforeBody(e,n){return If(nt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,o=[];return be(e,i=>{const s={before:[],lines:[],after:[]},a=Mf(r,i);Gt(s.before,dn(nt(a,"beforeLabel",this,i))),Gt(s.lines,nt(a,"label",this,i)),Gt(s.after,dn(nt(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,n){return If(nt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,o=nt(r,"beforeFooter",this,e),i=nt(r,"footer",this,e),s=nt(r,"afterFooter",this,e);let a=[];return a=Gt(a,dn(o)),a=Gt(a,dn(i)),a=Gt(a,dn(s)),a}_createItems(e){const n=this._active,r=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(CC(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,A)=>e.filter(u,d,A,r))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,r))),be(a,u=>{const d=Mf(e.callbacks,u);o.push(nt(d,"labelColor",this,u)),i.push(nt(d,"labelPointStyle",this,u)),s.push(nt(d,"labelTextColor",this,u))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=vo[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=Df(this,r),c=Object.assign({},a,l),u=Bf(this.chart,r,c),d=Tf(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,o){const i=this.getCaretPosition(e,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=gr(a),{x:A,y:h}=e,{width:f,height:g}=n;let p,v,w,y,b,E;return i==="center"?(b=h+g/2,o==="left"?(p=A,v=p-s,y=b+s,E=b-s):(p=A+f,v=p+s,y=b-s,E=b+s),w=p):(o==="left"?v=A+Math.max(l,u)+s:o==="right"?v=A+f-Math.max(c,d)-s:v=this.caretX,i==="top"?(y=h,b=y-s,p=v-s,w=v+s):(y=h+g,b=y+s,p=v+s,w=v-s),E=y),{x1:p,x2:v,x3:w,y1:y,y2:b,y3:E}}drawTitle(e,n,r){const o=this.title,i=o.length;let s,a,l;if(i){const c=vr(r.rtl,this.x,this.width);for(e.x=Ni(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=We(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<i;++l)n.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,n,r,o,i){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=i,u=We(i.bodyFont),d=Ni(this,"left",i),A=o.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,f=n.y+h;if(i.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=o.leftForLtr(A,c)+c/2,v=f+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,mh(e,g,p,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,mh(e,g,p,v)}else{e.lineWidth=he(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const g=o.leftForLtr(A,c),p=o.leftForLtr(o.xPlus(A,1),c-2),v=gr(s.borderRadius);Object.values(v).some(w=>w!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Ei(e,{x:g,y:f,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Ei(e,{x:p,y:f+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(g,f,c,l),e.strokeRect(g,f,c,l),e.fillStyle=s.backgroundColor,e.fillRect(p,f+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=We(r.bodyFont);let A=d.lineHeight,h=0;const f=vr(r.rtl,this.x,this.width),g=function(D){n.fillText(D,f.x(e.x+h),e.y+A/2),e.y+=A+i},p=f.textAlign(s);let v,w,y,b,E,k,P;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,e.x=Ni(this,p,r),n.fillStyle=r.bodyColor,be(this.beforeBody,g),h=a&&p!=="right"?s==="center"?c/2+u:c+2+u:0,b=0,k=o.length;b<k;++b){for(v=o[b],w=this.labelTextColors[b],n.fillStyle=w,be(v.before,g),y=v.lines,a&&y.length&&(this._drawColorBox(n,e,b,f,r),A=Math.max(d.lineHeight,l)),E=0,P=y.length;E<P;++E)g(y[E]),A=d.lineHeight;be(v.after,g)}h=0,A=d.lineHeight,be(this.afterBody,g),e.y-=i}drawFooter(e,n,r){const o=this.footer,i=o.length;let s,a;if(i){const l=vr(r.rtl,this.x,this.width);for(e.x=Ni(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=We(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<i;++a)n.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,n,r,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:u}=r,{topLeft:d,topRight:A,bottomLeft:h,bottomRight:f}=gr(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(e,n,r,o),n.lineTo(a+c-A,l),n.quadraticCurveTo(a+c,l,a+c,l+A),s==="center"&&i==="right"&&this.drawCaret(e,n,r,o),n.lineTo(a+c,l+u-f),n.quadraticCurveTo(a+c,l+u,a+c-f,l+u),s==="bottom"&&this.drawCaret(e,n,r,o),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),s==="center"&&i==="left"&&this.drawCaret(e,n,r,o),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const s=vo[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Df(this,e),l=Object.assign({},s,this._size),c=Bf(n,e,l),u=Tf(e,l,c,n);(o._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=kt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,o,n),Th(e,n.textDirection),i.y+=s.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),Ih(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!mi(r,o),s=this._positionChanged(o,n);(i||s)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,n,r),a=this._positionChanged(s,e),l=n||!mi(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:o,options:i}=this,s=vo[i.position].call(this,e,n);return s!==!1&&(r!==s.x||o!==s.y)}}var MC={id:"tooltip",_element:Of,positioners:vo,afterInit(t,e,n){n&&(t.tooltip=new Of({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:_f},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const _C=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function OC(t,e,n,r){const o=t.indexOf(e);if(o===-1)return _C(t,e,n,r);const i=t.lastIndexOf(e);return o!==i?n:o}const LC=(t,e)=>t===null?null:Bt(Math.round(t),0,e);function Lf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class FC extends wr{static id="category";static defaults={ticks:{callback:Lf}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:o,label:i}of n)r[o]===i&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(we(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:OC(r,e,fe(n,e),this._addedLabels),LC(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,o=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=n;s++)o.push({value:s});return o}getLabelForValue(e){return Lf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function QC(t,e){const n=[],{bounds:o,step:i,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:A}=t,h=i||1,f=u-1,{min:g,max:p}=e,v=!we(s),w=!we(a),y=!we(c),b=(p-g)/(d+1);let E=nh((p-g)/f/h)*h,k,P,D,I;if(E<1e-14&&!v&&!w)return[{value:g},{value:p}];I=Math.ceil(p/E)-Math.floor(g/E),I>f&&(E=nh(I*E/f/h)*h),we(l)||(k=Math.pow(10,l),E=Math.ceil(E*k)/k),o==="ticks"?(P=Math.floor(g/E)*E,D=Math.ceil(p/E)*E):(P=g,D=p),v&&w&&i&&C2((a-s)/i,E/1e3)?(I=Math.round(Math.min((a-s)/E,u)),E=(a-s)/I,P=s,D=a):y?(P=v?s:P,D=w?a:D,I=c-1,E=(D-P)/I):(I=(D-P)/E,yi(I,Math.round(I),E/1e3)?I=Math.round(I):I=Math.ceil(I));const T=Math.max(rh(E),rh(P));k=Math.pow(10,we(l)?T:l),P=Math.round(P*k)/k,D=Math.round(D*k)/k;let M=0;for(v&&(A&&P!==s?(n.push({value:s}),P<s&&M++,yi(Math.round((P+M*E)*k)/k,s,Ff(s,b,t))&&M++):P<s&&M++);M<I;++M){const B=Math.round((P+M*E)*k)/k;if(w&&B>a)break;n.push({value:B})}return w&&A&&D!==a?n.length&&yi(n[n.length-1].value,a,Ff(a,b,t))?n[n.length-1].value=a:n.push({value:a}):(!w||D===a)&&n.push({value:D}),n}function Ff(t,e,{horizontal:n,minRotation:r}){const o=Yt(r),i=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class NC extends wr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return we(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const s=l=>o=n?o:l,a=l=>i=r?i:l;if(e){const l=Dn(o),c=Dn(i);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(o===i){let l=i===0?1:Math.abs(i*.05);a(i+l),e||s(o-l)}this.min=o,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=QC(o,i);return e.bounds==="ticks"&&S2(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const o=(r-n)/Math.max(e.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return ki(e,this.chart.options.locale,this.options.ticks.format)}}class zC extends NC{static id="linear";static defaults={ticks:{callback:fh.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=xt(e)?e:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Yt(this.options.ticks.minRotation),o=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const zi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rt=Object.keys(zi);function Qf(t,e){return t-e}function Nf(t,e){if(we(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),xt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(o&&(s=o==="week"&&(wi(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,o)),+s)}function zf(t,e,n,r){const o=rt.length;for(let i=rt.indexOf(t);i<o-1;++i){const s=zi[rt[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(a*s.size))<=r)return rt[i]}return rt[o-1]}function RC(t,e,n,r,o){for(let i=rt.length-1;i>=rt.indexOf(n);i--){const s=rt[i];if(zi[s].common&&t._adapter.diff(o,r,s)>=e-1)return s}return rt[n?rt.indexOf(n):0]}function UC(t){for(let e=rt.indexOf(t)+1,n=rt.length;e<n;++e)if(zi[rt[e]].common)return rt[e]}function Rf(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:o}=Ha(n,e),i=n[r]>=e?n[r]:n[o];t[i]=!0}}function jC(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,r))l=n[a],l>=0&&(e[l].major=!0);return e}function Uf(t,e,n){const r=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,r.push({value:a,major:!1});return i===0||!n?r:jC(t,r,o,n)}class jf extends wr{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),o=this._adapter=new Kk._date(e.adapters.date);o.init(n),so(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Nf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=xt(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=xt(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=M2(o,i,s);return this._unit=n.unit||(r.autoSkip?zf(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):RC(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:UC(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Uf(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?n=1-o:n=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Bt(n,0,s),r=Bt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,s=i.unit||zf(i.minUnit,n,r,this._getLabelCapacity(n)),a=fe(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=wi(l)||l===!0,u={};let d=n,A,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const f=o.ticks.source==="data"&&this.getDataTimestamps();for(A=d,h=0;A<r;A=+e.add(A,a,s),h++)Rf(u,A,f);return(A===r||o.bounds==="ticks"||h===1)&&Rf(u,A,f),Object.keys(u).sort(Qf).map(g=>+g)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const o=this.options.time.displayFormats,i=this._unit,s=n||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,n,r,o){const i=this.options,s=i.ticks.callback;if(s)return Ee(s,[e,n,r],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],A=r[n],h=c&&d&&A&&A.major;return this._adapter.format(e,o||(h?d:u))}generateTickLabels(e){let n,r,o;for(n=0,r=e.length;n<r;++n)o=e[n],o.label=this._tickFormatFunction(o.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,o=Yt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:r*i+a*s,h:r*s+a*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Uf(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n<r;++n)e=e.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const o=this.getLabels();for(n=0,r=o.length;n<r;++n)e.push(Nf(this,o[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return sh(e.sort(Qf))}}function Ri(t,e,n){let r=0,o=t.length-1,i,s,a,l;n?(e>=t[r].pos&&e<=t[o].pos&&({lo:r,hi:o}=Wa(t,"pos",e)),{pos:i,time:a}=t[r],{pos:s,time:l}=t[o]):(e>=t[r].time&&e<=t[o].time&&({lo:r,hi:o}=Wa(t,"time",e)),{time:i,pos:a}=t[r],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class HS extends jf{static id="timeseries";static defaults=jf.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Ri(n,this.min),this._tableRange=Ri(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,o=[],i=[];let s,a,l,c,u;for(s=0,a=e.length;s<a;++s)c=e[s],c>=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=o.length;s<a;++s)u=o[s+1],l=o[s-1],c=o[s],Math.round((u+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Ri(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Ri(this._table,r*this._tableRange+this._minPos,!0)}}hl.register(gC,Wk,cC,FC,zC,xC,EC,MC);function VC({type:t="bar",data:e,options:n}){const r=x.useRef(null),o=x.useRef(null);return x.useLayoutEffect(()=>{o.current&&(r.current?(r.current.options=n,r.current.data=e,r.current.update()):r.current=new hl(o.current,{type:t,data:e,options:n}))},[t,e,n]),m.jsx("div",{className:"chart",children:m.jsx("canvas",{ref:o})})}const Vf=["--teal-700","--yellow-400","--teal-400","--orange-400","--green-400","--red-400"],ml=["0 - 1s","1 - 30s","30s - 30min","30 - 60min","1 - 5hr","5 - 10hr","10 - 18hr","18+hr"],bl=(t,e,n=0)=>`${t.toFixed(n)} ${e}${t==1?"":"s"}`,Hf=t=>{const e=t/3600;if(e>=1)return bl(e,"hour",1);const n=t/60;return n>=1?bl(n,"minute",0):bl(t,"second",0)},Ui=t=>t.replace(/ \([^)]+\)/,"");function HC({infoGroupId:t}){const[e,n]=x.useState("overview"),r=xp(t).filter(c=>c.cider_type=="Compute"),o=Ke(r.length?r.map(c=>`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${c.info_resourceid}/`):null,{defaultValue:[]}),i=Ke(e!=="overview"?`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${e}/queue/job_walltime`:null);if(!o.length||!r.length)return;const s=o.map((c,u)=>c.error?c:{...c.data[0],...r[u]}).filter(c=>!c.error);if(!s.length)return;const a=[m.jsxs("select",{value:e,onChange:c=>n(c.target.value),children:[m.jsx("option",{value:"overview",children:"Overview"},"overview"),s.map(c=>m.jsx("option",{value:c.info_resourceid,children:Ui(c.resource_descriptive_name)},c.info_resourceid))]},"select")];let l=null;if(e==="overview")l=m.jsx("div",{className:"cards",children:s.map(({info_resourceid:c,job_count:u,median_expansion_factor:d,median_wait_time:A,median_wall_time:h,resource_descriptive_name:f})=>m.jsxs("p",{className:"card metrics-overview",children:[m.jsxs("b",{children:[Ui(f),":"]})," Users ran"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"file-earmark-code"}),parseInt(u).toLocaleString("en-us")," jobs"]})," ","during the last 30 days. Waiting in the queue caused an average"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"calculator"}),((d-1)*100).toLocaleString("en-us",{maximumFractionDigits:0}),"% increase"]})," ","in the total completion time. The average job waited for"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"hourglass-split"})," ",Hf(A)]})," ","and ran for"," ",m.jsxs("strong",{children:[m.jsx(Ae,{name:"stopwatch"}),Hf(h)]}),"."," ",m.jsx("a",{title:`Wait time chart for ${Ui(f)}`,href:"#",onClick:g=>{g.preventDefault(),n(c)},children:"View chart »"})]},c))});else if(i&&i.info_resource_id===e){const c={},u=ml;for(let f of i.data)c[f.queue]=c[f.queue]||{label:f.queue,data:Array(ml.length).fill(null)},c[f.queue].data[ml.indexOf(f.job_walltime)]=f.median_wait_time/60;const d=Object.values(c);d.forEach((f,g)=>{let p=Vf[g%(Vf.length-1)];f.backgroundColor=getComputedStyle(document.body).getPropertyValue(p)});const A=s.find(f=>f.info_resourceid==i.info_resource_id),h={interaction:{intersect:!1,mode:"index"},plugins:{title:{display:!0,text:`Median Wait Time by Queue on ${Ui(A.resource_descriptive_name)}: Last 30 Days`}},scales:{x:{title:{display:!0,text:"Job Wall Time (Run Time)"}},y:{title:{display:!0,text:"Median Wait Time (Minutes)"}}}};l=m.jsxs(m.Fragment,{children:[m.jsx(VC,{type:"bar",data:{labels:u,datasets:d},options:h}),m.jsx("p",{children:m.jsx("a",{href:"#",onClick:f=>{f.preventDefault(),n("overview")},children:"« Back to overview"})})]})}return m.jsxs(Ut,{title:"Wait Time",icon:"hourglass-split",headerComponents:a,children:[l,m.jsxs("p",{className:"metrics-disclaimer",children:[m.jsx(Ae,{name:"info-circle"}),"These metrics describe activity from ACCESS projects. Many resources have additional projects that are not part of ACCESS."]})]})}function An(t){return Array.isArray?Array.isArray(t):qf(t)==="[object Array]"}function WC(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function YC(t){return t==null?"":WC(t)}function Kt(t){return typeof t=="string"}function Wf(t){return typeof t=="number"}function qC(t){return t===!0||t===!1||GC(t)&&qf(t)=="[object Boolean]"}function Yf(t){return typeof t=="object"}function GC(t){return Yf(t)&&t!==null}function ht(t){return t!=null}function vl(t){return!t.trim().length}function qf(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const KC="Incorrect 'index' type",XC=t=>`Invalid value for key ${t}`,JC=t=>`Pattern length exceeds max of ${t}.`,ZC=t=>`Missing ${t} property in key`,$C=t=>`Property 'weight' in key '${t}' must be a positive integer`,Gf=Object.prototype.hasOwnProperty;class eS{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let o=Kf(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Kf(t){let e=null,n=null,r=null,o=1,i=null;if(Kt(t)||An(t))r=t,e=Xf(t),n=yl(t);else{if(!Gf.call(t,"name"))throw new Error(ZC("name"));const s=t.name;if(r=s,Gf.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($C(s));e=Xf(s),n=yl(s),i=t.getFn}return{path:e,id:n,weight:o,src:r,getFn:i}}function Xf(t){return An(t)?t:t.split(".")}function yl(t){return An(t)?t.join("."):t}function tS(t,e){let n=[],r=!1;const o=(i,s,a)=>{if(ht(i))if(!s[a])n.push(i);else{let l=s[a];const c=i[l];if(!ht(c))return;if(a===s.length-1&&(Kt(c)||Wf(c)||qC(c)))n.push(YC(c));else if(An(c)){r=!0;for(let u=0,d=c.length;u<d;u+=1)o(c[u],s,a+1)}else s.length&&o(c,s,a+1)}};return o(t,Kt(e)?e.split("."):e,0),r?n:n[0]}var ne={...{isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:tS,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const nS=/[^ ]+/g;function rS(t=1,e=3){const n=new Map,r=Math.pow(10,e);return{get(o){const i=o.match(nS).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*t),a=parseFloat(Math.round(s*r)/r);return n.set(i,a),a},clear(){n.clear()}}}class wl{constructor({getFn:e=ne.getFn,fieldNormWeight:n=ne.fieldNormWeight}={}){this.norm=rS(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Kt(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Kt(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!ht(e)||vl(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(e):this.getFn(e,o.path);if(ht(s)){if(An(s)){let a=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(ht(u))if(Kt(u)&&!vl(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else An(u)&&u.forEach((d,A)=>{l.push({nestedArrIndex:A,value:d})})}r.$[i]=a}else if(Kt(s)&&!vl(s)){let a={v:s,n:this.norm.get(s)};r.$[i]=a}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Jf(t,e,{getFn:n=ne.getFn,fieldNormWeight:r=ne.fieldNormWeight}={}){const o=new wl({getFn:n,fieldNormWeight:r});return o.setKeys(t.map(Kf)),o.setSources(e),o.create(),o}function oS(t,{getFn:e=ne.getFn,fieldNormWeight:n=ne.fieldNormWeight}={}){const{keys:r,records:o}=t,i=new wl({getFn:e,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function ji(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ne.distance,ignoreLocation:i=ne.ignoreLocation}={}){const s=e/t.length;if(i)return s;const a=Math.abs(r-n);return o?s+a/o:a?1:s}function iS(t=[],e=ne.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=t.length;i<s;i+=1){let a=t[i];a&&r===-1?r=i:!a&&r!==-1&&(o=i-1,o-r+1>=e&&n.push([r,o]),r=-1)}return t[i-1]&&i-r>=e&&n.push([r,i-1]),n}const Gn=32;function sS(t,e,n,{location:r=ne.location,distance:o=ne.distance,threshold:i=ne.threshold,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,includeMatches:l=ne.includeMatches,ignoreLocation:c=ne.ignoreLocation}={}){if(e.length>Gn)throw new Error(JC(Gn));const u=e.length,d=t.length,A=Math.max(0,Math.min(r,d));let h=i,f=A;const g=a>1||l,p=g?Array(d):[];let v;for(;(v=t.indexOf(e,f))>-1;){let P=ji(e,{currentLocation:v,expectedLocation:A,distance:o,ignoreLocation:c});if(h=Math.min(P,h),f=v+u,g){let D=0;for(;D<u;)p[v+D]=1,D+=1}}f=-1;let w=[],y=1,b=u+d;const E=1<<u-1;for(let P=0;P<u;P+=1){let D=0,I=b;for(;D<I;)ji(e,{errors:P,currentLocation:A+I,expectedLocation:A,distance:o,ignoreLocation:c})<=h?D=I:b=I,I=Math.floor((b-D)/2+D);b=I;let T=Math.max(1,A-I+1),M=s?d:Math.min(A+I,d)+u,B=Array(M+2);B[M+1]=(1<<P)-1;for(let N=M;N>=T;N-=1){let O=N-1,R=n[t.charAt(O)];if(g&&(p[O]=+!!R),B[N]=(B[N+1]<<1|1)&R,P&&(B[N]|=(w[N+1]|w[N])<<1|1|w[N+1]),B[N]&E&&(y=ji(e,{errors:P,currentLocation:O,expectedLocation:A,distance:o,ignoreLocation:c}),y<=h)){if(h=y,f=O,f<=A)break;T=Math.max(1,2*A-f)}}if(ji(e,{errors:P+1,currentLocation:A,expectedLocation:A,distance:o,ignoreLocation:c})>h)break;w=B}const k={isMatch:f>=0,score:Math.max(.001,y)};if(g){const P=iS(p,a);P.length?l&&(k.indices=P):k.isMatch=!1}return k}function aS(t){let e={};for(let n=0,r=t.length;n<r;n+=1){const o=t.charAt(n);e[o]=(e[o]||0)|1<<r-n-1}return e}const Vi=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class Zf{constructor(e,{location:n=ne.location,threshold:r=ne.threshold,distance:o=ne.distance,includeMatches:i=ne.includeMatches,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,isCaseSensitive:l=ne.isCaseSensitive,ignoreDiacritics:c=ne.ignoreDiacritics,ignoreLocation:u=ne.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u},e=l?e:e.toLowerCase(),e=c?Vi(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const d=(h,f)=>{this.chunks.push({pattern:h,alphabet:aS(h),startIndex:f})},A=this.pattern.length;if(A>Gn){let h=0;const f=A%Gn,g=A-f;for(;h<g;)d(this.pattern.substr(h,Gn),h),h+=Gn;if(f){const p=A-Gn;d(this.pattern.substr(p),p)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(e=n?e:e.toLowerCase(),e=r?Vi(e):e,this.pattern===e){let g={isMatch:!0,score:0};return o&&(g.indices=[[0,e.length-1]]),g}const{location:i,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:c,ignoreLocation:u}=this.options;let d=[],A=0,h=!1;this.chunks.forEach(({pattern:g,alphabet:p,startIndex:v})=>{const{isMatch:w,score:y,indices:b}=sS(e,g,p,{location:i+v,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:c,includeMatches:o,ignoreLocation:u});w&&(h=!0),A+=y,w&&b&&(d=[...d,...b])});let f={isMatch:h,score:h?A/this.chunks.length:1};return h&&o&&(f.indices=d),f}}class In{constructor(e){this.pattern=e}static isMultiMatch(e){return $f(e,this.multiRegex)}static isSingleMatch(e){return $f(e,this.singleRegex)}search(){}}function $f(t,e){const n=t.match(e);return n?n[1]:null}class lS extends In{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class cS extends In{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class uS extends In{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class dS extends In{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class AS extends In{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class hS extends In{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class ep extends In{constructor(e,{location:n=ne.location,threshold:r=ne.threshold,distance:o=ne.distance,includeMatches:i=ne.includeMatches,findAllMatches:s=ne.findAllMatches,minMatchCharLength:a=ne.minMatchCharLength,isCaseSensitive:l=ne.isCaseSensitive,ignoreDiacritics:c=ne.ignoreDiacritics,ignoreLocation:u=ne.ignoreLocation}={}){super(e),this._bitapSearch=new Zf(e,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class tp extends In{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const o=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const xl=[lS,tp,uS,dS,hS,AS,cS,ep],np=xl.length,fS=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pS="|";function gS(t,e={}){return t.split(pS).map(n=>{let r=n.trim().split(fS).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const a=r[i];let l=!1,c=-1;for(;!l&&++c<np;){const u=xl[c];let d=u.isMultiMatch(a);d&&(o.push(new u(d,e)),l=!0)}if(!l)for(c=-1;++c<np;){const u=xl[c];let d=u.isSingleMatch(a);if(d){o.push(new u(d,e));break}}}return o})}const mS=new Set([ep.type,tp.type]);class bS{constructor(e,{isCaseSensitive:n=ne.isCaseSensitive,ignoreDiacritics:r=ne.ignoreDiacritics,includeMatches:o=ne.includeMatches,minMatchCharLength:i=ne.minMatchCharLength,ignoreLocation:s=ne.ignoreLocation,findAllMatches:a=ne.findAllMatches,location:l=ne.location,threshold:c=ne.threshold,distance:u=ne.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:i,findAllMatches:a,ignoreLocation:s,location:l,threshold:c,distance:u},e=n?e:e.toLowerCase(),e=r?Vi(e):e,this.pattern=e,this.query=gS(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o,ignoreDiacritics:i}=this.options;e=o?e:e.toLowerCase(),e=i?Vi(e):e;let s=0,a=[],l=0;for(let c=0,u=n.length;c<u;c+=1){const d=n[c];a.length=0,s=0;for(let A=0,h=d.length;A<h;A+=1){const f=d[A],{isMatch:g,indices:p,score:v}=f.search(e);if(g){if(s+=1,l+=v,r){const w=f.constructor.type;mS.has(w)?a=[...a,...p]:a.push(p)}}else{l=0,s=0,a.length=0;break}}if(s){let A={isMatch:!0,score:l/s};return r&&(A.indices=a),A}}return{isMatch:!1,score:1}}}const kl=[];function vS(...t){kl.push(...t)}function El(t,e){for(let n=0,r=kl.length;n<r;n+=1){let o=kl[n];if(o.condition(t,e))return new o(t,e)}return new Zf(t,e)}const Hi={AND:"$and",OR:"$or"},Cl={PATH:"$path",PATTERN:"$val"},Sl=t=>!!(t[Hi.AND]||t[Hi.OR]),yS=t=>!!t[Cl.PATH],wS=t=>!An(t)&&Yf(t)&&!Sl(t),rp=t=>({[Hi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function op(t,e,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=yS(o);if(!s&&i.length>1&&!Sl(o))return r(rp(o));if(wS(o)){const l=s?o[Cl.PATH]:i[0],c=s?o[Cl.PATTERN]:o[l];if(!Kt(c))throw new Error(XC(l));const u={keyId:yl(l),pattern:c};return n&&(u.searcher=El(c,e)),u}let a={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];An(c)&&c.forEach(u=>{a.children.push(r(u))})}),a};return Sl(t)||(t=rp(t)),r(t)}function xS(t,{ignoreFieldNorm:e=ne.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const a=o?o.weight:null;r*=Math.pow(s===0&&a?Number.EPSILON:s,(a||1)*(e?1:i))}),n.score=r})}function kS(t,e){const n=t.matches;e.matches=[],ht(n)&&n.forEach(r=>{if(!ht(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),e.matches.push(s)})}function ES(t,e){e.score=t.score}function CS(t,e,{includeMatches:n=ne.includeMatches,includeScore:r=ne.includeScore}={}){const o=[];return n&&o.push(kS),r&&o.push(ES),t.map(i=>{const{idx:s}=i,a={item:e[s],refIndex:s};return o.length&&o.forEach(l=>{l(i,a)}),a})}class xr{constructor(e,n={},r){this.options={...ne,...n},this.options.useExtendedSearch,this._keyStore=new eS(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof wl))throw new Error(KC);this._myIndex=n||Jf(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){ht(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:a}=this.options;let l=Kt(e)?Kt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return xS(l,{ignoreFieldNorm:a}),i&&l.sort(s),Wf(n)&&n>-1&&(l=l.slice(0,n)),CS(l,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e){const n=El(e,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:a})=>{if(!ht(i))return;const{isMatch:l,score:c,indices:u}=n.searchIn(i);l&&o.push({item:i,idx:s,matches:[{score:c,value:i,norm:a,indices:u}]})}),o}_searchLogical(e){const n=op(e,this.options),r=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:A}=a,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:A});return h&&h.length?[{idx:c,item:l,matches:h}]:[]}const u=[];for(let d=0,A=a.children.length;d<A;d+=1){const h=a.children[d],f=r(h,l,c);if(f.length)u.push(...f);else if(a.operator===Hi.AND)return[]}return u},o=this._myIndex.records,i={},s=[];return o.forEach(({$:a,i:l})=>{if(ht(a)){let c=r(n,a,l);c.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},s.push(i[l])),c.forEach(({matches:u})=>{i[l].matches.push(...u)}))}}),s}_searchObjectList(e){const n=El(e,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:a})=>{if(!ht(s))return;let l=[];r.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:s[u],searcher:n}))}),l.length&&i.push({idx:a,item:s,matches:l})}),i}_findMatches({key:e,value:n,searcher:r}){if(!ht(n))return[];let o=[];if(An(n))n.forEach(({v:i,i:s,n:a})=>{if(!ht(i))return;const{isMatch:l,score:c,indices:u}=r.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:s,norm:a,indices:u})});else{const{v:i,n:s}=n,{isMatch:a,score:l,indices:c}=r.searchIn(i);a&&o.push({score:l,key:e,value:i,norm:s,indices:c})}return o}}xr.version="7.1.0",xr.createIndex=Jf,xr.parseIndex=oS,xr.config=ne,xr.parseQuery=op,vS(bS);function SS({highlight:t,text:e}){if(!t||!t.length)return e;const n=new RegExp(t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"gi"),r=[...e.matchAll(n)];if(!r.length)return e;const o=[];let i=0;for(let s of r)s.index>i&&o.push(e.substr(i,s.index)),o.push(m.jsx("span",{className:"highlight",children:s[0]})),i=s.index+s[0].length;return o.push(e.substr(i)),o}function PS({delay:t=300,placeholder:e,setSearchText:n,width:r="calc(var(--width) / 4)"}){const o=x.useRef(null),i=x.useRef(null),[s,a]=x.useState(""),l=()=>{a(""),n(""),o.current.value="",o.current.focus()};return x.useLayoutEffect(()=>{o.current&&o.current.addEventListener("keyup",()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,n(o.current.value),a(o.current.value)},t)})},[o.current]),m.jsx(m.Fragment,{children:m.jsxs("div",{className:"search",children:[m.jsx("input",{placeholder:e,style:{width:r},ref:o}),s.length?m.jsx("button",{className:"btn btn-clear",title:"Clear search",onClick:l,children:m.jsx(Ae,{name:"x-lg"})}):null]})})}const DS=["software_name","software_description","software_web_page","software_documentation","software_use_link","software_versions"];function BS({infoGroupId:t}){const e=Ke("https://sds-ara-api.access-ci.org/api/v1",{body:JSON.stringify({rps:[t],columns:DS}),headers:{"Content-Type":"application/json","X-API-Key":"asSuQQ0IfIEUrSRTl44aqn2ZpMPpJ_G02BgemAY4WN0"},method:"POST"}),[n,r]=x.useState(""),o=x.useMemo(()=>e?.data&&e.data.length?new xr(e.data,{keys:[{name:"software_name",weight:.6},{name:"software_description",weight:.4}]}):null,[e?.data]);if(!e?.data||!e.data.length)return;const i=A=>m.jsx(SS,{text:A,highlight:n}),c=[{key:"software_name",name:"Package",format:(A,h)=>{const f=i(A),g=h.software_web_page||h.software_documentation,p=h.software_use_link&&h.software_use_link.length?h.software_use_link[0]:"";return m.jsxs("span",{style:{lineHeight:1.3},children:[g?m.jsx("a",{href:g,children:f},"name"):f," ",h.software_documentation&&m.jsx("a",{href:h.software_documentation,title:`Documentation for ${A}`,children:m.jsx(Ae,{name:"book"})},"documentation")," ",p&&p!=h.software_documentation&&m.jsx("a",{href:p,title:`Usage example for ${A}`,children:m.jsx(Ae,{name:"terminal"})},"use")]})}},{key:"software_versions",name:"Versions",format:(A,h)=>h.rps[t].software_versions.join(", ")},{key:"software_description",name:"Description",format:(A,h)=>{const f=/Description Source:[ ]+(http[^ ]+)/,g=A.match(f);return m.jsxs(m.Fragment,{children:[i(A.replace(f,""))," ",g?m.jsx("a",{href:g[1],title:`Description source for ${h.software_name}`,children:m.jsx(Ae,{name:"info-circle"})}):null]})}}],u=n.length?o.search(n).map(A=>A.item):e.data,d=[m.jsx(PS,{placeholder:"Search software packages...",setSearchText:r},"search")];return m.jsx(Ut,{title:"Software",icon:"terminal",headerComponents:d,children:m.jsx($o,{columns:c,rows:u,scrollResetOnUpdate:!0})})}function TS({prompt:t="Jump To:"}){const[e,n]=x.useState([]),r=x.useRef(null),o=()=>{const s=[];for(let a of r.current.querySelectorAll("[data-section-title]"))s.push({icon:a.dataset.sectionIcon,id:a.id,title:a.dataset.sectionTitle});n(s)},i=s=>{const a=r.current.querySelector(`#${s}`);a&&a.scrollIntoView()};return x.useEffect(()=>{r.current&&(o(),document.addEventListener("accessci-update-sections",o))},[r.current]),m.jsx("div",{ref:s=>r.current=s?.parentElement,children:e.length>=2?m.jsxs("nav",{className:"section-navigation",children:[t?m.jsx("h2",{children:t}):null,m.jsx("ul",{children:e.map(({icon:s,id:a,title:l})=>m.jsx("li",{children:m.jsxs("a",{href:`#${a}`,onClick:c=>{c.preventDefault(),i(a)},children:[s?m.jsxs(m.Fragment,{children:[m.jsx(Ae,{name:s})," "]}):null,l]})},a))})]}):null})}function IS({baseUri:t,showBreadcrumbs:e=!0}){const{infoGroupId:n}=fg(),r=Cr(n),o=[{name:"Resources",href:t}];return r&&o.push({name:r.name}),m.jsxs(m.Fragment,{children:[e&&m.jsx(qi,{expandWidth:!0,items:o,topBorder:!0}),m.jsxs("div",{className:"resource-group-detail",children:[m.jsx(dw,{infoGroupId:n}),m.jsx(TS,{}),m.jsx(n1,{infoGroupId:n}),m.jsx(Kx,{infoGroupId:n}),m.jsx($x,{infoGroupId:n}),m.jsx(uw,{infoGroupId:n}),m.jsx(BS,{infoGroupId:n}),m.jsx(Y1,{infoGroupId:n}),m.jsx(HC,{infoGroupId:n}),m.jsx(fw,{infoGroupId:n})]})]})}const MS=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"})),_S={"ACCESS Pegasus":"https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico","ACCESS OnDemand":"https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico","Advance reservations":"calendar-check","Composable hardware fabric":"boxes","Compute Resources":"cpu-fill","CPU Compute":"cpu-fill","GPU Compute":"cpu","Innovative / Novel Compute":"lightbulb","Large Memory Nodes":"arrows-fullscreen",Preemption:"clock-history","Science Gateway support":"globe","Service / Other":"stars","Storage Resources":"hdd-fill","Virtual Machines":"pc-display-horizontal",Cloud:"cloud",Storage:"hdd-fill"};function ip({active:t,tagCategory:e,tagId:n,iconUri:r,name:o,toggleTag:i}){const s=r||_S[o]||"tag";return m.jsx("li",{className:`tag tag-category-${e.name.toLowerCase().replace(/[^a-z]+/g,"-")}${t.tagIds.has(n)?" active":""}`,children:m.jsxs("button",{href:"#",disabled:t.disabledTagIds.has(n),onClick:a=>{a.preventDefault(),i(n)},children:[s.startsWith("http")?m.jsx(Ae,{alt:o,src:s}):m.jsx(Ae,{name:s}),o]})})}function sp({children:t}){return m.jsx("ul",{className:"tags",children:t})}function OS({active:t,baseUri:e,description:n,imageType:r,imageUri:o,name:i,infoGroupId:s,parentInfoGroupId:a,tags:l,toggleTag:c}){const u=`${e}/${a||s}`;return m.jsxs("div",{className:"resource-group",children:[m.jsx("a",{className:`resource-group-image image-type-${r}`,href:u,children:o?m.jsx("img",{src:o}):m.jsx(Ae,{name:"motherboard"})}),m.jsxs("div",{className:"resource-group-text",children:[m.jsx("h3",{children:m.jsx("a",{href:u,children:i})}),m.jsx(sp,{children:l.map(d=>m.jsx(ip,{...d,active:t,toggleTag:c},d.tagId))}),m.jsxs("p",{children:[n&&n,m.jsx("br",{}),m.jsxs("a",{href:u,children:["Learn more about ",i," »"]})]})]})]})}function LS({active:t,baseUri:e,name:n,resourceGroups:r,toggleTag:o}){return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:n}),r.filter(({infoGroupId:i})=>t.infoGroupIds.has(i)).map(i=>m.jsx(OS,{...i,baseUri:e,active:t,toggleTag:o},i.infoGroupId))]})}function FS({active:t,clearTags:e,tagCategories:n,toggleTag:r}){const[o,i]=x.useState(!1),s=x.useRef(null);return x.useEffect(()=>{const a=()=>i(!1);return document.body.addEventListener("click",a),()=>document.body.removeEventListener("click",a)},[]),m.jsxs("section",{className:"filters-outer",onClick:a=>{a.stopPropagation()},children:[m.jsxs("button",{ref:s,onClick:()=>i(!o),className:`btn-filters btn ${o?"active":""}`,children:[m.jsx(Ae,{name:"filter"})," Filters",t.tagIds.size>0?m.jsx("span",{className:"active-tag-count",children:t.tagIds.size}):null]}),o?m.jsxs("div",{className:"filters-inner",children:[n.map(a=>m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:a.name}),m.jsx(sp,{children:a.tags.map(l=>m.jsx(ip,{...l,active:t,toggleTag:r}))})]})),m.jsxs("button",{onClick:e,disabled:t.tagIds.size==0,className:"btn danger",children:[m.jsx(Ae,{name:"trash"})," Clear Filters"]})]}):null]})}function QS({setBotOpen:t}){const e=x.useRef(null),n=[{title:"Browse resources",icon:"filter-square",description:"Filter resources to find the best match for your research.",onClick:r=>{r.preventDefault(),e.current&&e.current.nextSibling.scrollIntoView({bahavior:"smooth"})}},{title:"Ask a question",icon:"question-circle",onClick:r=>{r.preventDefault(),t(!0)},description:"You have resource questions. Our Q&A bot has answers!",login:!0},{title:"Get suggestions",icon:"card-checklist",href:"https://ara.access-ci.org/",description:"Fill out a form to get resource recommendations."},{title:"Read news",icon:"newspaper",href:"https://access-ci.org/tag/resource-providers/",description:"See the latest news from resource providers."}];return m.jsxs("section",{id:"resource-pathways",ref:e,children:[m.jsxs("p",{className:"intro",children:["ACCESS provides advanced computing resources ",m.jsx("strong",{children:"at no cost"})," ","to researchers and educators."]}),m.jsx("ul",{className:"resource-pathways",children:n.map(({title:r,icon:o,href:i,description:s,login:a,onClick:l},c)=>m.jsx("li",{className:`resource-pathway-${c}`,children:m.jsxs("a",{href:i||"#",onClick:l,children:[o?m.jsx(Ae,{name:o}):null," ",m.jsxs("span",{className:"detail",children:[m.jsx("span",{className:"title",children:r}),m.jsx("span",{className:"description",children:s}),a?m.jsxs("span",{className:"login",children:[m.jsx(Ae,{name:"key"})," Requires ACCESS Login"]}):null]})]})},r))})]})}function NS({baseUri:t,title:e,setBotOpen:n,showBreadcrumbs:r=!0,showTitle:o=!0}){const[i,s]=x.useState([]),a=zl(),l=x.useMemo(()=>a?Ep(a,i):null,[a,i]),c=d=>s(i.includes(d)?i.filter(A=>A!=d):[...i,d]),u=()=>s([]);return m.jsxs(m.Fragment,{children:[r&&m.jsx(qi,{expandWidth:!0,items:[{name:"Resources"}],topBorder:!0}),e&&m.jsx("h1",{className:o?"":"visually-hidden",children:e}),m.jsx(QS,{setBotOpen:n}),m.jsxs("div",{id:"browse-resources",children:[l?m.jsx(FS,{tagCategories:a.tagCategories,active:l,clearTags:u,toggleTag:c}):null,a?a.resourceCategories.filter(({resourceCategoryId:d})=>l.resourceCategoryIds.has(d)).map(d=>m.jsx(LS,{...d,active:l,baseUri:t,clearTags:u,toggleTag:c},d.name)):null]})]})}const zS=Object.freeze(Object.defineProperty({__proto__:null,default:NS},Symbol.toStringTag,{value:"Module"}));ge.Breadcrumbs=mc,ge.Footer=bc,ge.FooterMenus=vc,ge.Header=yc,ge.QABot=wc,ge.ResourceCatalog=xc,ge.SiteMenus=kc,ge.TableOfContents=Ec,ge.UniversalMenus=Cc,ge.breadcrumbs=ym,ge.footer=wm,ge.footerMenus=xm,ge.header=km,ge.loginMenuItem=Ol,ge.myAccessMenuItem=_l,ge.qaBot=Em,ge.resourceCatalog=Cm,ge.siteMenus=Sm,ge.tableOfContents=Pm,ge.universalMenuItems=Ml,ge.universalMenus=Dm,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})}));
|