18F/analytics.usa.gov

View on GitHub
assets/bundle.js

Summary

Maintainability
A
0 mins
Test Coverage
/*! For license information please see bundle.js.LICENSE.txt */
(()=>{var t={647:(t,e,n)=>{"use strict";n.r(e);n(294);var r=n(745),o=n(697),a=n.n(o),i=n(893);function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){var e=t.mainAgencyName,n=t.agencies,r=t.pathSuffix,o=void 0===r?"":r;var a=JSON.parse(n),l=[{slug:"",name:e}].concat(u(a)),s=window.location.pathname,c="/"==s.slice(-1)?s.slice(0,-1):s;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("label",{className:"usa-label",htmlFor:"analytics-agency-select",children:"Select an agency to display results"}),(0,i.jsx)("select",{"aria-label":"Select an agency to display results",className:"usa-select",name:"agency-selector",id:"analytics-agency-select",title:"Agency Selection Dropdown",onChange:function(t){window.location.assign(new URL(window.location.origin+t.target.selectedOptions[0].value))},defaultValue:c,children:l.map((function(t,e){var n=t.slug?"/".concat(t.slug).concat(o):"".concat(o);return(0,i.jsx)("option",{value:n,children:t.name},e)}))})]})}s.propTypes={mainAgencyName:a().string.isRequired,agencies:a().string,pathSuffix:a().string};const c=s;var f=document.getElementById("analytics-agency-select-root");if(f){var h,d=(0,r.s)(f),p=f.attributes.getNamedItem("mainagencyname").value,v=f.attributes.getNamedItem("agencies").value,g=null===(h=f.attributes.getNamedItem("pathsuffix"))||void 0===h?void 0:h.value;d.render((0,i.jsx)(c,{mainAgencyName:p,agencies:v,pathSuffix:g}))}},638:(t,e,n)=>{"use strict";n.r(e);n(294);var r=n(745),o=n(697),a=n.n(o),i=n(893);function u(t){var e=t.dataURL,n=t.dataPrefix,r="".concat(e,"/").concat(n);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"analytics-data__sessions desktop:grid-col-12",children:(0,i.jsxs)("table",{className:"usa-table usa-table--borderless desktop:grid-col-8",children:[(0,i.jsxs)("caption",{children:[(0,i.jsx)("h2",{children:"User traffic reports"}),(0,i.jsx)("a",{href:"/definitions",children:"See data fields and metrics descriptions"})]}),(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",children:"Report"}),(0,i.jsx)("th",{scope:"col",children:"Time Range"}),(0,i.jsx)("th",{scope:"col",children:"Download"}),(0,i.jsx)("th",{scope:"col",children:"Update Frequency"})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Top pages and screens people are viewing"}),(0,i.jsx)("td",{children:"30 minutes"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/all-pages-realtime.json",className:"download-data usa-button","aria-label":"all-pages-realtime.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/all-pages-realtime.csv",className:"download-data usa-button","aria-label":"all-pages-realtime.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Every 30 minutes"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Top hostnames"}),(0,i.jsx)("td",{children:"30 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/top-10000-domains-30-days.json",className:"download-data usa-button","aria-label":"top-10000-domains-30-days.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/top-10000-domains-30-days.csv",className:"download-data usa-button","aria-label":"top-10000-domains-30-days.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Top traffic sources"}),(0,i.jsx)("td",{children:"30 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/top-traffic-sources-30-days.json",className:"download-data usa-button","aria-label":"top-traffic-sources-30-days.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/top-traffic-sources-30-days.csv",className:"download-data usa-button","aria-label":"top-traffic-sources-30-days.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Top downloads"}),(0,i.jsx)("td",{children:"Yesterday"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/top-downloads-yesterday.json",className:"download-data usa-button","aria-label":"top-downloads-yesterday.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/top-downloads-yesterday.csv",className:"download-data usa-button","aria-label":"top-downloads-yesterday.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]})]})]})}),(0,i.jsx)("div",{className:"analytics-data__demographics desktop:grid-col-12 padding-bottom-4",children:(0,i.jsxs)("table",{className:"usa-table usa-table--borderless desktop:grid-col-8",children:[(0,i.jsx)("caption",{children:(0,i.jsx)("h2",{children:"User demographics"})}),(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",children:"Report"}),(0,i.jsx)("th",{scope:"col",children:"Time Range"}),(0,i.jsx)("th",{scope:"col",children:"Download"}),(0,i.jsx)("th",{scope:"col",children:"Update Frequency"})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Language"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/language.json",className:"download-data usa-button","aria-label":"language.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/language.csv",className:"download-data usa-button","aria-label":"language.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Users per country"}),(0,i.jsx)("td",{children:"30 minutes"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/top-countries-realtime.json",className:"download-data usa-button","aria-label":"top-countries-realtime.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/top-countries-realtime.csv",className:"download-data usa-button","aria-label":"top-countries-realtime.csv",disabled:"disabled","aria-disabled":"true",children:"CSV"})]}),(0,i.jsx)("td",{children:"Every 30 minutes"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Users per city"}),(0,i.jsx)("td",{children:"30 minutes"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/top-cities-realtime.json",className:"download-data usa-button","aria-label":"top-cities-realtime.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/top-cities-realtime.csv",className:"download-data usa-button","aria-label":"top-cities-realtime.csv",disabled:"disabled","aria-disabled":"true",children:"CSV"})]}),(0,i.jsx)("td",{children:"Every 30 minutes"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Desktop, mobile, tablet"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/devices-90-days.json",className:"download-data usa-button","aria-label":"devices.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/devices-90-days.csv",className:"download-data usa-button","aria-label":"devices.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Web Browsers (90 days)"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/browsers-90-days.json",className:"download-data usa-button","aria-label":"browsers.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/browsers-90-days.csv",className:"download-data usa-button","aria-label":"browsers.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Operating systems"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/os-90-days.json",className:"download-data usa-button","aria-label":"os.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/os-90-days.csv",className:"download-data usa-button","aria-label":"os.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Versions of Windows"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/windows-90-days.json",className:"download-data usa-button","aria-label":"windows.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/windows-90-days.csv",className:"download-data usa-button","aria-label":"windows.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"OS & browser (combined)"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/os-browsers.json",className:"download-data usa-button","aria-label":"os-browsers.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/os-browsers.csv",className:"download-data usa-button","aria-label":"os-browsers.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Windows & browser (combined)"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/windows-browsers.json",className:"download-data usa-button","aria-label":"windows-browsers.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/windows-browsers.csv",className:"download-data usa-button","aria-label":"windows-browsers.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Screen sizes"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/screen-size.json",className:"download-data usa-button","aria-label":"screen-size.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/screen-size.csv",className:"download-data usa-button","aria-label":"screen-size.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{scope:"row",children:"Device model"}),(0,i.jsx)("td",{children:"90 days"}),(0,i.jsxs)("td",{children:[(0,i.jsx)("a",{href:r+"/device_model.json",className:"download-data usa-button","aria-label":"device_model.json",children:"JSON"}),(0,i.jsx)("a",{href:r+"/device_model.csv",className:"download-data usa-button","aria-label":"device_model.csv",children:"CSV"})]}),(0,i.jsx)("td",{children:"Daily"})]})]})]})})]})}u.propTypes={dataURL:a().string.isRequired,dataPrefix:a().string.isRequired};const l=u;var s=document.getElementById("data-downloads-root");if(s){var c,f=(0,r.s)(s),h=s.attributes.getNamedItem("dataurl").value,d=null===(c=s.attributes.getNamedItem("dataprefix"))||void 0===c?void 0:c.value;f.render((0,i.jsx)(l,{dataURL:h,dataPrefix:d}))}},308:(t,e,n)=>{"use strict";n.r(e);var r=n(294),o=n(745),a=n(697),i=n.n(a),u=n(893);function l(t){var e=t.siteDomain;return(0,r.useEffect)((function(){n(287)})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("footer",{children:[(0,u.jsxs)("section",{id:"explanation",class:"grid-row usa-prose",children:[(0,u.jsxs)("div",{class:"tablet:grid-col-8 padding-2",children:[(0,u.jsx)("h3",{children:"About this Site"}),(0,u.jsxs)("p",{children:["These data provide a window into how people are interacting with the government online. The data come from a unified Google Analytics account for U.S. federal government agencies known as the"," ",(0,u.jsx)("a",{href:"https://digital.gov/guides/dap/",class:"external-link",children:"Digital Analytics Program"}),". This program helps government agencies understand how people find, access, and use government services online. The program does not track individuals and anonymizes the IP addresses of visitors."]}),(0,u.jsxs)("p",{children:["Not every government website is represented in these data. Currently, the Digital Analytics Program collects web traffic from more than 500 federal government second level domains, across approximately 7000 total hostnames, including every executive branch cabinet department. We continue to pursue and add more sites frequently; to add your site,"," ",(0,u.jsx)("a",{href:"mailto:dap@gsa.gov",class:"external-link",children:"email the Digital Analytics Program"}),"."]}),(0,u.jsxs)("button",{id:"contact-btn",class:"usa-button--big",children:[(0,u.jsx)("svg",{class:"usa-icon","aria-hidden":"false",focusable:"false",role:"img",children:(0,u.jsx)("use",{xlinkHref:"/assets/uswds/img/sprite.svg#forum"})}),"Feedback"]})]}),(0,u.jsxs)("div",{class:"tablet:grid-col-4 padding-2 margin-0",children:[(0,u.jsx)("h3",{children:"Download the data"}),(0,u.jsxs)("p",{children:["You can ",(0,u.jsx)("a",{href:"".concat(e,"/data"),children:"download the data here."})," ","Available in JSON and CSV format."]}),(0,u.jsxs)("p",{children:["Additionally, you can access data via"," ",(0,u.jsx)("a",{href:"https://open.gsa.gov/api/dap/",target:"_blank",rel:"noopener",children:"API"})," ","(currently in Beta)."]}),(0,u.jsx)("h3",{children:"A note on sampling"}),(0,u.jsx)("p",{children:"Due to varying GA4 sampling thresholds, high data cardinality, and the volume of DAP data across its sub-properties, real-time and historical data reports are subject to sampling. These data are intended to represent high-level trends only and provide general insights into online visitor behavior."})]})]}),(0,u.jsx)("div",{class:"github-section",children:(0,u.jsx)("div",{class:"github-section__body grid-container-desktop",children:(0,u.jsxs)("div",{class:"grid-row",children:[(0,u.jsxs)("div",{class:"tablet:grid-col-6",children:[(0,u.jsxs)("p",{children:["Have a question or problem?"," ",(0,u.jsx)("a",{href:"mailto:dap@gsa.gov",children:"Get in touch"}),"."]}),(0,u.jsxs)("a",{class:"usa-button usa-button-secondary-inverse margin-y-2",href:"https://github.com/18F/analytics.usa.gov/issues",children:[(0,u.jsx)("img",{src:"".concat(e,"/images/github-logo-white.svg"),class:"github-icon",alt:"Github Icon"})," ","Suggest a feature or report an issue"]})]}),(0,u.jsxs)("div",{class:"tablet:grid-col-6",children:[(0,u.jsx)("p",{class:"",children:(0,u.jsxs)("a",{href:"https://github.com/18F/analytics.usa.gov",children:[(0,u.jsx)("img",{src:"".concat(e,"/images/github-logo.svg"),class:"github-icon",alt:"Github Icon"})," ","View application code on GitHub"]})}),(0,u.jsx)("p",{class:"margin-y-2",children:(0,u.jsxs)("a",{href:"https://github.com/18F/analytics-reporter",children:[(0,u.jsx)("img",{src:"".concat(e,"/images/github-logo.svg"),class:"github-icon",alt:"Github Icon"})," ","View code for the data on GitHub"]})})]})]})})})]}),(0,u.jsxs)("div",{class:"usa-identifier",children:[(0,u.jsx)("section",{class:"usa-identifier__section usa-identifier__section--masthead","aria-label":"Agency identifier,",children:(0,u.jsxs)("div",{class:"usa-identifier__container",children:[(0,u.jsx)("div",{class:"usa-identifier__logos",children:(0,u.jsx)("a",{href:"",class:"usa-identifier__logo",children:(0,u.jsx)("img",{class:"usa-identifier__logo-img",src:"".concat(e,"/images/gsa-logo.svg"),alt:"GSA logo",role:"img"})})}),(0,u.jsxs)("section",{class:"usa-identifier__identity","aria-label":"Agency description,",children:[(0,u.jsx)("p",{class:"usa-identifier__identity-domain",children:"analytics.usa.gov"}),(0,u.jsxs)("p",{class:"usa-identifier__identity-disclaimer",children:["Analytics.usa.gov is a product of GSA's"," ",(0,u.jsx)("a",{href:"https://digital.gov/guides/dap/",children:"Digital Analytics Program"}),"."]})]})]})}),(0,u.jsx)("nav",{class:"usa-identifier__section usa-identifier__section--required-links","aria-label":"Important links,",children:(0,u.jsx)("div",{class:"usa-identifier__container",children:(0,u.jsxs)("ul",{class:"usa-identifier__required-links-list",children:[(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/about-us",class:"usa-identifier__required-link usa-link",children:"About GSA"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/website-information/accessibility-statement",class:"usa-identifier__required-link usa-link",children:"Accessibility statement"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/reference/freedom-of-information-act-foia",class:"usa-identifier__required-link usa-link",children:"FOIA requests"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/reference/civil-rights-programs/the-no-fear-act",class:"usa-identifier__required-link usa-link",children:"No FEAR Act data"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsaig.gov/",class:"usa-identifier__required-link usa-link",children:"Office of the Inspector General"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/reference/reports/budget-performance",class:"usa-identifier__required-link usa-link",children:"Performance reports"})}),(0,u.jsx)("li",{class:"usa-identifier__required-links-item",children:(0,u.jsx)("a",{href:"https://www.gsa.gov/website-information/website-policies",class:"usa-identifier__required-link usa-link",children:"Privacy policy"})})]})})}),(0,u.jsx)("section",{class:"usa-identifier__section usa-identifier__section--usagov","aria-label":"U.S. government information and services,",children:(0,u.jsxs)("div",{class:"usa-identifier__container",children:[(0,u.jsx)("div",{class:"usa-identifier__usagov-description",children:"Looking for U.S. government information and services?"})," ",(0,u.jsx)("a",{href:"https://www.usa.gov/",class:"usa-link",children:"Visit USA.gov"})]})})]})]})}l.propTypes={siteDomain:i().string.isRequired};const s=l;var c=document.getElementById("footer-root");if(c){var f=(0,o.s)(c),h=c.attributes.getNamedItem("sitedomain").value;f.render((0,u.jsx)(s,{siteDomain:h}))}},229:(t,e,n)=>{"use strict";n.r(e);var r=n(294),o=n(745),a=n(697),i=n.n(a);function u(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}let l={};function s(){return l}function c(){return Object.assign({},s())}const f={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function h(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const d={date:h({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:h({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:h({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},p={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function v(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,o=n?.width?String(n.width):e;r=t.formattingValues[o]||t.formattingValues[e]}else{const e=t.defaultWidth,o=n?.width?String(n.width):t.defaultWidth;r=t.values[o]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function g(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;const i=a[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n;return}(u,(t=>t.test(i))):function(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n;return}(u,(t=>t.test(i)));let s;s=t.valueCallback?t.valueCallback(l):l,s=n.valueCallback?n.valueCallback(s):s;return{value:s,rest:e.slice(i.length)}}}var y;const m={code:"en-US",formatDistance:(t,e,n)=>{let r;const o=f[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:d,formatRelative:(t,e,n,r)=>p[t],localize:{ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:v({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:v({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:v({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:v({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:v({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const n=t.match(y.matchPattern);if(!n)return null;const r=n[0],o=t.match(y.parsePattern);if(!o)return null;let a=y.valueCallback?y.valueCallback(o[0]):o[0];return a=e.valueCallback?e.valueCallback(a):a,{value:a,rest:t.slice(r.length)}}),era:g({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:g({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:g({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function b(t){const e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):"number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?new Date(t):new Date(NaN)}const w=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},x=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},k={p:x,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return w(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",w(r,e)).replace("{{time}}",x(o,e))}},_=/^D+$/,S=/^Y+$/,E=["D","DD","YY","YYYY"];function j(t){return _.test(t)}function L(t){return S.test(t)}function N(t,e,n){const r=function(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),E.includes(t))throw new RangeError(r)}function M(t,e){const n=e instanceof Date?u(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}class T{subPriority=0;validate(t,e){return!0}}class P extends T{constructor(t,e,n,r,o){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class C extends T{priority=10;subPriority=-1;set(t,e){return e.timestampIsSet?t:u(t,M(t,Date))}}class O{run(t,e,n,r){const o=this.parse(t,e,n,r);return o?{setter:new P(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,n){return!0}}Math.pow(10,8);const A=6048e5,F=/^(1[0-2]|0?\d)/,D=/^(3[0-1]|[0-2]?\d)/,R=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,z=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,q=/^(2[0-4]|[0-1]?\d)/,H=/^(1[0-1]|0?\d)/,B=/^(1[0-2]|0?\d)/,U=/^[0-5]?\d/,G=/^[0-5]?\d/,Y=/^\d/,W=/^\d{1,2}/,V=/^\d{1,3}/,$=/^\d{1,4}/,Q=/^-?\d+/,X=/^-?\d/,K=/^-?\d{1,2}/,J=/^-?\d{1,3}/,Z=/^-?\d{1,4}/,tt=/^([+-])(\d{2})(\d{2})?|Z/,et=/^([+-])(\d{2})(\d{2})|Z/,nt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,rt=/^([+-])(\d{2}):(\d{2})|Z/,ot=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function at(t,e){return t?{value:e(t.value),rest:t.rest}:t}function it(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ut(t,e){const n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};return{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}}function lt(t){return it(Q,t)}function st(t,e){switch(t){case 1:return it(Y,e);case 2:return it(W,e);case 3:return it(V,e);case 4:return it($,e);default:return it(new RegExp("^\\d{1,"+t+"}"),e)}}function ct(t,e){switch(t){case 1:return it(X,e);case 2:return it(K,e);case 3:return it(J,e);case 4:return it(Z,e);default:return it(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ft(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ht(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const e=r+50;o=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return n?o:1-o}function dt(t){return t%400==0||t%4==0&&t%100!=0}function pt(t,e){const n=s(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=b(t),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function vt(t,e){const n=b(t),r=n.getFullYear(),o=s(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=u(t,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=pt(i,e),c=u(t,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const f=pt(c,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function gt(t){return pt(t,{weekStartsOn:1})}function yt(t,e){const n=s(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=vt(t,e),a=u(t,0);a.setFullYear(o,0,r),a.setHours(0,0,0,0);return pt(a,e)}function mt(t,e){const n=b(t),r=+pt(n,e)-+yt(n,e);return Math.round(r/A)+1}function bt(t,e,n){const r=b(t),o=mt(r,n)-e;return r.setDate(r.getDate()-7*o),r}function wt(t){const e=b(t),n=e.getFullYear(),r=u(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=gt(r),a=u(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=gt(a);return e.getTime()>=o.getTime()?n+1:e.getTime()>=i.getTime()?n:n-1}function xt(t){const e=wt(t),n=u(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),gt(n)}function kt(t){const e=b(t),n=+gt(e)-+xt(e);return Math.round(n/A)+1}function _t(t,e){const n=b(t),r=kt(n)-e;return n.setDate(n.getDate()-7*r),n}const St=[31,28,31,30,31,30,31,31,30,31,30,31],Et=[31,29,31,30,31,30,31,31,30,31,30,31];function jt(t,e){const n=b(t);return isNaN(e)?u(t,NaN):e?(n.setDate(n.getDate()+e),n):n}function Lt(t,e,n){const r=s(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=b(t),i=a.getDay(),u=7-o;return jt(a,e<0||e>6?e-(i+u)%7:((e%7+7)%7+u)%7-(i+u)%7)}function Nt(t){let e=b(t).getDay();return 0===e&&(e=7),e}function Mt(t,e){const n=b(t);return jt(n,e-Nt(n))}function Tt(t){const e=b(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}const Pt={G:new class extends O{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends O{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return at(st(4,t),r);case"yo":return at(n.ordinalNumber(t,{unit:"year"}),r);default:return at(st(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const r=t.getFullYear();if(n.isTwoDigitYear){const e=ht(n.year,r);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const o="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}},Y:new class extends O{priority=130;parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return at(st(4,t),r);case"Yo":return at(n.ordinalNumber(t,{unit:"year"}),r);default:return at(st(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,r){const o=vt(t,r);if(n.isTwoDigitYear){const e=ht(n.year,o);return t.setFullYear(e,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),pt(t,r)}const a="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(a,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),pt(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends O{priority=130;parse(t,e){return ct("R"===e?4:e.length,t)}set(t,e,n){const r=u(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gt(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends O{priority=130;parse(t,e){return ct("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends O{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return st(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends O{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return st(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends O{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"M":return at(it(F,t),r);case"MM":return at(st(2,t),r);case"Mo":return at(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},L:new class extends O{priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"L":return at(it(F,t),r);case"LL":return at(st(2,t),r);case"Lo":return at(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends O{priority=100;parse(t,e,n){switch(e){case"w":return it(z,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return st(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,r){return pt(bt(t,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends O{priority=100;parse(t,e,n){switch(e){case"I":return it(z,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return st(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return gt(_t(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends O{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return it(D,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return st(e.length,t)}}validate(t,e){const n=dt(t.getFullYear()),r=t.getMonth();return n?e>=1&&e<=Et[r]:e>=1&&e<=St[r]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends O{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return it(R,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return st(e.length,t)}}validate(t,e){return dt(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends O{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Lt(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends O{priority=90;parse(t,e,n,r){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return at(st(e.length,t),o);case"eo":return at(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Lt(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends O{priority=90;parse(t,e,n,r){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return at(st(e.length,t),o);case"co":return at(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Lt(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends O{priority=90;parse(t,e,n){const r=t=>0===t?7:t;switch(e){case"i":case"ii":return st(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return at(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return at(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return at(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return at(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return(t=Mt(t,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends O{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(ft(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends O{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(ft(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends O{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(ft(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends O{priority=70;parse(t,e,n){switch(e){case"h":return it(B,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return st(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):r||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends O{priority=70;parse(t,e,n){switch(e){case"H":return it(I,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return st(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends O{priority=70;parse(t,e,n){switch(e){case"K":return it(H,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return st(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends O{priority=70;parse(t,e,n){switch(e){case"k":return it(q,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return st(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends O{priority=60;parse(t,e,n){switch(e){case"m":return it(U,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return st(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]},s:new class extends O{priority=50;parse(t,e,n){switch(e){case"s":return it(G,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return st(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]},S:new class extends O{priority=30;parse(t,e){return at(st(e.length,t),(t=>Math.trunc(t*Math.pow(10,3-e.length))))}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]},X:new class extends O{priority=10;parse(t,e){switch(e){case"X":return ut(tt,t);case"XX":return ut(et,t);case"XXXX":return ut(nt,t);case"XXXXX":return ut(ot,t);default:return ut(rt,t)}}set(t,e,n){return e.timestampIsSet?t:u(t,t.getTime()-Tt(t)-n)}incompatibleTokens=["t","T","x"]},x:new class extends O{priority=10;parse(t,e){switch(e){case"x":return ut(tt,t);case"xx":return ut(et,t);case"xxxx":return ut(nt,t);case"xxxxx":return ut(ot,t);default:return ut(rt,t)}}set(t,e,n){return e.timestampIsSet?t:u(t,t.getTime()-Tt(t)-n)}incompatibleTokens=["t","T","X"]},t:new class extends O{priority=40;parse(t){return lt(t)}set(t,e,n){return[u(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends O{priority=20;parse(t){return lt(t)}set(t,e,n){return[u(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,At=/^'([^]*?)'?$/,Ft=/''/g,Dt=/\S/,Rt=/[a-zA-Z]/;function zt(t,e,n,r){const o=c(),a=r?.locale??o.locale??m,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(""===e)return""===t?b(n):u(n,NaN);const s={firstWeekContainsDate:i,weekStartsOn:l,locale:a},f=[new C],h=e.match(Ot).map((t=>{const e=t[0];if(e in k){return(0,k[e])(t,a.formatLong)}return t})).join("").match(Ct),d=[];for(let o of h){!r?.useAdditionalWeekYearTokens&&L(o)&&N(o,e,t),!r?.useAdditionalDayOfYearTokens&&j(o)&&N(o,e,t);const i=o[0],l=Pt[i];if(l){const{incompatibleTokens:e}=l;if(Array.isArray(e)){const t=d.find((t=>e.includes(t.token)||t.token===i));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${o}\` at the same time`)}else if("*"===l.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${o}\` and any other token at the same time`);d.push({token:i,fullToken:o});const r=l.run(t,o,a.match,s);if(!r)return u(n,NaN);f.push(r.setter),t=r.rest}else{if(i.match(Rt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===o?o="'":"'"===i&&(o=o.match(At)[1].replace(Ft,"'")),0!==t.indexOf(o))return u(n,NaN);t=t.slice(o.length)}}if(t.length>0&&Dt.test(t))return u(n,NaN);const p=f.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>f.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let v=b(n);if(isNaN(v.getTime()))return u(n,NaN);const g={};for(const t of p){if(!t.validate(v,s))return u(n,NaN);const e=t.set(v,g,s);Array.isArray(e)?(v=e[0],Object.assign(g,e[1])):v=e}return u(n,v)}function It(t){return+b(t)>Date.now()}var qt={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},Ht=t=>Object.assign({},qt,t);class Bt extends Error{constructor(t){super(t),this.name="CsvGenerationError"}}class Ut extends Error{constructor(t){super(t),this.name="EmptyHeadersError"}}class Gt extends Error{constructor(t){super(t),this.name="UnsupportedDataFormatError"}}var Yt=t=>t,Wt=Yt,Vt=Yt,$t=Yt,Qt=Yt,Xt=Yt,Kt=t=>Qt("object"==typeof t?t.key:t),Jt=t=>Xt("object"==typeof t?t.displayLabel:t),Zt=t=>e=>Vt(t+e+"\r\n"),te=t=>(e,n)=>ee(t)($t(e+n)),ee=t=>e=>e+t.fieldSeparator,ne=(t,e)=>{if((t=>+t===t&&(!isFinite(t)||Boolean(t%1)))(e)){if("locale"===t.decimalSeparator)return Wt(e.toLocaleString());if(t.decimalSeparator)return Wt(e.toString().replace(".",t.decimalSeparator))}return Wt(e.toString())},re=(t,e)=>{let n=e;return(t.quoteStrings||t.fieldSeparator&&e.indexOf(t.fieldSeparator)>-1||t.quoteCharacter&&e.indexOf(t.quoteCharacter)>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(n=t.quoteCharacter+function(t,e){return'"'==e&&t.indexOf('"')>-1?t.replace(/"/g,'""'):t}(e,t.quoteCharacter)+t.quoteCharacter),Wt(n)},oe=(t,e)=>{if("number"==typeof e)return ne(t,e);if("string"==typeof e)return re(t,e);if("boolean"==typeof e&&t.boolDisplay)return((t,e)=>{const n=e?"true":"false";return Wt(t.boolDisplay[n])})(t,e);if(null==e)return((t,e)=>void 0===e&&void 0!==t.replaceUndefinedWith?re(t,t.replaceUndefinedWith+""):re(t,null===e?"null":""))(t,e);throw new Gt(`\n    typeof ${typeof e} isn't supported. Only number, string, boolean, null and undefined are supported.\n    Please convert the data in your object to one of those before generating the CSV.\n    `)},ae=t=>e=>{const n=Ht(t),r=n.useKeysAsHeaders?Object.keys(e[0]):n.columnHeaders;let o=((t,...e)=>e.reduce(((t,e)=>e(t)),t))(Vt(""),(t=>e=>t.useBom?Vt(e+"\ufeff"):e)(n),(t=>e=>t.showTitle?Zt(Vt(e+t.title))($t("")):e)(n),((t,e)=>n=>{if(!t.showColumnHeaders)return n;if(e.length<1)throw new Ut("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let r=$t("");for(let n=0;n<e.length;n++){const o=Jt(e[n]);r=te(t)(r,oe(t,o))}return r=$t(r.slice(0,-1)),Zt(n)(r)})(n,r),((t,e,n)=>r=>{let o=r;for(var a=0;a<n.length;a++){let r=$t("");for(let o=0;o<e.length;o++){const i=Kt(e[o]),u=n[a][i];r=te(t)(r,oe(t,u))}r=$t(r.slice(0,-1)),o=Zt(o)(r)}return o})(n,r,e));if(o.length<1)throw new Bt("Output is empty. Is your data formatted correctly?");return o};function ie(t){return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function ue(t){if(!ie(t)&&"number"!=typeof t)return!1;const e=b(t);return!isNaN(Number(e))}function le(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const se={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return le("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):le(n+1,2)},d:(t,e)=>le(t.getDate(),e.length),a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>le(t.getHours()%12||12,e.length),H:(t,e)=>le(t.getHours(),e.length),m:(t,e)=>le(t.getMinutes(),e.length),s:(t,e)=>le(t.getSeconds(),e.length),S(t,e){const n=e.length,r=t.getMilliseconds();return le(Math.trunc(r*Math.pow(10,n-3)),e.length)}},ce=/(\w)\1*|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,de=/[a-zA-Z]/;function pe(t,e){const n=b(t);if(!ue(n))throw new RangeError("Invalid time value");const r=e.match(ce);if(!r)return"";return r.map((t=>{if("''"===t)return"'";const e=t[0];if("'"===e)return function(t){const e=t.match(fe);if(!e)return t;return e[1].replace(he,"'")}(t);const r=se[e];if(r)return r(n,t);if(e.match(de))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("")}function ve(t){const e=b(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function ge(t){const e=b(t);return e.setHours(0,0,0,0),e}function ye(){return ge(Date.now())}function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}var be;function we(){we=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==me(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(me(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function xe(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function ke(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){xe(a,r,o,i,u,"next",t)}function u(t){xe(a,r,o,i,u,"throw",t)}i(void 0)}))}}function _e(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,Se(r.key),r)}}function Se(t){var e=function(t,e){if("object"!=me(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==me(e)?e:String(e)}function Ee(t,e){je(t,e),e.add(t)}function je(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Le(t,e,n){return Ce(e,t),function(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}(n,"get"),Ne(t,n)}function Ne(t,e){return e.get?e.get.call(t):e.value}function Me(t,e,n){return Ce(e,t),n}function Te(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,Pe(e,t),n),n}function Pe(t,e){return t.get(Ce(t,e))}function Ce(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Oe=new WeakMap,Ae=new WeakSet,Fe=new WeakSet,De=new WeakSet,Re=new WeakSet,ze=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ee(this,Re),Ee(this,De),Ee(this,Fe),Ee(this,Ae),o={writable:!0,value:void 0},je(n=this,r=Oe),r.set(n,o),Te(this,Oe,e)}var e,n,r;return e=t,(n=[{key:"getReportForMonth",value:function(t,e,n,r){if(!(t&&n&&r))return Promise.reject("Missing required params for report API call");var o=Me(this,Ae,Ie).call(this,t,e,n,r);return Me(this,De,He).call(this,o)}}])&&_e(e.prototype,n),r&&_e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ie(t,e,n,r){var o,a=Ne(o=this,Pe(Oe,o)),i=zt("".concat(r,"-").concat(n,"-01"),"yyyy-M-dd",new Date),u=pe(i,"yyyy-MM-dd"),l=pe(Me(this,Fe,qe).call(this,i),"yyyy-MM-dd");return e&&(a="".concat(a,"/agencies/").concat(e)),"".concat(a,"/reports/").concat(t,"/data?after=").concat(u,"&before=").concat(l)}function qe(t){var e=ve(t);return It(e)?ye():e}function He(t){return Be.apply(this,arguments)}function Be(){return(Be=ke(we().mark((function t(e){var n,r,o,a;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n="".concat(e,"&limit=").concat(Le(be,be,Ye)),r=[],o=1;case 3:return t.next=6,Me(this,Re,Ue).call(this,n,o);case 6:if(a=t.sent,r=r.concat(a),!(a.length<Le(be,be,Ye))){t.next=10;break}return t.abrupt("return",r);case 10:o++,t.next=3;break;case 13:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Ue(t,e){return Ge.apply(this,arguments)}function Ge(){return(Ge=ke(we().mark((function t(e,n){var r,o,a;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="".concat(e,"&page=").concat(n),t.next=3,fetch(r,{method:"GET",headers:{"Content-Type":"application/json"},redirect:"error"});case 3:return o=t.sent,t.next=6,o.json();case 6:return a=t.sent,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}be=ze;var Ye={writable:!0,value:1e4};const We=ze;function Ve(t){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(t)}var $e=["notice","id","report_name","report_agency"];function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xe(t,e,n){return(e=Ze(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Je(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,Ze(r.key),r)}}function Ze(t){var e=function(t,e){if("object"!=Ve(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ve(e)?e:String(e)}function tn(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function en(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,rn(e,t))}function nn(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,rn(e,t),n),n}function rn(t,e){return t.get(function(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(t,e))}var on=new WeakMap,an=new WeakMap,un=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{}],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[{}];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tn(this,on,{writable:!0,value:void 0}),tn(this,an,{writable:!0,value:void 0}),nn(this,on,e),nn(this,an,n)}var e,n,r;return e=t,n=[{key:"mapForDisplay",value:function(t){if(0==t.length)return t;var e=en(this,on).find((function(e){return e.value==t[0].report_name})),n=en(this,an).find((function(e){return e.value==t[0].report_agency}));return t.map((function(t){t.notice,t.id;var r=t.report_name,o=t.report_agency,a=Ke(t,$e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){Xe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({report_name:e?e.name:r,report_agency:n?n.name:o},a)}))}}],n&&Je(e.prototype,n),r&&Je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const ln=un;var sn=n(893);function cn(t){return function(t){if(Array.isArray(t))return dn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||hn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,e){if(t){if("string"==typeof t)return dn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(t,e):void 0}}function dn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pn(t){var e=t.apiURL,n=t.mainAgencyName,o=t.agencies,a=JSON.parse(o).map((function(t){return{name:t.name,value:t.slug}})),i=[{value:"domain",name:"Visits to participating hostnames"},{value:"download",name:"Top downloads"},{value:"traffic-source",name:"Top traffic sources"},{value:"language",name:"Browser language"},{value:"device",name:"Device type (Desktop/Mobile/Tablet)"},{value:"device-model",name:"Device model"},{value:"os",name:"Operating system"},{value:"os-browser",name:"Operating system and browser"},{value:"windows",name:"Windows version"},{value:"windows-browser",name:"Windows version and browser"}],u=new We(e),l=new ln(i,a),s=fn((0,r.useState)(""),2),c=s[0],f=s[1],h=fn((0,r.useState)(""),2),d=h[0],p=h[1],v=fn((0,r.useState)(""),2),g=v[0],y=v[1],m=fn((0,r.useState)(""),2),b=m[0],w=m[1],x=fn((0,r.useState)(!1),2),k=x[0],_=x[1],S=fn((0,r.useState)(!1),2),E=S[0],j=S[1],L=fn((0,r.useState)(!1),2),N=L[0],M=L[1],T=fn((0,r.useState)(""),2),P=T[0],C=T[1];function O(t){t.preventDefault();var e=t.nativeEvent.submitter.value.toLowerCase();return j(!1),function(){if(!(c&&g&&b))return!0;var t=("string"==typeof c||c instanceof String)&&"true"!==c,e=("string"==typeof g||g instanceof String)&&!isNaN(g),n=("string"==typeof b||b instanceof String)&&!isNaN(b);return!(t&&e&&n)}()?(C("Report, month, and year are required fields. Please select values."),void M(!0)):It(zt("".concat(b,"-").concat(g,"-01"),"yyyy-M-dd",new Date))?(C("Please select a month and year which is not in the future."),void M(!0)):(M(!1),C(""),_(!0),u.getReportForMonth(c,d,g,b).then((function(t){!function(t,e,n){var r=document.createElement("a");r.setAttribute("href","data:".concat(e,";charset=utf-8,").concat(encodeURIComponent(t))),r.setAttribute("download",n),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}(function(t,e){var n=l.mapForDisplay(t);return"json"===e?JSON.stringify(n):ae(Ht({useKeysAsHeaders:!0}))(n)}(t,e),"json"===e?"application/json":"text/csv","".concat(c,"-").concat(g,"-").concat(b,".").concat(e))})).catch((function(t){console.log(t),j(!0)})).finally((function(){_(!1)})))}return(0,sn.jsx)(sn.Fragment,{children:(0,sn.jsxs)("section",{className:"historical-analytics-data",children:[(0,sn.jsx)("div",{className:"historical-analytics-data__header grid-row",children:(0,sn.jsxs)("div",{className:"desktop:grid-col-8",children:[(0,sn.jsx)("h1",{children:"Download Universal Analytics historical data"}),(0,sn.jsxs)("h2",{children:[(0,sn.jsx)("svg",{className:"usa-icon","aria-hidden":"false",focusable:"false",role:"img",children:(0,sn.jsx)("use",{xlinkHref:"/assets/uswds/img/sprite.svg#warning"})}),(0,sn.jsx)("span",{children:"About the data"})]}),(0,sn.jsx)("p",{children:"These Universal Analytics historical reports represent only summary-level web traffic and user demographic data aggregated by month and calendar year between January 1, 2018 and June 30, 2024. The data is limited to DAP-participating, public-facing federal government websites at the time of the original data collection. The number of websites participating in DAP was increasing during those years, so the yearly analysis represents a different sample size of participating websites."}),(0,sn.jsx)("p",{children:"Due to varying Google Analytics API sampling thresholds, and the sheer volume of data in the Digital Analytics Program Universal Analytics property, reports are subject to sampling. The data are intended to represent trends and numbers may not be precise."}),(0,sn.jsx)("p",{children:"This directional information should only be used for general insights into online visitor behavior trends."})]})}),(0,sn.jsx)("div",{className:"historical-analytics-data__form grid-row",children:(0,sn.jsx)("div",{className:"grid-col-12",children:(0,sn.jsxs)("form",{onSubmit:function(t){return O(t)},children:[(0,sn.jsx)("legend",{className:"form-control usa-legend",children:"Download data by month"}),E&&(0,sn.jsx)("div",{className:"grid-row",children:(0,sn.jsx)("div",{className:"grid-col-12",children:(0,sn.jsx)("div",{className:"usa-alert usa-alert--error",role:"alert",children:(0,sn.jsxs)("div",{className:"usa-alert__body",children:[(0,sn.jsx)("h4",{className:"usa-alert__heading",children:"Error retrieving data"}),(0,sn.jsx)("p",{className:"usa-alert__text",children:"Could not retrieve the requested data. DAP APIs are subject to rate limiting. Please try again later."})]})})})}),N&&(0,sn.jsx)("div",{className:"grid-row",children:(0,sn.jsx)("div",{className:"grid-col-12",children:(0,sn.jsx)("div",{className:"usa-alert usa-alert--error",role:"alert",children:(0,sn.jsxs)("div",{className:"usa-alert__body",children:[(0,sn.jsx)("h4",{className:"usa-alert__heading",children:"Input error"}),(0,sn.jsx)("p",{className:"usa-alert__text",children:P})]})})})}),(0,sn.jsx)("fieldset",{className:"usa-fieldset",children:(0,sn.jsxs)("div",{className:"grid-row",children:[(0,sn.jsxs)("div",{className:"form-control grid-col-12 tablet:grid-col-8 desktop:grid-col-2",children:[(0,sn.jsxs)("label",{className:"usa-label",htmlFor:"report",children:["Report",(0,sn.jsx)("abbr",{title:"required",className:"form-control usa-hint usa-hint--required",children:"*"})]}),(0,sn.jsxs)("select",{id:"report",name:"report",className:"usa-select",value:c,onChange:function(t){return f(t.target.value)},required:!0,children:[(0,sn.jsx)("option",{value:!0,children:"- Select a report -"}),i.map((function(t){return(0,sn.jsx)("option",{value:t.value,children:t.name},t.value)}))]})]}),(0,sn.jsxs)("div",{className:"form-control grid-col-12 tablet:grid-col-8 desktop:grid-col-2",children:[(0,sn.jsx)("label",{className:"usa-label",htmlFor:"agency",children:"Agency"}),(0,sn.jsx)("select",{id:"agency",name:"agency",className:"usa-select",value:d,onChange:function(t){return p(t.target.value)},children:[{value:"",name:n}].concat(cn(a)).map((function(t){return(0,sn.jsx)("option",{value:t.value,children:t.name},t.value)}))})]}),(0,sn.jsxs)("div",{className:"form-control grid-col-12 tablet:grid-col-8 desktop:grid-col-2",children:[(0,sn.jsxs)("label",{className:"usa-label",htmlFor:"month",children:["Month",(0,sn.jsx)("abbr",{title:"required",className:"form-control usa-hint usa-hint--required",children:"*"})]}),(0,sn.jsxs)("select",{id:"month",name:"month",className:"usa-select",value:g,onChange:function(t){return y(t.target.value)},required:!0,children:[(0,sn.jsx)("option",{value:!0,children:"- Select a month -"}),(0,sn.jsx)("option",{value:"1",children:"January"}),(0,sn.jsx)("option",{value:"2",children:"February"}),(0,sn.jsx)("option",{value:"3",children:"March"}),(0,sn.jsx)("option",{value:"4",children:"April"}),(0,sn.jsx)("option",{value:"5",children:"May"}),(0,sn.jsx)("option",{value:"6",children:"June"}),(0,sn.jsx)("option",{value:"7",children:"July"}),(0,sn.jsx)("option",{value:"8",children:"August"}),(0,sn.jsx)("option",{value:"9",children:"September"}),(0,sn.jsx)("option",{value:"10",children:"October"}),(0,sn.jsx)("option",{value:"11",children:"November"}),(0,sn.jsx)("option",{value:"12",children:"December"})]})]}),(0,sn.jsxs)("div",{className:"form-control grid-col-12 tablet:grid-col-8 desktop:grid-col-2",children:[(0,sn.jsxs)("label",{className:"usa-label",htmlFor:"year",children:["Year",(0,sn.jsx)("abbr",{title:"required",className:"form-control usa-hint usa-hint--required",children:"*"})]}),(0,sn.jsxs)("select",{id:"year",name:"year",className:"usa-select",value:b,onChange:function(t){return w(t.target.value)},required:!0,children:[(0,sn.jsx)("option",{value:!0,children:"- Select a year -"}),(0,sn.jsx)("option",{value:"2018",children:"2018"}),(0,sn.jsx)("option",{value:"2019",children:"2019"}),(0,sn.jsx)("option",{value:"2020",children:"2020"}),(0,sn.jsx)("option",{value:"2021",children:"2021"}),(0,sn.jsx)("option",{value:"2022",children:"2022"}),(0,sn.jsx)("option",{value:"2023",children:"2023"}),(0,sn.jsx)("option",{value:"2024",children:"2024"})]})]}),(0,sn.jsxs)("div",{className:"form-control grid-col-12 tablet:grid-col-8 desktop:grid-col-3",children:[(0,sn.jsx)("label",{className:"usa-label",children:"Download"}),(0,sn.jsxs)("div",{className:"submit-buttons",children:[(0,sn.jsx)("input",{className:"usa-button",type:"submit",value:"CSV"}),(0,sn.jsx)("input",{className:"usa-button",type:"submit",value:"JSON"})]})]}),k&&(0,sn.jsx)("div",{className:"grid-col-12 tablet:grid-col-8 desktop:grid-col-1",children:(0,sn.jsx)("div",{className:"loading-spinner-container",children:(0,sn.jsx)("div",{className:"loading-spinner",role:"alert","aria-live":"assertive"})})})]})})]})})})]})})}pn.propTypes={apiURL:i().string.isRequired};const vn=pn;var gn=document.getElementById("historical-data-download-root");if(gn){var yn=(0,o.s)(gn),mn=gn.attributes.getNamedItem("apiurl").value,bn=gn.attributes.getNamedItem("mainagencyname").value,wn=gn.attributes.getNamedItem("agencies").value;yn.render((0,sn.jsx)(vn,{apiURL:mn,mainAgencyName:bn,agencies:wn}))}},873:(t,e,n)=>{"use strict";n.r(e);var r=n(294),o=n(745),a=n(697),i=n.n(a),u=n(78),l=n.n(u);function s(){var t=function(t){return t},e=function(t){return t.value},n=String,r=function(t){return t.key},o=null,a=function(t){return"".concat((t||0).toFixed(1),"%")},i=function(i){var u=i.selectAll(".bin").data(t);u.exit().remove();var l=u.enter().append("div").attr("class","bin");l.append("div").attr("class","label"),l.append("div").attr("class","value"),l.append("div").attr("class","bar").style("width","0%");var s=o?o.call(i,u.data().map(e)):null;u.select(".bar").style("width",s?function(t){return a(s(e(t)))}:function(t){return a(e(t))}),u.select(".label").html(r),u.select(".value").text((function(t,r){return n.call(this,e(t),t,r)}))};return i.bars=function(e){return arguments.length?(t=l().functor(e),i):t},i.label=function(t){return arguments.length?(r=l().functor(t),i):r},i.value=function(t){return arguments.length?(e=l().functor(t),i):e},i.format=function(t){return arguments.length?(n=l().functor(t),i):n},i.scale=function(t){return arguments.length?(o=l().functor(t),i):o},i}function c(t){return t.replace(/\.0+$/,"")}var f=l().format(",");function h(t){return t?function(e){var n=l().formatPrefix(e),r=t[n.symbol];return n&&r?n.scale(e).toFixed(r[1]).replace(/\.0+$/,"")+r[0]:f(e)}:f}function d(t){return"0"===t.charAt(0)&&(t=t.slice(1)),t}function p(t){var e=0;return t.indexOf("://")>-1&&(e=2),t.split("/")[e].split(":")[0].replace(/%20/g," ")}const v={trimZeroes:c,addCommas:f,formatVisits:function(){return h({k:["k",1],M:["m",1],G:["b",2]})},readableBigNumber:function(t){return h({M:[" million",1],G:[" billion",2]})(t)},formatHour:function(t){var e=+t;return(e%12||12)+(e>=12?"p":"a")},formatDate:function(t){var e=t.split("-"),n=d(e[1]),r=d(e[2]);return"".concat(n,"/").concat(r)},floatToPercent:function(t){return t>=.1?"".concat(c(t.toFixed(1)),"%"):"< 0.1%"},formatURL:p,formatProtocol:function(t){if(0!==(t=p(t)).indexOf("http"))return t="https://".concat(t)},formatFile:function(t){try{return new URL(t).pathname}catch(e){return t}},secondsToReadableTime:function(t){var e=31536e3,n=86400,r=3600,o=Math.floor(t/e),a=Math.floor(t%e/n),i=Math.floor(t%e%n/r),u=Math.floor(t%e%n%r/60),l=t%e%n%r%60,s="";return o&&(s=s+o+" years "),a&&(s=s+a+" days "),i&&(s=s+i+" hours "),u&&(s=s+u+" min "),l&&(s=s+Math.round(l)+" sec "),s.trim()}};function g(t){return l().entries(t).sort((function(t,e){return l().descending(+t.value,+e.value)}))}function y(t){return t.map((function(t){return t.value}))}function m(t,e){var n=e(t),r=l().sum(n),o=[];return n.forEach((function(e,n){o.push(t[n]),o[n].proportion=e/r*100})),o}function b(t){return m(t,y)}function w(t,e){var n=[],r={key:"Other",proportion:0,children:[]};return t.forEach((function(t){t.proportion>=e?n.push(t):r.proportion+=t.proportion})),n.push(r),n}const x={listify:g,findProportionsOfMetric:m,findProportionsOfMetricFromValue:b,toTopPercents:function(t,e){return w(b(g(t.totals["by_"+e])),.1)},toTopPercentsWithoutConsolidation:function(t,e){var n=g(t.totals["by_"+e]),r=b(n);return b(n.filter((function(t,e){return r[e].proportion>=.1})))},extractArrayValue:y,consolidateSmallValues:w};function k(){var t=function(t){return t&&t.source},e=Object,n=function(){},r=l().dispatch("loading","load","error","render"),o=function(n){function o(o){o.dataRequest&&o.dataRequest.abort();var u=l().select(this).classed("loading",!0).classed("loaded error",!1);r.loading(n,o);var s=t.apply(this,arguments);if(!s)return console.error("no data source found:",this,o);o.dataRequest=l().json(s,(function(t,l){if(u.classed("loading",!1),t)return u.call(a,t);u.classed("loaded",!0),r.load(n,l),u.call(i,o.transformedData=e(l))}))}n.each(o).filter((function(t){return t.refresh=+this.getAttribute("data-refresh"),!Number.isNaN(t.refresh)&&t.refresh>0})).each((function(t){var e=l().select(this);t.interval=setInterval((function(){e.each(o)}),1e3*t.refresh)}))};function a(t,e){var n=e.responseText;t.classed("error",!0).select(".error-message").text(n),r.error(t,e,n)}function i(t,e){t.select(".meta-name").text((function(t){return t.meta.name})),t.select(".meta-desc").text((function(t){return t.meta.description})),t.select(".data").datum(e).call(n,e),r.render(t,e)}return o.render=function(t){return arguments.length?(n=t,o):n},o.url=function(e){return arguments.length?(t=l().functor(e),o):t},o.transform=function(t){return arguments.length?(e=l().functor(t),o):e},l().rebind(o,r,"on")}function _(t){return k().transform(t).render(s().value((function(t){return t.proportion})).format(v.floatToPercent))}const S={loadAndRender:k,buildBarChart:_,buildBarBasicChart:function(t){return _((function(e){return x.toTopPercents(e,t)}))},buildBarChartWithLabel:function(t,e){return k().transform(t).render(s().value((function(t){return t.proportion})).format(v.floatToPercent).label((function(t){return t[e]})))},buildCompactBarChart:function(t){return _((function(e){return x.toTopPercentsWithoutConsolidation(e,t)}))}};var E=n(893);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function L(){L=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new C(r||[]);return o(i,"_invoke",{value:N(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==j(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=M(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function M(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(j(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function N(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function M(t){var e=t.dataHrefBase,n=t.agency,o="".concat(e,"/realtime.json"),a=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=L().mark((function t(){var e;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(a.current).datum({source:o,block:a.current}).call(S.loadAndRender().render((function(t,e){var n=e.data[0];t.text(v.addCommas(+n.active_visitors))})));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){N(a,r,o,i,u,"next",t)}function u(t){N(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)})),(0,E.jsxs)("section",{className:"chart-realtime__visitors-count","data-refresh":"15",ref:a,children:[(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)("h2",{className:"chart-realtime__current-visitors data grid-col-12",children:"..."})}),(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsxs)("div",{className:"chart-realtime__description desktop:grid-col-8 desktop:grid-offset-2",children:["people on ",n," websites and apps in the last 30 minutes"]})})]})}M.propTypes={dataHrefBase:i().string.isRequired,agency:i().string.isRequired};const T=M;function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function C(){C=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==P(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(P(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function O(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function A(t){var e=t.dataHrefBase,n="".concat(e,"/top-cities-realtime.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=C().mark((function t(){var e;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildBarChartWithLabel((function(t){var e=t.data.filter((function(t){return"(not set)"!==t.city&&"zz"!==t.city}));return x.findProportionsOfMetric(e,(function(t){return t.map((function(t){return t.active_visitors}))})).slice(0,13)}),"city"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){O(a,r,o,i,u,"next",t)}function u(t){O(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"chart_top-cities-90-days","data-source":n,"data-refresh":"15",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}A.propTypes={dataHrefBase:i().string.isRequired};const F=A;function D(t,e,n){var r=t.selectAll(".bin").filter((function(t){return t.key===e}));if(r&&r[0].parentNode.innerHTML.includes(e)&&n[0]){var o="true"===n.attr("data-scale-to-parent");n[0][0].classList.remove("hide");var a=n.selectAll(".bin").each((function(t){o&&(t.proportion*=r.datum().proportion/100)})).attr("data-share",(function(t){return t.proportion}));a.select(".bar").style("width",(function(t){return"".concat(t.proportion.toFixed(1),"%")})),a.select(".value").text((function(t){return v.floatToPercent(t.proportion)})),r.node().appendChild(n.node())}}var R=["United States","Puerto Rico","Guam","U.S. Virgin Islands","American Samoa","Northern Mariana Islands"],z=function(t){return new RegExp(t).test(R.join("|"))};function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function q(){q=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==I(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(I(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function H(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function B(t){var e=t.dataHrefBase,n="".concat(e,"/top-countries-realtime.json"),o=(0,r.useRef)(null),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=q().mark((function t(){var e;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildBarChart((function(t){var e=0,n=0;t.data.forEach((function(t){e+=parseInt(t.active_visitors,10),z(t.country)&&(n+=parseInt(t.active_visitors,10))}));var r={"United States &amp; Territories":n,International:e-n};return x.findProportionsOfMetricFromValue(x.listify(r))}),"country"));case 2:return t.next=4,l().select(a.current).datum({source:n,block:a.current}).call(S.buildBarChartWithLabel((function(t){var e=x.findProportionsOfMetric(t.data,(function(t){return t.map((function(t){return t.active_visitors}))}));return(e=e.filter((function(t){return z(t.country)}))).slice(0,3)}),"country"));case 4:return t.next=6,l().select(i.current).datum({source:n,block:i.current}).call(S.buildBarChartWithLabel((function(t){var e=x.findProportionsOfMetric(t.data,(function(t){return t.map((function(t){return t.active_visitors}))}));return(e=e.filter((function(t){return!z(t.country)}))).slice(0,15)}),"country"));case 6:return e=function(t){return new Promise((function(e){return setTimeout(e,t)}))},t.next=9,e(500);case 9:return t.next=11,l().select(o.current).call(D,"United States &amp; Territories",l().select(a.current));case 11:return t.next=13,l().select(o.current).call(D,"International",l().select(i.current));case 13:return t.abrupt("return");case 14:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){H(a,r,o,i,u,"next",t)}function u(t){H(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("figure",{id:"chart_us",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})}),(0,E.jsxs)("figure",{id:"chart_us_and_territories",className:"hide",ref:a,children:[(0,E.jsx)("h4",{children:"United States & Territories"}),(0,E.jsx)("div",{className:"data bar-chart"})]}),(0,E.jsxs)("figure",{id:"chart_countries",className:"hide",ref:i,children:[(0,E.jsx)("h4",{children:"International"}),(0,E.jsx)("div",{className:"data bar-chart"})]})]})}B.propTypes={dataHrefBase:i().string.isRequired};const U=B;function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function Y(){Y=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==G(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(G(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return V(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Q(t){var e=t.dataHrefBase,n="".concat(e,"/language.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Y().mark((function t(){var e;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildBarChartWithLabel((function(t){var e=t.totals.by_language,n=["(other)"],r={};for(var o in e)n.includes(o)||(r[o]=e[o]);for(var a=[],i=0,u=Object.entries(r);i<u.length;i++){var l=W(u[i],2),s=l[0],c=l[1];a.push({language:s,visitors:c})}return t.totals.by_language=a,x.findProportionsOfMetric(t.totals.by_language,(function(t){return t.map((function(t){return t.visitors}))})).slice(0,10)}),"language"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){$(a,r,o,i,u,"next",t)}function u(t){$(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("figure",{id:"chart_top-languages","data-block":"languages",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})})}Q.propTypes={dataHrefBase:i().string.isRequired};const X=Q;function K(t){var e=t.dataHrefBase;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"section__headline",children:(0,E.jsx)("h2",{children:"User Locations and Languages in the Last 30 Minutes"})}),(0,E.jsxs)("div",{className:"section__chart grid-row",children:[(0,E.jsxs)("section",{id:"cities",className:"desktop:grid-col-4 padding-2 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Cities"}),(0,E.jsx)(F,{dataHrefBase:e})]}),(0,E.jsxs)("section",{id:"countries",className:"desktop:grid-col-4 padding-2 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Countries"}),(0,E.jsx)(U,{dataHrefBase:e})]}),(0,E.jsxs)("section",{id:"languages",className:"desktop:grid-col-4 padding-2 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Languages"}),(0,E.jsx)(X,{dataHrefBase:e})]})]})]})}K.propTypes={dataHrefBase:i().string.isRequired};const J=K;var Z=500;function tt(t,e){var n=t.select(e);if(!n.empty())return n;var r=e.split("."),o=r[0],a=r.slice(1).join(" ");return t.append(o).attr("class",a)}function et(){var t=function(t){return[t]},e=function(t){return t},n=700,r=150,o=10,a=50,i=25,u=50,s=function(t,e){return e},c=function(t){return t},f=function(t,e){return e},h=function(t){return t},d=l().scale.ordinal(),p=l().scale.linear(),v=l().svg.axis().scale(p).ticks(5),g=v.innerTickSize(),y=Z,m=function(l){var m=n-a,b=r-i;p.range([b,o]),d.rangeRoundBands([u,m],0,0),l.attr("viewBox",[0,0,n,r].join(" ")),tt(l,"g.axis.y0").attr("transform","translate(".concat([u,0],")")).attr("aria-hidden","true").transition().duration(y).call(v.orient("left")),tt(l,"g.axis.y1").attr("transform","translate(".concat([m,0],")")).attr("aria-hidden","true").transition().duration(y).call(v.innerTickSize(g).orient("right"));var w=l.selectAll(".series").data(t);w.exit().remove(),w.enter().append("g").attr("class","series");var x=d.rangeBand(),k=w.selectAll(".bar").data(e);k.exit().remove();var _=k.enter().append("g").attr("class","bar").attr("tabindex",0);_.append("rect").attr("width",x).attr("y",0).attr("height",0),_.append("text").attr("class","label"),_.append("title"),k.datum((function(t){return(t=t||{}).x=d(t.u=s.apply(this,arguments)),t.y0=p(t.v=c.apply(this,arguments)),t.y1=b,t.height=t.y1-t.y0,t})).attr("aria-label",h).attr("transform",(function(t){return"translate(".concat([t.x,t.y1],")")})),k.select("rect").attr("width",x).transition().duration(y).attr("y",(function(t){return-t.height})).attr("height",(function(t){return t.height})),k.select(".label").attr("text-anchor","middle").attr("dy",10).attr("dx",x/2).text(f),k.select("title").text(h)};return m.series=function(e){return arguments.length?(t=l().functor(e),m):t},m.bars=function(t){return arguments.length?(e=l().functor(t),m):e},m.x=function(t){return arguments.length?(s=l().functor(t),m):s},m.y=function(t){return arguments.length?(c=l().functor(t),m):c},m.xScale=function(t){return arguments.length?(d=t,m):d},m.yScale=function(t){return arguments.length?(p=t,m):p},m.yAxis=function(t){return arguments.length?(v=t,m):v},m.label=function(t){return arguments.length?(f=t,m):f},m.title=function(t){return arguments.length?(h=t,m):h},m}function nt(t){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function rt(){rt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==nt(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(nt(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ot(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function at(t){var e=t.dataHrefBase,n="".concat(e,"/sessions-over-30-days.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=rt().mark((function t(){var e;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().transform((function(t){return t})).render((function(t,e){var n=e.data;n.forEach((function(t){t.visits=+t.visits}));var r=function(t){return t.visits},o=et().series([e.data]).y(r).label((function(t){return v.formatDate(t.date)})).title((function(t){return"".concat(v.addCommas(t.visits)," visits during the day of ").concat(t.date)}));o.xScale().domain(l().range(0,n.length+1)),o.yScale().domain([0,l().max(n,r)]),o.yAxis().tickFormat(v.formatVisits()),t.call(o)})));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){ot(a,r,o,i,u,"next",t)}function u(t){ot(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)})),(0,E.jsx)("div",{id:"time_series",className:"section__chart","data-refresh":"15",ref:o,children:(0,E.jsx)("svg",{className:"data time-series"})})}at.propTypes={dataHrefBase:i().string.isRequired};const it=at;function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function lt(){lt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==ut(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(ut(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function st(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function ct(t){var e=t.dataHrefBase,n="".concat(e,"/devices.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=lt().mark((function t(){var e;return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().render((function(t,e){var n=e.totals.visits;t.text(v.readableBigNumber(n))})));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){st(a,r,o,i,u,"next",t)}function u(t){st(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)})),(0,E.jsxs)("div",{ref:o,children:["There were"," ",(0,E.jsx)("span",{id:"total_visitors",className:"data",children:"..."})," ","sessions in the last 30 days."]})}ct.propTypes={dataHrefBase:i().string.isRequired};const ft=ct;function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(){dt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==ht(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(ht(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function pt(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function vt(t){var e=t.dataHrefBase,n="".concat(e,"/engagement-rate-30-days.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=dt().mark((function t(){var e;return dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().render((function(t,e){var n=e.data[0],r=100*parseFloat(n.engagementRate);t.text(v.floatToPercent(r))})));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){pt(a,r,o,i,u,"next",t)}function u(t){pt(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("div",{ref:o,children:(0,E.jsx)("div",{className:"data"})})})}vt.propTypes={dataHrefBase:i().string.isRequired};const gt=vt;function yt(t){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(t)}function mt(){mt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==yt(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(yt(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function bt(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function wt(t){var e=t.dataHrefBase,n="".concat(e,"/engagement-duration-30-days.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=mt().mark((function t(){var e;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().render((function(t,e){var n=e.data[0],r=parseInt(n.userEngagementDuration)/parseInt(n.visits);t.text(v.secondsToReadableTime(r))})));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){bt(a,r,o,i,u,"next",t)}function u(t){bt(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("div",{ref:o,children:(0,E.jsx)("div",{className:"data"})})})}wt.propTypes={dataHrefBase:i().string.isRequired};const xt=wt;function kt(t){var e=t.dataHrefBase;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("section",{id:"average_engagement_time",className:"desktop:grid-col-6",children:[(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)("h4",{className:"grid-col-12",children:(0,E.jsx)("a",{href:"/definitions#report_historical_average_engagement_time",children:"Average Engagement Time Per Session"})})}),(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)("span",{className:"grid-col-12",children:(0,E.jsx)(xt,{dataHrefBase:e})})})]}),(0,E.jsxs)("section",{id:"engagement_rate",className:"desktop:grid-col-6",children:[(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)("h4",{className:"grid-col-12",children:(0,E.jsx)("a",{href:"/definitions#report_historical_engagement_rate",children:"Percent of Engaged Sessions"})})}),(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)("span",{className:"data grid-col-12",children:(0,E.jsx)(gt,{dataHrefBase:e})})})]})]})}kt.propTypes={dataHrefBase:i().string.isRequired};const _t=kt;function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Et(){Et=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==St(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(St(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function jt(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Lt(t){var e=t.dataHrefBase,n="".concat(e,"/top-session-channel-group-30-days.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Et().mark((function t(){var e;return Et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildCompactBarChart("session_default_channel_group"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){jt(a,r,o,i,u,"next",t)}function u(t){jt(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"chart_session_channel_group",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}Lt.propTypes={dataHrefBase:i().string.isRequired};const Nt=Lt;function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}function Tt(){Tt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Mt(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Mt(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Pt(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Ct(t){var e=t.dataHrefBase,n="".concat(e,"/top-session-source-medium-30-days.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Tt().mark((function t(){var e;return Tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildCompactBarChart("session_source_medium"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Pt(a,r,o,i,u,"next",t)}function u(t){Pt(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"chart_session_source_medium",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}Ct.propTypes={dataHrefBase:i().string.isRequired};const Ot=Ct;function At(t){var e=t.dataHrefBase;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("section",{id:"session_channel_groups",className:"desktop:grid-col-6 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Top Channels"}),(0,E.jsx)(Nt,{dataHrefBase:e})]}),(0,E.jsxs)("section",{id:"session_source_mediums",className:"desktop:grid-col-6 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Top Sources/Media"}),(0,E.jsx)(Ot,{dataHrefBase:e})]})]})}At.propTypes={dataHrefBase:i().string.isRequired};const Ft=At;function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function Rt(){Rt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Dt(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Dt(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function zt(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function It(t){var e=t.dataHrefBase,n="".concat(e,"/devices.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Rt().mark((function t(){var e;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().transform((function(t){var e=x.listify(t.totals.by_device);return e.forEach((function(t){"smart tv"===t.key&&(t.key="Smart TV")})),x.findProportionsOfMetricFromValue(e)})).render(s().value((function(t){return t.proportion})).format(v.floatToPercent)));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){zt(a,r,o,i,u,"next",t)}function u(t){zt(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"chart_device_types",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}It.propTypes={dataHrefBase:i().string.isRequired};const qt=It;function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Bt(){Bt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Ht(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Ht(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ut(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Gt(t){var e=t.dataHrefBase,n="".concat(e,"/browsers.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Bt().mark((function t(){var e;return Bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.buildCompactBarChart("browser"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ut(a,r,o,i,u,"next",t)}function u(t){Ut(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"chart_browsers",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}Gt.propTypes={dataHrefBase:i().string.isRequired};const Yt=Gt;function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Vt(){Vt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Wt(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Wt(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function $t(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Qt(t){var e=t.dataHrefBase,n="".concat(e,"/os.json"),o="".concat(e,"/windows.json"),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Vt().mark((function t(){var e;return Vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(a.current).datum({source:n,block:a.current}).call(S.buildCompactBarChart("os"));case 2:return t.next=4,l().select(i.current).datum({source:o,block:i.current}).call(S.buildCompactBarChart("os_version"));case 4:return e=function(t){return new Promise((function(e){return setTimeout(e,t)}))},t.next=7,e(500);case 7:return t.next=9,l().select(a.current).call(D,"Windows",l().select(i.current));case 9:return t.abrupt("return");case 10:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){$t(a,r,o,i,u,"next",t)}function u(t){$t(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("figure",{id:"chart_os",ref:a,children:(0,E.jsx)("div",{className:"data bar-chart"})}),(0,E.jsxs)("figure",{id:"chart_windows",className:"hide","data-scale-to-parent":"true",ref:i,children:[(0,E.jsx)("h4",{children:"Windows"}),(0,E.jsx)("div",{className:"data bar-chart"})]})]})}Qt.propTypes={dataHrefBase:i().string.isRequired};const Xt=Qt;function Kt(t){var e=t.dataHrefBase;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("section",{id:"devices",className:"desktop:grid-col-4 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Devices"}),(0,E.jsx)(qt,{dataHrefBase:e})]}),(0,E.jsxs)("section",{id:"browsers",className:"desktop:grid-col-4 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Web Browsers"}),(0,E.jsx)(Yt,{dataHrefBase:e})]}),(0,E.jsxs)("section",{id:"operating_systems",className:"desktop:grid-col-4 bar-chart-component",children:[(0,E.jsx)("h4",{children:"Operating Systems"}),(0,E.jsx)(Xt,{dataHrefBase:e})]})]})}Kt.propTypes={dataHrefBase:i().string.isRequired};const Jt=Kt;function Zt(t){return e=>!!e.type&&e.type.tabsRole===t}const te=Zt("Tab"),ee=Zt("TabList"),ne=Zt("TabPanel");function re(t,e){return r.Children.map(t,(t=>null===t?null:function(t){return te(t)||ee(t)||ne(t)}(t)?e(t):t.props&&t.props.children&&"object"==typeof t.props.children?(0,r.cloneElement)(t,{...t.props,children:re(t.props.children,e)}):t))}function oe(t,e){return r.Children.forEach(t,(t=>{null!==t&&(te(t)||ne(t)?e(t):t.props&&t.props.children&&"object"==typeof t.props.children&&(ee(t)&&e(t),oe(t.props.children,e)))}))}function ae(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=ae(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}const ie=function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=ae(t))&&(r&&(r+=" "),r+=e);return r};function ue(t){let e=0;return oe(t,(t=>{te(t)&&e++})),e}function le(t){return t&&"getAttribute"in t}function se(t){return le(t)&&t.getAttribute("data-rttab")}function ce(t){return le(t)&&"true"===t.getAttribute("aria-disabled")}let fe;const he={className:"react-tabs",focus:!1},de=t=>{let e=(0,r.useRef)([]),n=(0,r.useRef)([]);const o=(0,r.useRef)();function a(e,n){if(e<0||e>=l())return;const{onSelect:r,selectedIndex:o}=t;r(e,o,n)}function i(t){const e=l();for(let n=t+1;n<e;n++)if(!ce(s(n)))return n;for(let e=0;e<t;e++)if(!ce(s(e)))return e;return t}function u(t){let e=t;for(;e--;)if(!ce(s(e)))return e;for(e=l();e-- >t;)if(!ce(s(e)))return e;return t}function l(){const{children:e}=t;return ue(e)}function s(t){return e.current[`tabs-${t}`]}function c(t){let e=t.target;do{if(f(e)){if(ce(e))return;return void a([].slice.call(e.parentNode.children).filter(se).indexOf(e),t)}}while(null!=(e=e.parentNode))}function f(t){if(!se(t))return!1;let e=t.parentElement;do{if(e===o.current)return!0;if(e.getAttribute("data-rttabs"))break;e=e.parentElement}while(e);return!1}const{children:h,className:d,disabledTabClassName:p,domRef:v,focus:g,forceRenderTabPanel:y,onSelect:m,selectedIndex:b,selectedTabClassName:w,selectedTabPanelClassName:x,environment:k,disableUpDownKeys:_,disableLeftRightKeys:S,...E}={...he,...t};return r.createElement("div",Object.assign({},E,{className:ie(d),onClick:c,onKeyDown:function(e){const{direction:n,disableUpDownKeys:r,disableLeftRightKeys:o}=t;if(f(e.target)){let{selectedIndex:f}=t,h=!1,d=!1;"Space"!==e.code&&32!==e.keyCode&&"Enter"!==e.code&&13!==e.keyCode||(h=!0,d=!1,c(e)),(o||37!==e.keyCode&&"ArrowLeft"!==e.code)&&(r||38!==e.keyCode&&"ArrowUp"!==e.code)?(o||39!==e.keyCode&&"ArrowRight"!==e.code)&&(r||40!==e.keyCode&&"ArrowDown"!==e.code)?35===e.keyCode||"End"===e.code?(f=function(){let t=l();for(;t--;)if(!ce(s(t)))return t;return null}(),h=!0,d=!0):36!==e.keyCode&&"Home"!==e.code||(f=function(){const t=l();for(let e=0;e<t;e++)if(!ce(s(e)))return e;return null}(),h=!0,d=!0):(f="rtl"===n?u(f):i(f),h=!0,d=!0):(f="rtl"===n?i(f):u(f),h=!0,d=!0),h&&e.preventDefault(),d&&a(f,e)}},ref:t=>{o.current=t,v&&v(t)},"data-rttabs":!0}),function(){let o=0;const{children:a,disabledTabClassName:i,focus:u,forceRenderTabPanel:c,selectedIndex:f,selectedTabClassName:h,selectedTabPanelClassName:d,environment:p}=t;n.current=n.current||[];let v=n.current.length-l();const g=(0,r.useId)();for(;v++<0;)n.current.push(`${g}${n.current.length}`);return re(a,(t=>{let a=t;if(ee(t)){let o=0,l=!1;null==fe&&function(t){const e=t||("undefined"!=typeof window?window:void 0);try{fe=!(void 0===e||!e.document||!e.document.activeElement)}catch(t){fe=!1}}(p);const c=p||("undefined"!=typeof window?window:void 0);fe&&c&&(l=r.Children.toArray(t.props.children).filter(te).some(((t,e)=>c.document.activeElement===s(e)))),a=(0,r.cloneElement)(t,{children:re(t.props.children,(t=>{const a=`tabs-${o}`,s=f===o,c={tabRef:t=>{e.current[a]=t},id:n.current[o],selected:s,focus:s&&(u||l)};return h&&(c.selectedClassName=h),i&&(c.disabledClassName=i),o++,(0,r.cloneElement)(t,c)}))})}else if(ne(t)){const e={id:n.current[o],selected:f===o};c&&(e.forceRender=c),d&&(e.selectedClassName=d),o++,a=(0,r.cloneElement)(t,e)}return a}))}())};de.propTypes={};const pe=de,ve={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},ge=t=>{const{children:e,defaultFocus:n,defaultIndex:o,focusTabOnClick:a,onSelect:i,...u}={...ve,...t},[l,s]=(0,r.useState)(n),[c]=(0,r.useState)((t=>null===t.selectedIndex?1:0)(u)),[f,h]=(0,r.useState)(1===c?o||0:null);if((0,r.useEffect)((()=>{s(!1)}),[]),1===c){const t=ue(e);(0,r.useEffect)((()=>{if(null!=f){const e=Math.max(0,t-1);h(Math.min(f,e))}}),[t])}let d={...t,...u};return d.focus=l,d.onSelect=(t,e,n)=>{"function"==typeof i&&!1===i(t,e,n)||(a&&s(!0),1===c&&h(t))},null!=f&&(d.selectedIndex=f),delete d.defaultFocus,delete d.defaultIndex,delete d.focusTabOnClick,r.createElement(pe,d,e)};ge.propTypes={},ge.tabsRole="Tabs";const ye=ge,me={className:"react-tabs__tab-list"},be=t=>{const{children:e,className:n,...o}={...me,...t};return r.createElement("ul",Object.assign({},o,{className:ie(n),role:"tablist"}),e)};be.tabsRole="TabList",be.propTypes={};const we=be,xe="react-tabs__tab",ke={className:xe,disabledClassName:`${xe}--disabled`,focus:!1,id:null,selected:!1,selectedClassName:`${xe}--selected`},_e=t=>{let e=(0,r.useRef)();const{children:n,className:o,disabled:a,disabledClassName:i,focus:u,id:l,selected:s,selectedClassName:c,tabIndex:f,tabRef:h,...d}={...ke,...t};return(0,r.useEffect)((()=>{s&&u&&e.current.focus()}),[s,u]),r.createElement("li",Object.assign({},d,{className:ie(o,{[c]:s,[i]:a}),ref:t=>{e.current=t,h&&h(t)},role:"tab",id:`tab${l}`,"aria-selected":s?"true":"false","aria-disabled":a?"true":"false","aria-controls":`panel${l}`,tabIndex:f||(s?"0":null),"data-rttab":!0}),n)};_e.propTypes={},_e.tabsRole="Tab";const Se=_e,Ee="react-tabs__tab-panel",je={className:Ee,forceRender:!1,selectedClassName:`${Ee}--selected`},Le=t=>{const{children:e,className:n,forceRender:o,id:a,selected:i,selectedClassName:u,...l}={...je,...t};return r.createElement("div",Object.assign({},l,{className:ie(n,{[u]:i}),role:"tabpanel",id:`panel${a}`,"aria-labelledby":`tab${a}`}),o||i?e:null)};Le.tabsRole="TabPanel",Le.propTypes={};const Ne=Le;var Me={"applicationmanager.gov/application.aspx":"https://applicationmanager.gov","forecast.weather.gov/mapclick.php":"http://www.weather.gov/","egov.uscis.gov/casestatus/mycasestatus.do":"https://egov.uscis.gov/casestatus/","ebenefits.va.gov/ebenefits-portal/ebenefits.portal":"https://www.ebenefits.va.gov/ebenefits-portal/ebenefits.portal","ebenefits.va.gov/ebenefits/homepage":"https://www.ebenefits.va.gov/ebenefits/homepage","m.usps.com/m/trackconfirmaction":"https://m.usps.com/m/TrackConfirmAction","tools.usps.com/go/trackconfirmaction_input":"https://tools.usps.com/go/TrackConfirmAction!input","m.usps.com/m/home":"https://m.usps.com/m/Home","reg.usps.com/entreg/loginaction_input?appurl=https://cns.usps.com/labelinformation.shtml":"https://reg.usps.com/entreg/LoginAction!input?appurl=https://cns.usps.com/labelinformation.shtml","tools.usps.com/go/ziplookupaction!input.action":"https://tools.usps.com/go/ZipLookupAction!input.action","cns.usps.com/labelinformation.shtml":"https://cns.usps.com/labelInformation.shtml","egov.uscis.gov":"https://egov.uscis.gov/casestatus/","wrh.noaa.gov":"http://www.wrh.noaa.gov"},Te={"forecast.weather.gov/mapclick.php":"National Weather Service - Forecasts by Region"};function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}function Ce(){Ce=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Pe(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Pe(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Oe(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Ae(t){var e=t.dataHrefBase,n=t.reportFileName,o="".concat(e,"/").concat(n),a=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Ce().mark((function t(){var e;return Ce().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(a.current).datum({source:o,block:a.current}).call(S.loadAndRender().transform((function(t){return t.data})).on("render",(function(t){t.selectAll(".label").each((function(t){t.text=this.innerText})).html("").text((function(t){return Te[t.page]||t.page_title}))})).render(s().label((function(t){return t.page_title})).value((function(t){return+t.active_visitors})).scale((function(t){return l().scale.linear().domain([0,1,l().max(t)]).rangeRound([0,1,100])})).format(v.addCommas)));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Oe(a,r,o,i,u,"next",t)}function u(t){Oe(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{className:"top-pages__realtime","data-source":o,"data-refresh":"15",ref:a,children:(0,E.jsx)("div",{className:"data bar-chart"})})}Ae.propTypes={dataHrefBase:i().string.isRequired,reportFileName:i().string.isRequired};const Fe=Ae;function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Re(){Re=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==De(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(De(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function ze(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function Ie(t){var e=t.dataHrefBase,n=t.reportFileName,o="".concat(e,"/").concat(n),a=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Re().mark((function t(){var e;return Re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(a.current).datum({source:o,block:a.current}).call(S.loadAndRender().transform((function(t){return t.data})).on("render",(function(t){t.selectAll(".label").each((function(t){t.text=this.innerText})).html("").append("a").attr("target","_blank").attr("rel","noopener").attr("href",(function(t){return Me[t.domain]||"http://".concat(t.domain)})).text((function(t){return Te[t.domain]||t.domain}))})).render(s().label((function(t){return t.domain})).value((function(t){return+t.visits})).scale((function(t){return l().scale.linear().domain([0,1,l().max(t)]).rangeRound([0,1,100])})).format(v.addCommas)));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){ze(a,r,o,i,u,"next",t)}function u(t){ze(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)})),(0,E.jsx)("figure",{className:"bar-chart__top-pages","data-source":o,ref:a,children:(0,E.jsx)("div",{className:"data bar-chart"})})}Ie.propTypes={dataHrefBase:i().string.isRequired,reportFileName:i().string.isRequired};const qe=Ie;function He(t){var e=t.dataHrefBase;return(0,E.jsxs)("section",{className:"top-pages",children:[(0,E.jsx)("div",{className:"top-pages__headline",children:(0,E.jsxs)("h2",{children:["Top ",(0,E.jsx)("span",{id:"top_table_type",children:"Web Pages and App Screens"})]})}),(0,E.jsxs)(ye,{children:[(0,E.jsxs)(we,{className:"usa-button-group usa-button-group--segmented",children:[(0,E.jsx)(Se,{className:"usa-button-group__item",children:(0,E.jsx)("button",{className:"usa-button",children:"30 mins"})}),(0,E.jsx)(Se,{className:"usa-button-group__item",children:(0,E.jsx)("button",{className:"usa-button",children:"7 days"})}),(0,E.jsx)(Se,{className:"usa-button-group__item",children:(0,E.jsx)("button",{className:"usa-button",children:"30 days"})})]}),(0,E.jsxs)(Ne,{children:[(0,E.jsxs)("p",{children:[(0,E.jsx)("strong",{children:"People"})," on a"," ",(0,E.jsx)("strong",{children:"single, specific page or app screen"})," in the last 30 minutes. Hostnames are not currently reported in real-time, so only page title and screen name information is available."]}),(0,E.jsx)(Fe,{dataHrefBase:e,reportFileName:"top-pages-realtime.json"})]}),(0,E.jsxs)(Ne,{children:[(0,E.jsxs)("p",{children:["Sessions over the last week on ",(0,E.jsx)("strong",{children:"hostnames"}),", including traffic to all web pages and app screens within that hostname."]}),(0,E.jsx)(qe,{dataHrefBase:e,reportFileName:"top-domains-7-days.json"})]}),(0,E.jsxs)(Ne,{children:[(0,E.jsxs)("p",{children:["Sessions over the last month on ",(0,E.jsx)("strong",{children:"hostnames"}),", including traffic to all web pages and app screens within that hostname.",(0,E.jsx)("a",{href:e+"/top-10000-domains-30-days.csv",children:"Download the full dataset."})]}),(0,E.jsx)(qe,{dataHrefBase:e,reportFileName:"top-domains-30-days.json"})]})]})]})}He.propTypes={dataHrefBase:i().string.isRequired};const Be=He;function Ue(t){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(t)}function Ge(){Ge=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:j(t,n,u)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var w={};s(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,i)&&(w=k);var _=b.prototype=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==Ue(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var l=L(u,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Ue(e)+" is not iterable")}return m.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Ye(t,e,n,r,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}function We(t){var e=t.dataHrefBase,n="".concat(e,"/top-downloads-yesterday.json"),o=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=function(){var t,e=(t=Ge().mark((function t(){var e;return Ge().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l().select(o.current).datum({source:n,block:o.current}).call(S.loadAndRender().transform((function(t){return t.data.slice(0,10)})).render(s().value((function(t){return+t.total_events})).label((function(t){return['<span class="name"><a class="top-download-page" target="_blank" rel="noopener" href=http://',t.page,">",t.page_title,"</a></span> ",'<span class="domain" >',v.formatURL(t.page),"</span> ",'<span class="divider">/</span> ','<span class="filename"><a class="top-download-file" target="_blank" aria-label="',v.formatFile(t.file_name),'" rel="noopener" href=',v.formatProtocol(t.page),v.formatFile(t.file_name),">","download file","</a></span>"].join("")})).scale((function(t){return l().scale.linear().domain([0,1,l().max(t)]).rangeRound([0,1,100])})).format(v.addCommas)));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ye(a,r,o,i,u,"next",t)}function u(t){Ye(a,r,o,i,u,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();t().catch(console.error)}),[]),(0,E.jsx)("figure",{id:"top-downloads",ref:o,children:(0,E.jsx)("div",{className:"data bar-chart"})})}We.propTypes={dataHrefBase:i().string.isRequired};const Ve=We;function $e(t){var e=t.dataURL,n=t.dataPrefix,r=t.agency,o="".concat(e,"/").concat(n);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("section",{id:"main_data",className:"desktop:grid-col-8",children:[(0,E.jsx)("article",{className:"chart-realtime",children:(0,E.jsx)(T,{dataHrefBase:o,agency:r})}),(0,E.jsx)("article",{className:"section",children:(0,E.jsx)(J,{dataHrefBase:o})}),(0,E.jsx)("article",{className:"section",children:(0,E.jsx)("div",{className:"section__headline",children:(0,E.jsx)("h2",{children:"Historical Data and Trends"})})}),(0,E.jsxs)("article",{className:"section",children:[(0,E.jsx)("div",{className:"section__headline",children:(0,E.jsx)("h3",{children:"Daily Sessions in the Past 30 Days"})}),(0,E.jsx)(it,{dataHrefBase:o})]}),(0,E.jsx)("article",{className:"section",children:(0,E.jsx)("section",{className:"section__subheader",children:(0,E.jsx)(ft,{dataHrefBase:o})})}),(0,E.jsx)("article",{className:"section",children:(0,E.jsx)("section",{className:"section__rate",children:(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)(_t,{dataHrefBase:o})})})}),(0,E.jsxs)("article",{className:"section",children:[(0,E.jsx)("div",{className:"section__headline",children:(0,E.jsx)("h2",{children:"Top Traffic Sources in the Last 30 Days"})}),(0,E.jsx)("section",{className:"section__chart",children:(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)(Ft,{dataHrefBase:o})})})]}),(0,E.jsxs)("article",{className:"section",children:[(0,E.jsx)("div",{className:"section__headline",children:(0,E.jsx)("h2",{children:"User Device Demographics in the Last 30 Days"})}),(0,E.jsx)("section",{className:"section__chart",children:(0,E.jsx)("div",{className:"grid-row",children:(0,E.jsx)(Jt,{dataHrefBase:o})})})]})]}),(0,E.jsxs)("section",{id:"secondary_data",className:"desktop:grid-col-4",children:[(0,E.jsx)("section",{children:(0,E.jsx)(Be,{dataHrefBase:o})}),(0,E.jsxs)("section",{className:"top-downloads",children:[(0,E.jsx)("div",{className:"top-downloads__headline",children:(0,E.jsx)("h3",{children:"Top Downloads Yesterday"})}),(0,E.jsx)("h4",{children:(0,E.jsxs)("em",{children:["Total file downloads yesterday on ",r," hostnames."]})}),(0,E.jsx)(Ve,{dataHrefBase:o})]})]})]})}$e.propTypes={dataURL:i().string.isRequired,dataPrefix:i().string.isRequired,agency:i().string};const Qe=$e;var Xe=document.getElementById("main-charts-root");if(Xe){var Ke,Je,Ze=(0,o.s)(Xe),tn=Xe.attributes.getNamedItem("dataurl").value,en=null===(Ke=Xe.attributes.getNamedItem("dataprefix"))||void 0===Ke?void 0:Ke.value,nn=null===(Je=Xe.attributes.getNamedItem("agency"))||void 0===Je?void 0:Je.value;Ze.render((0,E.jsx)(Qe,{dataURL:tn,dataPrefix:en,agency:nn||"U.S. Federal Government"}))}},324:(t,e,n)=>{n(647),n(638),n(308),n(229),n(873)},287:()=>{"use strict";new function(t,e){return{formId:"15ca967f",formComponent:function(){return document.querySelector("[data-touchpoints-form-id='"+this.formId+"']")},formElement:function(){return this.formComponent().querySelector("form")},activatedButton:null,isFormSubmitted:!1,javscriptIsEnabled:function(){var t=document.getElementsByClassName("javascript-disabled-message")[0],e=document.getElementsByClassName("touchpoint-form")[0];t&&t.classList.add("hide"),e&&e.classList.remove("hide")},init:function(t){return this.javscriptIsEnabled(),this.options=t,this.loadHtml(),this.bindEventListeners(),this.dialogOpen=!1,this.successState=!1,this.pagination(),this.formSpecificScript(),document.dispatchEvent(new Event("onTouchpointsFormLoaded")),this},formSpecificScript:function(){},bindEventListeners:function(){var e=this;t.addEventListener("keyup",(function(t){27==t.keyCode&&1==e.dialogOpen&&e.closeDialog()})),t.addEventListener("click",(function(t){e.handleClick(t)})),this.formComponent().querySelectorAll(".usa-textarea").forEach((function(t){"0"!=t.getAttribute("maxlength")&&"10000"!=t.getAttribute("maxlength")&&t.addEventListener("keyup",e.textCounter)})),this.formComponent().querySelectorAll(".usa-input[type='text']").forEach((function(t){"0"!=t.getAttribute("maxlength")&&"10000"!=t.getAttribute("maxlength")&&t.addEventListener("keyup",e.textCounter)}))},loadHtml:function(){this.dialogEl=document.createElement("div"),this.dialogEl.setAttribute("hidden",!0),this.dialogEl.setAttribute("class","fba-modal"),this.dialogEl.innerHTML='<div id="fba-modal-dialog"\n  class="fba-modal-dialog"\n  role="dialog"\n  aria-label="Feedback modal dialog"\n  aria-modal="true">\n  <div class="touchpoints-form-wrapper open-ended"\n  id="touchpoints-form-15ca967f"\n  data-touchpoints-form-id="15ca967f" tabindex="-1">\n  <div class="wrapper">\n    <h2 class="word-break fba-modal-title">\n  <div class="margin-bottom-2 text-center">\n      <img alt="General Services Administration logo" class="form-header-logo-square" src="https://cg-1b082c1b-3db7-477f-9ca5-bd51a786b41e.s3-us-gov-west-1.amazonaws.com/uploads/form/logo/3746/logo_square_analytics-fav.jpg" />\n  </div>\n  Feedback for analytics.usa.gov\n</h2>\n\n\n      <a class="fba-modal-close"\n        type="button"\n        href="#"\n        aria-label="Close this window">×</a>\n\n    <p class="fba-instructions">\n      Please let us know how we can improve this site and product.\n    </p>\n    <p class="required-questions-notice">\n      <small>\n        A red asterisk (<abbr title="required" class="usa-hint--required">*</abbr>) indicates a required field.\n      </small>\n    </p>\n    <div class="fba-alert usa-alert usa-alert--success" role="status" hidden>\n  <div class="usa-alert__body">\n    <h3 class="usa-alert__heading">\n      Success\n    </h3>\n    <div class="usa-alert__text">\n      Thank you for your feedback!\n    </div>\n  </div>\n</div>\n<div class="fba-alert-error usa-alert usa-alert--error" role="alert" hidden>\n  <div class="usa-alert__body">\n    <h3 class="usa-alert__heading">\n      Error\n    </h3>\n    <p class="usa-alert__text">\n      alert message\n    </p>\n  </div>\n</div>\n\n    \n<form\n  action="https://touchpoints.app.cloud.gov/touchpoints/15ca967f/submissions.json"\n  class="usa-form usa-form--large margin-bottom-2"\n  method="POST">\n  <div class="touchpoints-form-body">\n        <input type="hidden" name="fba_location_code" id="fba_location_code" autocomplete="off" />\n    <input type="text"\n      name="fba_directive"\n      id="fba_directive"\n      title="fba_directive"\n      aria-hidden="true"\n      tabindex="-1"\n      autocomplete="off">\n      <div class="section visible">\n\n\n\n        <div class="questions">\n\n          <div class="question white-bg">\n              \n<div role="group">\n  <label class="usa-label" for="answer_01">\n  Name\n</label>\n\n  <input type="text" name="answer_01" id="answer_01" class="usa-input" maxlength="10000" />\n\n</div>\n\n          </div>\n\n          <div class="question white-bg">\n              \n<div role="group">\n  <label class="usa-label" for="answer_02">\n  Email\n</label>\n\n  <input type="text" name="answer_02" id="answer_02" class="usa-input" maxlength="10000" />\n\n</div>\n\n          </div>\n\n          <div class="question white-bg">\n              <div role="group">\n  <label class="usa-label" for="answer_03">\n  Response body\n  <abbr title="required" class="usa-hint--required">*</abbr>\n</label>\n\n  <textarea name="answer_03" id="answer_03" class="usa-textarea" required="required" maxlength="2500">\n</textarea>\n  <span class="counter-msg usa-hint usa-character-count__message" aria-live="polite">\n    2500 characters allowed\n  </span>\n</div>\n\n          </div>\n        </div>\n\n          <button type="submit" class="usa-button submit_form_button">Submit</button>\n      </div>\n  </div>\n</form>\n\n  </div>\n  \n    <div class="touchpoints-form-disclaimer">\n  <hr id="touchpoints-hr">\n  <div class="grid-container">\n    <div class="grid-row">\n      <div class="grid-col-12">\n        <small class="fba-dialog-privacy">\n          <a href="https://www.gsa.gov/reference/gsa-privacy-program/privacy-act-statement-for-design-research" target="_blank" rel="noopener">Privacy Act Statement for Design Research</a>\n        </small>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class="usa-banner">\n  <footer class="usa-banner__header touchpoints-footer-banner">\n    <div class="usa-banner__inner">\n      <div class="grid-col-auto">\n        <img\n            aria-hidden="true"\n            class="usa-banner__header-flag"\n            src="https://touchpoints.app.cloud.gov/img/us_flag_small.png"\n            alt="U.S. flag"\n          />\n      </div>\n      <div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">\n        <p class="usa-banner__header-text">\n          An official form of the United States government.\n          Provided by\n          <a href="https://touchpoints.digital.gov" target="_blank" rel="noopener" class="usa-link--external">Touchpoints</a>\n          <br>\n\n        </p>\n      </div>\n    </div>\n  </footer>\n</div>\n\n\n</div>\n</div>\n',t.body.appendChild(this.dialogEl),t.querySelector(".fba-modal-close").addEventListener("click",this.handleDialogClose.bind(this),!1);for(var e=t.querySelectorAll(".usa-input.other-option"),n=0;n<e.length;n++)e[n].addEventListener("keyup",this.handleOtherOption.bind(this),!1);var r=t.querySelectorAll("input[type='tel']");for(n=0;n<r.length;n++)r[n].addEventListener("keyup",this.handlePhoneInput.bind(this),!1);null!=t.getElementById(this.options.elementSelector)&&t.getElementById(this.options.elementSelector).addEventListener("click",this.handleButtonClick.bind(this),!1);var o=this.formElement(),a=o.querySelectorAll("[type='submit']"),i=this;o.querySelector(".touchpoints-yes-no-buttons")?Array.prototype.forEach.call(a,(function(t){t.addEventListener("click",i.handleYesNoSubmitClick.bind(i),!1)})):a&&Array.prototype.forEach.call(a,(function(t){t.addEventListener("click",i.handleSubmitClick.bind(i),!1)}))},resetErrors:function(){var t=this.formComponent(),e=t.querySelector(".fba-alert"),n=t.getElementsByClassName("usa-alert__heading")[0],r=t.getElementsByClassName("usa-alert__text")[0],o=t.querySelector(".fba-alert-error"),a=o.getElementsByClassName("usa-alert__text")[0];e.setAttribute("hidden",!0),n.innerHTML="",r.innerHTML="",o.setAttribute("hidden",!0),a.innerHTML=""},handleClick:function(t){!this.dialogOpen||t.target.closest("#"+this.options.elementSelector)||t.target.closest(".fba-modal-dialog")||this.closeDialog()},handleButtonClick:function(t){t.preventDefault(),this.activatedButton=t.target,this.loadDialog()},handleDialogClose:function(t){t.preventDefault(),this.closeDialog()},handleOtherOption:function(t){var e="#"+t.srcElement.getAttribute("data-option-id"),n=t.target.value.replace(/,/g,"");""==n&&(n="other"),this.formElement().querySelector(e).value=n},handlePhoneInput:function(t){var e=t.srcElement.value.replace(/[^\d]/g,"");7==e.length?e=e.replace(/(\d{3})(\d{4})/,"$1-$2"):10==e.length&&(e=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")),t.srcElement.value=e},handleEmailInput:function(t){var e=t.srcElement.value.trim();0!=e.length&&(result=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),result?showValid($(this)):showWarning($(this),"Please enter a valid email address"),t.srcElement.value=number)},handleSubmitClick:function(t){t.preventDefault(),this.resetErrors();var e=this.formElement();if(this.validateForm(e)){var n=e.querySelector("[type='submit']");n.disabled=!0,n.classList.add("aria-disabled"),this.sendFeedback()}},handleYesNoSubmitClick:function(t){t.preventDefault(),this.formComponent().querySelector(".fba-touchpoints-page-form").value=t.target.value,this.resetErrors();var e=this.formElement();if(this.validateForm(e)){var n=e.querySelectorAll("[type='submit']");Array.prototype.forEach.call(n,(function(t){t.disabled=!0})),this.sendFeedback()}},validateForm:function(t){return this.hideValidationError(t),this.checkRequired(t)&&this.checkEmail(t)&&this.checkPhone(t)&&this.checkDate(t)},checkRequired:function(t){var e=t.querySelectorAll("[required]"),n={};for(var r in Array.prototype.forEach.call(e,(function(t){n[t.name]=t})),Array.prototype.forEach.call(e,(function(t){switch(t.type){case"radio":case"checkbox":t.checked&&delete n[t.name];break;case"select-one":t.selectedIndex>0&&delete n[t.name];break;default:t.value.length>0&&delete n[t.name]}})),n)return this.showValidationError(n[r],"A response is required: "),!1;return!0},checkDate:function(t){var e=t.querySelectorAll(".date-select"),n={};for(var r in Array.prototype.forEach.call(e,(function(t){n[t.name]=t})),Array.prototype.forEach.call(e,(function(t){if(0==t.value.length)delete n[t.name];else{var e=Date.parse(t.value);isNaN(e)||delete n[t.name]}})),n)return this.showValidationError(n[r],"Please enter a valid value: "),!1;return!0},checkEmail:function(t){var e=t.querySelectorAll('input[type="email"]'),n={};for(var r in Array.prototype.forEach.call(e,(function(t){n[t.name]=t})),Array.prototype.forEach.call(e,(function(t){if(0==t.value.length)delete n[t.name];else{/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(t.value)&&delete n[t.name]}})),n)return this.showValidationError(n[r],"Please enter a valid value: "),!1;return!0},checkPhone:function(t){var e=t.querySelectorAll('input[type="tel"]'),n={};for(var r in Array.prototype.forEach.call(e,(function(t){n[t.name]=t})),Array.prototype.forEach.call(e,(function(t){if(0==t.value.length)delete n[t.name];else{/^[0-9]{10}$/.test(t.value)&&delete n[t.name]}})),n)return this.showValidationError(n[r],"Please enter a valid value: "),!1;return!0},showValidationError:function(t,e){var n=t.closest(".question"),r=n.querySelector(".usa-label")||n.querySelector(".usa-legend"),o=r.innerText,a=t.closest(".section");a.classList.contains("visible")||(this.formComponent().getElementsByClassName("section visible")[0].classList.remove("visible"),a.classList.add("visible"));n.setAttribute("class","usa-form-group usa-form-group--error");var i=document.createElement("span");i.setAttribute("id","input-error-message"),i.setAttribute("role","alert"),i.setAttribute("class","usa-error-message"),i.innerText=e+o,r.parentNode.insertBefore(i,r.nextSibling);var u=document.createElement("input");u.setAttribute("hidden","true"),u.setAttribute("id","input-error"),u.setAttribute("type","text"),u.setAttribute("name","input-error"),u.setAttribute("aria-describedby","input-error-message"),n.appendChild(u),n.scrollIntoView(),n.focus();var l=document.querySelector("[type='submit']");l.disabled=!1,l.classList.remove("aria-disabled")},hideValidationError:function(t){var e;null!=(e=t.querySelector(".usa-form-group--error"))&&(e.setAttribute("class","question"),null!=(e=t.querySelector("#input-error-message"))&&e.parentNode.removeChild(e),null!=(e=t.querySelector("#input-error"))&&e.parentNode.removeChild(e))},textCounter:function(t){var e=t.target,n=t.target.getAttribute("maxlength"),r=e.parentNode.querySelector(".counter-msg");if(e.value.length>n)return e.value=e.value.substring(0,n),r.innerText="0 characters left",!1;r.innerText=n-e.value.length+" characters left"},loadButton:function(){this.buttonEl=document.createElement("a"),this.buttonEl.setAttribute("id","fba-button"),this.buttonEl.setAttribute("data-id","15ca967f"),this.buttonEl.setAttribute("class","fixed-tab-button usa-button"),this.buttonEl.setAttribute("href","#"),this.buttonEl.setAttribute("aria-haspopup","dialog"),this.buttonEl.setAttribute("aria-controls","dialog"),this.buttonEl.addEventListener("click",this.handleButtonClick.bind(this),!1),this.buttonEl.innerHTML=this.options.modalButtonText,t.body.appendChild(this.buttonEl),this.loadFeebackSkipLink()},loadFeebackSkipLink:function(){this.skipLink=document.createElement("a"),this.skipLink.setAttribute("class","usa-skipnav touchpoints-skipnav"),this.skipLink.setAttribute("href","#fba-button"),this.skipLink.addEventListener("click",(function(){document.querySelector("#fba-button").focus()})),this.skipLink.innerHTML="Skip to feedback";var e=document.querySelector(".usa-skipnav");e?e.insertAdjacentElement("afterend",this.skipLink):t.body.prepend(this.skipLink)},loadDialog:function(){document.dispatchEvent(new Event("onTouchpointsModalOpen")),t.querySelector(".fba-modal").removeAttribute("hidden"),t.getElementById("touchpoints-form-15ca967f").focus(),this.dialogOpen=!0},closeDialog:function(){document.dispatchEvent(new Event("onTouchpointsModalClose")),t.querySelector(".fba-modal").setAttribute("hidden",!0),this.resetFormDisplay(),this.activatedButton.focus(),this.dialogOpen=!1},sendFeedback:function(){document.dispatchEvent(new Event("onTouchpointsFormSubmission"));var t=this.formElement();this.ajaxPost(t,this.formSuccess)},successHeadingText:function(){return"Success"},successText:function(){return"Thank you for your feedback!"},showFormSuccess:function(t){var e=this.formComponent(),n=this.formElement(),r=e.querySelector(".fba-alert"),o=e.querySelector(".usa-alert__heading"),a=e.querySelector(".usa-alert__text");if(o.innerHTML+=this.successHeadingText(),a.innerHTML=this.successText(),r.removeAttribute("hidden"),n){if(n.reset(),n.querySelector(".touchpoints-form-body")){var i=n.querySelector(".touchpoints-form-body");i&&i.setAttribute("hidden",!0)}if(e.querySelector(".touchpoints-form-disclaimer")){var u=e.querySelector(".touchpoints-form-disclaimer");u&&u.setAttribute("hidden",!0)}}},resetFormDisplay:function(){if(!1===this.successState)return!1;this.resetErrors();var t=this.formElement();if(t.querySelector("[type='submit']").disabled=!1,t&&t.querySelector(".touchpoints-form-body")){var e=t.querySelector(".touchpoints-form-body");e&&e.removeAttribute("hidden")}},formSuccess:function(t){var e=this.formComponent(),n=(e.querySelector(".fba-alert"),e.getElementsByClassName("usa-alert__text")[0]),r=e.querySelector(".fba-alert-error"),o=r.getElementsByClassName("usa-alert__text")[0];n.innerHTML="",o.innerHTML="";var a=this.formElement().querySelector("[type='submit']");if(4===t.target.readyState)if(201===t.target.status)this.successState=!0,document.dispatchEvent(new Event("onTouchpointsFormSubmissionSuccess")),this.isFormSubmitted=!0,a&&(a.disabled=!0),this.showFormSuccess();else if(422===t.target.status){this.successState=!1,document.dispatchEvent(new Event("onTouchpointsFormSubmissionError")),a&&(a.disabled=!1);var i=JSON.parse(t.target.response).messages;for(var u in i)i.hasOwnProperty(u)&&(o.innerHTML+=u,o.innerHTML+=" ",o.innerHTML+=i[u],o.innerHTML+="<br />");r.removeAttribute("hidden")}else r.removeAttribute("hidden"),o.innerHTML+="Server error. We're sorry, but this submission was not successful. The Product Team has been notified."},ajaxPost:function(e,n){var r=e.action,o=new XMLHttpRequest,a={answer_01:e.querySelector("#answer_01")&&e.querySelector("#answer_01").value,answer_02:e.querySelector("#answer_02")&&e.querySelector("#answer_02").value,answer_03:e.querySelector("#answer_03")&&e.querySelector("#answer_03").value};a.referer=t.referrer,a.hostname=window.location.hostname,a.page=window.location.pathname,a.location_code=e.querySelector("#fba_location_code")?e.querySelector("#fba_location_code").value:null,a.fba_directive=e.querySelector("#fba_directive")?e.querySelector("#fba_directive").value:null,a.language="en",o.open("POST",r),o.setRequestHeader("Content-Type","application/json; charset=UTF-8;"),o.onload=n.bind(this),o.send(JSON.stringify({submission:a}))},currentPageNumber:1,showInstructions:function(){var t=this.formComponent().getElementsByClassName("fba-instructions")[0];t&&(1==this.currentPageNumber?t.removeAttribute("hidden"):t.setAttribute("hidden",!0));var e=this.formComponent().getElementsByClassName("required-questions-notice")[0];e&&(1==this.currentPageNumber?e.removeAttribute("hidden"):e.setAttribute("hidden",!0))},pagination:function(){for(var t=document.getElementsByClassName("previous-section"),e=document.getElementsByClassName("next-section"),n=0;n<t.length;n++)t[n].addEventListener("click",function(t){t.preventDefault();var e=t.target.closest(".section");if(!this.validateForm(e))return!1;e.classList.remove("visible"),this.currentPageNumber--,this.showInstructions();var n=new Event("onTouchpointsFormPreviousPage");n.page=this.currentPageNumber,document.dispatchEvent(n),e.previousElementSibling.classList.add("visible"),document.getElementsByClassName("fba-modal")[0]?document.getElementsByClassName("fba-modal")[0].scrollTo(0,0):window.scrollTo(0,0)}.bind(this));for(n=0;n<e.length;n++)e[n].addEventListener("click",function(t){t.preventDefault();var e=t.target.closest(".section");if(!this.validateForm(e))return!1;e.classList.remove("visible"),this.currentPageNumber++,this.showInstructions();var n=new Event("onTouchpointsFormNextPage");n.page=this.currentPageNumber,document.dispatchEvent(n),e.nextElementSibling.classList.add("visible"),window.scrollTo(0,0),document.getElementsByClassName("fba-modal")[0]?document.getElementsByClassName("fba-modal")[0].scrollTo(0,0):window.scrollTo(0,0)}.bind(this))}}}(document,window).init({modalButtonText:"How can we improve this site?",formId:"15ca967f",elementSelector:"contact-btn"})},78:(t,e,n)=>{var r,o;!function(){var a={version:"3.5.17"},i=[].slice,u=function(t){return i.call(t)},l=this.document;function s(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(l)try{u(l.documentElement.childNodes)[0].nodeType}catch(t){u=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,h=f.setAttribute,d=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,v=p.setProperty;f.setAttribute=function(t,e){h.call(this,t,e+"")},f.setAttributeNS=function(t,e,n){d.call(this,t,e,n+"")},p.setProperty=function(t,e,n){v.call(this,t,e+"",n)}}function g(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function y(t){return null===t?NaN:+t}function m(t){return!isNaN(t)}function b(t){return{left:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)<0?r=a+1:o=a}return r},right:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)>0?o=a:r=a+1}return r}}}a.ascending=g,a.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},a.min=function(t,e){var n,r,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=r;break}for(;++o<a;)null!=(r=t[o])&&n>r&&(n=r)}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&n>r&&(n=r)}return n},a.max=function(t,e){var n,r,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=r;break}for(;++o<a;)null!=(r=t[o])&&r>n&&(n=r)}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&r>n&&(n=r)}return n},a.extent=function(t,e){var n,r,o,a=-1,i=t.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=t[a])&&r>=r){n=o=r;break}for(;++a<i;)null!=(r=t[a])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++a<i;)if(null!=(r=e.call(t,t[a],a))&&r>=r){n=o=r;break}for(;++a<i;)null!=(r=e.call(t,t[a],a))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},a.sum=function(t,e){var n,r=0,o=t.length,a=-1;if(1===arguments.length)for(;++a<o;)m(n=+t[a])&&(r+=n);else for(;++a<o;)m(n=+e.call(t,t[a],a))&&(r+=n);return r},a.mean=function(t,e){var n,r=0,o=t.length,a=-1,i=o;if(1===arguments.length)for(;++a<o;)m(n=y(t[a]))?r+=n:--i;else for(;++a<o;)m(n=y(e.call(t,t[a],a)))?r+=n:--i;if(i)return r/i},a.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),o=+t[r-1],a=n-r;return a?o+a*(t[r]-o):o},a.median=function(t,e){var n,r=[],o=t.length,i=-1;if(1===arguments.length)for(;++i<o;)m(n=y(t[i]))&&r.push(n);else for(;++i<o;)m(n=y(e.call(t,t[i],i)))&&r.push(n);if(r.length)return a.quantile(r.sort(g),.5)},a.variance=function(t,e){var n,r,o=t.length,a=0,i=0,u=-1,l=0;if(1===arguments.length)for(;++u<o;)m(n=y(t[u]))&&(i+=(r=n-a)*(n-(a+=r/++l)));else for(;++u<o;)m(n=y(e.call(t,t[u],u)))&&(i+=(r=n-a)*(n-(a+=r/++l)));if(l>1)return i/(l-1)},a.deviation=function(){var t=a.variance.apply(this,arguments);return t?Math.sqrt(t):t};var w=b(g);function x(t){return t.length}a.bisectLeft=w.left,a.bisect=a.bisectRight=w.right,a.bisector=function(t){return b(1===t.length?function(e,n){return g(t(e),n)}:t)},a.shuffle=function(t,e,n){(a=arguments.length)<3&&(n=t.length,a<2&&(e=0));for(var r,o,a=n-e;a;)o=Math.random()*a--|0,r=t[a+e],t[a+e]=t[o+e],t[o+e]=r;return t},a.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},a.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],o=new Array(n<0?0:n);e<n;)o[e]=[r,r=t[++e]];return o},a.transpose=function(t){if(!(o=t.length))return[];for(var e=-1,n=a.min(t,x),r=new Array(n);++e<n;)for(var o,i=-1,u=r[e]=new Array(o);++i<o;)u[i]=t[i][e];return r},a.zip=function(){return a.transpose(arguments)},a.keys=function(t){var e=[];for(var n in t)e.push(n);return e},a.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},a.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},a.merge=function(t){for(var e,n,r,o=t.length,a=-1,i=0;++a<o;)i+=t[a].length;for(n=new Array(i);--o>=0;)for(e=(r=t[o]).length;--e>=0;)n[--i]=r[e];return n};var k=Math.abs;function _(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function S(){this._=Object.create(null)}a.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,o=[],a=function(t){var e=1;for(;t*e%1;)e*=10;return e}(k(n)),i=-1;if(t*=a,e*=a,(n*=a)<0)for(;(r=t+n*++i)>e;)o.push(r/a);else for(;(r=t+n*++i)<e;)o.push(r/a);return o},a.map=function(t,e){var n=new S;if(t instanceof S)t.forEach((function(t,e){n.set(t,e)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(1===arguments.length)for(;++o<a;)n.set(o,t[o]);else for(;++o<a;)n.set(e.call(t,r=t[o],o),r)}else for(var i in t)n.set(i,t[i]);return n};var E="__proto__",j="\0";function L(t){return(t+="")===E||t[0]===j?j+t:t}function N(t){return(t+="")[0]===j?t.slice(1):t}function M(t){return L(t)in this._}function T(t){return(t=L(t))in this._&&delete this._[t]}function P(){var t=[];for(var e in this._)t.push(N(e));return t}function C(){var t=0;for(var e in this._)++t;return t}function O(){for(var t in this._)return!1;return!0}function A(){this._=Object.create(null)}function F(t){return t}function D(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function R(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=z.length;n<r;++n){var o=z[n]+e;if(o in t)return o}}_(S,{has:M,get:function(t){return this._[L(t)]},set:function(t,e){return this._[L(t)]=e},remove:T,keys:P,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:N(e),value:this._[e]});return t},size:C,empty:O,forEach:function(t){for(var e in this._)t.call(this,N(e),this._[e])}}),a.nest=function(){var t,e,n={},r=[],o=[];function i(o,a,u){if(u>=r.length)return e?e.call(n,a):t?a.sort(t):a;for(var l,s,c,f,h=-1,d=a.length,p=r[u++],v=new S;++h<d;)(f=v.get(l=p(s=a[h])))?f.push(s):v.set(l,[s]);return o?(s=o(),c=function(t,e){s.set(t,i(o,e,u))}):(s={},c=function(t,e){s[t]=i(o,e,u)}),v.forEach(c),s}function u(t,e){if(e>=r.length)return t;var n=[],a=o[e++];return t.forEach((function(t,r){n.push({key:t,values:u(r,e)})})),a?n.sort((function(t,e){return a(t.key,e.key)})):n}return n.map=function(t,e){return i(e,t,0)},n.entries=function(t){return u(i(a.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return o[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},a.set=function(t){var e=new A;if(t)for(var n=0,r=t.length;n<r;++n)e.add(t[n]);return e},_(A,{has:M,add:function(t){return this._[L(t+="")]=!0,t},remove:T,values:P,size:C,empty:O,forEach:function(t){for(var e in this._)t.call(this,N(e))}}),a.behavior={},a.rebind=function(t,e){for(var n,r=1,o=arguments.length;++r<o;)t[n=arguments[r]]=D(t,e,e[n]);return t};var z=["webkit","ms","moz","Moz","o","O"];function I(){}function q(){}function H(t){var e=[],n=new S;function r(){for(var n,r=e,o=-1,a=r.length;++o<a;)(n=r[o].on)&&n.apply(this,arguments);return t}return r.on=function(r,o){var a,i=n.get(r);return arguments.length<2?i&&i.on:(i&&(i.on=null,e=e.slice(0,a=e.indexOf(i)).concat(e.slice(a+1)),n.remove(r)),o&&e.push(n.set(r,{on:o})),t)},r}function B(){a.event.preventDefault()}function U(){for(var t,e=a.event;t=e.sourceEvent;)e=t;return e}function G(t){for(var e=new q,n=0,r=arguments.length;++n<r;)e[arguments[n]]=H(e);return e.of=function(n,r){return function(o){try{var i=o.sourceEvent=a.event;o.target=t,a.event=o,e[o.type].apply(n,r)}finally{a.event=i}}},e}a.dispatch=function(){for(var t=new q,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=H(t);return t},q.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},a.event=null,a.requote=function(t){return t.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function V(t){return W(t,K),t}var $=function(t,e){return e.querySelector(t)},Q=function(t,e){return e.querySelectorAll(t)},X=function(t,e){var n=t.matches||t[R(t,"matchesSelector")];return X=function(t,e){return n.call(t,e)},X(t,e)};"function"==typeof Sizzle&&($=function(t,e){return Sizzle(t,e)[0]||null},Q=Sizzle,X=Sizzle.matchesSelector),a.selection=function(){return a.select(l.documentElement)};var K=a.selection.prototype=[];function J(t){return"function"==typeof t?t:function(){return $(t,this)}}function Z(t){return"function"==typeof t?t:function(){return Q(t,this)}}K.select=function(t){var e,n,r,o,a=[];t=J(t);for(var i=-1,u=this.length;++i<u;){a.push(e=[]),e.parentNode=(r=this[i]).parentNode;for(var l=-1,s=r.length;++l<s;)(o=r[l])?(e.push(n=t.call(o,o.__data__,l,i)),n&&"__data__"in o&&(n.__data__=o.__data__)):e.push(null)}return V(a)},K.selectAll=function(t){var e,n,r=[];t=Z(t);for(var o=-1,a=this.length;++o<a;)for(var i=this[o],l=-1,s=i.length;++l<s;)(n=i[l])&&(r.push(e=u(t.call(n,n.__data__,l,o))),e.parentNode=n);return V(r)};var tt="http://www.w3.org/1999/xhtml",et={svg:"http://www.w3.org/2000/svg",xhtml:tt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(t,e){return t=a.ns.qualify(t),null==e?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof e?t.local?function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}:function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}:t.local?function(){this.setAttributeNS(t.space,t.local,e)}:function(){this.setAttribute(t,e)}}function rt(t){return t.trim().replace(/\s+/g," ")}function ot(t){return new RegExp("(?:^|\\s+)"+a.requote(t)+"(?:\\s+|$)","g")}function at(t){return(t+"").trim().split(/^|\s+/)}function it(t,e){var n=(t=at(t).map(ut)).length;return"function"==typeof e?function(){for(var r=-1,o=e.apply(this,arguments);++r<n;)t[r](this,o)}:function(){for(var r=-1;++r<n;)t[r](this,e)}}function ut(t){var e=ot(t);return function(n,r){if(o=n.classList)return r?o.add(t):o.remove(t);var o=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(o)||n.setAttribute("class",rt(o+" "+t))):n.setAttribute("class",rt(o.replace(e," ")))}}function lt(t,e,n){return null==e?function(){this.style.removeProperty(t)}:"function"==typeof e?function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}:function(){this.style.setProperty(t,e,n)}}function st(t,e){return null==e?function(){delete this[t]}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}:function(){this[t]=e}}function ct(t){return"function"==typeof t?t:(t=a.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,n=this.namespaceURI;return n===tt&&e.documentElement.namespaceURI===tt?e.createElement(t):e.createElementNS(n,t)}}function ft(){var t=this.parentNode;t&&t.removeChild(this)}function ht(t){return{__data__:t}}function dt(t){return function(){return X(this,t)}}function pt(t){return arguments.length||(t=g),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function vt(t,e){for(var n=0,r=t.length;n<r;n++)for(var o,a=t[n],i=0,u=a.length;i<u;i++)(o=a[i])&&e(o,i,n);return t}function gt(t){return W(t,yt),t}a.ns={prefix:et,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),et.hasOwnProperty(n)?{space:et[n],local:t}:t}},K.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=a.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(nt(e,t[e]));return this}return this.each(nt(t,e))},K.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=at(t)).length,o=-1;if(e=n.classList){for(;++o<r;)if(!e.contains(t[o]))return!1}else for(e=n.getAttribute("class");++o<r;)if(!ot(t[o]).test(e))return!1;return!0}for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},K.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.each(lt(n,t[n],e));return this}if(r<2){var o=this.node();return c(o).getComputedStyle(o,null).getPropertyValue(t)}n=""}return this.each(lt(t,e,n))},K.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(st(e,t[e]));return this}return this.each(st(t,e))},K.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},K.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},K.append=function(t){return t=ct(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},K.insert=function(t,e){return t=ct(t),e=J(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},K.remove=function(){return this.each(ft)},K.data=function(t,e){var n,r,o=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(n=this[0]).length);++o<a;)(r=n[o])&&(t[o]=r.__data__);return t}function i(t,n){var r,o,a,i=t.length,c=n.length,f=Math.min(i,c),h=new Array(c),d=new Array(c),p=new Array(i);if(e){var v,g=new S,y=new Array(i);for(r=-1;++r<i;)(o=t[r])&&(g.has(v=e.call(o,o.__data__,r))?p[r]=o:g.set(v,o),y[r]=v);for(r=-1;++r<c;)(o=g.get(v=e.call(n,a=n[r],r)))?!0!==o&&(h[r]=o,o.__data__=a):d[r]=ht(a),g.set(v,!0);for(r=-1;++r<i;)r in y&&!0!==g.get(y[r])&&(p[r]=t[r])}else{for(r=-1;++r<f;)o=t[r],a=n[r],o?(o.__data__=a,h[r]=o):d[r]=ht(a);for(;r<c;++r)d[r]=ht(n[r]);for(;r<i;++r)p[r]=t[r]}d.update=h,d.parentNode=h.parentNode=p.parentNode=t.parentNode,u.push(d),l.push(h),s.push(p)}var u=gt([]),l=V([]),s=V([]);if("function"==typeof t)for(;++o<a;)i(n=this[o],t.call(n,n.parentNode.__data__,o));else for(;++o<a;)i(n=this[o],t);return l.enter=function(){return u},l.exit=function(){return s},l},K.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},K.filter=function(t){var e,n,r,o=[];"function"!=typeof t&&(t=dt(t));for(var a=0,i=this.length;a<i;a++){o.push(e=[]),e.parentNode=(n=this[a]).parentNode;for(var u=0,l=n.length;u<l;u++)(r=n[u])&&t.call(r,r.__data__,u,a)&&e.push(r)}return V(o)},K.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],o=r.length-1,a=r[o];--o>=0;)(n=r[o])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},K.sort=function(t){t=pt.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},K.each=function(t){return vt(this,(function(e,n,r){t.call(e,e.__data__,n,r)}))},K.call=function(t){var e=u(arguments);return t.apply(e[0]=this,e),this},K.empty=function(){return!this.node()},K.node=function(){for(var t=0,e=this.length;t<e;t++)for(var n=this[t],r=0,o=n.length;r<o;r++){var a=n[r];if(a)return a}return null},K.size=function(){var t=0;return vt(this,(function(){++t})),t};var yt=[];function mt(t,e,n){var r="__on"+t,o=t.indexOf("."),i=wt;o>0&&(t=t.slice(0,o));var l=bt.get(t);function s(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return l&&(t=l,i=xt),o?e?function(){var o=i(e,u(arguments));s.call(this),this.addEventListener(t,this[r]=o,o.$=n),o._=e}:s:e?I:function(){var e,n=new RegExp("^__on([^.]+)"+a.requote(t)+"$");for(var r in this)if(e=r.match(n)){var o=this[r];this.removeEventListener(e[1],o,o.$),delete this[r]}}}a.selection.enter=gt,a.selection.enter.prototype=yt,yt.append=K.append,yt.empty=K.empty,yt.node=K.node,yt.call=K.call,yt.size=K.size,yt.select=function(t){for(var e,n,r,o,a,i=[],u=-1,l=this.length;++u<l;){r=(o=this[u]).update,i.push(e=[]),e.parentNode=o.parentNode;for(var s=-1,c=o.length;++s<c;)(a=o[s])?(e.push(r[s]=n=t.call(o.parentNode,a.__data__,s,u)),n.__data__=a.__data__):e.push(null)}return V(i)},yt.insert=function(t,e){var n,r,o;return arguments.length<2&&(n=this,e=function(t,e,a){var i,u=n[a].update,l=u.length;for(a!=o&&(o=a,r=0),e>=r&&(r=e+1);!(i=u[r])&&++r<l;);return i}),K.insert.call(this,t,e)},a.select=function(t){var e;return"string"==typeof t?(e=[$(t,l)]).parentNode=l.documentElement:(e=[t]).parentNode=s(t),V([e])},a.selectAll=function(t){var e;return"string"==typeof t?(e=u(Q(t,l))).parentNode=l.documentElement:(e=u(t)).parentNode=null,V([e])},K.on=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=!1),t)this.each(mt(n,t[n],e));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(mt(t,e,n))};var bt=a.map({mouseenter:"mouseover",mouseleave:"mouseout"});function wt(t,e){return function(n){var r=a.event;a.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{a.event=r}}}function xt(t,e){var n=wt(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}l&&bt.forEach((function(t){"on"+t in l&&bt.remove(t)}));var kt,_t=0;function St(t){var e=".dragsuppress-"+ ++_t,n="click"+e,r=a.select(c(t)).on("touchmove"+e,B).on("dragstart"+e,B).on("selectstart"+e,B);if(null==kt&&(kt=!("onselectstart"in t)&&R(t.style,"userSelect")),kt){var o=s(t).style,i=o[kt];o[kt]="none"}return function(t){if(r.on(e,null),kt&&(o[kt]=i),t){var a=function(){r.on(n,null)};r.on(n,(function(){B(),a()}),!0),setTimeout(a,0)}}}a.mouse=function(t){return jt(t,U())};var Et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function jt(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(Et<0){var o=c(t);if(o.scrollX||o.scrollY){var i=(n=a.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Et=!(i.f||i.e),n.remove()}}return Et?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function Lt(){return a.event.changedTouches[0].identifier}a.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=U().changedTouches),e)for(var r,o=0,a=e.length;o<a;++o)if((r=e[o]).identifier===n)return jt(t,r)},a.behavior.drag=function(){var t=G(o,"drag","dragstart","dragend"),e=null,n=i(I,a.mouse,c,"mousemove","mouseup"),r=i(Lt,a.touch,F,"touchmove","touchend");function o(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function i(n,r,o,i,u){return function(){var l,s=this,c=a.event.target.correspondingElement||a.event.target,f=s.parentNode,h=t.of(s,arguments),d=0,p=n(),v=".drag"+(null==p?"":"-"+p),g=a.select(o(c)).on(i+v,(function(){var t,e,n=r(f,p);if(!n)return;t=n[0]-m[0],e=n[1]-m[1],d|=t|e,m=n,h({type:"drag",x:n[0]+l[0],y:n[1]+l[1],dx:t,dy:e})})).on(u+v,(function(){if(!r(f,p))return;g.on(i+v,null).on(u+v,null),y(d),h({type:"dragend"})})),y=St(c),m=r(f,p);l=e?[(l=e.apply(s,arguments)).x-m[0],l.y-m[1]]:[0,0],h({type:"dragstart"})}}return o.origin=function(t){return arguments.length?(e=t,o):e},a.rebind(o,t,"on")},a.touches=function(t,e){return arguments.length<2&&(e=U().touches),e?u(e).map((function(e){var n=jt(t,e);return n.identifier=e.identifier,n})):[]};var Nt=1e-6,Mt=Nt*Nt,Tt=Math.PI,Pt=2*Tt,Ct=Pt-Nt,Ot=Tt/2,At=Tt/180,Ft=180/Tt;function Dt(t){return t>0?1:t<0?-1:0}function Rt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function zt(t){return t>1?0:t<-1?Tt:Math.acos(t)}function It(t){return t>1?Ot:t<-1?-Ot:Math.asin(t)}function qt(t){return((t=Math.exp(t))+1/t)/2}function Ht(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;a.interpolateZoom=function(t,e){var n,r,o=t[0],a=t[1],i=t[2],u=e[0],l=e[1],s=e[2],c=u-o,f=l-a,h=c*c+f*f;if(h<Mt)r=Math.log(s/i)/Bt,n=function(t){return[o+t*c,a+t*f,i*Math.exp(Bt*t*r)]};else{var d=Math.sqrt(h),p=(s*s-i*i+4*h)/(2*i*2*d),v=(s*s-i*i-4*h)/(2*s*2*d),g=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/Bt,n=function(t){var e,n=t*r,u=qt(g),l=i/(2*d)*(u*(e=Bt*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[o+l*c,a+l*f,i*u/qt(Bt*n+g)]}}return n.duration=1e3*r,n},a.behavior.zoom=function(){var t,e,n,r,o,i,u,s,f,h={x:0,y:0,k:1},d=[960,500],p=Yt,v=250,g=0,y="mousedown.zoom",m="mousemove.zoom",b="mouseup.zoom",w="touchstart.zoom",x=G(k,"zoomstart","zoom","zoomend");function k(t){t.on(y,P).on(Gt+".zoom",O).on("dblclick.zoom",A).on(w,C)}function _(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function S(t){h.k=Math.max(p[0],Math.min(p[1],t))}function E(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function j(t,n,r,o){t.__chart__={x:h.x,y:h.y,k:h.k},S(Math.pow(2,o)),E(e=n,r),t=a.select(t),v>0&&(t=t.transition().duration(v)),t.call(k.event)}function L(){u&&u.domain(i.range().map((function(t){return(t-h.x)/h.k})).map(i.invert)),f&&f.domain(s.range().map((function(t){return(t-h.y)/h.k})).map(s.invert))}function N(t){g++||t({type:"zoomstart"})}function M(t){L(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function T(t){--g||(t({type:"zoomend"}),e=null)}function P(){var t=this,e=x.of(t,arguments),n=0,r=a.select(c(t)).on(m,(function(){n=1,E(a.mouse(t),o),M(e)})).on(b,(function(){r.on(m,null).on(b,null),i(n),T(e)})),o=_(a.mouse(t)),i=St(t);Cu.call(t),N(e)}function C(){var t,e=this,n=x.of(e,arguments),r={},i=0,u=".zoom-"+a.event.changedTouches[0].identifier,l="touchmove"+u,s="touchend"+u,c=[],f=a.select(e),d=St(e);function p(){var n=a.touches(e);return t=h.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=_(t))})),n}function v(){var t=a.event.target;a.select(t).on(l,g).on(s,m),c.push(t);for(var n=a.event.changedTouches,u=0,f=n.length;u<f;++u)r[n[u].identifier]=null;var d=p(),v=Date.now();if(1===d.length){if(v-o<500){var y=d[0];j(e,y,r[y.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),B()}o=v}else if(d.length>1){y=d[0];var b=d[1],w=y[0]-b[0],x=y[1]-b[1];i=w*w+x*x}}function g(){var u,l,s,c,f=a.touches(e);Cu.call(e);for(var h=0,d=f.length;h<d;++h,c=null)if(s=f[h],c=r[s.identifier]){if(l)break;u=s,l=c}if(c){var p=(p=s[0]-u[0])*p+(p=s[1]-u[1])*p,v=i&&Math.sqrt(p/i);u=[(u[0]+s[0])/2,(u[1]+s[1])/2],l=[(l[0]+c[0])/2,(l[1]+c[1])/2],S(v*t)}o=null,E(u,l),M(n)}function m(){if(a.event.touches.length){for(var t=a.event.changedTouches,e=0,o=t.length;e<o;++e)delete r[t[e].identifier];for(var i in r)return void p()}a.selectAll(c).on(u,null),f.on(y,P).on(w,C),d(),T(n)}v(),N(n),f.on(y,null).on(w,v)}function O(){var o=x.of(this,arguments);r?clearTimeout(r):(Cu.call(this),t=_(e=n||a.mouse(this)),N(o)),r=setTimeout((function(){r=null,T(o)}),50),B(),S(Math.pow(2,.002*Ut())*h.k),E(e,t),M(o)}function A(){var t=a.mouse(this),e=Math.log(h.k)/Math.LN2;j(this,t,_(t),a.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}return Gt||(Gt="onwheel"in l?(Ut=function(){return-a.event.deltaY*(a.event.deltaMode?120:1)},"wheel"):"onmousewheel"in l?(Ut=function(){return a.event.wheelDelta},"mousewheel"):(Ut=function(){return-a.event.detail},"MozMousePixelScroll")),k.event=function(t){t.each((function(){var t=x.of(this,arguments),n=h;Fu?a.select(this).transition().each("start.zoom",(function(){h=this.__chart__||{x:0,y:0,k:1},N(t)})).tween("zoom:zoom",(function(){var r=d[0],o=d[1],i=e?e[0]:r/2,u=e?e[1]:o/2,l=a.interpolateZoom([(i-h.x)/h.k,(u-h.y)/h.k,r/h.k],[(i-n.x)/n.k,(u-n.y)/n.k,r/n.k]);return function(e){var n=l(e),o=r/n[2];this.__chart__=h={x:i-n[0]*o,y:u-n[1]*o,k:o},M(t)}})).each("interrupt.zoom",(function(){T(t)})).each("end.zoom",(function(){T(t)})):(this.__chart__=h,N(t),M(t),T(t))}))},k.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},L(),k):[h.x,h.y]},k.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},S(+t),L(),k):h.k},k.scaleExtent=function(t){return arguments.length?(p=null==t?Yt:[+t[0],+t[1]],k):p},k.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],k):n},k.size=function(t){return arguments.length?(d=t&&[+t[0],+t[1]],k):d},k.duration=function(t){return arguments.length?(v=+t,k):v},k.x=function(t){return arguments.length?(u=t,i=t.copy(),h={x:0,y:0,k:1},k):u},k.y=function(t){return arguments.length?(f=t,s=t.copy(),h={x:0,y:0,k:1},k):f},a.rebind(k,x,"on")};var Ut,Gt,Yt=[0,1/0];function Wt(){}function Vt(t,e,n){return this instanceof Vt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof Vt?new Vt(t.h,t.s,t.l):ve(""+t,ge,Vt):new Vt(t,e,n)}a.color=Wt,Wt.prototype.toString=function(){return this.rgb()+""},a.hsl=Vt;var $t=Vt.prototype=new Wt;function Qt(t,e,n){var r,o;function a(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?r+(o-r)*t/60:t<180?o:t<240?r+(o-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(o=n<=.5?n*(1+e):n+e-n*e),new ce(a(t+120),a(t),a(t-120))}function Xt(t,e,n){return this instanceof Xt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof Xt?new Xt(t.h,t.c,t.l):ie(t instanceof Zt?t.l:(t=ye((t=a.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Xt(t,e,n)}$t.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,this.l/t)},$t.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,t*this.l)},$t.rgb=function(){return Qt(this.h,this.s,this.l)},a.hcl=Xt;var Kt=Xt.prototype=new Wt;function Jt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Zt(n,Math.cos(t*=At)*e,Math.sin(t)*e)}function Zt(t,e,n){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Xt?Jt(t.h,t.c,t.l):ye((t=ce(t)).r,t.g,t.b):new Zt(t,e,n)}Kt.brighter=function(t){return new Xt(this.h,this.c,Math.min(100,this.l+te*(arguments.length?t:1)))},Kt.darker=function(t){return new Xt(this.h,this.c,Math.max(0,this.l-te*(arguments.length?t:1)))},Kt.rgb=function(){return Jt(this.h,this.c,this.l).rgb()},a.lab=Zt;var te=18,ee=.95047,ne=1,re=1.08883,oe=Zt.prototype=new Wt;function ae(t,e,n){var r=(t+16)/116,o=r+e/500,a=r-n/200;return new ce(se(3.2404542*(o=ue(o)*ee)-1.5371385*(r=ue(r)*ne)-.4985314*(a=ue(a)*re)),se(-.969266*o+1.8760108*r+.041556*a),se(.0556434*o-.2040259*r+1.0572252*a))}function ie(t,e,n){return t>0?new Xt(Math.atan2(n,e)*Ft,Math.sqrt(e*e+n*n),t):new Xt(NaN,NaN,t)}function ue(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function le(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function se(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ce(t,e,n){return this instanceof ce?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof ce?new ce(t.r,t.g,t.b):ve(""+t,ce,Qt):new ce(t,e,n)}function fe(t){return new ce(t>>16,t>>8&255,255&t)}function he(t){return fe(t)+""}oe.brighter=function(t){return new Zt(Math.min(100,this.l+te*(arguments.length?t:1)),this.a,this.b)},oe.darker=function(t){return new Zt(Math.max(0,this.l-te*(arguments.length?t:1)),this.a,this.b)},oe.rgb=function(){return ae(this.l,this.a,this.b)},a.rgb=ce;var de=ce.prototype=new Wt;function pe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ve(t,e,n){var r,o,a,i=0,u=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return e(be(o[0]),be(o[1]),be(o[2]))}return(a=we.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(i=(3840&a)>>4,i|=i>>4,u=240&a,u|=u>>4,l=15&a,l|=l<<4):7===t.length&&(i=(16711680&a)>>16,u=(65280&a)>>8,l=255&a)),e(i,u,l))}function ge(t,e,n){var r,o,a=Math.min(t/=255,e/=255,n/=255),i=Math.max(t,e,n),u=i-a,l=(i+a)/2;return u?(o=l<.5?u/(i+a):u/(2-i-a),r=t==i?(e-n)/u+(e<n?6:0):e==i?(n-t)/u+2:(t-e)/u+4,r*=60):(r=NaN,o=l>0&&l<1?0:r),new Vt(r,o,l)}function ye(t,e,n){var r=le((.4124564*(t=me(t))+.3575761*(e=me(e))+.1804375*(n=me(n)))/ee),o=le((.2126729*t+.7151522*e+.072175*n)/ne);return Zt(116*o-16,500*(r-o),200*(o-le((.0193339*t+.119192*e+.9503041*n)/re)))}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function be(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}de.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,o=30;return e||n||r?(e&&e<o&&(e=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new ce(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new ce(o,o,o)},de.darker=function(t){return new ce((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},de.hsl=function(){return ge(this.r,this.g,this.b)},de.toString=function(){return"#"+pe(this.r)+pe(this.g)+pe(this.b)};var we=a.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function xe(t){return"function"==typeof t?t:function(){return t}}function ke(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),_e(e,n,t,r)}}function _e(t,e,n,r){var o={},i=a.dispatch("beforesend","progress","load","error"),l={},s=new XMLHttpRequest,c=null;function f(){var t,e=s.status;if(!e&&function(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}(s)||e>=200&&e<300||304===e){try{t=n.call(o,s)}catch(t){return void i.error.call(o,t)}i.load.call(o,t)}else i.error.call(o,s)}return this.XDomainRequest&&!("withCredentials"in s)&&/^(http(s)?:)?\/\//.test(t)&&(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=f:s.onreadystatechange=function(){s.readyState>3&&f()},s.onprogress=function(t){var e=a.event;a.event=t;try{i.progress.call(o,s)}finally{a.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(c=t,o):c},o.response=function(t){return n=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(u(arguments)))}})),o.send=function(n,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),s.open(n,t,!0),null==e||"accept"in l||(l.accept=e+",*/*"),s.setRequestHeader)for(var u in l)s.setRequestHeader(u,l[u]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=c&&(s.responseType=c),null!=a&&o.on("error",a).on("load",(function(t){a(null,t)})),i.beforesend.call(o,s),s.send(null==r?null:r),o},o.abort=function(){return s.abort(),o},a.rebind(o,i,"on"),null==r?o:o.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}we.forEach((function(t,e){we.set(t,fe(e))})),a.functor=xe,a.xhr=ke(F),a.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function o(t,n,r){arguments.length<3&&(r=n,n=null);var o=_e(t,e,null==n?a:i(n),r);return o.row=function(t){return arguments.length?o.response(null==(n=t)?a:i(t)):n},o}function a(t){return o.parse(t.responseText)}function i(t){return function(e){return o.parse(e.responseText,t)}}function u(e){return e.map(l).join(t)}function l(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return o.parse=function(t,e){var n;return o.parseRows(t,(function(t,r){if(n)return n(t,r-1);var o=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(o(t),n)}:o}))},o.parseRows=function(t,e){var n,o,a={},i={},u=[],l=t.length,s=0,c=0;function f(){if(s>=l)return i;if(o)return o=!1,a;var e=s;if(34===t.charCodeAt(e)){for(var n=e;n++<l;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}return s=n+2,13===(u=t.charCodeAt(n+1))?(o=!0,10===t.charCodeAt(n+2)&&++s):10===u&&(o=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;s<l;){var u,c=1;if(10===(u=t.charCodeAt(s++)))o=!0;else if(13===u)o=!0,10===t.charCodeAt(s)&&(++s,++c);else if(u!==r)continue;return t.slice(e,s-c)}return t.slice(e)}for(;(n=f())!==i;){for(var h=[];n!==a&&n!==i;)h.push(n),n=f();e&&null==(h=e(h,c++))||u.push(h)}return u},o.format=function(e){if(Array.isArray(e[0]))return o.formatRows(e);var n=new A,r=[];return e.forEach((function(t){for(var e in t)n.has(e)||r.push(n.add(e))})),[r.map(l).join(t)].concat(e.map((function(e){return r.map((function(t){return l(e[t])})).join(t)}))).join("\n")},o.formatRows=function(t){return t.map(u).join("\n")},o},a.csv=a.dsv(",","text/csv"),a.tsv=a.dsv("\t","text/tab-separated-values");var Se,Ee,je,Le,Ne=this[R(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function Me(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var o={c:t,t:n+e,n:null};return Ee?Ee.n=o:Se=o,Ee=o,je||(Le=clearTimeout(Le),je=1,Ne(Te)),o}function Te(){var t=Pe(),e=Ce()-t;e>24?(isFinite(e)&&(clearTimeout(Le),Le=setTimeout(Te,e)),je=0):(je=1,Ne(Te))}function Pe(){for(var t=Date.now(),e=Se;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Ce(){for(var t,e=Se,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:Se=e.n;return Ee=t,n}function Oe(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}a.timer=function(){Me.apply(this,arguments)},a.timer.flush=function(){Pe(),Ce()},a.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Ae=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(t,e){var n=Math.pow(10,3*k(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Fe(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,i=r&&n?function(t,e){for(var o=t.length,a=[],i=0,u=r[0],l=0;o>0&&u>0&&(l+u+1>e&&(u=Math.max(1,e-l)),a.push(t.substring(o-=u,o+u)),!((l+=u+1)>e));)u=r[i=(i+1)%r.length];return a.reverse().join(n)}:F;return function(t){var n=De.exec(t),r=n[1]||" ",u=n[2]||">",l=n[3]||"-",s=n[4]||"",c=n[5],f=+n[6],h=n[7],d=n[8],p=n[9],v=1,g="",y="",m=!1,b=!0;switch(d&&(d=+d.substring(1)),(c||"0"===r&&"="===u)&&(c=r="0",u="="),p){case"n":h=!0,p="g";break;case"%":v=100,y="%",p="f";break;case"p":v=100,y="%",p="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+p.toLowerCase());case"c":b=!1;case"d":m=!0,d=0;break;case"s":v=-1,p="r"}"$"===s&&(g=o[0],y=o[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=Re.get(p)||ze;var w=c&&h;return function(t){var n=y;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===l?"":l;if(v<0){var s=a.formatPrefix(t,d);t=s.scale(t),n=s.symbol+y}else t*=v;var x,k,_=(t=p(t,d)).lastIndexOf(".");if(_<0){var S=b?t.lastIndexOf("e"):-1;S<0?(x=t,k=""):(x=t.substring(0,S),k=t.substring(S))}else x=t.substring(0,_),k=e+t.substring(_+1);!c&&h&&(x=i(x,1/0));var E=g.length+x.length+k.length+(w?0:o.length),j=E<f?new Array(E=f-E+1).join(r):"";return w&&(x=i(j+x,j.length?f-k.length:1/0)),o+=g,t=x+k,("<"===u?o+t+j:">"===u?j+o+t:"^"===u?j.substring(0,E>>=1)+o+t+j.substring(E):o+(w?t:j+t))+n}}}a.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=a.round(t,Oe(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ae[8+n/3]};var De=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Re=a.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=a.round(t,Oe(t,e))).toFixed(Math.max(0,Math.min(20,Oe(t*(1+1e-15),e))))}});function ze(t){return t+""}var Ie=a.time={},qe=Date;function He(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}He.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Be.setUTCDate.apply(this._,arguments)},setDay:function(){Be.setUTCDay.apply(this._,arguments)},setFullYear:function(){Be.setUTCFullYear.apply(this._,arguments)},setHours:function(){Be.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Be.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Be.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Be.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Be.setUTCSeconds.apply(this._,arguments)},setTime:function(){Be.setTime.apply(this._,arguments)}};var Be=Date.prototype;function Ue(t,e,n){function r(e){var n=t(e),r=a(n,1);return e-n<r-e?n:r}function o(n){return e(n=t(new qe(n-1)),1),n}function a(t,n){return e(t=new qe(+t),n),t}function i(t,r,a){var i=o(t),u=[];if(a>1)for(;i<r;)n(i)%a||u.push(new Date(+i)),e(i,1);else for(;i<r;)u.push(new Date(+i)),e(i,1);return u}t.floor=t,t.round=r,t.ceil=o,t.offset=a,t.range=i;var u=t.utc=Ge(t);return u.floor=u,u.round=Ge(r),u.ceil=Ge(o),u.offset=Ge(a),u.range=function(t,e,n){try{qe=He;var r=new He;return r._=t,i(r,e,n)}finally{qe=Date}},t}function Ge(t){return function(e,n){try{qe=He;var r=new He;return r._=e,t(r,n)._}finally{qe=Date}}}function Ye(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,u=t.shortDays,l=t.months,s=t.shortMonths;function c(t){var e=t.length;function n(n){for(var r,o,a,i=[],u=-1,l=0;++u<e;)37===t.charCodeAt(u)&&(i.push(t.slice(l,u)),null!=(o=We[r=t.charAt(++u)])&&(r=t.charAt(++u)),(a=x[r])&&(r=a(n,null==o?"e"===r?" ":"0":o)),i.push(r),l=u+1);return i.push(t.slice(l,u)),i.join("")}return n.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(n,t,e,0)!=e.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&qe!==He,o=new(r?He:qe);return"j"in n?o.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),o.setFullYear(n.y,0,1),o.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(o.getDay()+5)%7:n.w+7*n.U-(o.getDay()+6)%7)):o.setFullYear(n.y,n.m,n.d),o.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?o._:o},n.toString=function(){return t},n}function f(t,e,n,r){for(var o,a,i,u=0,l=e.length,s=n.length;u<l;){if(r>=s)return-1;if(37===(o=e.charCodeAt(u++))){if(i=e.charAt(u++),!(a=k[i in We?e.charAt(u++):i])||(r=a(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(qe=He);return n._=t,e(n)}finally{qe=Date}}return n.parse=function(t){try{qe=He;var n=e.parse(t);return n&&n._}finally{qe=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=pn;var h=a.map(),d=Xe(i),p=Ke(i),v=Xe(u),g=Ke(u),y=Xe(l),m=Ke(l),b=Xe(s),w=Ke(s);o.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var x={a:function(t){return u[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:c(e),d:function(t,e){return Qe(t.getDate(),e,2)},e:function(t,e){return Qe(t.getDate(),e,2)},H:function(t,e){return Qe(t.getHours(),e,2)},I:function(t,e){return Qe(t.getHours()%12||12,e,2)},j:function(t,e){return Qe(1+Ie.dayOfYear(t),e,3)},L:function(t,e){return Qe(t.getMilliseconds(),e,3)},m:function(t,e){return Qe(t.getMonth()+1,e,2)},M:function(t,e){return Qe(t.getMinutes(),e,2)},p:function(t){return o[+(t.getHours()>=12)]},S:function(t,e){return Qe(t.getSeconds(),e,2)},U:function(t,e){return Qe(Ie.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Qe(Ie.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return Qe(t.getFullYear()%100,e,2)},Y:function(t,e){return Qe(t.getFullYear()%1e4,e,4)},Z:hn,"%":function(){return"%"}},k={a:function(t,e,n){v.lastIndex=0;var r=v.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){d.lastIndex=0;var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.m=w.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){y.lastIndex=0;var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return f(t,x.c.toString(),e,n)},d:an,e:an,H:ln,I:ln,j:un,L:fn,m:on,M:sn,p:function(t,e,n){var r=h.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:cn,U:Ze,w:Je,W:tn,x:function(t,e,n){return f(t,x.x.toString(),e,n)},X:function(t,e,n){return f(t,x.X.toString(),e,n)},y:nn,Y:en,Z:rn,"%":dn};return c}Ie.year=Ue((function(t){return(t=Ie.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Ie.years=Ie.year.range,Ie.years.utc=Ie.year.utc.range,Ie.day=Ue((function(t){var e=new qe(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Ie.days=Ie.day.range,Ie.days.utc=Ie.day.utc.range,Ie.dayOfYear=function(t){var e=Ie.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=Ie[t]=Ue((function(t){return(t=Ie.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));Ie[t+"s"]=n.range,Ie[t+"s"].utc=n.utc.range,Ie[t+"OfYear"]=function(t){var n=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(n+e)%7)/7)}})),Ie.week=Ie.sunday,Ie.weeks=Ie.sunday.range,Ie.weeks.utc=Ie.sunday.utc.range,Ie.weekOfYear=Ie.sundayOfYear;var We={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,$e=/^%/;function Qe(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(e)+o:o)}function Xe(t){return new RegExp("^(?:"+t.map(a.requote).join("|")+")","i")}function Ke(t){for(var e=new S,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Je(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ze(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function tn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function en(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function nn(t,e,n){Ve.lastIndex=0;var r,o=Ve.exec(e.slice(n,n+2));return o?(t.y=(r=+o[0])+(r>68?1900:2e3),n+o[0].length):-1}function rn(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function on(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function an(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function un(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ln(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function sn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function cn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function fn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=k(e)/60|0,o=k(e)%60;return n+Qe(r,"0",2)+Qe(o,"0",2)}function dn(t,e,n){$e.lastIndex=0;var r=$e.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pn(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}a.locale=function(t){return{numberFormat:Fe(t),timeFormat:Ye(t)}};var vn=a.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gn(){}a.format=vn.numberFormat,a.geo={},gn.prototype={s:0,t:0,add:function(t){mn(t,this.t,yn),mn(yn.s,this.s,this),this.s?this.t+=yn.t:this.s=yn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var yn=new gn;function mn(t,e,n){var r=n.s=t+e,o=r-t,a=r-o;n.t=t-a+(e-o)}function bn(t,e){t&&xn.hasOwnProperty(t.type)&&xn[t.type](t,e)}a.geo.stream=function(t,e){t&&wn.hasOwnProperty(t.type)?wn[t.type](t,e):bn(t,e)};var wn={Feature:function(t,e){bn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)bn(n[r].geometry,e)}},xn={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){kn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)kn(n[r],e,0)},Polygon:function(t,e){_n(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)_n(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)bn(n[r],e)}};function kn(t,e,n){var r,o=-1,a=t.length-n;for(e.lineStart();++o<a;)r=t[o],e.point(r[0],r[1],r[2]);e.lineEnd()}function _n(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)kn(t[n],e,1);e.polygonEnd()}a.geo.area=function(t){return Sn=0,a.geo.stream(t,Rn),Sn};var Sn,En,jn,Ln,Nn,Mn,Tn,Pn,Cn,On,An,Fn,Dn=new gn,Rn={sphere:function(){Sn+=4*Tt},point:I,lineStart:I,lineEnd:I,polygonStart:function(){Dn.reset(),Rn.lineStart=zn},polygonEnd:function(){var t=2*Dn;Sn+=t<0?4*Tt+t:t,Rn.lineStart=Rn.lineEnd=Rn.point=I}};function zn(){var t,e,n,r,o;function a(t,e){e=e*At/2+Tt/4;var a=(t*=At)-n,i=a>=0?1:-1,u=i*a,l=Math.cos(e),s=Math.sin(e),c=o*s,f=r*l+c*Math.cos(u),h=c*i*Math.sin(u);Dn.add(Math.atan2(h,f)),n=t,r=l,o=s}Rn.point=function(i,u){Rn.point=a,n=(t=i)*At,r=Math.cos(u=(e=u)*At/2+Tt/4),o=Math.sin(u)},Rn.lineEnd=function(){a(t,e)}}function In(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function qn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Hn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Bn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Un(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Gn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Yn(t){return[Math.atan2(t[1],t[0]),It(t[2])]}function Wn(t,e){return k(t[0]-e[0])<Nt&&k(t[1]-e[1])<Nt}a.geo.bounds=function(){var t,e,n,r,o,i,u,l,s,c,f,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=b,s=0,Rn.polygonStart()},polygonEnd:function(){Rn.polygonEnd(),h.point=d,h.lineStart=v,h.lineEnd=g,Dn<0?(t=-(n=180),e=-(r=90)):s>Nt?r=90:s<-Nt&&(e=-90),f[0]=t,f[1]=n}};function d(o,a){c.push(f=[t=o,n=o]),a<e&&(e=a),a>r&&(r=a)}function p(a,i){var u=In([a*At,i*At]);if(l){var s=Hn(l,u),c=Hn([s[1],-s[0],0],s);Gn(c),c=Yn(c);var f=a-o,h=f>0?1:-1,p=c[0]*Ft*h,v=k(f)>180;if(v^(h*o<p&&p<h*a))(g=c[1]*Ft)>r&&(r=g);else if(v^(h*o<(p=(p+360)%360-180)&&p<h*a)){var g;(g=-c[1]*Ft)<e&&(e=g)}else i<e&&(e=i),i>r&&(r=i);v?a<o?w(t,a)>w(t,n)&&(n=a):w(a,n)>w(t,n)&&(t=a):n>=t?(a<t&&(t=a),a>n&&(n=a)):a>o?w(t,a)>w(t,n)&&(n=a):w(a,n)>w(t,n)&&(t=a)}else d(a,i);l=u,o=a}function v(){h.point=p}function g(){f[0]=t,f[1]=n,h.point=d,l=null}function y(t,e){if(l){var n=t-o;s+=k(n)>180?n+(n>0?360:-360):n}else i=t,u=e;Rn.point(t,e),p(t,e)}function m(){Rn.lineStart()}function b(){y(i,u),Rn.lineEnd(),k(s)>Nt&&(t=-(n=180)),f[0]=t,f[1]=n,l=null}function w(t,e){return(e-=t)<0?e+360:e}function x(t,e){return t[0]-e[0]}function _(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}return function(o){if(r=n=-(t=e=1/0),c=[],a.geo.stream(o,h),s=c.length){c.sort(x);for(var i=1,u=[v=c[0]];i<s;++i)_((d=c[i])[0],v)||_(d[1],v)?(w(v[0],d[1])>w(v[0],v[1])&&(v[1]=d[1]),w(d[0],v[1])>w(v[0],v[1])&&(v[0]=d[0])):u.push(v=d);for(var l,s,d,p=-1/0,v=(i=0,u[s=u.length-1]);i<=s;v=d,++i)d=u[i],(l=w(v[1],d[0]))>p&&(p=l,t=d[0],n=v[1])}return c=f=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),a.geo.centroid=function(t){En=jn=Ln=Nn=Mn=Tn=Pn=Cn=On=An=Fn=0,a.geo.stream(t,Vn);var e=On,n=An,r=Fn,o=e*e+n*n+r*r;return o<Mt&&(e=Tn,n=Pn,r=Cn,jn<Nt&&(e=Ln,n=Nn,r=Mn),(o=e*e+n*n+r*r)<Mt)?[NaN,NaN]:[Math.atan2(n,e)*Ft,It(r/Math.sqrt(o))*Ft]};var Vn={sphere:I,point:$n,lineStart:Xn,lineEnd:Kn,polygonStart:function(){Vn.lineStart=Jn},polygonEnd:function(){Vn.lineStart=Xn}};function $n(t,e){t*=At;var n=Math.cos(e*=At);Qn(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Qn(t,e,n){++En,Ln+=(t-Ln)/En,Nn+=(e-Nn)/En,Mn+=(n-Mn)/En}function Xn(){var t,e,n;function r(r,o){r*=At;var a=Math.cos(o*=At),i=a*Math.cos(r),u=a*Math.sin(r),l=Math.sin(o),s=Math.atan2(Math.sqrt((s=e*l-n*u)*s+(s=n*i-t*l)*s+(s=t*u-e*i)*s),t*i+e*u+n*l);jn+=s,Tn+=s*(t+(t=i)),Pn+=s*(e+(e=u)),Cn+=s*(n+(n=l)),Qn(t,e,n)}Vn.point=function(o,a){o*=At;var i=Math.cos(a*=At);t=i*Math.cos(o),e=i*Math.sin(o),n=Math.sin(a),Vn.point=r,Qn(t,e,n)}}function Kn(){Vn.point=$n}function Jn(){var t,e,n,r,o;function a(t,e){t*=At;var a=Math.cos(e*=At),i=a*Math.cos(t),u=a*Math.sin(t),l=Math.sin(e),s=r*l-o*u,c=o*i-n*l,f=n*u-r*i,h=Math.sqrt(s*s+c*c+f*f),d=n*i+r*u+o*l,p=h&&-zt(d)/h,v=Math.atan2(h,d);On+=p*s,An+=p*c,Fn+=p*f,jn+=v,Tn+=v*(n+(n=i)),Pn+=v*(r+(r=u)),Cn+=v*(o+(o=l)),Qn(n,r,o)}Vn.point=function(i,u){t=i,e=u,Vn.point=a,i*=At;var l=Math.cos(u*=At);n=l*Math.cos(i),r=l*Math.sin(i),o=Math.sin(u),Qn(n,r,o)},Vn.lineEnd=function(){a(t,e),Vn.lineEnd=Kn,Vn.point=$n}}function Zn(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function tr(){return!0}function er(t,e,n,r,o){var a=[],i=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(Wn(n,r)){o.lineStart();for(var u=0;u<e;++u)o.point((n=t[u])[0],n[1]);o.lineEnd()}else{var l=new rr(n,t,null,!0),s=new rr(n,null,l,!1);l.o=s,a.push(l),i.push(s),l=new rr(r,t,null,!1),s=new rr(r,null,l,!0),l.o=s,a.push(l),i.push(s)}}})),i.sort(e),nr(a),nr(i),a.length){for(var u=0,l=n,s=i.length;u<s;++u)i[u].e=l=!l;for(var c,f,h=a[0];;){for(var d=h,p=!0;d.v;)if((d=d.n)===h)return;c=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(u=0,s=c.length;u<s;++u)o.point((f=c[u])[0],f[1]);else r(d.x,d.n.x,1,o);d=d.n}else{if(p)for(u=(c=d.p.z).length-1;u>=0;--u)o.point((f=c[u])[0],f[1]);else r(d.x,d.p.x,-1,o);d=d.p}c=(d=d.o).z,p=!p}while(!d.v);o.lineEnd()}}}function nr(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r<e;)o.n=n=t[r],n.p=o,o=n;o.n=n=t[0],n.p=o}}function rr(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function or(t,e,n,r){return function(o,i){var u,l=e(i),s=o.invert(r[0],r[1]),c={point:f,lineStart:d,lineEnd:p,polygonStart:function(){c.point=w,c.lineStart=x,c.lineEnd=k,u=[],v=[]},polygonEnd:function(){c.point=f,c.lineStart=d,c.lineEnd=p,u=a.merge(u);var t=function(t,e){var n=t[0],r=t[1],o=[Math.sin(n),-Math.cos(n),0],a=0,i=0;Dn.reset();for(var u=0,l=e.length;u<l;++u){var s=e[u],c=s.length;if(c)for(var f=s[0],h=f[0],d=f[1]/2+Tt/4,p=Math.sin(d),v=Math.cos(d),g=1;;){g===c&&(g=0);var y=(t=s[g])[0],m=t[1]/2+Tt/4,b=Math.sin(m),w=Math.cos(m),x=y-h,k=x>=0?1:-1,_=k*x,S=_>Tt,E=p*b;if(Dn.add(Math.atan2(E*k*Math.sin(_),v*w+E*Math.cos(_))),a+=S?x+k*Pt:x,S^h>=n^y>=n){var j=Hn(In(f),In(t));Gn(j);var L=Hn(o,j);Gn(L);var N=(S^x>=0?-1:1)*It(L[2]);(r>N||r===N&&(j[0]||j[1]))&&(i+=S^x>=0?1:-1)}if(!g++)break;h=y,p=b,v=w,f=t}}return(a<-Nt||a<Nt&&Dn<-Nt)^1&i}(s,v);u.length?(b||(i.polygonStart(),b=!0),er(u,ur,t,n,i)):t&&(b||(i.polygonStart(),b=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),u=v=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(e,n){var r=o(e,n);t(e=r[0],n=r[1])&&i.point(e,n)}function h(t,e){var n=o(t,e);l.point(n[0],n[1])}function d(){c.point=h,l.lineStart()}function p(){c.point=f,l.lineEnd()}var v,g,y=ir(),m=e(y),b=!1;function w(t,e){g.push([t,e]);var n=o(t,e);m.point(n[0],n[1])}function x(){m.lineStart(),g=[]}function k(){w(g[0][0],g[0][1]),m.lineEnd();var t,e=m.clean(),n=y.buffer(),r=n.length;if(g.pop(),v.push(g),g=null,r)if(1&e){var o,a=-1;if((r=(t=n[0]).length-1)>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++a<r;)i.point((o=t[a])[0],o[1]);i.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),u.push(n.filter(ar))}return c}}function ar(t){return t.length>1}function ir(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:I,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function ur(t,e){return((t=t.x)[0]<0?t[1]-Ot-Nt:Ot-t[1])-((e=e.x)[0]<0?e[1]-Ot-Nt:Ot-e[1])}var lr=or(tr,(function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,i){var u=a>0?Tt:-Tt,l=k(a-n);k(l-Tt)<Nt?(t.point(n,r=(r+i)/2>0?Ot:-Ot),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):o!==u&&l>=Tt&&(k(n-o)<Nt&&(n-=o*Nt),k(a-u)<Nt&&(a-=u*Nt),r=function(t,e,n,r){var o,a,i=Math.sin(t-n);return k(i)>Nt?Math.atan((Math.sin(e)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(e))*Math.sin(t))/(o*a*i)):(e+r)/2}(n,r,a,i),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=i),o=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var o;if(null==t)o=n*Ot,r.point(-Tt,o),r.point(0,o),r.point(Tt,o),r.point(Tt,0),r.point(Tt,-o),r.point(0,-o),r.point(-Tt,-o),r.point(-Tt,0),r.point(-Tt,o);else if(k(t[0]-e[0])>Nt){var a=t[0]<e[0]?Tt:-Tt;o=n*a/2,r.point(-a,o),r.point(0,o),r.point(a,o)}else r.point(e[0],e[1])}),[-Tt,-Tt/2]);function sr(t,e,n,r){return function(o){var a,i=o.a,u=o.b,l=i.x,s=i.y,c=0,f=1,h=u.x-l,d=u.y-s;if(a=t-l,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>c&&(c=a)}if(a=n-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<f&&(f=a)}if(a=e-s,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>c&&(c=a)}if(a=r-s,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<f&&(f=a)}return c>0&&(o.a={x:l+c*h,y:s+c*d}),f<1&&(o.b={x:l+f*h,y:s+f*d}),o}}}}}}var cr=1e9;function fr(t,e,n,r){return function(l){var s,c,f,h,d,p,v,g,y,m,b,w=l,x=ir(),k=sr(t,e,n,r),_={point:j,lineStart:function(){_.point=L,c&&c.push(f=[]);m=!0,y=!1,v=g=NaN},lineEnd:function(){s&&(L(h,d),p&&y&&x.rejoin(),s.push(x.buffer()));_.point=j,y&&l.lineEnd()},polygonStart:function(){l=x,s=[],c=[],b=!0},polygonEnd:function(){l=w,s=a.merge(s);var e=function(t){for(var e=0,n=c.length,r=t[1],o=0;o<n;++o)for(var a,i=1,u=c[o],l=u.length,s=u[0];i<l;++i)a=u[i],s[1]<=r?a[1]>r&&Rt(s,a,t)>0&&++e:a[1]<=r&&Rt(s,a,t)<0&&--e,s=a;return 0!==e}([t,r]),n=b&&e,o=s.length;(n||o)&&(l.polygonStart(),n&&(l.lineStart(),S(null,null,1,l),l.lineEnd()),o&&er(s,i,e,S,l),l.polygonEnd()),s=c=f=null}};function S(a,i,l,s){var c=0,f=0;if(null==a||(c=o(a,l))!==(f=o(i,l))||u(a,i)<0^l>0)do{s.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+l+4)%4)!==f);else s.point(i[0],i[1])}function E(o,a){return t<=o&&o<=n&&e<=a&&a<=r}function j(t,e){E(t,e)&&l.point(t,e)}function L(t,e){var n=E(t=Math.max(-cr,Math.min(cr,t)),e=Math.max(-cr,Math.min(cr,e)));if(c&&f.push([t,e]),m)h=t,d=e,p=n,m=!1,n&&(l.lineStart(),l.point(t,e));else if(n&&y)l.point(t,e);else{var r={a:{x:v,y:g},b:{x:t,y:e}};k(r)?(y||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),n||l.lineEnd(),b=!1):n&&(l.lineStart(),l.point(t,e),b=!1)}v=t,g=e,y=n}return _};function o(r,o){return k(r[0]-t)<Nt?o>0?0:3:k(r[0]-n)<Nt?o>0?2:1:k(r[1]-e)<Nt?o>0?1:0:o>0?3:2}function i(t,e){return u(t.x,e.x)}function u(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function hr(t){var e=0,n=Tt/3,r=Dr(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*Tt/180,n=t[1]*Tt/180):[e/Tt*180,n/Tt*180]},o}function dr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,o=1+n*(2*r-n),a=Math.sqrt(o)/r;function i(t,e){var n=Math.sqrt(o-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),a-n*Math.cos(t)]}return i.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/r,It((o-(t*t+n*n)*r*r)/(2*r))]},i}a.geo.clipExtent=function(){var t,e,n,r,o,a,i={stream:function(t){return o&&(o.valid=!1),(o=a(t)).valid=!0,o},extent:function(u){return arguments.length?(a=fr(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),o&&(o.valid=!1,o=null),i):[[t,e],[n,r]]}};return i.extent([[0,0],[960,500]])},(a.geo.conicEqualArea=function(){return hr(dr)}).raw=dr,a.geo.albers=function(){return a.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},a.geo.albersUsa=function(){var t,e,n,r,o=a.geo.albers(),i=a.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=a.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,n){t=[e,n]}};function s(o){var a=o[0],i=o[1];return t=null,e(a,i),t||(n(a,i),t)||r(a,i),t}return s.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,a=(t[1]-n[1])/e;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?i:a>=.166&&a<.234&&r>=-.214&&r<-.115?u:o).invert(t)},s.stream=function(t){var e=o.stream(t),n=i.stream(t),r=u.stream(t);return{point:function(t,o){e.point(t,o),n.point(t,o),r.point(t,o)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},s.precision=function(t){return arguments.length?(o.precision(t),i.precision(t),u.precision(t),s):o.precision()},s.scale=function(t){return arguments.length?(o.scale(t),i.scale(.35*t),u.scale(t),s.translate(o.translate())):o.scale()},s.translate=function(t){if(!arguments.length)return o.translate();var a=o.scale(),c=+t[0],f=+t[1];return e=o.translate(t).clipExtent([[c-.455*a,f-.238*a],[c+.455*a,f+.238*a]]).stream(l).point,n=i.translate([c-.307*a,f+.201*a]).clipExtent([[c-.425*a+Nt,f+.12*a+Nt],[c-.214*a-Nt,f+.234*a-Nt]]).stream(l).point,r=u.translate([c-.205*a,f+.212*a]).clipExtent([[c-.214*a+Nt,f+.166*a+Nt],[c-.115*a-Nt,f+.234*a-Nt]]).stream(l).point,s},s.scale(1070)};var pr,vr,gr,yr,mr,br,wr={point:I,lineStart:I,lineEnd:I,polygonStart:function(){vr=0,wr.lineStart=xr},polygonEnd:function(){wr.lineStart=wr.lineEnd=wr.point=I,pr+=k(vr/2)}};function xr(){var t,e,n,r;function o(t,e){vr+=r*t-n*e,n=t,r=e}wr.point=function(a,i){wr.point=o,t=n=a,e=r=i},wr.lineEnd=function(){o(t,e)}}var kr={point:function(t,e){t<gr&&(gr=t);t>mr&&(mr=t);e<yr&&(yr=e);e>br&&(br=e)},lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I};function _r(){var t=Sr(4.5),e=[],n={point:r,lineStart:function(){n.point=o},lineEnd:i,polygonStart:function(){n.lineEnd=u},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(e){return t=Sr(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function o(t,r){e.push("M",t,",",r),n.point=a}function a(t,n){e.push("L",t,",",n)}function i(){n.point=r}function u(){e.push("Z")}return n}function Sr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var Er,jr={point:Lr,lineStart:Nr,lineEnd:Mr,polygonStart:function(){jr.lineStart=Tr},polygonEnd:function(){jr.point=Lr,jr.lineStart=Nr,jr.lineEnd=Mr}};function Lr(t,e){Ln+=t,Nn+=e,++Mn}function Nr(){var t,e;function n(n,r){var o=n-t,a=r-e,i=Math.sqrt(o*o+a*a);Tn+=i*(t+n)/2,Pn+=i*(e+r)/2,Cn+=i,Lr(t=n,e=r)}jr.point=function(r,o){jr.point=n,Lr(t=r,e=o)}}function Mr(){jr.point=Lr}function Tr(){var t,e,n,r;function o(t,e){var o=t-n,a=e-r,i=Math.sqrt(o*o+a*a);Tn+=i*(n+t)/2,Pn+=i*(r+e)/2,Cn+=i,On+=(i=r*t-n*e)*(n+t),An+=i*(r+e),Fn+=3*i,Lr(n=t,r=e)}jr.point=function(a,i){jr.point=o,Lr(t=n=a,e=r=i)},jr.lineEnd=function(){o(t,e)}}function Pr(t){var e=4.5,n={point:r,lineStart:function(){n.point=o},lineEnd:i,polygonStart:function(){n.lineEnd=u},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(t){return e=t,n},result:I};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Pt)}function o(e,r){t.moveTo(e,r),n.point=a}function a(e,n){t.lineTo(e,n)}function i(){n.point=r}function u(){t.closePath()}return n}function Cr(t){var e=.5,n=Math.cos(30*At),r=16;function o(t){return(r?i:a)(t)}function a(e){return Ar(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function i(e){var n,o,a,i,l,s,c,f,h,d,p,v,g={point:y,lineStart:m,lineEnd:w,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){f=NaN,g.point=b,e.lineStart()}function b(n,o){var a=In([n,o]),i=t(n,o);u(f,h,c,d,p,v,f=i[0],h=i[1],c=n,d=a[0],p=a[1],v=a[2],r,e),e.point(f,h)}function w(){g.point=y,e.lineEnd()}function x(){m(),g.point=k,g.lineEnd=_}function k(t,e){b(n=t,e),o=f,a=h,i=d,l=p,s=v,g.point=b}function _(){u(f,h,c,d,p,v,o,a,n,i,l,s,r,e),g.lineEnd=w,w()}return g}function u(r,o,a,i,l,s,c,f,h,d,p,v,g,y){var m=c-r,b=f-o,w=m*m+b*b;if(w>4*e&&g--){var x=i+d,_=l+p,S=s+v,E=Math.sqrt(x*x+_*_+S*S),j=Math.asin(S/=E),L=k(k(S)-1)<Nt||k(a-h)<Nt?(a+h)/2:Math.atan2(_,x),N=t(L,j),M=N[0],T=N[1],P=M-r,C=T-o,O=b*P-m*C;(O*O/w>e||k((m*P+b*C)/w-.5)>.3||i*d+l*p+s*v<n)&&(u(r,o,a,i,l,s,M,T,L,x/=E,_/=E,S,g,y),y.point(M,T),u(M,T,L,x,_,S,c,f,h,d,p,v,g,y))}}return o.precision=function(t){return arguments.length?(r=(e=t*t)>0&&16,o):Math.sqrt(e)},o}function Or(t){this.stream=t}function Ar(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Fr(t){return Dr((function(){return t}))()}function Dr(t){var e,n,r,o,i,u,l=Cr((function(t,n){return[(t=e(t,n))[0]*s+o,i-t[1]*s]})),s=150,c=480,f=250,h=0,d=0,p=0,v=0,g=0,y=lr,m=F,b=null,w=null;function x(t){return[(t=r(t[0]*At,t[1]*At))[0]*s+o,i-t[1]*s]}function _(t){return(t=r.invert((t[0]-o)/s,(i-t[1])/s))&&[t[0]*Ft,t[1]*Ft]}function S(){r=Zn(n=qr(p,v,g),e);var t=e(h,d);return o=c-t[0]*s,i=f+t[1]*s,E()}function E(){return u&&(u.valid=!1,u=null),x}return x.stream=function(t){return u&&(u.valid=!1),(u=Rr(y(n,l(m(t))))).valid=!0,u},x.clipAngle=function(t){return arguments.length?(y=null==t?(b=t,lr):function(t){var e=Math.cos(t),n=e>0,r=k(e)>Nt;return or(o,(function(t){var e,u,l,s,c;return{lineStart:function(){s=l=!1,c=1},point:function(f,h){var d,p=[f,h],v=o(f,h),g=n?v?0:i(f,h):v?i(f+(f<0?Tt:-Tt),h):0;if(!e&&(s=l=v)&&t.lineStart(),v!==l&&(d=a(e,p),(Wn(e,d)||Wn(p,d))&&(p[0]+=Nt,p[1]+=Nt,v=o(p[0],p[1]))),v!==l)c=0,v?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(r&&e&&n^v){var y;g&u||!(y=a(p,e,!0))||(c=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||e&&Wn(e,p)||t.point(p[0],p[1]),e=p,l=v,u=g},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return c|(s&&l)<<1}}}),Gr(t,6*At),n?[0,-t]:[-Tt,t-Tt]);function o(t,n){return Math.cos(t)*Math.cos(n)>e}function a(t,n,r){var o=[1,0,0],a=Hn(In(t),In(n)),i=qn(a,a),u=a[0],l=i-u*u;if(!l)return!r&&t;var s=e*i/l,c=-e*u/l,f=Hn(o,a),h=Un(o,s);Bn(h,Un(a,c));var d=f,p=qn(h,d),v=qn(d,d),g=p*p-v*(qn(h,h)-1);if(!(g<0)){var y=Math.sqrt(g),m=Un(d,(-p-y)/v);if(Bn(m,h),m=Yn(m),!r)return m;var b,w=t[0],x=n[0],_=t[1],S=n[1];x<w&&(b=w,w=x,x=b);var E=x-w,j=k(E-Tt)<Nt;if(!j&&S<_&&(b=_,_=S,S=b),j||E<Nt?j?_+S>0^m[1]<(k(m[0]-w)<Nt?_:S):_<=m[1]&&m[1]<=S:E>Tt^(w<=m[0]&&m[0]<=x)){var L=Un(d,(-p+y)/v);return Bn(L,h),[m,Yn(L)]}}}function i(e,r){var o=n?t:Tt-t,a=0;return e<-o?a|=1:e>o&&(a|=2),r<-o?a|=4:r>o&&(a|=8),a}}((b=+t)*At),E()):b},x.clipExtent=function(t){return arguments.length?(w=t,m=t?fr(t[0][0],t[0][1],t[1][0],t[1][1]):F,E()):w},x.scale=function(t){return arguments.length?(s=+t,S()):s},x.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],S()):[c,f]},x.center=function(t){return arguments.length?(h=t[0]%360*At,d=t[1]%360*At,S()):[h*Ft,d*Ft]},x.rotate=function(t){return arguments.length?(p=t[0]%360*At,v=t[1]%360*At,g=t.length>2?t[2]%360*At:0,S()):[p*Ft,v*Ft,g*Ft]},a.rebind(x,l,"precision"),function(){return e=t.apply(this,arguments),x.invert=e.invert&&_,S()}}function Rr(t){return Ar(t,(function(e,n){t.point(e*At,n*At)}))}function zr(t,e){return[t,e]}function Ir(t,e){return[t>Tt?t-Pt:t<-Tt?t+Pt:t,e]}function qr(t,e,n){return t?e||n?Zn(Br(t),Ur(e,n)):Br(t):e||n?Ur(e,n):Ir}function Hr(t){return function(e,n){return[(e+=t)>Tt?e-Pt:e<-Tt?e+Pt:e,n]}}function Br(t){var e=Hr(t);return e.invert=Hr(-t),e}function Ur(t,e){var n=Math.cos(t),r=Math.sin(t),o=Math.cos(e),a=Math.sin(e);function i(t,e){var i=Math.cos(e),u=Math.cos(t)*i,l=Math.sin(t)*i,s=Math.sin(e),c=s*n+u*r;return[Math.atan2(l*o-c*a,u*n-s*r),It(c*o+l*a)]}return i.invert=function(t,e){var i=Math.cos(e),u=Math.cos(t)*i,l=Math.sin(t)*i,s=Math.sin(e),c=s*o-l*a;return[Math.atan2(l*o+s*a,u*n+c*r),It(c*n-u*r)]},i}function Gr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(o,a,i,u){var l=i*e;null!=o?(o=Yr(n,o),a=Yr(n,a),(i>0?o<a:o>a)&&(o+=i*Pt)):(o=t+i*Pt,a=t-.5*l);for(var s,c=o;i>0?c>a:c<a;c-=l)u.point((s=Yn([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],s[1])}}function Yr(t,e){var n=In(e);n[0]-=t,Gn(n);var r=zt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Nt)%(2*Math.PI)}function Wr(t,e,n){var r=a.range(t,e-Nt,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Vr(t,e,n){var r=a.range(t,e-Nt,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function $r(t){return t.source}function Qr(t){return t.target}a.geo.path=function(){var t,e,n,r,o,i=4.5;function u(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),o&&o.valid||(o=n(r)),a.geo.stream(t,o)),r.result()}function l(){return o=null,u}return u.area=function(t){return pr=0,a.geo.stream(t,n(wr)),pr},u.centroid=function(t){return Ln=Nn=Mn=Tn=Pn=Cn=On=An=Fn=0,a.geo.stream(t,n(jr)),Fn?[On/Fn,An/Fn]:Cn?[Tn/Cn,Pn/Cn]:Mn?[Ln/Mn,Nn/Mn]:[NaN,NaN]},u.bounds=function(t){return mr=br=-(gr=yr=1/0),a.geo.stream(t,n(kr)),[[gr,yr],[mr,br]]},u.projection=function(e){return arguments.length?(n=(t=e)?e.stream||(r=e,o=Cr((function(t,e){return r([t*Ft,e*Ft])})),function(t){return Rr(o(t))}):F,l()):t;var r,o},u.context=function(t){return arguments.length?(r=null==(e=t)?new _r:new Pr(t),"function"!=typeof i&&r.pointRadius(i),l()):e},u.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),u):i},u.projection(a.geo.albersUsa()).context(null)},a.geo.transform=function(t){return{stream:function(e){var n=new Or(e);for(var r in t)n[r]=t[r];return n}}},Or.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},a.geo.projection=Fr,a.geo.projectionMutator=Dr,(a.geo.equirectangular=function(){return Fr(zr)}).raw=zr.invert=zr,a.geo.rotation=function(t){function e(e){return(e=t(e[0]*At,e[1]*At))[0]*=Ft,e[1]*=Ft,e}return t=qr(t[0]%360*At,t[1]*At,t.length>2?t[2]*At:0),e.invert=function(e){return(e=t.invert(e[0]*At,e[1]*At))[0]*=Ft,e[1]*=Ft,e},e},Ir.invert=zr,a.geo.circle=function(){var t,e,n=[0,0],r=6;function o(){var t="function"==typeof n?n.apply(this,arguments):n,r=qr(-t[0]*At,-t[1]*At,0).invert,o=[];return e(null,null,1,{point:function(t,e){o.push(t=r(t,e)),t[0]*=Ft,t[1]*=Ft}}),{type:"Polygon",coordinates:[o]}}return o.origin=function(t){return arguments.length?(n=t,o):n},o.angle=function(n){return arguments.length?(e=Gr((t=+n)*At,r*At),o):t},o.precision=function(n){return arguments.length?(e=Gr(t*At,(r=+n)*At),o):r},o.angle(90)},a.geo.distance=function(t,e){var n,r=(e[0]-t[0])*At,o=t[1]*At,a=e[1]*At,i=Math.sin(r),u=Math.cos(r),l=Math.sin(o),s=Math.cos(o),c=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((n=f*i)*n+(n=s*c-l*f*u)*n),l*c+s*f*u)},a.geo.graticule=function(){var t,e,n,r,o,i,u,l,s,c,f,h,d=10,p=d,v=90,g=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:b()}}function b(){return a.range(Math.ceil(r/v)*v,n,v).map(f).concat(a.range(Math.ceil(l/g)*g,u,g).map(h)).concat(a.range(Math.ceil(e/d)*d,t,d).filter((function(t){return k(t%v)>Nt})).map(s)).concat(a.range(Math.ceil(i/p)*p,o,p).filter((function(t){return k(t%g)>Nt})).map(c))}return m.lines=function(){return b().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(u).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.majorExtent(t).minorExtent(t):m.minorExtent()},m.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],l=+t[0][1],u=+t[1][1],r>n&&(t=r,r=n,n=t),l>u&&(t=l,l=u,u=t),m.precision(y)):[[r,l],[n,u]]},m.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],i=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),i>o&&(n=i,i=o,o=n),m.precision(y)):[[e,i],[t,o]]},m.step=function(t){return arguments.length?m.majorStep(t).minorStep(t):m.minorStep()},m.majorStep=function(t){return arguments.length?(v=+t[0],g=+t[1],m):[v,g]},m.minorStep=function(t){return arguments.length?(d=+t[0],p=+t[1],m):[d,p]},m.precision=function(a){return arguments.length?(y=+a,s=Wr(i,o,90),c=Vr(e,t,y),f=Wr(l,u,90),h=Vr(r,n,y),m):y},m.majorExtent([[-180,-90+Nt],[180,90-Nt]]).minorExtent([[-180,-80-Nt],[180,80+Nt]])},a.geo.greatArc=function(){var t,e,n=$r,r=Qr;function o(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return o.distance=function(){return a.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},o.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,o):n},o.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,o):r},o.precision=function(){return arguments.length?o:0},o},a.geo.interpolate=function(t,e){return n=t[0]*At,r=t[1]*At,o=e[0]*At,a=e[1]*At,i=Math.cos(r),u=Math.sin(r),l=Math.cos(a),s=Math.sin(a),c=i*Math.cos(n),f=i*Math.sin(n),h=l*Math.cos(o),d=l*Math.sin(o),p=2*Math.asin(Math.sqrt(Ht(a-r)+i*l*Ht(o-n))),v=1/Math.sin(p),(g=p?function(t){var e=Math.sin(t*=p)*v,n=Math.sin(p-t)*v,r=n*c+e*h,o=n*f+e*d,a=n*u+e*s;return[Math.atan2(o,r)*Ft,Math.atan2(a,Math.sqrt(r*r+o*o))*Ft]}:function(){return[n*Ft,r*Ft]}).distance=p,g;var n,r,o,a,i,u,l,s,c,f,h,d,p,v,g},a.geo.length=function(t){return Er=0,a.geo.stream(t,Xr),Er};var Xr={sphere:I,point:I,lineStart:function(){var t,e,n;function r(r,o){var a=Math.sin(o*=At),i=Math.cos(o),u=k((r*=At)-t),l=Math.cos(u);Er+=Math.atan2(Math.sqrt((u=i*Math.sin(u))*u+(u=n*a-e*i*l)*u),e*a+n*i*l),t=r,e=a,n=i}Xr.point=function(o,a){t=o*At,e=Math.sin(a*=At),n=Math.cos(a),Xr.point=r},Xr.lineEnd=function(){Xr.point=Xr.lineEnd=I}},lineEnd:I,polygonStart:I,polygonEnd:I};function Kr(t,e){function n(e,n){var r=Math.cos(e),o=Math.cos(n),a=t(r*o);return[a*o*Math.sin(e),a*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),o=e(r),a=Math.sin(o),i=Math.cos(o);return[Math.atan2(t*a,r*i),Math.asin(r&&n*a/r)]},n}var Jr=Kr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(a.geo.azimuthalEqualArea=function(){return Fr(Jr)}).raw=Jr;var Zr=Kr((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),F);function to(t,e){var n=Math.cos(t),r=function(t){return Math.tan(Tt/4+t/2)},o=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),a=n*Math.pow(r(t),o)/o;if(!o)return ro;function i(t,e){a>0?e<-Ot+Nt&&(e=-Ot+Nt):e>Ot-Nt&&(e=Ot-Nt);var n=a/Math.pow(r(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}return i.invert=function(t,e){var n=a-e,r=Dt(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Ot]},i}function eo(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),o=n/r+t;if(k(r)<Nt)return zr;function a(t,e){var n=o-e;return[n*Math.sin(r*t),o-n*Math.cos(r*t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,o-Dt(r)*Math.sqrt(t*t+n*n)]},a}(a.geo.azimuthalEquidistant=function(){return Fr(Zr)}).raw=Zr,(a.geo.conicConformal=function(){return hr(to)}).raw=to,(a.geo.conicEquidistant=function(){return hr(eo)}).raw=eo;var no=Kr((function(t){return 1/t}),Math.atan);function ro(t,e){return[t,Math.log(Math.tan(Tt/4+e/2))]}function oo(t){var e,n=Fr(t),r=n.scale,o=n.translate,a=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=o.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var i=a.apply(n,arguments);if(i===n){if(e=null==t){var u=Tt*r(),l=o();a([[l[0]-u,l[1]-u],[l[0]+u,l[1]+u]])}}else e&&(i=null);return i},n.clipExtent(null)}(a.geo.gnomonic=function(){return Fr(no)}).raw=no,ro.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ot]},(a.geo.mercator=function(){return oo(ro)}).raw=ro;var ao=Kr((function(){return 1}),Math.asin);(a.geo.orthographic=function(){return Fr(ao)}).raw=ao;var io=Kr((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function uo(t,e){return[Math.log(Math.tan(Tt/4+e/2)),-t]}function lo(t){return t[0]}function so(t){return t[1]}function co(t){for(var e=t.length,n=[0,1],r=2,o=2;o<e;o++){for(;r>1&&Rt(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function fo(t,e){return t[0]-e[0]||t[1]-e[1]}(a.geo.stereographic=function(){return Fr(io)}).raw=io,uo.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ot]},(a.geo.transverseMercator=function(){var t=oo(uo),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=uo,a.geom={},a.geom.hull=function(t){var e=lo,n=so;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,o=xe(e),a=xe(n),i=t.length,u=[],l=[];for(r=0;r<i;r++)u.push([+o.call(this,t[r],r),+a.call(this,t[r],r),r]);for(u.sort(fo),r=0;r<i;r++)l.push([u[r][0],-u[r][1]]);var s=co(u),c=co(l),f=c[0]===s[0],h=c[c.length-1]===s[s.length-1],d=[];for(r=s.length-1;r>=0;--r)d.push(t[u[s[r]][2]]);for(r=+f;r<c.length-h;++r)d.push(t[u[c[r]][2]]);return d}return r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},a.geom.polygon=function(t){return W(t,ho),t};var ho=a.geom.polygon.prototype=[];function po(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function vo(t,e,n,r){var o=t[0],a=n[0],i=e[0]-o,u=r[0]-a,l=t[1],s=n[1],c=e[1]-l,f=r[1]-s,h=(u*(l-s)-f*(o-a))/(f*i-u*c);return[o+h*i,l+h*c]}function go(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}ho.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],o=0;++e<n;)t=r,r=this[e],o+=t[1]*r[0]-t[0]*r[1];return.5*o},ho.centroid=function(t){var e,n,r=-1,o=this.length,a=0,i=0,u=this[o-1];for(arguments.length||(t=-1/(6*this.area()));++r<o;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],a+=(e[0]+u[0])*n,i+=(e[1]+u[1])*n;return[a*t,i*t]},ho.clip=function(t){for(var e,n,r,o,a,i,u=go(t),l=-1,s=this.length-go(this),c=this[s-1];++l<s;){for(e=t.slice(),t.length=0,o=this[l],a=e[(r=e.length-u)-1],n=-1;++n<r;)po(i=e[n],c,o)?(po(a,c,o)||t.push(vo(a,i,c,o)),t.push(i)):po(a,c,o)&&t.push(vo(a,i,c,o)),a=i;u&&t.push(t[0]),c=o}return t};var yo,mo,bo,wo,xo,ko=[],_o=[];function So(){Uo(this),this.edge=this.site=this.circle=null}function Eo(t){var e=ko.pop()||new So;return e.site=t,e}function jo(t){Fo(t),bo.remove(t),ko.push(t),Uo(t)}function Lo(t){var e=t.circle,n=e.x,r=e.cy,o={x:n,y:r},a=t.P,i=t.N,u=[t];jo(t);for(var l=a;l.circle&&k(n-l.circle.x)<Nt&&k(r-l.circle.cy)<Nt;)a=l.P,u.unshift(l),jo(l),l=a;u.unshift(l),Fo(l);for(var s=i;s.circle&&k(n-s.circle.x)<Nt&&k(r-s.circle.cy)<Nt;)i=s.N,u.push(s),jo(s),s=i;u.push(s),Fo(s);var c,f=u.length;for(c=1;c<f;++c)s=u[c],l=u[c-1],qo(s.edge,l.site,s.site,o);l=u[0],(s=u[f-1]).edge=zo(l.site,s.site,null,o),Ao(l),Ao(s)}function No(t){for(var e,n,r,o,a=t.x,i=t.y,u=bo._;u;)if((r=Mo(u,i)-a)>Nt)u=u.L;else{if(!((o=a-To(u,i))>Nt)){r>-Nt?(e=u.P,n=u):o>-Nt?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var l=Eo(t);if(bo.insert(e,l),e||n){if(e===n)return Fo(e),n=Eo(e.site),bo.insert(l,n),l.edge=n.edge=zo(e.site,l.site),Ao(e),void Ao(n);if(n){Fo(e),Fo(n);var s=e.site,c=s.x,f=s.y,h=t.x-c,d=t.y-f,p=n.site,v=p.x-c,g=p.y-f,y=2*(h*g-d*v),m=h*h+d*d,b=v*v+g*g,w={x:(g*m-d*b)/y+c,y:(h*b-v*m)/y+f};qo(n.edge,s,p,w),l.edge=zo(s,t,null,w),n.edge=zo(t,p,null,w),Ao(e),Ao(n)}else l.edge=zo(e.site,l.site)}}function Mo(t,e){var n=t.site,r=n.x,o=n.y,a=o-e;if(!a)return r;var i=t.P;if(!i)return-1/0;var u=(n=i.site).x,l=n.y,s=l-e;if(!s)return u;var c=u-r,f=1/a-1/s,h=c/s;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*s)-l+s/2+o-a/2)))/f+r:(r+u)/2}function To(t,e){var n=t.N;if(n)return Mo(n,e);var r=t.site;return r.y===e?r.x:1/0}function Po(t){this.site=t,this.edges=[]}function Co(t,e){return e.angle-t.angle}function Oo(){Uo(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ao(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,o=t.site,a=n.site;if(r!==a){var i=o.x,u=o.y,l=r.x-i,s=r.y-u,c=a.x-i,f=2*(l*(g=a.y-u)-s*c);if(!(f>=-Mt)){var h=l*l+s*s,d=c*c+g*g,p=(g*h-s*d)/f,v=(l*d-c*h)/f,g=v+u,y=_o.pop()||new Oo;y.arc=t,y.site=o,y.x=p+i,y.y=g+Math.sqrt(p*p+v*v),y.cy=g,t.circle=y;for(var m=null,b=xo._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){m=b.P;break}b=b.L}else{if(!b.R){m=b;break}b=b.R}xo.insert(m,y),m||(wo=y)}}}}function Fo(t){var e=t.circle;e&&(e.P||(wo=e.N),xo.remove(e),_o.push(e),Uo(e),t.circle=null)}function Do(t,e){var n=t.b;if(n)return!0;var r,o,a=t.a,i=e[0][0],u=e[1][0],l=e[0][1],s=e[1][1],c=t.l,f=t.r,h=c.x,d=c.y,p=f.x,v=f.y,g=(h+p)/2,y=(d+v)/2;if(v===d){if(g<i||g>=u)return;if(h>p){if(a){if(a.y>=s)return}else a={x:g,y:l};n={x:g,y:s}}else{if(a){if(a.y<l)return}else a={x:g,y:s};n={x:g,y:l}}}else if(o=y-(r=(h-p)/(v-d))*g,r<-1||r>1)if(h>p){if(a){if(a.y>=s)return}else a={x:(l-o)/r,y:l};n={x:(s-o)/r,y:s}}else{if(a){if(a.y<l)return}else a={x:(s-o)/r,y:s};n={x:(l-o)/r,y:l}}else if(d<v){if(a){if(a.x>=u)return}else a={x:i,y:r*i+o};n={x:u,y:r*u+o}}else{if(a){if(a.x<i)return}else a={x:u,y:r*u+o};n={x:i,y:r*i+o}}return t.a=a,t.b=n,!0}function Ro(t,e){this.l=t,this.r=e,this.a=this.b=null}function zo(t,e,n,r){var o=new Ro(t,e);return yo.push(o),n&&qo(o,t,e,n),r&&qo(o,e,t,r),mo[t.i].edges.push(new Ho(o,t,e)),mo[e.i].edges.push(new Ho(o,e,t)),o}function Io(t,e,n){var r=new Ro(t,null);return r.a=e,r.b=n,yo.push(r),r}function qo(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function Ho(t,e,n){var r=t.a,o=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function Bo(){this._=null}function Uo(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Go(t,e){var n=e,r=e.R,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Yo(t,e){var n=e,r=e.L,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Wo(t){for(;t.L;)t=t.L;return t}function Vo(t,e){var n,r,o,a=t.sort($o).pop();for(yo=[],mo=new Array(t.length),bo=new Bo,xo=new Bo;;)if(o=wo,a&&(!o||a.y<o.y||a.y===o.y&&a.x<o.x))a.x===n&&a.y===r||(mo[a.i]=new Po(a),No(a),n=a.x,r=a.y),a=t.pop();else{if(!o)break;Lo(o.arc)}e&&(function(t){for(var e,n=yo,r=sr(t[0][0],t[0][1],t[1][0],t[1][1]),o=n.length;o--;)(!Do(e=n[o],t)||!r(e)||k(e.a.x-e.b.x)<Nt&&k(e.a.y-e.b.y)<Nt)&&(e.a=e.b=null,n.splice(o,1))}(e),function(t){for(var e,n,r,o,a,i,u,l,s,c,f=t[0][0],h=t[1][0],d=t[0][1],p=t[1][1],v=mo,g=v.length;g--;)if((a=v[g])&&a.prepare())for(l=(u=a.edges).length,i=0;i<l;)r=(c=u[i].end()).x,o=c.y,e=(s=u[++i%l].start()).x,n=s.y,(k(r-e)>Nt||k(o-n)>Nt)&&(u.splice(i,0,new Ho(Io(a.site,c,k(r-f)<Nt&&p-o>Nt?{x:f,y:k(e-f)<Nt?n:p}:k(o-p)<Nt&&h-r>Nt?{x:k(n-p)<Nt?e:h,y:p}:k(r-h)<Nt&&o-d>Nt?{x:h,y:k(e-h)<Nt?n:d}:k(o-d)<Nt&&r-f>Nt?{x:k(n-d)<Nt?e:f,y:d}:null),a.site,null)),++l)}(e));var i={cells:mo,edges:yo};return bo=xo=yo=mo=null,i}function $o(t,e){return e.y-t.y||e.x-t.x}Po.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)(t=e[n].edge).b&&t.a||e.splice(n,1);return e.sort(Co),e.length},Ho.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Bo.prototype={insert:function(t,e){var n,r,o;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Wo(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.R&&(Go(this,n),n=(t=n).U),n.C=!1,r.C=!0,Yo(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.L&&(Yo(this,n),n=(t=n).U),n.C=!1,r.C=!0,Go(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,o=t.U,a=t.L,i=t.R;if(n=a?i?Wo(i):a:i,o?o.L===t?o.L=n:o.R=n:this._=n,a&&i?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==i?(o=n.U,n.U=t.U,t=n.R,o.L=t,n.R=i,i.U=n):(n.U=o,o=n,t=n.R)):(r=t.C,t=n),t&&(t.U=o),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===o.L){if((e=o.R).C&&(e.C=!1,o.C=!0,Go(this,o),e=o.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Yo(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,Go(this,o),t=this._;break}}else if((e=o.L).C&&(e.C=!1,o.C=!0,Yo(this,o),e=o.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Go(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,Yo(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}},a.geom.voronoi=function(t){var e=lo,n=so,r=e,o=n,a=Qo;if(t)return i(t);function i(t){var e=new Array(t.length),n=a[0][0],r=a[0][1],o=a[1][0],i=a[1][1];return Vo(u(t),a).cells.forEach((function(a,u){var l=a.edges,s=a.site;(e[u]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):s.x>=n&&s.x<=o&&s.y>=r&&s.y<=i?[[n,i],[o,i],[o,r],[n,r]]:[]).point=t[u]})),e}function u(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/Nt)*Nt,y:Math.round(o(t,e)/Nt)*Nt,i:e}}))}return i.links=function(t){return Vo(u(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},i.triangles=function(t){var e=[];return Vo(u(t)).cells.forEach((function(n,r){for(var o,a,i,u,l=n.site,s=n.edges.sort(Co),c=-1,f=s.length,h=s[f-1].edge,d=h.l===l?h.r:h.l;++c<f;)h,o=d,d=(h=s[c].edge).l===l?h.r:h.l,r<o.i&&r<d.i&&(i=o,u=d,((a=l).x-u.x)*(i.y-a.y)-(a.x-i.x)*(u.y-a.y)<0)&&e.push([t[r],t[o.i],t[d.i]])})),e},i.x=function(t){return arguments.length?(r=xe(e=t),i):e},i.y=function(t){return arguments.length?(o=xe(n=t),i):n},i.clipExtent=function(t){return arguments.length?(a=null==t?Qo:t,i):a===Qo?null:a},i.size=function(t){return arguments.length?i.clipExtent(t&&[[0,0],t]):a===Qo?null:a&&a[1]},i};var Qo=[[-1e6,-1e6],[1e6,1e6]];function Xo(t){return t.x}function Ko(t){return t.y}function Jo(t,e,n,r,o,a){if(!t(e,n,r,o,a)){var i=.5*(n+o),u=.5*(r+a),l=e.nodes;l[0]&&Jo(t,l[0],n,r,i,u),l[1]&&Jo(t,l[1],i,r,o,u),l[2]&&Jo(t,l[2],n,u,i,a),l[3]&&Jo(t,l[3],i,u,o,a)}}function Zo(t,e){t=a.rgb(t),e=a.rgb(e);var n=t.r,r=t.g,o=t.b,i=e.r-n,u=e.g-r,l=e.b-o;return function(t){return"#"+pe(Math.round(n+i*t))+pe(Math.round(r+u*t))+pe(Math.round(o+l*t))}}function ta(t,e){var n,r={},o={};for(n in t)n in e?r[n]=aa(t[n],e[n]):o[n]=t[n];for(n in e)n in t||(o[n]=e[n]);return function(t){for(n in r)o[n]=r[n](t);return o}}function ea(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function na(t,e){var n,r,o,a=ra.lastIndex=oa.lastIndex=0,i=-1,u=[],l=[];for(t+="",e+="";(n=ra.exec(t))&&(r=oa.exec(e));)(o=r.index)>a&&(o=e.slice(a,o),u[i]?u[i]+=o:u[++i]=o),(n=n[0])===(r=r[0])?u[i]?u[i]+=r:u[++i]=r:(u[++i]=null,l.push({i,x:ea(n,r)})),a=oa.lastIndex;return a<e.length&&(o=e.slice(a),u[i]?u[i]+=o:u[++i]=o),u.length<2?l[0]?(e=l[0].x,function(t){return e(t)+""}):function(){return e}:(e=l.length,function(t){for(var n,r=0;r<e;++r)u[(n=l[r]).i]=n.x(t);return u.join("")})}a.geom.delaunay=function(t){return a.geom.voronoi().triangles(t)},a.geom.quadtree=function(t,e,n,r,o){var a,i=lo,u=so;if(a=arguments.length)return i=Xo,u=Ko,3===a&&(o=n,r=e,n=e=0),l(t);function l(t){var l,s,c,f,h,d,p,v,g,y=xe(i),m=xe(u);if(null!=e)d=e,p=n,v=r,g=o;else if(v=g=-(d=p=1/0),s=[],c=[],h=t.length,a)for(f=0;f<h;++f)(l=t[f]).x<d&&(d=l.x),l.y<p&&(p=l.y),l.x>v&&(v=l.x),l.y>g&&(g=l.y),s.push(l.x),c.push(l.y);else for(f=0;f<h;++f){var b=+y(l=t[f],f),w=+m(l,f);b<d&&(d=b),w<p&&(p=w),b>v&&(v=b),w>g&&(g=w),s.push(b),c.push(w)}var x=v-d,_=g-p;function S(t,e,n,r,o,a,i,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var l=t.x,s=t.y;if(null!=l)if(k(l-n)+k(s-r)<.01)E(t,e,n,r,o,a,i,u);else{var c=t.point;t.x=t.y=t.point=null,E(t,c,l,s,o,a,i,u),E(t,e,n,r,o,a,i,u)}else t.x=n,t.y=r,t.point=e}else E(t,e,n,r,o,a,i,u)}function E(t,e,n,r,o,a,i,u){var l=.5*(o+i),s=.5*(a+u),c=n>=l,f=r>=s,h=f<<1|c;t.leaf=!1,c?o=l:i=l,f?a=s:u=s,S(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,o,a,i,u)}x>_?g=p+x:v=d+_;var j={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){S(j,t,+y(t,++f),+m(t,f),d,p,v,g)}};if(j.visit=function(t){Jo(t,j,d,p,v,g)},j.find=function(t){return function(t,e,n,r,o,a,i){var u,l=1/0;return function t(s,c,f,h,d){if(!(c>a||f>i||h<r||d<o)){if(p=s.point){var p,v=e-s.x,g=n-s.y,y=v*v+g*g;if(y<l){var m=Math.sqrt(l=y);r=e-m,o=n-m,a=e+m,i=n+m,u=p}}for(var b=s.nodes,w=.5*(c+h),x=.5*(f+d),k=(n>=x)<<1|e>=w,_=k+4;k<_;++k)if(s=b[3&k])switch(3&k){case 0:t(s,c,f,w,x);break;case 1:t(s,w,f,h,x);break;case 2:t(s,c,x,w,d);break;case 3:t(s,w,x,h,d)}}}(t,r,o,a,i),u}(j,t[0],t[1],d,p,v,g)},f=-1,null==e){for(;++f<h;)S(j,t[f],s[f],c[f],d,p,v,g);--f}else t.forEach(j.add);return s=c=t=l=null,j}return l.x=function(t){return arguments.length?(i=t,l):i},l.y=function(t){return arguments.length?(u=t,l):u},l.extent=function(t){return arguments.length?(null==t?e=n=r=o=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],o=+t[1][1]),l):null==e?null:[[e,n],[r,o]]},l.size=function(t){return arguments.length?(null==t?e=n=r=o=null:(e=n=0,r=+t[0],o=+t[1]),l):null==e?null:[r-e,o-n]},l},a.interpolateRgb=Zo,a.interpolateObject=ta,a.interpolateNumber=ea,a.interpolateString=na;var ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oa=new RegExp(ra.source,"g");function aa(t,e){for(var n,r=a.interpolators.length;--r>=0&&!(n=a.interpolators[r](t,e)););return n}function ia(t,e){var n,r=[],o=[],a=t.length,i=e.length,u=Math.min(t.length,e.length);for(n=0;n<u;++n)r.push(aa(t[n],e[n]));for(;n<a;++n)o[n]=t[n];for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<u;++n)o[n]=r[n](t);return o}}a.interpolate=aa,a.interpolators=[function(t,e){var n=typeof e;return("string"===n?we.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Zo:na:e instanceof Wt?Zo:Array.isArray(e)?ia:"object"===n&&isNaN(e)?ta:ea)(t,e)}],a.interpolateArray=ia;var ua=function(){return F},la=a.map({linear:ua,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return ha},cubic:function(){return da},sin:function(){return va},exp:function(){return ga},circle:function(){return ya},elastic:function(t,e){var n;arguments.length<2&&(e=.45);arguments.length?n=e/Pt*Math.asin(1/t):(t=1,n=e/4);return function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Pt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return ma}}),sa=a.map({in:F,out:ca,"in-out":fa,"out-in":function(t){return fa(ca(t))}});function ca(t){return function(e){return 1-t(1-e)}}function fa(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ha(t){return t*t}function da(t){return t*t*t}function pa(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function va(t){return 1-Math.cos(t*Ot)}function ga(t){return Math.pow(2,10*(t-1))}function ya(t){return 1-Math.sqrt(1-t*t)}function ma(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}function ba(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function wa(t){var e,n,r,o=[t.a,t.b],a=[t.c,t.d],i=ka(o),u=xa(o,a),l=ka(((e=a)[0]+=(r=-u)*(n=o)[0],e[1]+=r*n[1],e))||0;o[0]*a[1]<a[0]*o[1]&&(o[0]*=-1,o[1]*=-1,i*=-1,u*=-1),this.rotate=(i?Math.atan2(o[1],o[0]):Math.atan2(-a[0],a[1]))*Ft,this.translate=[t.e,t.f],this.scale=[i,l],this.skew=l?Math.atan2(u,l)*Ft:0}function xa(t,e){return t[0]*e[0]+t[1]*e[1]}function ka(t){var e=Math.sqrt(xa(t,t));return e&&(t[0]/=e,t[1]/=e),e}a.ease=function(t){var e,n=t.indexOf("-"),r=n>=0?t.slice(0,n):t,o=n>=0?t.slice(n+1):"in";return r=la.get(r)||ua,o=sa.get(o)||F,e=o(r.apply(null,i.call(arguments,1))),function(t){return t<=0?0:t>=1?1:e(t)}},a.interpolateHcl=function(t,e){t=a.hcl(t),e=a.hcl(e);var n=t.h,r=t.c,o=t.l,i=e.h-n,u=e.c-r,l=e.l-o;isNaN(u)&&(u=0,r=isNaN(r)?e.c:r);isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360);return function(t){return Jt(n+i*t,r+u*t,o+l*t)+""}},a.interpolateHsl=function(t,e){t=a.hsl(t),e=a.hsl(e);var n=t.h,r=t.s,o=t.l,i=e.h-n,u=e.s-r,l=e.l-o;isNaN(u)&&(u=0,r=isNaN(r)?e.s:r);isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360);return function(t){return Qt(n+i*t,r+u*t,o+l*t)+""}},a.interpolateLab=function(t,e){t=a.lab(t),e=a.lab(e);var n=t.l,r=t.a,o=t.b,i=e.l-n,u=e.a-r,l=e.b-o;return function(t){return ae(n+i*t,r+u*t,o+l*t)+""}},a.interpolateRound=ba,a.transform=function(t){var e=l.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new wa(n?n.matrix:_a)})(t)},wa.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _a={a:1,b:0,c:0,d:1,e:0,f:0};function Sa(t){return t.length?t.pop()+",":""}function Ea(t,e){var n=[],r=[];return t=a.transform(t),e=a.transform(e),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:ea(t[0],e[0])},{i:o-2,x:ea(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}(t.translate,e.translate,n,r),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Sa(n)+"rotate(",null,")")-2,x:ea(t,e)})):e&&n.push(Sa(n)+"rotate("+e+")")}(t.rotate,e.rotate,n,r),function(t,e,n,r){t!==e?r.push({i:n.push(Sa(n)+"skewX(",null,")")-2,x:ea(t,e)}):e&&n.push(Sa(n)+"skewX("+e+")")}(t.skew,e.skew,n,r),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push(Sa(n)+"scale(",null,",",null,")");r.push({i:o-4,x:ea(t[0],e[0])},{i:o-2,x:ea(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Sa(n)+"scale("+e+")")}(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,o=-1,a=r.length;++o<a;)n[(e=r[o]).i]=e.x(t);return n.join("")}}function ja(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function La(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Na(t){for(var e=t.source,n=t.target,r=function(t,e){if(t===e)return t;var n=Ma(t),r=Ma(e),o=n.pop(),a=r.pop(),i=null;for(;o===a;)i=o,o=n.pop(),a=r.pop();return i}(e,n),o=[e];e!==r;)e=e.parent,o.push(e);for(var a=o.length;n!==r;)o.splice(a,0,n),n=n.parent;return o}function Ma(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Ta(t){t.fixed|=2}function Pa(t){t.fixed&=-7}function Ca(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Oa(t){t.fixed&=-5}function Aa(t,e,n){var r=0,o=0;if(t.charge=0,!t.leaf)for(var a,i=t.nodes,u=i.length,l=-1;++l<u;)null!=(a=i[l])&&(Aa(a,e,n),t.charge+=a.charge,r+=a.charge*a.cx,o+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var s=e*n[t.point.index];t.charge+=t.pointCharge=s,r+=s*t.point.x,o+=s*t.point.y}t.cx=r/t.charge,t.cy=o/t.charge}a.interpolateTransform=Ea,a.layout={},a.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Na(t[n]));return e}},a.layout.chord=function(){var t,e,n,r,o,i,u,l={},s=0;function c(){var l,c,h,d,p,v={},g=[],y=a.range(r),m=[];for(t=[],e=[],l=0,d=-1;++d<r;){for(c=0,p=-1;++p<r;)c+=n[d][p];g.push(c),m.push(a.range(r)),l+=c}for(o&&y.sort((function(t,e){return o(g[t],g[e])})),i&&m.forEach((function(t,e){t.sort((function(t,r){return i(n[e][t],n[e][r])}))})),l=(Pt-s*r)/l,c=0,d=-1;++d<r;){for(h=c,p=-1;++p<r;){var b=y[d],w=m[b][p],x=n[b][w],k=c,_=c+=x*l;v[b+"-"+w]={index:b,subindex:w,startAngle:k,endAngle:_,value:x}}e[b]={index:b,startAngle:h,endAngle:c,value:g[b]},c+=s}for(d=-1;++d<r;)for(p=d-1;++p<r;){var S=v[d+"-"+p],E=v[p+"-"+d];(S.value||E.value)&&t.push(S.value<E.value?{source:E,target:S}:{source:S,target:E})}u&&f()}function f(){t.sort((function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(o){return arguments.length?(r=(n=o)&&n.length,t=e=null,l):n},l.padding=function(n){return arguments.length?(s=n,t=e=null,l):s},l.sortGroups=function(n){return arguments.length?(o=n,t=e=null,l):o},l.sortSubgroups=function(e){return arguments.length?(i=e,t=null,l):i},l.sortChords=function(e){return arguments.length?(u=e,t&&f(),l):u},l.chords=function(){return t||c(),t},l.groups=function(){return e||c(),e},l},a.layout.force=function(){var t,e,n,r,o,i,u={},l=a.dispatch("start","tick","end"),s=[1,1],c=.9,f=Fa,h=Da,d=-30,p=Ra,v=.1,g=.64,y=[],m=[];function b(t){return function(e,n,r,o){if(e.point!==t){var a=e.cx-t.x,i=e.cy-t.y,u=o-n,l=a*a+i*i;if(u*u/g<l){if(l<p){var s=e.charge/l;t.px-=a*s,t.py-=i*s}return!0}if(e.point&&l&&l<p){s=e.pointCharge/l;t.px-=a*s,t.py-=i*s}}return!e.charge}}function w(t){t.px=a.event.x,t.py=a.event.y,u.resume()}return u.tick=function(){if((n*=.99)<.005)return t=null,l.end({type:"end",alpha:n=0}),!0;var e,u,f,h,p,g,w,x,k,_=y.length,S=m.length;for(u=0;u<S;++u)h=(f=m[u]).source,(g=(x=(p=f.target).x-h.x)*x+(k=p.y-h.y)*k)&&(x*=g=n*o[u]*((g=Math.sqrt(g))-r[u])/g,k*=g,p.x-=x*(w=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=k*w,h.x+=x*(w=1-w),h.y+=k*w);if((w=n*v)&&(x=s[0]/2,k=s[1]/2,u=-1,w))for(;++u<_;)(f=y[u]).x+=(x-f.x)*w,f.y+=(k-f.y)*w;if(d)for(Aa(e=a.geom.quadtree(y),n,i),u=-1;++u<_;)(f=y[u]).fixed||e.visit(b(f));for(u=-1;++u<_;)(f=y[u]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);l.tick({type:"tick",alpha:n})},u.nodes=function(t){return arguments.length?(y=t,u):y},u.links=function(t){return arguments.length?(m=t,u):m},u.size=function(t){return arguments.length?(s=t,u):s},u.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.friction=function(t){return arguments.length?(c=+t,u):c},u.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.chargeDistance=function(t){return arguments.length?(p=t*t,u):Math.sqrt(p)},u.gravity=function(t){return arguments.length?(v=+t,u):v},u.theta=function(t){return arguments.length?(g=t*t,u):Math.sqrt(g)},u.alpha=function(e){return arguments.length?(e=+e,n?e>0?n=e:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:n=0})):e>0&&(l.start({type:"start",alpha:n=e}),t=Me(u.tick)),u):n},u.start=function(){var t,e,n,a=y.length,l=m.length,c=s[0],p=s[1];for(t=0;t<a;++t)(n=y[t]).index=t,n.weight=0;for(t=0;t<l;++t)"number"==typeof(n=m[t]).source&&(n.source=y[n.source]),"number"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(t=0;t<a;++t)n=y[t],isNaN(n.x)&&(n.x=v("x",c)),isNaN(n.y)&&(n.y=v("y",p)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"==typeof f)for(t=0;t<l;++t)r[t]=+f.call(this,m[t],t);else for(t=0;t<l;++t)r[t]=f;if(o=[],"function"==typeof h)for(t=0;t<l;++t)o[t]=+h.call(this,m[t],t);else for(t=0;t<l;++t)o[t]=h;if(i=[],"function"==typeof d)for(t=0;t<a;++t)i[t]=+d.call(this,y[t],t);else for(t=0;t<a;++t)i[t]=d;function v(n,r){if(!e){for(e=new Array(a),s=0;s<a;++s)e[s]=[];for(s=0;s<l;++s){var o=m[s];e[o.source.index].push(o.target),e[o.target.index].push(o.source)}}for(var i,u=e[t],s=-1,c=u.length;++s<c;)if(!isNaN(i=u[s][n]))return i;return Math.random()*r}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(e||(e=a.behavior.drag().origin(F).on("dragstart.force",Ta).on("drag.force",w).on("dragend.force",Pa)),!arguments.length)return e;this.on("mouseover.force",Ca).on("mouseout.force",Oa).call(e)},a.rebind(u,l,"on")};var Fa=20,Da=1,Ra=1/0;function za(t,e){return a.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=Ga,t}function Ia(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(o=t.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function qa(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(a=t.children)&&(o=a.length))for(var o,a,i=-1;++i<o;)n.push(a[i]);for(;null!=(t=r.pop());)e(t)}function Ha(t){return t.children}function Ba(t){return t.value}function Ua(t,e){return e.value-t.value}function Ga(t){return a.merge(t.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}a.layout.hierarchy=function(){var t=Ua,e=Ha,n=Ba;function r(o){var a,i=[o],u=[];for(o.depth=0;null!=(a=i.pop());)if(u.push(a),(s=e.call(r,a,a.depth))&&(l=s.length)){for(var l,s,c;--l>=0;)i.push(c=s[l]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=s}else n&&(a.value=+n.call(r,a,a.depth)||0),delete a.children;return qa(o,(function(e){var r,o;t&&(r=e.children)&&r.sort(t),n&&(o=e.parent)&&(o.value+=e.value)})),u}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(Ia(t,(function(t){t.children&&(t.value=0)})),qa(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},a.layout.partition=function(){var t=a.layout.hierarchy(),e=[1,1];function n(t,e,r,o){var a=t.children;if(t.x=e,t.y=t.depth*o,t.dx=r,t.dy=o,a&&(i=a.length)){var i,u,l,s=-1;for(r=t.value?r/t.value:0;++s<i;)n(u=a[s],e,l=u.value*r,o),e+=l}}function r(t){var e=t.children,n=0;if(e&&(o=e.length))for(var o,a=-1;++a<o;)n=Math.max(n,r(e[a]));return 1+n}function o(o,a){var i=t.call(this,o,a);return n(i[0],0,e[0],e[1]/r(i[0])),i}return o.size=function(t){return arguments.length?(e=t,o):e},za(o,t)},a.layout.pie=function(){var t=Number,e=Ya,n=0,r=Pt,o=0;function i(u){var l,s=u.length,c=u.map((function(e,n){return+t.call(i,e,n)})),f=+("function"==typeof n?n.apply(this,arguments):n),h=("function"==typeof r?r.apply(this,arguments):r)-f,d=Math.min(Math.abs(h)/s,+("function"==typeof o?o.apply(this,arguments):o)),p=d*(h<0?-1:1),v=a.sum(c),g=v?(h-s*p)/v:0,y=a.range(s),m=[];return null!=e&&y.sort(e===Ya?function(t,e){return c[e]-c[t]}:function(t,n){return e(u[t],u[n])}),y.forEach((function(t){m[t]={data:u[t],value:l=c[t],startAngle:f,endAngle:f+=l*g+p,padAngle:d}})),m}return i.value=function(e){return arguments.length?(t=e,i):t},i.sort=function(t){return arguments.length?(e=t,i):e},i.startAngle=function(t){return arguments.length?(n=t,i):n},i.endAngle=function(t){return arguments.length?(r=t,i):r},i.padAngle=function(t){return arguments.length?(o=t,i):o},i};var Ya={};function Wa(t){return t.x}function Va(t){return t.y}function $a(t,e,n){t.y0=e,t.y=n}a.layout.stack=function(){var t=F,e=Ka,n=Ja,r=$a,o=Wa,i=Va;function u(l,s){if(!(d=l.length))return l;var c=l.map((function(e,n){return t.call(u,e,n)})),f=c.map((function(t){return t.map((function(t,e){return[o.call(u,t,e),i.call(u,t,e)]}))})),h=e.call(u,f,s);c=a.permute(c,h),f=a.permute(f,h);var d,p,v,g,y=n.call(u,f,s),m=c[0].length;for(v=0;v<m;++v)for(r.call(u,c[0][v],g=y[v],f[0][v][1]),p=1;p<d;++p)r.call(u,c[p][v],g+=f[p-1][v][1],f[p][v][1]);return l}return u.values=function(e){return arguments.length?(t=e,u):t},u.order=function(t){return arguments.length?(e="function"==typeof t?t:Qa.get(t)||Ka,u):e},u.offset=function(t){return arguments.length?(n="function"==typeof t?t:Xa.get(t)||Ja,u):n},u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(i=t,u):i},u.out=function(t){return arguments.length?(r=t,u):r},u};var Qa=a.map({"inside-out":function(t){var e,n,r=t.length,o=t.map(Za),i=t.map(ti),u=a.range(r).sort((function(t,e){return o[t]-o[e]})),l=0,s=0,c=[],f=[];for(e=0;e<r;++e)n=u[e],l<s?(l+=i[n],c.push(n)):(s+=i[n],f.push(n));return f.reverse().concat(c)},reverse:function(t){return a.range(t.length).reverse()},default:Ka}),Xa=a.map({silhouette:function(t){var e,n,r,o=t.length,a=t[0].length,i=[],u=0,l=[];for(n=0;n<a;++n){for(e=0,r=0;e<o;e++)r+=t[e][n][1];r>u&&(u=r),i.push(r)}for(n=0;n<a;++n)l[n]=(u-i[n])/2;return l},wiggle:function(t){var e,n,r,o,a,i,u,l,s,c=t.length,f=t[0],h=f.length,d=[];for(d[0]=l=s=0,n=1;n<h;++n){for(e=0,o=0;e<c;++e)o+=t[e][n][1];for(e=0,a=0,u=f[n][0]-f[n-1][0];e<c;++e){for(r=0,i=(t[e][n][1]-t[e][n-1][1])/(2*u);r<e;++r)i+=(t[r][n][1]-t[r][n-1][1])/u;a+=i*t[e][n][1]}d[n]=l-=o?a/o*u:0,l<s&&(s=l)}for(n=0;n<h;++n)d[n]-=s;return d},expand:function(t){var e,n,r,o=t.length,a=t[0].length,i=1/o,u=[];for(n=0;n<a;++n){for(e=0,r=0;e<o;e++)r+=t[e][n][1];if(r)for(e=0;e<o;e++)t[e][n][1]/=r;else for(e=0;e<o;e++)t[e][n][1]=i}for(n=0;n<a;++n)u[n]=0;return u},zero:Ja});function Ka(t){return a.range(t.length)}function Ja(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function Za(t){for(var e,n=1,r=0,o=t[0][1],a=t.length;n<a;++n)(e=t[n][1])>o&&(r=n,o=e);return r}function ti(t){return t.reduce(ei,0)}function ei(t,e){return t+e[1]}function ni(t,e){return ri(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function ri(t,e){for(var n=-1,r=+t[0],o=(t[1]-r)/e,a=[];++n<=e;)a[n]=o*n+r;return a}function oi(t){return[a.min(t),a.max(t)]}function ai(t,e){return t.value-e.value}function ii(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function ui(t,e){t._pack_next=e,e._pack_prev=t}function li(t,e){var n=e.x-t.x,r=e.y-t.y,o=t.r+e.r;return.999*o*o>n*n+r*r}function si(t){if((e=t.children)&&(l=e.length)){var e,n,r,o,a,i,u,l,s=1/0,c=-1/0,f=1/0,h=-1/0;if(e.forEach(ci),(n=e[0]).x=-n.r,n.y=0,b(n),l>1&&((r=e[1]).x=r.r,r.y=0,b(r),l>2))for(di(n,r,o=e[2]),b(o),ii(n,o),n._pack_prev=o,ii(o,r),r=n._pack_next,a=3;a<l;a++){di(n,r,o=e[a]);var d=0,p=1,v=1;for(i=r._pack_next;i!==r;i=i._pack_next,p++)if(li(i,o)){d=1;break}if(1==d)for(u=n._pack_prev;u!==i._pack_prev&&!li(u,o);u=u._pack_prev,v++);d?(p<v||p==v&&r.r<n.r?ui(n,r=i):ui(n=u,r),a--):(ii(n,o),r=o,b(o))}var g=(s+c)/2,y=(f+h)/2,m=0;for(a=0;a<l;a++)(o=e[a]).x-=g,o.y-=y,m=Math.max(m,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=m,e.forEach(fi)}function b(t){s=Math.min(t.x-t.r,s),c=Math.max(t.x+t.r,c),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function ci(t){t._pack_next=t._pack_prev=t}function fi(t){delete t._pack_next,delete t._pack_prev}function hi(t,e,n,r){var o=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,o)for(var a=-1,i=o.length;++a<i;)hi(o[a],e,n,r)}function di(t,e,n){var r=t.r+n.r,o=e.x-t.x,a=e.y-t.y;if(r&&(o||a)){var i=e.r+n.r,u=o*o+a*a,l=.5+((r*=r)-(i*=i))/(2*u),s=Math.sqrt(Math.max(0,2*i*(r+u)-(r-=u)*r-i*i))/(2*u);n.x=t.x+l*o+s*a,n.y=t.y+l*a-s*o}else n.x=t.x+r,n.y=t.y}function pi(t,e){return t.parent==e.parent?1:2}function vi(t){var e=t.children;return e.length?e[0]:t.t}function gi(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function yi(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function mi(t,e,n){return t.a.parent===e.parent?t.a:n}function bi(t){var e=t.children;return e&&e.length?bi(e[0]):t}function wi(t){var e,n=t.children;return n&&(e=n.length)?wi(n[e-1]):t}function xi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function ki(t,e){var n=t.x+e[3],r=t.y+e[0],o=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return o<0&&(n+=o/2,o=0),a<0&&(r+=a/2,a=0),{x:n,y:r,dx:o,dy:a}}function _i(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]}function Si(t){return t.rangeExtent?t.rangeExtent():_i(t.range())}function Ei(t,e,n,r){var o=n(t[0],t[1]),a=r(e[0],e[1]);return function(t){return a(o(t))}}function ji(t,e){var n,r=0,o=t.length-1,a=t[r],i=t[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),t[r]=e.floor(a),t[o]=e.ceil(i),t}function Li(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Ni}a.layout.histogram=function(){var t=!0,e=Number,n=oi,r=ni;function o(o,i){for(var u,l,s=[],c=o.map(e,this),f=n.call(this,c,i),h=r.call(this,f,c,i),d=(i=-1,c.length),p=h.length-1,v=t?1:1/d;++i<p;)(u=s[i]=[]).dx=h[i+1]-(u.x=h[i]),u.y=0;if(p>0)for(i=-1;++i<d;)(l=c[i])>=f[0]&&l<=f[1]&&((u=s[a.bisect(h,l,1,p)-1]).y+=v,u.push(o[i]));return s}return o.value=function(t){return arguments.length?(e=t,o):e},o.range=function(t){return arguments.length?(n=xe(t),o):n},o.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return ri(e,t)}:xe(t),o):r},o.frequency=function(e){return arguments.length?(t=!!e,o):t},o},a.layout.pack=function(){var t,e=a.layout.hierarchy().sort(ai),n=0,r=[1,1];function o(o,a){var i=e.call(this,o,a),u=i[0],l=r[0],s=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(u.x=u.y=0,qa(u,(function(t){t.r=+c(t.value)})),qa(u,si),n){var f=n*(t?1:Math.max(2*u.r/l,2*u.r/s))/2;qa(u,(function(t){t.r+=f})),qa(u,si),qa(u,(function(t){t.r-=f}))}return hi(u,l/2,s/2,t?1:1/Math.max(2*u.r/l,2*u.r/s)),i}return o.size=function(t){return arguments.length?(r=t,o):r},o.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,o):t},o.padding=function(t){return arguments.length?(n=+t,o):n},za(o,e)},a.layout.tree=function(){var t=a.layout.hierarchy().sort(null).value(null),e=pi,n=[1,1],r=null;function o(o,a){var s=t.call(this,o,a),c=s[0],f=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var o,a=e.children,i=0,u=a.length;i<u;++i)r.push((a[i]=o={_:a[i],parent:e,children:(o=a[i].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i}).a=o);return n.children[0]}(c);if(qa(f,i),f.parent.m=-f.z,Ia(f,u),r)Ia(c,l);else{var h=c,d=c,p=c;Ia(c,(function(t){t.x<h.x&&(h=t),t.x>d.x&&(d=t),t.depth>p.depth&&(p=t)}));var v=e(h,d)/2-h.x,g=n[0]/(d.x+e(d,h)/2+v),y=n[1]/(p.depth||1);Ia(c,(function(t){t.x=(t.x+v)*g,t.y=t.depth*y}))}return s}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,o=t.children,a=o.length;for(;--a>=0;)(e=o[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,u=n,l=a.parent.children[0],s=a.m,c=i.m,f=u.m,h=l.m;u=gi(u),a=vi(a),u&&a;)l=vi(l),(i=gi(i)).a=t,(o=u.z+f-a.z-s+e(u._,a._))>0&&(yi(mi(u,t,r),t,o),s+=o,c+=o),f+=u.m,s+=a.m,h+=l.m,c+=i.m;u&&!gi(i)&&(i.t=u,i.m+=f-c),a&&!vi(l)&&(l.t=a,l.m+=s-h,r=t)}return r}(t,o,t.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(t){return arguments.length?(r=null==(n=t)?l:null,o):r?null:n},o.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:l,o):r?n:null},za(o,t)},a.layout.cluster=function(){var t=a.layout.hierarchy().sort(null).value(null),e=pi,n=[1,1],r=!1;function o(o,i){var u,l=t.call(this,o,i),s=l[0],c=0;qa(s,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+a.max(t,(function(t){return t.y}))}(n)):(t.x=u?c+=e(t,u):0,t.y=0,u=t)}));var f=bi(s),h=wi(s),d=f.x-e(f,h)/2,p=h.x+e(h,f)/2;return qa(s,r?function(t){t.x=(t.x-s.x)*n[0],t.y=(s.y-t.y)*n[1]}:function(t){t.x=(t.x-d)/(p-d)*n[0],t.y=(1-(s.y?t.y/s.y:1))*n[1]}),l}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(t){return arguments.length?(r=null==(n=t),o):r?null:n},o.nodeSize=function(t){return arguments.length?(r=null!=(n=t),o):r?n:null},za(o,t)},a.layout.treemap=function(){var t,e=a.layout.hierarchy(),n=Math.round,r=[1,1],o=null,i=xi,u=!1,l="squarify",s=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,o=-1,a=t.length;++o<a;)r=(n=t[o]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function f(t){var e=t.children;if(e&&e.length){var n,r,o,a=i(t),u=[],s=e.slice(),h=1/0,v="slice"===l?a.dx:"dice"===l?a.dy:"slice-dice"===l?1&t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(c(s,a.dx*a.dy/t.value),u.area=0;(o=s.length)>0;)u.push(n=s[o-1]),u.area+=n.area,"squarify"!==l||(r=d(u,v))<=h?(s.pop(),h=r):(u.area-=u.pop().area,p(u,v,a,!1),v=Math.min(a.dx,a.dy),u.length=u.area=0,h=1/0);u.length&&(p(u,v,a,!0),u.length=u.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var n,r=i(t),o=e.slice(),a=[];for(c(o,r.dx*r.dy/t.value),a.area=0;n=o.pop();)a.push(n),a.area+=n.area,null!=n.z&&(p(a,n.z?r.dx:r.dy,r,!o.length),a.length=a.area=0);e.forEach(h)}}function d(t,e){for(var n,r=t.area,o=0,a=1/0,i=-1,u=t.length;++i<u;)(n=t[i].area)&&(n<a&&(a=n),n>o&&(o=n));return e*=e,(r*=r)?Math.max(e*o*s/r,r/(e*a*s)):1/0}function p(t,e,r,o){var a,i=-1,u=t.length,l=r.x,s=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((o||c>r.dy)&&(c=r.dy);++i<u;)(a=t[i]).x=l,a.y=s,a.dy=c,l+=a.dx=Math.min(r.x+r.dx-l,c?n(a.area/c):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=c,r.dy-=c}else{for((o||c>r.dx)&&(c=r.dx);++i<u;)(a=t[i]).x=l,a.y=s,a.dx=c,s+=a.dy=Math.min(r.y+r.dy-s,c?n(a.area/c):0);a.z=!1,a.dy+=r.y+r.dy-s,r.x+=c,r.dx-=c}}function v(n){var o=t||e(n),a=o[0];return a.x=a.y=0,a.value?(a.dx=r[0],a.dy=r[1]):a.dx=a.dy=0,t&&e.revalue(a),c([a],a.dx*a.dy/a.value),(t?h:f)(a),u&&(t=o),o}return v.size=function(t){return arguments.length?(r=t,v):r},v.padding=function(t){if(!arguments.length)return o;function e(e){return ki(e,t)}var n;return i=null==(o=t)?xi:"function"==(n=typeof t)?function(e){var n=t.call(v,e,e.depth);return null==n?xi(e):ki(e,"number"==typeof n?[n,n,n,n]:n)}:"number"===n?(t=[t,t,t,t],e):e,v},v.round=function(t){return arguments.length?(n=t?Math.round:Number,v):n!=Number},v.sticky=function(e){return arguments.length?(u=e,t=null,v):u},v.ratio=function(t){return arguments.length?(s=t,v):s},v.mode=function(t){return arguments.length?(l=t+"",v):l},za(v,e)},a.random={normal:function(t,e){var n=arguments.length;return n<2&&(e=1),n<1&&(t=0),function(){var n,r,o;do{o=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!o||o>1);return t+e*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=a.random.normal.apply(a,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=a.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n<t;n++)e+=Math.random();return e}}},a.scale={};var Ni={floor:F,ceil:F};function Mi(t,e,n,r){var o=[],i=[],u=0,l=Math.min(t.length,e.length)-1;for(t[l]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<=l;)o.push(n(t[u-1],t[u])),i.push(r(e[u-1],e[u]));return function(e){var n=a.bisect(t,e,1,l)-1;return i[n](o[n](e))}}function Ti(t,e,n,r){var o,a;function i(){var i=Math.min(t.length,e.length)>2?Mi:Ei,l=r?La:ja;return o=i(t,e,l,n),a=i(e,t,l,aa),u}function u(t){return o(t)}return u.invert=function(t){return a(t)},u.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},u.range=function(t){return arguments.length?(e=t,i()):e},u.rangeRound=function(t){return u.range(t).interpolate(ba)},u.clamp=function(t){return arguments.length?(r=t,i()):r},u.interpolate=function(t){return arguments.length?(n=t,i()):n},u.ticks=function(e){return Ai(t,e)},u.tickFormat=function(e,n){return Fi(t,e,n)},u.nice=function(e){return Ci(t,e),i()},u.copy=function(){return Ti(t,e,n,r)},i()}function Pi(t,e){return a.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Ci(t,e){return ji(t,Li(Oi(t,e)[2])),ji(t,Li(Oi(t,e)[2])),t}function Oi(t,e){null==e&&(e=10);var n=_i(t),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),a=e/r*o;return a<=.15?o*=10:a<=.35?o*=5:a<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function Ai(t,e){return a.range.apply(a,Oi(t,e))}function Fi(t,e,n){var r=Oi(t,e);if(n){var o=De.exec(n);if(o.shift(),"s"===o[8]){var i=a.formatPrefix(Math.max(k(r[0]),k(r[1])));return o[7]||(o[7]="."+Ri(i.scale(r[2]))),o[8]="f",n=a.format(o.join("")),function(t){return n(i.scale(t))+i.symbol}}o[7]||(o[7]="."+function(t,e){var n=Ri(e[2]);return t in Di?Math.abs(n-Ri(Math.max(k(e[0]),k(e[1]))))+ +("e"!==t):n-2*("%"===t)}(o[8],r)),n=o.join("")}else n=",."+Ri(r[2])+"f";return a.format(n)}a.scale.linear=function(){return Ti([0,1],[0,1],aa,!1)};var Di={s:1,g:1,p:1,r:1,e:1};function Ri(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function zi(t,e,n,r){function o(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function i(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function u(e){return t(o(e))}return u.invert=function(e){return i(t.invert(e))},u.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),u):r},u.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),u):e},u.nice=function(){var e=ji(r.map(o),n?Math:qi);return t.domain(e),r=e.map(i),u},u.ticks=function(){var t=_i(r),a=[],u=t[0],l=t[1],s=Math.floor(o(u)),c=Math.ceil(o(l)),f=e%1?2:e;if(isFinite(c-s)){if(n){for(;s<c;s++)for(var h=1;h<f;h++)a.push(i(s)*h);a.push(i(s))}else for(a.push(i(s));s++<c;)for(h=f-1;h>0;h--)a.push(i(s)*h);for(s=0;a[s]<u;s++);for(c=a.length;a[c-1]>l;c--);a=a.slice(s,c)}return a},u.tickFormat=function(t,n){if(!arguments.length)return Ii;arguments.length<2?n=Ii:"function"!=typeof n&&(n=a.format(n));var r=Math.max(1,e*t/u.ticks().length);return function(t){var a=t/i(Math.round(o(t)));return a*e<e-.5&&(a*=e),a<=r?n(t):""}},u.copy=function(){return zi(t.copy(),e,n,r)},Pi(u,t)}a.scale.log=function(){return zi(a.scale.linear().domain([0,1]),10,!0,[1,10])};var Ii=a.format(".0e"),qi={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Hi(t,e,n){var r=Bi(e),o=Bi(1/e);function a(e){return t(r(e))}return a.invert=function(e){return o(t.invert(e))},a.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(r)),a):n},a.ticks=function(t){return Ai(n,t)},a.tickFormat=function(t,e){return Fi(n,t,e)},a.nice=function(t){return a.domain(Ci(n,t))},a.exponent=function(i){return arguments.length?(r=Bi(e=i),o=Bi(1/e),t.domain(n.map(r)),a):e},a.copy=function(){return Hi(t.copy(),e,n)},Pi(a,t)}function Bi(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ui(t,e){var n,r,o;function i(o){return r[((n.get(o)||("range"===e.t?n.set(o,t.push(o)):NaN))-1)%r.length]}function u(e,n){return a.range(t.length).map((function(t){return e+n*t}))}return i.domain=function(r){if(!arguments.length)return t;t=[],n=new S;for(var o,a=-1,u=r.length;++a<u;)n.has(o=r[a])||n.set(o,t.push(o));return i[e.t].apply(i,e.a)},i.range=function(t){return arguments.length?(r=t,o=0,e={t:"range",a:arguments},i):r},i.rangePoints=function(n,a){arguments.length<2&&(a=0);var l=n[0],s=n[1],c=t.length<2?(l=(l+s)/2,0):(s-l)/(t.length-1+a);return r=u(l+c*a/2,c),o=0,e={t:"rangePoints",a:arguments},i},i.rangeRoundPoints=function(n,a){arguments.length<2&&(a=0);var l=n[0],s=n[1],c=t.length<2?(l=s=Math.round((l+s)/2),0):(s-l)/(t.length-1+a)|0;return r=u(l+Math.round(c*a/2+(s-l-(t.length-1+a)*c)/2),c),o=0,e={t:"rangeRoundPoints",a:arguments},i},i.rangeBands=function(n,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var s=n[1]<n[0],c=n[s-0],f=(n[1-s]-c)/(t.length-a+2*l);return r=u(c+f*l,f),s&&r.reverse(),o=f*(1-a),e={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(n,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var s=n[1]<n[0],c=n[s-0],f=n[1-s],h=Math.floor((f-c)/(t.length-a+2*l));return r=u(c+Math.round((f-c-(t.length-a)*h)/2),h),s&&r.reverse(),o=Math.round(h*(1-a)),e={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return o},i.rangeExtent=function(){return _i(e.a[0])},i.copy=function(){return Ui(t,e)},i.domain(t)}a.scale.pow=function(){return Hi(a.scale.linear(),1,[0,1])},a.scale.sqrt=function(){return a.scale.pow().exponent(.5)},a.scale.ordinal=function(){return Ui([],{t:"range",a:[[]]})},a.scale.category10=function(){return a.scale.ordinal().range(Gi)},a.scale.category20=function(){return a.scale.ordinal().range(Yi)},a.scale.category20b=function(){return a.scale.ordinal().range(Wi)},a.scale.category20c=function(){return a.scale.ordinal().range(Vi)};var Gi=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(he),Yi=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(he),Wi=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(he),Vi=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(he);function $i(t,e){var n;function r(){var r=0,i=e.length;for(n=[];++r<i;)n[r-1]=a.quantile(t,r/i);return o}function o(t){if(!isNaN(t=+t))return e[a.bisect(n,t)]}return o.domain=function(e){return arguments.length?(t=e.map(y).filter(m).sort(g),r()):t},o.range=function(t){return arguments.length?(e=t,r()):e},o.quantiles=function(){return n},o.invertExtent=function(r){return(r=e.indexOf(r))<0?[NaN,NaN]:[r>0?n[r-1]:t[0],r<n.length?n[r]:t[t.length-1]]},o.copy=function(){return $i(t,e)},r()}function Qi(t,e,n){var r,o;function a(e){return n[Math.max(0,Math.min(o,Math.floor(r*(e-t))))]}function i(){return r=n.length/(e-t),o=n.length-1,a}return a.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},a.range=function(t){return arguments.length?(n=t,i()):n},a.invertExtent=function(e){return[e=(e=n.indexOf(e))<0?NaN:e/r+t,e+1/r]},a.copy=function(){return Qi(t,e,n)},i()}function Xi(t,e){function n(n){if(n<=n)return e[a.bisect(t,n)]}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return Xi(t,e)},n}function Ki(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return Ai(t,e)},e.tickFormat=function(e,n){return Fi(t,e,n)},e.copy=function(){return Ki(t)},e}function Ji(){return 0}a.scale.quantile=function(){return $i([],[])},a.scale.quantize=function(){return Qi(0,1,[0,1])},a.scale.threshold=function(){return Xi([.5],[0,1])},a.scale.identity=function(){return Ki([0,1])},a.svg={},a.svg.arc=function(){var t=tu,e=eu,n=Ji,r=Zi,o=nu,a=ru,i=ou;function u(){var u=Math.max(0,+t.apply(this,arguments)),s=Math.max(0,+e.apply(this,arguments)),c=o.apply(this,arguments)-Ot,f=a.apply(this,arguments)-Ot,h=Math.abs(f-c),d=c>f?0:1;if(s<u&&(p=s,s=u,u=p),h>=Ct)return l(s,d)+(u?l(u,1-d):"")+"Z";var p,v,g,y,m,b,w,x,k,_,S,E,j=0,L=0,N=[];if((y=(+i.apply(this,arguments)||0)/2)&&(g=r===Zi?Math.sqrt(u*u+s*s):+r.apply(this,arguments),d||(L*=-1),s&&(L=It(g/s*Math.sin(y))),u&&(j=It(g/u*Math.sin(y)))),s){m=s*Math.cos(c+L),b=s*Math.sin(c+L),w=s*Math.cos(f-L),x=s*Math.sin(f-L);var M=Math.abs(f-c-2*L)<=Tt?0:1;if(L&&au(m,b,w,x)===d^M){var T=(c+f)/2;m=s*Math.cos(T),b=s*Math.sin(T),w=x=null}}else m=b=0;if(u){k=u*Math.cos(f-j),_=u*Math.sin(f-j),S=u*Math.cos(c+j),E=u*Math.sin(c+j);var P=Math.abs(c-f+2*j)<=Tt?0:1;if(j&&au(k,_,S,E)===1-d^P){var C=(c+f)/2;k=u*Math.cos(C),_=u*Math.sin(C),S=E=null}}else k=_=0;if(h>Nt&&(p=Math.min(Math.abs(s-u)/2,+n.apply(this,arguments)))>.001){v=u<s^d?0:1;var O=p,A=p;if(h<Tt){var F=null==S?[k,_]:null==w?[m,b]:vo([m,b],[S,E],[w,x],[k,_]),D=m-F[0],R=b-F[1],z=w-F[0],I=x-F[1],q=1/Math.sin(Math.acos((D*z+R*I)/(Math.sqrt(D*D+R*R)*Math.sqrt(z*z+I*I)))/2),H=Math.sqrt(F[0]*F[0]+F[1]*F[1]);A=Math.min(p,(u-H)/(q-1)),O=Math.min(p,(s-H)/(q+1))}if(null!=w){var B=iu(null==S?[k,_]:[S,E],[m,b],s,O,d),U=iu([w,x],[k,_],s,O,d);p===O?N.push("M",B[0],"A",O,",",O," 0 0,",v," ",B[1],"A",s,",",s," 0 ",1-d^au(B[1][0],B[1][1],U[1][0],U[1][1]),",",d," ",U[1],"A",O,",",O," 0 0,",v," ",U[0]):N.push("M",B[0],"A",O,",",O," 0 1,",v," ",U[0])}else N.push("M",m,",",b);if(null!=S){var G=iu([m,b],[S,E],u,-A,d),Y=iu([k,_],null==w?[m,b]:[w,x],u,-A,d);p===A?N.push("L",Y[0],"A",A,",",A," 0 0,",v," ",Y[1],"A",u,",",u," 0 ",d^au(Y[1][0],Y[1][1],G[1][0],G[1][1]),",",1-d," ",G[1],"A",A,",",A," 0 0,",v," ",G[0]):N.push("L",Y[0],"A",A,",",A," 0 0,",v," ",G[0])}else N.push("L",k,",",_)}else N.push("M",m,",",b),null!=w&&N.push("A",s,",",s," 0 ",M,",",d," ",w,",",x),N.push("L",k,",",_),null!=S&&N.push("A",u,",",u," 0 ",P,",",1-d," ",S,",",E);return N.push("Z"),N.join("")}function l(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}return u.innerRadius=function(e){return arguments.length?(t=xe(e),u):t},u.outerRadius=function(t){return arguments.length?(e=xe(t),u):e},u.cornerRadius=function(t){return arguments.length?(n=xe(t),u):n},u.padRadius=function(t){return arguments.length?(r=t==Zi?Zi:xe(t),u):r},u.startAngle=function(t){return arguments.length?(o=xe(t),u):o},u.endAngle=function(t){return arguments.length?(a=xe(t),u):a},u.padAngle=function(t){return arguments.length?(i=xe(t),u):i},u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ot;return[Math.cos(r)*n,Math.sin(r)*n]},u};var Zi="auto";function tu(t){return t.innerRadius}function eu(t){return t.outerRadius}function nu(t){return t.startAngle}function ru(t){return t.endAngle}function ou(t){return t&&t.padAngle}function au(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function iu(t,e,n,r,o){var a=t[0]-e[0],i=t[1]-e[1],u=(o?r:-r)/Math.sqrt(a*a+i*i),l=u*i,s=-u*a,c=t[0]+l,f=t[1]+s,h=e[0]+l,d=e[1]+s,p=(c+h)/2,v=(f+d)/2,g=h-c,y=d-f,m=g*g+y*y,b=n-r,w=c*d-h*f,x=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*m-w*w)),k=(w*y-g*x)/m,_=(-w*g-y*x)/m,S=(w*y+g*x)/m,E=(-w*g+y*x)/m,j=k-p,L=_-v,N=S-p,M=E-v;return j*j+L*L>N*N+M*M&&(k=S,_=E),[[k-l,_-s],[k*n/b,_*n/b]]}function uu(t){var e=lo,n=so,r=tr,o=su,a=o.key,i=.7;function u(a){var u,l=[],s=[],c=-1,f=a.length,h=xe(e),d=xe(n);function p(){l.push("M",o(t(s),i))}for(;++c<f;)r.call(this,u=a[c],c)?s.push([+h.call(this,u,c),+d.call(this,u,c)]):s.length&&(p(),s=[]);return s.length&&p(),l.length?l.join(""):null}return u.x=function(t){return arguments.length?(e=t,u):e},u.y=function(t){return arguments.length?(n=t,u):n},u.defined=function(t){return arguments.length?(r=t,u):r},u.interpolate=function(t){return arguments.length?(a="function"==typeof t?o=t:(o=lu.get(t)||su).key,u):a},u.tension=function(t){return arguments.length?(i=t,u):i},u}a.svg.line=function(){return uu(F)};var lu=a.map({linear:su,"linear-closed":cu,step:function(t){var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];for(;++e<n;)o.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);n>1&&o.push("H",r[0]);return o.join("")},"step-before":fu,"step-after":hu,basis:vu,"basis-open":function(t){if(t.length<4)return su(t);var e,n=[],r=-1,o=t.length,a=[0],i=[0];for(;++r<3;)e=t[r],a.push(e[0]),i.push(e[1]);n.push(gu(bu,a)+","+gu(bu,i)),--r;for(;++r<o;)e=t[r],a.shift(),a.push(e[0]),i.shift(),i.push(e[1]),wu(n,a,i);return n.join("")},"basis-closed":function(t){var e,n,r=-1,o=t.length,a=o+4,i=[],u=[];for(;++r<4;)n=t[r%o],i.push(n[0]),u.push(n[1]);e=[gu(bu,i),",",gu(bu,u)],--r;for(;++r<a;)n=t[r%o],i.shift(),i.push(n[0]),u.shift(),u.push(n[1]),wu(e,i,u);return e.join("")},bundle:function(t,e){var n=t.length-1;if(n)for(var r,o,a=t[0][0],i=t[0][1],u=t[n][0]-a,l=t[n][1]-i,s=-1;++s<=n;)o=s/n,(r=t[s])[0]=e*r[0]+(1-e)*(a+o*u),r[1]=e*r[1]+(1-e)*(i+o*l);return vu(t)},cardinal:function(t,e){return t.length<3?su(t):t[0]+du(t,pu(t,e))},"cardinal-open":function(t,e){return t.length<4?su(t):t[1]+du(t.slice(1,-1),pu(t,e))},"cardinal-closed":function(t,e){return t.length<3?cu(t):t[0]+du((t.push(t[0]),t),pu([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?su(t):t[0]+du(t,function(t){var e,n,r,o,a=[],i=function(t){var e=0,n=t.length-1,r=[],o=t[0],a=t[1],i=r[0]=xu(o,a);for(;++e<n;)r[e]=(i+(i=xu(o=a,a=t[e+1])))/2;return r[e]=i,r}(t),u=-1,l=t.length-1;for(;++u<l;)e=xu(t[u],t[u+1]),k(e)<Nt?i[u]=i[u+1]=0:(o=(n=i[u]/e)*n+(r=i[u+1]/e)*r)>9&&(o=3*e/Math.sqrt(o),i[u]=o*n,i[u+1]=o*r);u=-1;for(;++u<=l;)o=(t[Math.min(l,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+i[u]*i[u])),a.push([o||0,i[u]*o||0]);return a}(t))}});function su(t){return t.length>1?t.join("L"):t+"Z"}function cu(t){return t.join("L")+"Z"}function fu(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e<n;)o.push("V",(r=t[e])[1],"H",r[0]);return o.join("")}function hu(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e<n;)o.push("H",(r=t[e])[0],"V",r[1]);return o.join("")}function du(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return su(t);var n=t.length!=e.length,r="",o=t[0],a=t[1],i=e[0],u=i,l=1;if(n&&(r+="Q"+(a[0]-2*i[0]/3)+","+(a[1]-2*i[1]/3)+","+a[0]+","+a[1],o=t[1],l=2),e.length>1){u=e[1],a=t[l],l++,r+="C"+(o[0]+i[0])+","+(o[1]+i[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var s=2;s<e.length;s++,l++)a=t[l],u=e[s],r+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}if(n){var c=t[l];r+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function pu(t,e){for(var n,r=[],o=(1-e)/2,a=t[0],i=t[1],u=1,l=t.length;++u<l;)n=a,a=i,i=t[u],r.push([o*(i[0]-n[0]),o*(i[1]-n[1])]);return r}function vu(t){if(t.length<3)return su(t);var e=1,n=t.length,r=t[0],o=r[0],a=r[1],i=[o,o,o,(r=t[1])[0]],u=[a,a,a,r[1]],l=[o,",",a,"L",gu(bu,i),",",gu(bu,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],i.shift(),i.push(r[0]),u.shift(),u.push(r[1]),wu(l,i,u);return t.pop(),l.push("L",r),l.join("")}function gu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}lu.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var yu=[0,2/3,1/3,0],mu=[0,1/3,2/3,0],bu=[0,1/6,2/3,1/6];function wu(t,e,n){t.push("C",gu(yu,e),",",gu(yu,n),",",gu(mu,e),",",gu(mu,n),",",gu(bu,e),",",gu(bu,n))}function xu(t,e){return(e[1]-t[1])/(e[0]-t[0])}function ku(t){for(var e,n,r,o=-1,a=t.length;++o<a;)n=(e=t[o])[0],r=e[1]-Ot,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function _u(t){var e=lo,n=lo,r=0,o=so,a=tr,i=su,u=i.key,l=i,s="L",c=.7;function f(u){var f,h,d,p=[],v=[],g=[],y=-1,m=u.length,b=xe(e),w=xe(r),x=e===n?function(){return h}:xe(n),k=r===o?function(){return d}:xe(o);function _(){p.push("M",i(t(g),c),s,l(t(v.reverse()),c),"Z")}for(;++y<m;)a.call(this,f=u[y],y)?(v.push([h=+b.call(this,f,y),d=+w.call(this,f,y)]),g.push([+x.call(this,f,y),+k.call(this,f,y)])):v.length&&(_(),v=[],g=[]);return v.length&&_(),p.length?p.join(""):null}return f.x=function(t){return arguments.length?(e=n=t,f):n},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(n=t,f):n},f.y=function(t){return arguments.length?(r=o=t,f):o},f.y0=function(t){return arguments.length?(r=t,f):r},f.y1=function(t){return arguments.length?(o=t,f):o},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(u="function"==typeof t?i=t:(i=lu.get(t)||su).key,l=i.reverse||i,s=i.closed?"M":"L",f):u},f.tension=function(t){return arguments.length?(c=t,f):c},f}function Su(t){return t.radius}function Eu(t){return[t.x,t.y]}function ju(){return 64}function Lu(){return"circle"}function Nu(t){var e=Math.sqrt(t/Tt);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}a.svg.line.radial=function(){var t=uu(ku);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},fu.reverse=hu,hu.reverse=fu,a.svg.area=function(){return _u(F)},a.svg.area.radial=function(){var t=_u(ku);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},a.svg.chord=function(){var t=$r,e=Qr,n=Su,r=nu,o=ru;function a(n,r){var o,a,s=i(this,t,n,r),c=i(this,e,n,r);return"M"+s.p0+u(s.r,s.p1,s.a1-s.a0)+(a=c,((o=s).a0==a.a0&&o.a1==a.a1?l(s.r,s.p1,s.r,s.p0):l(s.r,s.p1,c.r,c.p0)+u(c.r,c.p1,c.a1-c.a0)+l(c.r,c.p1,s.r,s.p0))+"Z")}function i(t,e,a,i){var u=e.call(t,a,i),l=n.call(t,u,i),s=r.call(t,u,i)-Ot,c=o.call(t,u,i)-Ot;return{r:l,a0:s,a1:c,p0:[l*Math.cos(s),l*Math.sin(s)],p1:[l*Math.cos(c),l*Math.sin(c)]}}function u(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Tt)+",1 "+e}function l(t,e,n,r){return"Q 0,0 "+r}return a.radius=function(t){return arguments.length?(n=xe(t),a):n},a.source=function(e){return arguments.length?(t=xe(e),a):t},a.target=function(t){return arguments.length?(e=xe(t),a):e},a.startAngle=function(t){return arguments.length?(r=xe(t),a):r},a.endAngle=function(t){return arguments.length?(o=xe(t),a):o},a},a.svg.diagonal=function(){var t=$r,e=Qr,n=Eu;function r(r,o){var a=t.call(this,r,o),i=e.call(this,r,o),u=(a.y+i.y)/2,l=[a,{x:a.x,y:u},{x:i.x,y:u},i];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(e){return arguments.length?(t=xe(e),r):t},r.target=function(t){return arguments.length?(e=xe(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},a.svg.diagonal.radial=function(){var t=a.svg.diagonal(),e=Eu,n=t.projection;return t.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Ot;return[n*Math.cos(r),n*Math.sin(r)]}}(e=t)):e},t},a.svg.symbol=function(){var t=Lu,e=ju;function n(n,r){return(Mu.get(t.call(this,n,r))||Nu)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=xe(e),n):t},n.size=function(t){return arguments.length?(e=xe(t),n):e},n};var Mu=a.map({circle:Nu,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Pu)),n=e*Pu;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Tu),n=e*Tu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Tu),n=e*Tu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});a.svg.symbolTypes=Mu.keys();var Tu=Math.sqrt(3),Pu=Math.tan(30*At);K.transition=function(t){for(var e,n,r=Fu||++zu,o=Hu(t),a=[],i=Du||{time:Date.now(),ease:pa,delay:0,duration:250},u=-1,l=this.length;++u<l;){a.push(e=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(n=s[c])&&Bu(n,c,o,r,i),e.push(n)}return Au(a,o,r)},K.interrupt=function(t){return this.each(null==t?Cu:Ou(Hu(t)))};var Cu=Ou(Hu());function Ou(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Au(t,e,n){return W(t,Ru),t.namespace=e,t.id=n,t}var Fu,Du,Ru=[],zu=0;function Iu(t,e,n,r){var o=t.id,a=t.namespace;return vt(t,"function"==typeof n?function(t,i,u){t[a][o].tween.set(e,r(n.call(t,t.__data__,i,u)))}:(n=r(n),function(t){t[a][o].tween.set(e,n)}))}function qu(t){return null==t&&(t=""),function(){this.textContent=t}}function Hu(t){return null==t?"__transition__":"__transition_"+t+"__"}function Bu(t,e,n,r,o){var a,i,u,l,s,c=t[n]||(t[n]={active:0,count:0}),f=c[r];function h(n){var o=c.active,h=c[o];for(var p in h&&(h.timer.c=null,h.timer.t=NaN,--c.count,delete c[o],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),c)if(+p<r){var v=c[p];v.timer.c=null,v.timer.t=NaN,--c.count,delete c[p]}i.c=d,Me((function(){return i.c&&d(n||1)&&(i.c=null,i.t=NaN),1}),0,a),c.active=r,f.event&&f.event.start.call(t,t.__data__,e),s=[],f.tween.forEach((function(n,r){(r=r.call(t,t.__data__,e))&&s.push(r)})),l=f.ease,u=f.duration}function d(o){for(var a=o/u,i=l(a),h=s.length;h>0;)s[--h].call(t,i);if(a>=1)return f.event&&f.event.end.call(t,t.__data__,e),--c.count?delete c[r]:delete t[n],1}f||(a=o.time,i=Me((function(t){var e=f.delay;if(i.t=e+a,e<=t)return h(t-e);i.c=h}),0,a),f=c[r]={tween:new S,time:a,timer:i,delay:o.delay,duration:o.duration,ease:o.ease,index:e},o=null,++c.count)}Ru.call=K.call,Ru.empty=K.empty,Ru.node=K.node,Ru.size=K.size,a.transition=function(t,e){return t&&t.transition?Fu?t.transition(e):t:a.selection().transition(t)},a.transition.prototype=Ru,Ru.select=function(t){var e,n,r,o=this.id,a=this.namespace,i=[];t=J(t);for(var u=-1,l=this.length;++u<l;){i.push(e=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(r=s[c])&&(n=t.call(r,r.__data__,c,u))?("__data__"in r&&(n.__data__=r.__data__),Bu(n,c,a,o,r[a][o]),e.push(n)):e.push(null)}return Au(i,a,o)},Ru.selectAll=function(t){var e,n,r,o,a,i=this.id,u=this.namespace,l=[];t=Z(t);for(var s=-1,c=this.length;++s<c;)for(var f=this[s],h=-1,d=f.length;++h<d;)if(r=f[h]){a=r[u][i],n=t.call(r,r.__data__,h,s),l.push(e=[]);for(var p=-1,v=n.length;++p<v;)(o=n[p])&&Bu(o,p,u,i,a),e.push(o)}return Au(l,u,i)},Ru.filter=function(t){var e,n,r=[];"function"!=typeof t&&(t=dt(t));for(var o=0,a=this.length;o<a;o++){r.push(e=[]);for(var i,u=0,l=(i=this[o]).length;u<l;u++)(n=i[u])&&t.call(n,n.__data__,u,o)&&e.push(n)}return Au(r,this.namespace,this.id)},Ru.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):vt(this,null==e?function(e){e[r][n].tween.remove(t)}:function(o){o[r][n].tween.set(t,e)})},Ru.attr=function(t,e){if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var n="transform"==t?Ea:aa,r=a.ns.qualify(t);function o(){this.removeAttribute(r)}function i(){this.removeAttributeNS(r.space,r.local)}return Iu(this,"attr."+t,e,r.local?function(t){return null==t?i:(t+="",function(){var e,o=this.getAttributeNS(r.space,r.local);return o!==t&&(e=n(o,t),function(t){this.setAttributeNS(r.space,r.local,e(t))})})}:function(t){return null==t?o:(t+="",function(){var e,o=this.getAttribute(r);return o!==t&&(e=n(o,t),function(t){this.setAttribute(r,e(t))})})})},Ru.attrTween=function(t,e){var n=a.ns.qualify(t);return this.tween("attr."+t,n.local?function(t,r){var o=e.call(this,t,r,this.getAttributeNS(n.space,n.local));return o&&function(t){this.setAttributeNS(n.space,n.local,o(t))}}:function(t,r){var o=e.call(this,t,r,this.getAttribute(n));return o&&function(t){this.setAttribute(n,o(t))}})},Ru.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.style(n,t[n],e);return this}n=""}function o(){this.style.removeProperty(t)}return Iu(this,"style."+t,e,(function(e){return null==e?o:(e+="",function(){var r,o=c(this).getComputedStyle(this,null).getPropertyValue(t);return o!==e&&(r=aa(o,e),function(e){this.style.setProperty(t,r(e),n)})})}))},Ru.styleTween=function(t,e,n){return arguments.length<3&&(n=""),this.tween("style."+t,(function(r,o){var a=e.call(this,r,o,c(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),n)}}))},Ru.text=function(t){return Iu(this,"text",t,qu)},Ru.remove=function(){var t=this.namespace;return this.each("end.transition",(function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)}))},Ru.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=a.ease.apply(a,arguments)),vt(this,(function(r){r[n][e].ease=t})))},Ru.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:vt(this,"function"==typeof t?function(r,o,a){r[n][e].delay=+t.call(r,r.__data__,o,a)}:(t=+t,function(r){r[n][e].delay=t}))},Ru.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:vt(this,"function"==typeof t?function(r,o,a){r[n][e].duration=Math.max(1,t.call(r,r.__data__,o,a))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Ru.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var o=Du,i=Fu;try{Fu=n,vt(this,(function(e,o,a){Du=e[r][n],t.call(e,e.__data__,o,a)}))}finally{Du=o,Fu=i}}else vt(this,(function(o){var i=o[r][n];(i.event||(i.event=a.dispatch("start","end","interrupt"))).on(t,e)}));return this},Ru.transition=function(){for(var t,e,n,r=this.id,o=++zu,a=this.namespace,i=[],u=0,l=this.length;u<l;u++){i.push(t=[]);for(var s,c=0,f=(s=this[u]).length;c<f;c++)(e=s[c])&&Bu(e,c,a,o,{time:(n=e[a][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),t.push(e)}return Au(i,a,o)},a.svg.axis=function(){var t,e=a.scale.linear(),n=Uu,r=6,o=6,i=3,l=[10],s=null;function c(u){u.each((function(){var u,c=a.select(this),f=this.__chart__||e,h=this.__chart__=e.copy(),d=null==s?h.ticks?h.ticks.apply(h,l):h.domain():s,p=null==t?h.tickFormat?h.tickFormat.apply(h,l):F:t,v=c.selectAll(".tick").data(d,h),g=v.enter().insert("g",".domain").attr("class","tick").style("opacity",Nt),y=a.transition(v.exit()).style("opacity",Nt).remove(),m=a.transition(v.order()).style("opacity",1),b=Math.max(r,0)+i,w=Si(h),x=c.selectAll(".domain").data([0]),k=(x.enter().append("path").attr("class","domain"),a.transition(x));g.append("line"),g.append("text");var _,S,E,j,L=g.select("line"),N=m.select("line"),M=v.select("text").text(p),T=g.select("text"),P=m.select("text"),C="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(u=Yu,_="x",E="y",S="x2",j="y2",M.attr("dy",C<0?"0em":".71em").style("text-anchor","middle"),k.attr("d","M"+w[0]+","+C*o+"V0H"+w[1]+"V"+C*o)):(u=Wu,_="y",E="x",S="y2",j="x2",M.attr("dy",".32em").style("text-anchor",C<0?"end":"start"),k.attr("d","M"+C*o+","+w[0]+"H0V"+w[1]+"H"+C*o)),L.attr(j,C*r),T.attr(E,C*b),N.attr(S,0).attr(j,C*r),P.attr(_,0).attr(E,C*b),h.rangeBand){var O=h,A=O.rangeBand()/2;f=h=function(t){return O(t)+A}}else f.rangeBand?f=h:y.call(u,h,f);g.call(u,f,h),m.call(u,h,h)}))}return c.scale=function(t){return arguments.length?(e=t,c):e},c.orient=function(t){return arguments.length?(n=t in Gu?t+"":Uu,c):n},c.ticks=function(){return arguments.length?(l=u(arguments),c):l},c.tickValues=function(t){return arguments.length?(s=t,c):s},c.tickFormat=function(e){return arguments.length?(t=e,c):t},c.tickSize=function(t){var e=arguments.length;return e?(r=+t,o=+arguments[e-1],c):r},c.innerTickSize=function(t){return arguments.length?(r=+t,c):r},c.outerTickSize=function(t){return arguments.length?(o=+t,c):o},c.tickPadding=function(t){return arguments.length?(i=+t,c):i},c.tickSubdivide=function(){return arguments.length&&c},c};var Uu="bottom",Gu={top:1,right:1,bottom:1,left:1};function Yu(t,e,n){t.attr("transform",(function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"}))}function Wu(t,e,n){t.attr("transform",(function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"}))}a.svg.brush=function(){var t,e,n=G(h,"brushstart","brush","brushend"),r=null,o=null,i=[0,0],u=[0,0],l=!0,s=!0,f=$u[0];function h(t){t.each((function(){var t=a.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",g).on("touchstart.brush",g),e=t.selectAll(".background").data([0]);e.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(f,F);n.exit().remove(),n.enter().append("g").attr("class",(function(t){return"resize "+t})).style("cursor",(function(t){return Vu[t]})).append("rect").attr("x",(function(t){return/[ew]$/.test(t)?-3:null})).attr("y",(function(t){return/^[ns]/.test(t)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",h.empty()?"none":null);var i,u=a.transition(t),l=a.transition(e);r&&(i=Si(r),l.attr("x",i[0]).attr("width",i[1]-i[0]),p(u)),o&&(i=Si(o),l.attr("y",i[0]).attr("height",i[1]-i[0]),v(u)),d(u)}))}function d(t){t.selectAll(".resize").attr("transform",(function(t){return"translate("+i[+/e$/.test(t)]+","+u[+/^s/.test(t)]+")"}))}function p(t){t.select(".extent").attr("x",i[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",i[1]-i[0])}function v(t){t.select(".extent").attr("y",u[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",u[1]-u[0])}function g(){var f,g,y=this,m=a.select(a.event.target),b=n.of(y,arguments),w=a.select(y),x=m.datum(),k=!/^(n|s)$/.test(x)&&r,_=!/^(e|w)$/.test(x)&&o,S=m.classed("extent"),E=St(y),j=a.mouse(y),L=a.select(c(y)).on("keydown.brush",(function(){32==a.event.keyCode&&(S||(f=null,j[0]-=i[1],j[1]-=u[1],S=2),B())})).on("keyup.brush",(function(){32==a.event.keyCode&&2==S&&(j[0]+=i[1],j[1]+=u[1],S=0,B())}));if(a.event.changedTouches?L.on("touchmove.brush",T).on("touchend.brush",C):L.on("mousemove.brush",T).on("mouseup.brush",C),w.interrupt().selectAll("*").interrupt(),S)j[0]=i[0]-j[0],j[1]=u[0]-j[1];else if(x){var N=+/w$/.test(x),M=+/^n/.test(x);g=[i[1-N]-j[0],u[1-M]-j[1]],j[0]=i[N],j[1]=u[M]}else a.event.altKey&&(f=j.slice());function T(){var t=a.mouse(y),e=!1;g&&(t[0]+=g[0],t[1]+=g[1]),S||(a.event.altKey?(f||(f=[(i[0]+i[1])/2,(u[0]+u[1])/2]),j[0]=i[+(t[0]<f[0])],j[1]=u[+(t[1]<f[1])]):f=null),k&&P(t,r,0)&&(p(w),e=!0),_&&P(t,o,1)&&(v(w),e=!0),e&&(d(w),b({type:"brush",mode:S?"move":"resize"}))}function P(n,r,o){var a,c,h=Si(r),d=h[0],p=h[1],v=j[o],g=o?u:i,y=g[1]-g[0];if(S&&(d-=v,p-=y+v),a=(o?s:l)?Math.max(d,Math.min(p,n[o])):n[o],S?c=(a+=v)+y:(f&&(v=Math.max(d,Math.min(p,2*f[o]-a))),v<a?(c=a,a=v):c=v),g[0]!=a||g[1]!=c)return o?e=null:t=null,g[0]=a,g[1]=c,!0}function C(){T(),w.style("pointer-events","all").selectAll(".resize").style("display",h.empty()?"none":null),a.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),b({type:"brushend"})}w.style("pointer-events","none").selectAll(".resize").style("display",null),a.select("body").style("cursor",m.style("cursor")),b({type:"brushstart"}),T()}return h.event=function(r){r.each((function(){var r=n.of(this,arguments),o={x:i,y:u,i:t,j:e},l=this.__chart__||o;this.__chart__=o,Fu?a.select(this).transition().each("start.brush",(function(){t=l.i,e=l.j,i=l.x,u=l.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=ia(i,o.x),a=ia(u,o.y);return t=e=null,function(t){i=o.x=n(t),u=o.y=a(t),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=o.i,e=o.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},h.x=function(t){return arguments.length?(f=$u[!(r=t)<<1|!o],h):r},h.y=function(t){return arguments.length?(f=$u[!r<<1|!(o=t)],h):o},h.clamp=function(t){return arguments.length?(r&&o?(l=!!t[0],s=!!t[1]):r?l=!!t:o&&(s=!!t),h):r&&o?[l,s]:r?l:o?s:null},h.extent=function(n){var a,l,s,c,f;return arguments.length?(r&&(a=n[0],l=n[1],o&&(a=a[0],l=l[0]),t=[a,l],r.invert&&(a=r(a),l=r(l)),l<a&&(f=a,a=l,l=f),a==i[0]&&l==i[1]||(i=[a,l])),o&&(s=n[0],c=n[1],r&&(s=s[1],c=c[1]),e=[s,c],o.invert&&(s=o(s),c=o(c)),c<s&&(f=s,s=c,c=f),s==u[0]&&c==u[1]||(u=[s,c])),h):(r&&(t?(a=t[0],l=t[1]):(a=i[0],l=i[1],r.invert&&(a=r.invert(a),l=r.invert(l)),l<a&&(f=a,a=l,l=f))),o&&(e?(s=e[0],c=e[1]):(s=u[0],c=u[1],o.invert&&(s=o.invert(s),c=o.invert(c)),c<s&&(f=s,s=c,c=f))),r&&o?[[a,s],[l,c]]:r?[a,l]:o&&[s,c])},h.clear=function(){return h.empty()||(i=[0,0],u=[0,0],t=e=null),h},h.empty=function(){return!!r&&i[0]==i[1]||!!o&&u[0]==u[1]},a.rebind(h,n,"on")};var Vu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$u=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Qu=Ie.format=vn.timeFormat,Xu=Qu.utc,Ku=Xu("%Y-%m-%dT%H:%M:%S.%LZ");function Ju(t){return t.toISOString()}function Zu(t,e,n){function r(e){return t(e)}function o(t,n){var r=(t[1]-t[0])/n,o=a.bisect(el,r);return o==el.length?[e.year,Oi(t.map((function(t){return t/31536e6})),n)[2]]:o?e[r/el[o-1]<el[o]/r?o-1:o]:[ol,Oi(t,n)[2]]}return r.invert=function(e){return tl(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(tl)},r.nice=function(t,e){var n=r.domain(),a=_i(n),i=null==t?o(a,10):"number"==typeof t&&o(a,t);function u(n){return!isNaN(n)&&!t.range(n,tl(+n+1),e).length}return i&&(t=i[0],e=i[1]),r.domain(ji(n,e>1?{floor:function(e){for(;u(e=t.floor(e));)e=tl(e-1);return e},ceil:function(e){for(;u(e=t.ceil(e));)e=tl(+e+1);return e}}:t))},r.ticks=function(t,e){var n=_i(r.domain()),a=null==t?o(n,10):"number"==typeof t?o(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],tl(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Zu(t.copy(),e,n)},Pi(r,t)}function tl(t){return new Date(t)}Qu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ju:Ku,Ju.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Ju.toString=Ku.toString,Ie.second=Ue((function(t){return new qe(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Ie.seconds=Ie.second.range,Ie.seconds.utc=Ie.second.utc.range,Ie.minute=Ue((function(t){return new qe(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Ie.minutes=Ie.minute.range,Ie.minutes.utc=Ie.minute.utc.range,Ie.hour=Ue((function(t){var e=t.getTimezoneOffset()/60;return new qe(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Ie.hours=Ie.hour.range,Ie.hours.utc=Ie.hour.utc.range,Ie.month=Ue((function(t){return(t=Ie.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Ie.months=Ie.month.range,Ie.months.utc=Ie.month.utc.range;var el=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],nl=[[Ie.second,1],[Ie.second,5],[Ie.second,15],[Ie.second,30],[Ie.minute,1],[Ie.minute,5],[Ie.minute,15],[Ie.minute,30],[Ie.hour,1],[Ie.hour,3],[Ie.hour,6],[Ie.hour,12],[Ie.day,1],[Ie.day,2],[Ie.week,1],[Ie.month,1],[Ie.month,3],[Ie.year,1]],rl=Qu.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",tr]]),ol={range:function(t,e,n){return a.range(Math.ceil(t/n)*n,+e,n).map(tl)},floor:F,ceil:F};nl.year=Ie.year,Ie.scale=function(){return Zu(a.scale.linear(),nl,rl)};var al=nl.map((function(t){return[t[0].utc,t[1]]})),il=Xu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",tr]]);function ul(t){return JSON.parse(t.responseText)}function ll(t){var e=l.createRange();return e.selectNode(l.body),e.createContextualFragment(t.responseText)}al.year=Ie.year.utc,Ie.scale.utc=function(){return Zu(a.scale.linear(),al,il)},a.text=ke((function(t){return t.responseText})),a.json=function(t,e){return _e(t,"application/json",ul,e)},a.html=function(t,e){return _e(t,"text/html",ll,e)},a.xml=ke((function(t){return t.responseXML})),this.d3=a,void 0===(o="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=o)}()},703:(t,e,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(t,e,n)=>{t.exports=n(703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(t,e,n)=>{"use strict";var r=n(294),o=n(840);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,u={};function l(t,e){s(t,e),s(t+"Capture",e)}function s(t,e){for(u[t]=e,t=0;t<e.length;t++)i.add(e[t])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function v(t,e,n,r,o,a,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){g[t]=new v(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];g[e]=new v(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){g[t]=new v(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){g[t]=new v(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){g[t]=new v(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){g[t]=new v(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){g[t]=new v(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){g[t]=new v(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){g[t]=new v(t,5,!1,t.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function m(t){return t[1].toUpperCase()}function b(t,e,n,r){var o=g.hasOwnProperty(e)?g[e]:null;(null!==o?0!==o.type:r||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,o,r)&&(n=null),r||null===o?function(t){return!!f.call(p,t)||!f.call(d,t)&&(h.test(t)?p[t]=!0:(d[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=null===n?3!==o.type&&"":n:(e=o.attributeName,r=o.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(y,m);g[e]=new v(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(y,m);g[e]=new v(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(y,m);g[e]=new v(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){g[t]=new v(t,1,!1,t.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){g[t]=new v(t,1,!1,t.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),L=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),C=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function F(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=A&&t[A]||t["@@iterator"])?t:null}var D,R=Object.assign;function z(t){if(void 0===D)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);D=e&&e[1]||""}return"\n"+D+t}var I=!1;function q(t,e){if(!t||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var r=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){r=t}t.call(e.prototype)}else{try{throw Error()}catch(t){r=t}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,u=a.length-1;1<=i&&0<=u&&o[i]!==a[u];)u--;for(;1<=i&&0<=u;i--,u--)if(o[i]!==a[u]){if(1!==i||1!==u)do{if(i--,0>--u||o[i]!==a[u]){var l="\n"+o[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=i&&0<=u);break}}}finally{I=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function H(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return t=q(t.type,!1);case 11:return t=q(t.type.render,!1);case 1:return t=q(t.type,!0);default:return""}}function B(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case k:return"Portal";case E:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case T:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case L:return(t.displayName||"Context")+".Consumer";case j:return(t._context.displayName||"Context")+".Provider";case N:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case P:return null!==(e=t.displayName||null)?e:B(t.type)||"Memo";case C:e=t._payload,t=t._init;try{return B(t(e))}catch(t){}}return null}function U(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(e);case 8:return e===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function G(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function Y(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function W(t){t._valueTracker||(t._valueTracker=function(t){var e=Y(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){r=""+t,a.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function V(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Y(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function $(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Q(t,e){var n=e.checked;return R({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function X(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=G(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function K(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function J(t,e){K(t,e);var n=G(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,G(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Z(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&$(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+G(n),e=null,o=0;o<t.length;o++){if(t[o].value===n)return t[o].selected=!0,void(r&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function rt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return R({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ot(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(et(n)){if(1<n.length)throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:G(n)}}function at(t,e){var n=G(e.value),r=G(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function it(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function ut(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?ut(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var st,ct,ft=(ct=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((st=st||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=st.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return ct(t,e)}))}:ct);function ht(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pt=["Webkit","ms","Moz","O"];function vt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||dt.hasOwnProperty(t)&&dt[t]?(""+e).trim():e+"px"}function gt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=vt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}Object.keys(dt).forEach((function(t){pt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),dt[e]=dt[t]}))}));var yt=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mt(t,e){if(e){if(yt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62))}}function bt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function xt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var kt=null,_t=null,St=null;function Et(t){if(t=wo(t)){if("function"!=typeof kt)throw Error(a(280));var e=t.stateNode;e&&(e=ko(e),kt(t.stateNode,t.type,e))}}function jt(t){_t?St?St.push(t):St=[t]:_t=t}function Lt(){if(_t){var t=_t,e=St;if(St=_t=null,Et(t),e)for(t=0;t<e.length;t++)Et(e[t])}}function Nt(t,e){return t(e)}function Mt(){}var Tt=!1;function Pt(t,e,n){if(Tt)return t(e,n);Tt=!0;try{return Nt(t,e,n)}finally{Tt=!1,(null!==_t||null!==St)&&(Mt(),Lt())}}function Ct(t,e){var n=t.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}var Ot=!1;if(c)try{var At={};Object.defineProperty(At,"passive",{get:function(){Ot=!0}}),window.addEventListener("test",At,At),window.removeEventListener("test",At,At)}catch(ct){Ot=!1}function Ft(t,e,n,r,o,a,i,u,l){var s=Array.prototype.slice.call(arguments,3);try{e.apply(n,s)}catch(t){this.onError(t)}}var Dt=!1,Rt=null,zt=!1,It=null,qt={onError:function(t){Dt=!0,Rt=t}};function Ht(t,e,n,r,o,a,i,u,l){Dt=!1,Rt=null,Ft.apply(qt,arguments)}function Bt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Ut(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function Gt(t){if(Bt(t)!==t)throw Error(a(188))}function Yt(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Bt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Gt(o),t;if(i===r)return Gt(o),e;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u){for(l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t))?Wt(t):null}function Wt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Wt(t);if(null!==e)return e;t=t.sibling}return null}var Vt=o.unstable_scheduleCallback,$t=o.unstable_cancelCallback,Qt=o.unstable_shouldYield,Xt=o.unstable_requestPaint,Kt=o.unstable_now,Jt=o.unstable_getCurrentPriorityLevel,Zt=o.unstable_ImmediatePriority,te=o.unstable_UserBlockingPriority,ee=o.unstable_NormalPriority,ne=o.unstable_LowPriority,re=o.unstable_IdlePriority,oe=null,ae=null;var ie=Math.clz32?Math.clz32:function(t){return t>>>=0,0===t?32:31-(ue(t)/le|0)|0},ue=Math.log,le=Math.LN2;var se=64,ce=4194304;function fe(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function he(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,o=t.suspendedLanes,a=t.pingedLanes,i=268435455&n;if(0!==i){var u=i&~o;0!==u?r=fe(u):0!==(a&=i)&&(r=fe(a))}else 0!==(i=n&~o)?r=fe(i):0!==a&&(r=fe(a));if(0===r)return 0;if(0!==e&&e!==r&&0==(e&o)&&((o=r&-r)>=(a=e&-e)||16===o&&0!=(4194240&a)))return e;if(0!=(4&r)&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)o=1<<(n=31-ie(e)),r|=t[n],e&=~o;return r}function de(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function pe(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function ve(){var t=se;return 0==(4194240&(se<<=1))&&(se=64),t}function ge(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ye(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ie(e)]=n}function me(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ie(n),o=1<<r;o&e|t[r]&e&&(t[r]|=e),n&=~o}}var be=0;function we(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var xe,ke,_e,Se,Ee,je=!1,Le=[],Ne=null,Me=null,Te=null,Pe=new Map,Ce=new Map,Oe=[],Ae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fe(t,e){switch(t){case"focusin":case"focusout":Ne=null;break;case"dragenter":case"dragleave":Me=null;break;case"mouseover":case"mouseout":Te=null;break;case"pointerover":case"pointerout":Pe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ce.delete(e.pointerId)}}function De(t,e,n,r,o,a){return null===t||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==e&&(null!==(e=wo(e))&&ke(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==o&&-1===e.indexOf(o)&&e.push(o),t)}function Re(t){var e=bo(t.target);if(null!==e){var n=Bt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Ut(n)))return t.blockedOn=e,void Ee(t.priority,(function(){_e(n)}))}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ze(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Qe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=wo(n))&&ke(e),t.blockedOn=n,!1;var r=new(n=t.nativeEvent).constructor(n.type,n);wt=r,n.target.dispatchEvent(r),wt=null,e.shift()}return!0}function Ie(t,e,n){ze(t)&&n.delete(e)}function qe(){je=!1,null!==Ne&&ze(Ne)&&(Ne=null),null!==Me&&ze(Me)&&(Me=null),null!==Te&&ze(Te)&&(Te=null),Pe.forEach(Ie),Ce.forEach(Ie)}function He(t,e){t.blockedOn===e&&(t.blockedOn=null,je||(je=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,qe)))}function Be(t){function e(e){return He(e,t)}if(0<Le.length){He(Le[0],t);for(var n=1;n<Le.length;n++){var r=Le[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Ne&&He(Ne,t),null!==Me&&He(Me,t),null!==Te&&He(Te,t),Pe.forEach(e),Ce.forEach(e),n=0;n<Oe.length;n++)(r=Oe[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Oe.length&&null===(n=Oe[0]).blockedOn;)Re(n),null===n.blockedOn&&Oe.shift()}var Ue=w.ReactCurrentBatchConfig,Ge=!0;function Ye(t,e,n,r){var o=be,a=Ue.transition;Ue.transition=null;try{be=1,Ve(t,e,n,r)}finally{be=o,Ue.transition=a}}function We(t,e,n,r){var o=be,a=Ue.transition;Ue.transition=null;try{be=4,Ve(t,e,n,r)}finally{be=o,Ue.transition=a}}function Ve(t,e,n,r){if(Ge){var o=Qe(t,e,n,r);if(null===o)Gr(t,e,r,$e,n),Fe(t,r);else if(function(t,e,n,r,o){switch(e){case"focusin":return Ne=De(Ne,t,e,n,r,o),!0;case"dragenter":return Me=De(Me,t,e,n,r,o),!0;case"mouseover":return Te=De(Te,t,e,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pe.set(a,De(Pe.get(a)||null,t,e,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Ce.set(a,De(Ce.get(a)||null,t,e,n,r,o)),!0}return!1}(o,t,e,n,r))r.stopPropagation();else if(Fe(t,r),4&e&&-1<Ae.indexOf(t)){for(;null!==o;){var a=wo(o);if(null!==a&&xe(a),null===(a=Qe(t,e,n,r))&&Gr(t,e,r,$e,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Gr(t,e,r,null,n)}}var $e=null;function Qe(t,e,n,r){if($e=null,null!==(t=bo(t=xt(r))))if(null===(e=Bt(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=Ut(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return $e=t,null}function Xe(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jt()){case Zt:return 1;case te:return 4;case ee:case ne:return 16;case re:return 536870912;default:return 16}default:return 16}}var Ke=null,Je=null,Ze=null;function tn(){if(Ze)return Ze;var t,e,n=Je,r=n.length,o="value"in Ke?Ke.value:Ke.textContent,a=o.length;for(t=0;t<r&&n[t]===o[t];t++);var i=r-t;for(e=1;e<=i&&n[r-e]===o[a-e];e++);return Ze=o.slice(t,1<e?1-e:void 0)}function en(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function nn(){return!0}function rn(){return!1}function on(t){function e(e,n,r,o,a){for(var i in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,t)t.hasOwnProperty(i)&&(e=t[i],this[i]=e?e(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),e}var an,un,ln,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),fn=R({},sn,{view:0,detail:0}),hn=on(fn),dn=R({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ln&&(ln&&"mousemove"===t.type?(an=t.screenX-ln.screenX,un=t.screenY-ln.screenY):un=an=0,ln=t),an)},movementY:function(t){return"movementY"in t?t.movementY:un}}),pn=on(dn),vn=on(R({},dn,{dataTransfer:0})),gn=on(R({},fn,{relatedTarget:0})),yn=on(R({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=R({},sn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bn=on(mn),wn=on(R({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=_n[t])&&!!e[t]}function En(){return Sn}var jn=R({},fn,{key:function(t){if(t.key){var e=xn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=en(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?kn[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(t){return"keypress"===t.type?en(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?en(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Ln=on(jn),Nn=on(R({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=on(R({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Tn=on(R({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=R({},dn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Cn=on(Pn),On=[9,13,27,32],An=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Fn,Rn=c&&(!An||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),In=!1;function qn(t,e){switch(t){case"keyup":return-1!==On.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Bn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Un[t.type]:"textarea"===e}function Yn(t,e,n,r){jt(r),0<(e=Wr(e,"onChange")).length&&(n=new cn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Wn=null,Vn=null;function $n(t){zr(t,0)}function Qn(t){if(V(xo(t)))return t}function Xn(t,e){if("change"===t)return e}var Kn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Zn="function"==typeof tr.oninput}Jn=Zn}else Jn=!1;Kn=Jn&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",nr),Vn=Wn=null)}function nr(t){if("value"===t.propertyName&&Qn(Vn)){var e=[];Yn(e,Vn,t,xt(t)),Pt($n,e)}}function rr(t,e,n){"focusin"===t?(er(),Vn=n,(Wn=e).attachEvent("onpropertychange",nr)):"focusout"===t&&er()}function or(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Qn(Vn)}function ar(t,e){if("click"===t)return Qn(e)}function ir(t,e){if("input"===t||"change"===t)return Qn(e)}var ur="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function lr(t,e){if(ur(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(e,o)||!ur(t[o],e[o]))return!1}return!0}function sr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cr(t,e){var n,r=sr(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=sr(r)}}function fr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?fr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function hr(){for(var t=window,e=$();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=$((t=e.contentWindow).document)}return e}function dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pr(t){var e=hr(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!t.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&((e=e.createRange()).setStart(o.node,o.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,mr=null,br=!1;function wr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==$(r)||("selectionStart"in(r=gr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&lr(mr,r)||(mr=r,0<(r=Wr(yr,"onSelect")).length&&(e=new cn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=gr)))}function xr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},_r={},Sr={};function Er(t){if(_r[t])return _r[t];if(!kr[t])return t;var e,n=kr[t];for(e in n)if(n.hasOwnProperty(e)&&e in Sr)return _r[t]=n[e];return t}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var jr=Er("animationend"),Lr=Er("animationiteration"),Nr=Er("animationstart"),Mr=Er("transitionend"),Tr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(t,e){Tr.set(t,e),l(e,[t])}for(var Or=0;Or<Pr.length;Or++){var Ar=Pr[Or];Cr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Cr(jr,"onAnimationEnd"),Cr(Lr,"onAnimationIteration"),Cr(Nr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(Mr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Rr(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,o,i,u,l,s){if(Ht.apply(this,arguments),Dt){if(!Dt)throw Error(a(198));var c=Rt;Dt=!1,Rt=null,zt||(zt=!0,It=c)}}(r,e,void 0,t),t.currentTarget=null}function zr(t,e){e=0!=(4&e);for(var n=0;n<t.length;n++){var r=t[n],o=r.event;r=r.listeners;t:{var a=void 0;if(e)for(var i=r.length-1;0<=i;i--){var u=r[i],l=u.instance,s=u.currentTarget;if(u=u.listener,l!==a&&o.isPropagationStopped())break t;Rr(o,u,s),a=l}else for(i=0;i<r.length;i++){if(l=(u=r[i]).instance,s=u.currentTarget,u=u.listener,l!==a&&o.isPropagationStopped())break t;Rr(o,u,s),a=l}}}if(zt)throw t=It,zt=!1,It=null,t}function Ir(t,e){var n=e[go];void 0===n&&(n=e[go]=new Set);var r=t+"__bubble";n.has(r)||(Ur(e,t,2,!1),n.add(r))}function qr(t,e,n){var r=0;e&&(r|=4),Ur(n,t,r,e)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Br(t){if(!t[Hr]){t[Hr]=!0,i.forEach((function(e){"selectionchange"!==e&&(Dr.has(e)||qr(e,!1,t),qr(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Hr]||(e[Hr]=!0,qr("selectionchange",!1,e))}}function Ur(t,e,n,r){switch(Xe(e)){case 1:var o=Ye;break;case 4:o=We;break;default:o=Ve}n=o.bind(null,e,n,t),o=void 0,!Ot||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(o=!0),r?void 0!==o?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):void 0!==o?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Gr(t,e,n,r,o){var a=r;if(0==(1&e)&&0==(2&e)&&null!==r)t:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==u;){if(null===(i=bo(u)))return;if(5===(l=i.tag)||6===l){r=a=i;continue t}u=u.parentNode}}r=r.return}Pt((function(){var r=a,o=xt(n),i=[];t:{var u=Tr.get(t);if(void 0!==u){var l=cn,s=t;switch(t){case"keypress":if(0===en(n))break t;case"keydown":case"keyup":l=Ln;break;case"focusin":s="focus",l=gn;break;case"focusout":s="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mn;break;case jr:case Lr:case Nr:l=yn;break;case Mr:l=Tn;break;case"scroll":l=hn;break;case"wheel":l=Cn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=0!=(4&e),f=!c&&"scroll"===t,h=c?null!==u?u+"Capture":null:u;c=[];for(var d,p=r;null!==p;){var v=(d=p).stateNode;if(5===d.tag&&null!==v&&(d=v,null!==h&&(null!=(v=Ct(p,h))&&c.push(Yr(p,v,d)))),f)break;p=p.return}0<c.length&&(u=new l(u,s,null,n,o),i.push({event:u,listeners:c}))}}if(0==(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(u="mouseover"===t||"pointerover"===t)||n===wt||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[vo])&&(l||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,l?(l=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(f=Bt(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(l=null,s=r),l!==s)){if(c=pn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(c=Nn,v="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==l?u:xo(l),d=null==s?u:xo(s),(u=new c(v,p+"leave",l,n,o)).target=f,u.relatedTarget=d,v=null,bo(o)===r&&((c=new c(h,p+"enter",s,n,o)).target=d,c.relatedTarget=f,v=c),f=v,l&&s)t:{for(h=s,p=0,d=c=l;d;d=Vr(d))p++;for(d=0,v=h;v;v=Vr(v))d++;for(;0<p-d;)c=Vr(c),p--;for(;0<d-p;)h=Vr(h),d--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break t;c=Vr(c),h=Vr(h)}c=null}else c=null;null!==l&&$r(i,u,l,c,!1),null!==s&&null!==f&&$r(i,f,s,c,!0)}if("select"===(l=(u=r?xo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===l&&"file"===u.type)var g=Xn;else if(Gn(u))if(Kn)g=ir;else{g=or;var y=rr}else(l=u.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(g=ar);switch(g&&(g=g(t,r))?Yn(i,g,n,o):(y&&y(t,u,r),"focusout"===t&&(y=u._wrapperState)&&y.controlled&&"number"===u.type&&tt(u,"number",u.value)),y=r?xo(r):window,t){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,mr=null);break;case"focusout":mr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(i,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(i,n,o)}var m;if(An)t:{switch(t){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else Bn?qn(t,n)&&(b="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(m=tn()):(Je="value"in(Ke=o)?Ke.value:Ke.textContent,Bn=!0)),0<(y=Wr(r,b)).length&&(b=new wn(b,t,null,n,o),i.push({event:b,listeners:y}),m?b.data=m:null!==(m=Hn(n))&&(b.data=m))),(m=Dn?function(t,e){switch(t){case"compositionend":return Hn(e);case"keypress":return 32!==e.which?null:(In=!0,zn);case"textInput":return(t=e.data)===zn&&In?null:t;default:return null}}(t,n):function(t,e){if(Bn)return"compositionend"===t||!An&&qn(t,e)?(t=tn(),Ze=Je=Ke=null,Bn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rn&&"ko"!==e.locale?null:e.data}}(t,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=m))}zr(i,e)}))}function Yr(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Wr(t,e){for(var n=e+"Capture",r=[];null!==t;){var o=t,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ct(t,n))&&r.unshift(Yr(t,a,o)),null!=(a=Ct(t,e))&&r.push(Yr(t,a,o))),t=t.return}return r}function Vr(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function $r(t,e,n,r,o){for(var a=e._reactName,i=[];null!==n&&n!==r;){var u=n,l=u.alternate,s=u.stateNode;if(null!==l&&l===r)break;5===u.tag&&null!==s&&(u=s,o?null!=(l=Ct(n,a))&&i.unshift(Yr(n,l,u)):o||null!=(l=Ct(n,a))&&i.push(Yr(n,l,u))),n=n.return}0!==i.length&&t.push({event:e,listeners:i})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Kr(t){return("string"==typeof t?t:""+t).replace(Qr,"\n").replace(Xr,"")}function Jr(t,e,n){if(e=Kr(e),Kr(t)!==e&&n)throw Error(a(425))}function Zr(){}var to=null,eo=null;function no(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(t){return ao.resolve(null).then(t).catch(uo)}:ro;function uo(t){setTimeout((function(){throw t}))}function lo(t,e){var n=e,r=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return t.removeChild(o),void Be(e);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Be(e)}function so(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function co(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,vo="__reactContainer$"+fo,go="__reactEvents$"+fo,yo="__reactListeners$"+fo,mo="__reactHandles$"+fo;function bo(t){var e=t[ho];if(e)return e;for(var n=t.parentNode;n;){if(e=n[vo]||n[ho]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=co(t);null!==t;){if(n=t[ho])return n;t=co(t)}return e}n=(t=n).parentNode}return null}function wo(t){return!(t=t[ho]||t[vo])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function xo(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ko(t){return t[po]||null}var _o=[],So=-1;function Eo(t){return{current:t}}function jo(t){0>So||(t.current=_o[So],_o[So]=null,So--)}function Lo(t,e){So++,_o[So]=t.current,t.current=e}var No={},Mo=Eo(No),To=Eo(!1),Po=No;function Co(t,e){var n=t.type.contextTypes;if(!n)return No;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=e[o];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Oo(t){return null!=(t=t.childContextTypes)}function Ao(){jo(To),jo(Mo)}function Fo(t,e,n){if(Mo.current!==No)throw Error(a(168));Lo(Mo,e),Lo(To,n)}function Do(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,U(t)||"Unknown",o));return R({},n,r)}function Ro(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||No,Po=Mo.current,Lo(Mo,t),Lo(To,To.current),!0}function zo(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=Do(t,e,Po),r.__reactInternalMemoizedMergedChildContext=t,jo(To),jo(Mo),Lo(Mo,t)):jo(To),Lo(To,n)}var Io=null,qo=!1,Ho=!1;function Bo(t){null===Io?Io=[t]:Io.push(t)}function Uo(){if(!Ho&&null!==Io){Ho=!0;var t=0,e=be;try{var n=Io;for(be=1;t<n.length;t++){var r=n[t];do{r=r(!0)}while(null!==r)}Io=null,qo=!1}catch(e){throw null!==Io&&(Io=Io.slice(t+1)),Vt(Zt,Uo),e}finally{be=e,Ho=!1}}return null}var Go=[],Yo=0,Wo=null,Vo=0,$o=[],Qo=0,Xo=null,Ko=1,Jo="";function Zo(t,e){Go[Yo++]=Vo,Go[Yo++]=Wo,Wo=t,Vo=e}function ta(t,e,n){$o[Qo++]=Ko,$o[Qo++]=Jo,$o[Qo++]=Xo,Xo=t;var r=Ko;t=Jo;var o=32-ie(r)-1;r&=~(1<<o),n+=1;var a=32-ie(e)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ko=1<<32-ie(e)+o|n<<o|r,Jo=a+t}else Ko=1<<a|n<<o|r,Jo=t}function ea(t){null!==t.return&&(Zo(t,1),ta(t,1,0))}function na(t){for(;t===Wo;)Wo=Go[--Yo],Go[Yo]=null,Vo=Go[--Yo],Go[Yo]=null;for(;t===Xo;)Xo=$o[--Qo],$o[Qo]=null,Jo=$o[--Qo],$o[Qo]=null,Ko=$o[--Qo],$o[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function ua(t,e){var n=Ps(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function la(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,ra=t,oa=so(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,ra=t,oa=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==Xo?{id:Ko,overflow:Jo}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=Ps(18,null,null,0)).stateNode=e,n.return=t,t.child=n,ra=t,oa=null,!0);default:return!1}}function sa(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function ca(t){if(aa){var e=oa;if(e){var n=e;if(!la(t,e)){if(sa(t))throw Error(a(418));e=so(n.nextSibling);var r=ra;e&&la(t,e)?ua(r,n):(t.flags=-4097&t.flags|2,aa=!1,ra=t)}}else{if(sa(t))throw Error(a(418));t.flags=-4097&t.flags|2,aa=!1,ra=t}}}function fa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;ra=t}function ha(t){if(t!==ra)return!1;if(!aa)return fa(t),aa=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!no(t.type,t.memoizedProps)),e&&(e=oa)){if(sa(t))throw da(),Error(a(418));for(;e;)ua(t,e),e=so(e.nextSibling)}if(fa(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){oa=so(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}oa=null}}else oa=ra?so(t.stateNode.nextSibling):null;return!0}function da(){for(var t=oa;t;)t=so(t.nextSibling)}function pa(){oa=ra=null,aa=!1}function va(t){null===ia?ia=[t]:ia.push(t)}var ga=w.ReactCurrentBatchConfig;function ya(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var o=r,i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=o.refs;null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function ma(t,e){throw t=Object.prototype.toString.call(e),Error(a(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function ba(t){return(0,t._init)(t._payload)}function wa(t){function e(e,n){if(t){var r=e.deletions;null===r?(e.deletions=[n],e.flags|=16):r.push(n)}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Os(t,e)).index=0,t.sibling=null,t}function i(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags|=2,n):r:(e.flags|=2,n):(e.flags|=1048576,n)}function u(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=Rs(n,t.mode,r)).return=t,e):((e=o(e,n)).return=t,e)}function s(t,e,n,r){var a=n.type;return a===_?f(t,e,n.props.children,r,n.key):null!==e&&(e.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===C&&ba(a)===e.type)?((r=o(e,n.props)).ref=ya(t,e,n),r.return=t,r):((r=As(n.type,n.key,n.props,null,t.mode,r)).ref=ya(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=zs(n,t.mode,r)).return=t,e):((e=o(e,n.children||[])).return=t,e)}function f(t,e,n,r,a){return null===e||7!==e.tag?((e=Fs(n,t.mode,r,a)).return=t,e):((e=o(e,n)).return=t,e)}function h(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=Rs(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case x:return(n=As(e.type,e.key,e.props,null,t.mode,n)).ref=ya(t,null,e),n.return=t,n;case k:return(e=zs(e,t.mode,n)).return=t,e;case C:return h(t,(0,e._init)(e._payload),n)}if(et(e)||F(e))return(e=Fs(e,t.mode,n,null)).return=t,e;ma(t,e)}return null}function d(t,e,n,r){var o=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(t,e,n,r):null;case k:return n.key===o?c(t,e,n,r):null;case C:return d(t,e,(o=n._init)(n._payload),r)}if(et(n)||F(n))return null!==o?null:f(t,e,n,r,null);ma(t,n)}return null}function p(t,e,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(e,t=t.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(e,t=t.get(null===r.key?n:r.key)||null,r,o);case k:return c(e,t=t.get(null===r.key?n:r.key)||null,r,o);case C:return p(t,e,n,(0,r._init)(r._payload),o)}if(et(r)||F(r))return f(e,t=t.get(n)||null,r,o,null);ma(e,r)}return null}function v(o,a,u,l){for(var s=null,c=null,f=a,v=a=0,g=null;null!==f&&v<u.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var y=d(o,f,u[v],l);if(null===y){null===f&&(f=g);break}t&&f&&null===y.alternate&&e(o,f),a=i(y,a,v),null===c?s=y:c.sibling=y,c=y,f=g}if(v===u.length)return n(o,f),aa&&Zo(o,v),s;if(null===f){for(;v<u.length;v++)null!==(f=h(o,u[v],l))&&(a=i(f,a,v),null===c?s=f:c.sibling=f,c=f);return aa&&Zo(o,v),s}for(f=r(o,f);v<u.length;v++)null!==(g=p(f,o,v,u[v],l))&&(t&&null!==g.alternate&&f.delete(null===g.key?v:g.key),a=i(g,a,v),null===c?s=g:c.sibling=g,c=g);return t&&f.forEach((function(t){return e(o,t)})),aa&&Zo(o,v),s}function g(o,u,l,s){var c=F(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,v=u,g=u=0,y=null,m=l.next();null!==v&&!m.done;g++,m=l.next()){v.index>g?(y=v,v=null):y=v.sibling;var b=d(o,v,m.value,s);if(null===b){null===v&&(v=y);break}t&&v&&null===b.alternate&&e(o,v),u=i(b,u,g),null===f?c=b:f.sibling=b,f=b,v=y}if(m.done)return n(o,v),aa&&Zo(o,g),c;if(null===v){for(;!m.done;g++,m=l.next())null!==(m=h(o,m.value,s))&&(u=i(m,u,g),null===f?c=m:f.sibling=m,f=m);return aa&&Zo(o,g),c}for(v=r(o,v);!m.done;g++,m=l.next())null!==(m=p(v,o,g,m.value,s))&&(t&&null!==m.alternate&&v.delete(null===m.key?g:m.key),u=i(m,u,g),null===f?c=m:f.sibling=m,f=m);return t&&v.forEach((function(t){return e(o,t)})),aa&&Zo(o,g),c}return function t(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===_&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case x:t:{for(var s=i.key,c=a;null!==c;){if(c.key===s){if((s=i.type)===_){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break t}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===C&&ba(s)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=ya(r,c,i),a.return=r,r=a;break t}n(r,c);break}e(r,c),c=c.sibling}i.type===_?((a=Fs(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=As(i.type,i.key,i.props,null,r.mode,l)).ref=ya(r,a,i),l.return=r,r=l)}return u(r);case k:t:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break t}n(r,a);break}e(r,a),a=a.sibling}(a=zs(i,r.mode,l)).return=r,r=a}return u(r);case C:return t(r,a,(c=i._init)(i._payload),l)}if(et(i))return v(r,a,i,l);if(F(i))return g(r,a,i,l);ma(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Rs(i,r.mode,l)).return=r,r=a),u(r)):n(r,a)}}var xa=wa(!0),ka=wa(!1),_a=Eo(null),Sa=null,Ea=null,ja=null;function La(){ja=Ea=Sa=null}function Na(t){var e=_a.current;jo(_a),t._currentValue=e}function Ma(t,e,n){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ta(t,e){Sa=t,ja=Ea=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(bu=!0),t.firstContext=null)}function Pa(t){var e=t._currentValue;if(ja!==t)if(t={context:t,memoizedValue:e,next:null},null===Ea){if(null===Sa)throw Error(a(308));Ea=t,Sa.dependencies={lanes:0,firstContext:t}}else Ea=Ea.next=t;return e}var Ca=null;function Oa(t){null===Ca?Ca=[t]:Ca.push(t)}function Aa(t,e,n,r){var o=e.interleaved;return null===o?(n.next=n,Oa(e)):(n.next=o.next,o.next=n),e.interleaved=n,Fa(t,r)}function Fa(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Da=!1;function Ra(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ia(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function qa(t,e,n){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Nl)){var o=r.pending;return null===o?e.next=e:(e.next=o.next,o.next=e),r.pending=e,Fa(t,n)}return null===(o=r.interleaved)?(e.next=e,Oa(r)):(e.next=o.next,o.next=e),r.interleaved=e,Fa(t,n)}function Ha(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&n))){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,me(t,n)}}function Ba(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=e:a=a.next=e}else o=a=e;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ua(t,e,n,r){var o=t.updateQueue;Da=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var l=u,s=l.next;l.next=null,null===i?a=s:i.next=s,i=l;var c=t.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=l))}if(null!==a){var f=o.baseState;for(i=0,c=s=l=null,u=a;;){var h=u.lane,d=u.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});t:{var p=t,v=u;switch(h=e,d=n,v.tag){case 1:if("function"==typeof(p=v.payload)){f=p.call(d,f,h);break t}f=p;break t;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=v.payload)?p.call(d,f,h):p))break t;f=R({},f,h);break t;case 2:Da=!0}}null!==u.callback&&0!==u.lane&&(t.flags|=64,null===(h=o.effects)?o.effects=[u]:h.push(u))}else d={eventTime:d,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=d,l=f):c=c.next=d,i|=h;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(h=u).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(e=o.shared.interleaved)){o=e;do{i|=o.lane,o=o.next}while(o!==e)}else null===a&&(o.shared.lanes=0);Dl|=i,t.lanes=i,t.memoizedState=f}}function Ga(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ya={},Wa=Eo(Ya),Va=Eo(Ya),$a=Eo(Ya);function Qa(t){if(t===Ya)throw Error(a(174));return t}function Xa(t,e){switch(Lo($a,e),Lo(Va,t),Lo(Wa,Ya),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}jo(Wa),Lo(Wa,e)}function Ka(){jo(Wa),jo(Va),jo($a)}function Ja(t){Qa($a.current);var e=Qa(Wa.current),n=lt(e,t.type);e!==n&&(Lo(Va,t),Lo(Wa,n))}function Za(t){Va.current===t&&(jo(Wa),jo(Va))}var ti=Eo(0);function ei(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ni=[];function ri(){for(var t=0;t<ni.length;t++)ni[t]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,ui=null,li=null,si=null,ci=!1,fi=!1,hi=0,di=0;function pi(){throw Error(a(321))}function vi(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ur(t[n],e[n]))return!1;return!0}function gi(t,e,n,r,o,i){if(ii=i,ui=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,oi.current=null===t||null===t.memoizedState?Zi:tu,t=n(r,o),fi){i=0;do{if(fi=!1,hi=0,25<=i)throw Error(a(301));i+=1,si=li=null,e.updateQueue=null,oi.current=eu,t=n(r,o)}while(fi)}if(oi.current=Ji,e=null!==li&&null!==li.next,ii=0,si=li=ui=null,ci=!1,e)throw Error(a(300));return t}function yi(){var t=0!==hi;return hi=0,t}function mi(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===si?ui.memoizedState=si=t:si=si.next=t,si}function bi(){if(null===li){var t=ui.alternate;t=null!==t?t.memoizedState:null}else t=li.next;var e=null===si?ui.memoizedState:si.next;if(null!==e)si=e,li=t;else{if(null===t)throw Error(a(310));t={memoizedState:(li=t).memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===si?ui.memoizedState=si=t:si=si.next=t}return si}function wi(t,e){return"function"==typeof e?e(t):e}function xi(t){var e=bi(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=li,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=u=null,s=null,c=i;do{var f=c.lane;if((ii&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=h,u=r):s=s.next=h,ui.lanes|=f,Dl|=f}c=c.next}while(null!==c&&c!==i);null===s?u=r:s.next=l,ur(r,e.memoizedState)||(bu=!0),e.memoizedState=r,e.baseState=u,e.baseQueue=s,n.lastRenderedState=r}if(null!==(t=n.interleaved)){o=t;do{i=o.lane,ui.lanes|=i,Dl|=i,o=o.next}while(o!==t)}else null===o&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function ki(t){var e=bi(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,o=n.pending,i=e.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=t(i,u.action),u=u.next}while(u!==o);ur(i,e.memoizedState)||(bu=!0),e.memoizedState=i,null===e.baseQueue&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function _i(){}function Si(t,e){var n=ui,r=bi(),o=e(),i=!ur(r.memoizedState,o);if(i&&(r.memoizedState=o,bu=!0),r=r.queue,Di(Li.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||null!==si&&1&si.memoizedState.tag){if(n.flags|=2048,Pi(9,ji.bind(null,n,r,o,e),void 0,null),null===Ml)throw Error(a(349));0!=(30&ii)||Ei(n,e,o)}return o}function Ei(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=ui.updateQueue)?(e={lastEffect:null,stores:null},ui.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function ji(t,e,n,r){e.value=n,e.getSnapshot=r,Ni(e)&&Mi(t)}function Li(t,e,n){return n((function(){Ni(e)&&Mi(t)}))}function Ni(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ur(t,n)}catch(t){return!0}}function Mi(t){var e=Fa(t,1);null!==e&&ns(e,t,1,-1)}function Ti(t){var e=mi();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:t},e.queue=t,t=t.dispatch=$i.bind(null,ui,t),[e.memoizedState,t]}function Pi(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=ui.updateQueue)?(e={lastEffect:null,stores:null},ui.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function Ci(){return bi().memoizedState}function Oi(t,e,n,r){var o=mi();ui.flags|=t,o.memoizedState=Pi(1|e,n,void 0,void 0===r?null:r)}function Ai(t,e,n,r){var o=bi();r=void 0===r?null:r;var a=void 0;if(null!==li){var i=li.memoizedState;if(a=i.destroy,null!==r&&vi(r,i.deps))return void(o.memoizedState=Pi(e,n,a,r))}ui.flags|=t,o.memoizedState=Pi(1|e,n,a,r)}function Fi(t,e){return Oi(8390656,8,t,e)}function Di(t,e){return Ai(2048,8,t,e)}function Ri(t,e){return Ai(4,2,t,e)}function zi(t,e){return Ai(4,4,t,e)}function Ii(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function qi(t,e,n){return n=null!=n?n.concat([t]):null,Ai(4,4,Ii.bind(null,e,t),n)}function Hi(){}function Bi(t,e){var n=bi();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&vi(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Ui(t,e){var n=bi();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&vi(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Gi(t,e,n){return 0==(21&ii)?(t.baseState&&(t.baseState=!1,bu=!0),t.memoizedState=n):(ur(n,e)||(n=ve(),ui.lanes|=n,Dl|=n,t.baseState=!0),e)}function Yi(t,e){var n=be;be=0!==n&&4>n?n:4,t(!0);var r=ai.transition;ai.transition={};try{t(!1),e()}finally{be=n,ai.transition=r}}function Wi(){return bi().memoizedState}function Vi(t,e,n){var r=es(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qi(t))Xi(e,n);else if(null!==(n=Aa(t,e,n,r))){ns(n,t,r,ts()),Ki(n,e,r)}}function $i(t,e,n){var r=es(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qi(t))Xi(e,o);else{var a=t.alternate;if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var i=e.lastRenderedState,u=a(i,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,i)){var l=e.interleaved;return null===l?(o.next=o,Oa(e)):(o.next=l.next,l.next=o),void(e.interleaved=o)}}catch(t){}null!==(n=Aa(t,e,o,r))&&(ns(n,t,r,o=ts()),Ki(n,e,r))}}function Qi(t){var e=t.alternate;return t===ui||null!==e&&e===ui}function Xi(t,e){fi=ci=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ki(t,e,n){if(0!=(4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,me(t,n)}}var Ji={readContext:Pa,useCallback:pi,useContext:pi,useEffect:pi,useImperativeHandle:pi,useInsertionEffect:pi,useLayoutEffect:pi,useMemo:pi,useReducer:pi,useRef:pi,useState:pi,useDebugValue:pi,useDeferredValue:pi,useTransition:pi,useMutableSource:pi,useSyncExternalStore:pi,useId:pi,unstable_isNewReconciler:!1},Zi={readContext:Pa,useCallback:function(t,e){return mi().memoizedState=[t,void 0===e?null:e],t},useContext:Pa,useEffect:Fi,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,Oi(4194308,4,Ii.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Oi(4194308,4,t,e)},useInsertionEffect:function(t,e){return Oi(4,2,t,e)},useMemo:function(t,e){var n=mi();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=mi();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Vi.bind(null,ui,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},mi().memoizedState=t},useState:Ti,useDebugValue:Hi,useDeferredValue:function(t){return mi().memoizedState=t},useTransition:function(){var t=Ti(!1),e=t[0];return t=Yi.bind(null,t[1]),mi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ui,o=mi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=e(),null===Ml)throw Error(a(349));0!=(30&ii)||Ei(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,Fi(Li.bind(null,r,i,t),[t]),r.flags|=2048,Pi(9,ji.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=mi(),e=Ml.identifierPrefix;if(aa){var n=Jo;e=":"+e+"R"+(n=(Ko&~(1<<32-ie(Ko)-1)).toString(32)+n),0<(n=hi++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=di++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},tu={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Di,useImperativeHandle:qi,useInsertionEffect:Ri,useLayoutEffect:zi,useMemo:Ui,useReducer:xi,useRef:Ci,useState:function(){return xi(wi)},useDebugValue:Hi,useDeferredValue:function(t){return Gi(bi(),li.memoizedState,t)},useTransition:function(){return[xi(wi)[0],bi().memoizedState]},useMutableSource:_i,useSyncExternalStore:Si,useId:Wi,unstable_isNewReconciler:!1},eu={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Di,useImperativeHandle:qi,useInsertionEffect:Ri,useLayoutEffect:zi,useMemo:Ui,useReducer:ki,useRef:Ci,useState:function(){return ki(wi)},useDebugValue:Hi,useDeferredValue:function(t){var e=bi();return null===li?e.memoizedState=t:Gi(e,li.memoizedState,t)},useTransition:function(){return[ki(wi)[0],bi().memoizedState]},useMutableSource:_i,useSyncExternalStore:Si,useId:Wi,unstable_isNewReconciler:!1};function nu(t,e){if(t&&t.defaultProps){for(var n in e=R({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function ru(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:R({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var ou={isMounted:function(t){return!!(t=t._reactInternals)&&Bt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=ts(),o=es(t),a=Ia(r,o);a.payload=e,null!=n&&(a.callback=n),null!==(e=qa(t,a,o))&&(ns(e,t,o,r),Ha(e,t,o))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=ts(),o=es(t),a=Ia(r,o);a.tag=1,a.payload=e,null!=n&&(a.callback=n),null!==(e=qa(t,a,o))&&(ns(e,t,o,r),Ha(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ts(),r=es(t),o=Ia(n,r);o.tag=2,null!=e&&(o.callback=e),null!==(e=qa(t,o,r))&&(ns(e,t,r,n),Ha(e,t,r))}};function au(t,e,n,r,o,a,i){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,a,i):!e.prototype||!e.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function iu(t,e,n){var r=!1,o=No,a=e.contextType;return"object"==typeof a&&null!==a?a=Pa(a):(o=Oo(e)?Po:Mo.current,a=(r=null!=(r=e.contextTypes))?Co(t,o):No),e=new e(n,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=ou,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=a),e}function uu(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&ou.enqueueReplaceState(e,e.state,null)}function lu(t,e,n,r){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs={},Ra(t);var a=e.contextType;"object"==typeof a&&null!==a?o.context=Pa(a):(a=Oo(e)?Po:Mo.current,o.context=Co(t,a)),o.state=t.memoizedState,"function"==typeof(a=e.getDerivedStateFromProps)&&(ru(t,e,a,n),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&ou.enqueueReplaceState(o,o.state,null),Ua(t,n,o,r),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308)}function su(t,e){try{var n="",r=e;do{n+=H(r),r=r.return}while(r);var o=n}catch(t){o="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:o,digest:null}}function cu(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function fu(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var hu="function"==typeof WeakMap?WeakMap:Map;function du(t,e,n){(n=Ia(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Gl||(Gl=!0,Yl=r),fu(0,e)},n}function pu(t,e,n){(n=Ia(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var o=e.value;n.payload=function(){return r(o)},n.callback=function(){fu(0,e)}}var a=t.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fu(0,e),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function vu(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new hu;var o=new Set;r.set(e,o)}else void 0===(o=r.get(e))&&(o=new Set,r.set(e,o));o.has(n)||(o.add(n),t=Es.bind(null,t,e,n),e.then(t,t))}function gu(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function yu(t,e,n,r,o){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Ia(-1,1)).tag=2,qa(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var mu=w.ReactCurrentOwner,bu=!1;function wu(t,e,n,r){e.child=null===t?ka(e,null,n,r):xa(e,t.child,n,r)}function xu(t,e,n,r,o){n=n.render;var a=e.ref;return Ta(e,o),r=gi(t,e,n,r,a,o),n=yi(),null===t||bu?(aa&&n&&ea(e),e.flags|=1,wu(t,e,r,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Gu(t,e,o))}function ku(t,e,n,r,o){if(null===t){var a=n.type;return"function"!=typeof a||Cs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=As(n.type,null,r,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,_u(t,e,a,r,o))}if(a=t.child,0==(t.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&t.ref===e.ref)return Gu(t,e,o)}return e.flags|=1,(t=Os(a,r)).ref=e.ref,t.return=e,e.child=t}function _u(t,e,n,r,o){if(null!==t){var a=t.memoizedProps;if(lr(a,r)&&t.ref===e.ref){if(bu=!1,e.pendingProps=r=a,0==(t.lanes&o))return e.lanes=t.lanes,Gu(t,e,o);0!=(131072&t.flags)&&(bu=!0)}}return ju(t,e,n,r,o)}function Su(t,e,n){var r=e.pendingProps,o=r.children,a=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Ol,Cl),Cl|=n;else{if(0==(1073741824&n))return t=null!==a?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Lo(Ol,Cl),Cl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Lo(Ol,Cl),Cl|=r}else null!==a?(r=a.baseLanes|n,e.memoizedState=null):r=n,Lo(Ol,Cl),Cl|=r;return wu(t,e,o,n),e.child}function Eu(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function ju(t,e,n,r,o){var a=Oo(n)?Po:Mo.current;return a=Co(e,a),Ta(e,o),n=gi(t,e,n,r,a,o),r=yi(),null===t||bu?(aa&&r&&ea(e),e.flags|=1,wu(t,e,n,o),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Gu(t,e,o))}function Lu(t,e,n,r,o){if(Oo(n)){var a=!0;Ro(e)}else a=!1;if(Ta(e,o),null===e.stateNode)Uu(t,e),iu(e,n,r),lu(e,n,r,o),r=!0;else if(null===t){var i=e.stateNode,u=e.memoizedProps;i.props=u;var l=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=Pa(s):s=Co(e,s=Oo(n)?Po:Mo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||l!==s)&&uu(e,i,r,s),Da=!1;var h=e.memoizedState;i.state=h,Ua(e,r,i,o),l=e.memoizedState,u!==r||h!==l||To.current||Da?("function"==typeof c&&(ru(e,n,c,r),l=e.memoizedState),(u=Da||au(e,n,u,r,h,l,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(e.flags|=4194308)):("function"==typeof i.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),i.props=r,i.state=l,i.context=s,r=u):("function"==typeof i.componentDidMount&&(e.flags|=4194308),r=!1)}else{i=e.stateNode,za(t,e),u=e.memoizedProps,s=e.type===e.elementType?u:nu(e.type,u),i.props=s,f=e.pendingProps,h=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Pa(l):l=Co(e,l=Oo(n)?Po:Mo.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==f||h!==l)&&uu(e,i,r,l),Da=!1,h=e.memoizedState,i.state=h,Ua(e,r,i,o);var p=e.memoizedState;u!==f||h!==p||To.current||Da?("function"==typeof d&&(ru(e,n,d,r),p=e.memoizedState),(s=Da||au(e,n,s,r,h,p,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(e.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),i.props=r,i.state=p,i.context=l,r=s):("function"!=typeof i.componentDidUpdate||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Nu(t,e,n,r,a,o)}function Nu(t,e,n,r,o,a){Eu(t,e);var i=0!=(128&e.flags);if(!r&&!i)return o&&zo(e,n,!1),Gu(t,e,a);r=e.stateNode,mu.current=e;var u=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&i?(e.child=xa(e,t.child,null,a),e.child=xa(e,null,u,a)):wu(t,e,u,a),e.memoizedState=r.state,o&&zo(e,n,!0),e.child}function Mu(t){var e=t.stateNode;e.pendingContext?Fo(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Fo(0,e.context,!1),Xa(t,e.containerInfo)}function Tu(t,e,n,r,o){return pa(),va(o),e.flags|=256,wu(t,e,n,r),e.child}var Pu,Cu,Ou,Au,Fu={dehydrated:null,treeContext:null,retryLane:0};function Du(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ru(t,e,n){var r,o=e.pendingProps,i=ti.current,u=!1,l=0!=(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&0!=(2&i)),r?(u=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(i|=1),Lo(ti,1&i),null===t)return ca(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=o.children,t=o.fallback,u?(o=e.mode,u=e.child,l={mode:"hidden",children:l},0==(1&o)&&null!==u?(u.childLanes=0,u.pendingProps=l):u=Ds(l,o,0,null),t=Fs(t,o,n,null),u.return=e,t.return=e,u.sibling=t,e.child=u,e.child.memoizedState=Du(n),e.memoizedState=Fu,t):zu(e,l));if(null!==(i=t.memoizedState)&&null!==(r=i.dehydrated))return function(t,e,n,r,o,i,u){if(n)return 256&e.flags?(e.flags&=-257,Iu(t,e,u,r=cu(Error(a(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(i=r.fallback,o=e.mode,r=Ds({mode:"visible",children:r.children},o,0,null),(i=Fs(i,o,u,null)).flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,0!=(1&e.mode)&&xa(e,t.child,null,u),e.child.memoizedState=Du(u),e.memoizedState=Fu,i);if(0==(1&e.mode))return Iu(t,e,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Iu(t,e,u,r=cu(i=Error(a(419)),r,void 0))}if(l=0!=(u&t.childLanes),bu||l){if(null!==(r=Ml)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|u))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Fa(t,o),ns(r,t,o,-1))}return vs(),Iu(t,e,u,r=cu(Error(a(421))))}return"$?"===o.data?(e.flags|=128,e.child=t.child,e=Ls.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,oa=so(o.nextSibling),ra=e,aa=!0,ia=null,null!==t&&($o[Qo++]=Ko,$o[Qo++]=Jo,$o[Qo++]=Xo,Ko=t.id,Jo=t.overflow,Xo=e),e=zu(e,r.children),e.flags|=4096,e)}(t,e,l,o,r,i,n);if(u){u=o.fallback,l=e.mode,r=(i=t.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&e.child!==i?((o=e.child).childLanes=0,o.pendingProps=s,e.deletions=null):(o=Os(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?u=Os(r,u):(u=Fs(u,l,n,null)).flags|=2,u.return=e,o.return=e,o.sibling=u,e.child=o,o=u,u=e.child,l=null===(l=t.child.memoizedState)?Du(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},u.memoizedState=l,u.childLanes=t.childLanes&~n,e.memoizedState=Fu,o}return t=(u=t.child).sibling,o=Os(u,{mode:"visible",children:o.children}),0==(1&e.mode)&&(o.lanes=n),o.return=e,o.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=o,e.memoizedState=null,o}function zu(t,e){return(e=Ds({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Iu(t,e,n,r){return null!==r&&va(r),xa(e,t.child,null,n),(t=zu(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function qu(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Ma(t.return,e,n)}function Hu(t,e,n,r,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Bu(t,e,n){var r=e.pendingProps,o=r.revealOrder,a=r.tail;if(wu(t,e,r.children,n),0!=(2&(r=ti.current)))r=1&r|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&qu(t,n,e);else if(19===t.tag)qu(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Lo(ti,r),0==(1&e.mode))e.memoizedState=null;else switch(o){case"forwards":for(n=e.child,o=null;null!==n;)null!==(t=n.alternate)&&null===ei(t)&&(o=n),n=n.sibling;null===(n=o)?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Hu(e,!1,o,n,a);break;case"backwards":for(n=null,o=e.child,e.child=null;null!==o;){if(null!==(t=o.alternate)&&null===ei(t)){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Hu(e,!0,n,null,a);break;case"together":Hu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Uu(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Gu(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Dl|=e.lanes,0==(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Os(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Os(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Yu(t,e){if(!aa)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Wu(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var o=t.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=t,o=o.sibling;else for(o=t.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Vu(t,e,n){var r=e.pendingProps;switch(na(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wu(e),null;case 1:case 17:return Oo(e.type)&&Ao(),Wu(e),null;case 3:return r=e.stateNode,Ka(),jo(To),jo(Mo),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(ha(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==ia&&(is(ia),ia=null))),Cu(t,e),Wu(e),null;case 5:Za(e);var o=Qa($a.current);if(n=e.type,null!==t&&null!=e.stateNode)Ou(t,e,n,r,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(a(166));return Wu(e),null}if(t=Qa(Wa.current),ha(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[ho]=e,r[po]=i,t=0!=(1&e.mode),n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)Ir(Fr[o],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":X(r,i),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ir("invalid",r);break;case"textarea":ot(r,i),Ir("invalid",r)}for(var l in mt(n,i),o=null,i)if(i.hasOwnProperty(l)){var s=i[l];"children"===l?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,s,t),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,s,t),o=["children",""+s]):u.hasOwnProperty(l)&&null!=s&&"onScroll"===l&&Ir("scroll",r)}switch(n){case"input":W(r),Z(r,i,!0);break;case"textarea":W(r),it(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,e.updateQueue=r,null!==r&&(e.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=ut(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[ho]=e,t[po]=r,Pu(t,e,!1,!1),e.stateNode=t;t:{switch(l=bt(n,r),n){case"dialog":Ir("cancel",t),Ir("close",t),o=r;break;case"iframe":case"object":case"embed":Ir("load",t),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)Ir(Fr[o],t);o=r;break;case"source":Ir("error",t),o=r;break;case"img":case"image":case"link":Ir("error",t),Ir("load",t),o=r;break;case"details":Ir("toggle",t),o=r;break;case"input":X(t,r),o=Q(t,r),Ir("invalid",t);break;case"option":default:o=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},o=R({},r,{value:void 0}),Ir("invalid",t);break;case"textarea":ot(t,r),o=rt(t,r),Ir("invalid",t)}for(i in mt(n,o),s=o)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?gt(t,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&ft(t,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&ht(t,c):"number"==typeof c&&ht(t,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(u.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Ir("scroll",t):null!=c&&b(t,i,c,l))}switch(n){case"input":W(t),Z(t,r,!1);break;case"textarea":W(t),it(t);break;case"option":null!=r.value&&t.setAttribute("value",""+G(r.value));break;case"select":t.multiple=!!r.multiple,null!=(i=r.value)?nt(t,!!r.multiple,i,!1):null!=r.defaultValue&&nt(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return Wu(e),null;case 6:if(t&&null!=e.stateNode)Au(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));if(n=Qa($a.current),Qa(Wa.current),ha(e)){if(r=e.stateNode,n=e.memoizedProps,r[ho]=e,(i=r.nodeValue!==n)&&null!==(t=ra))switch(t.tag){case 3:Jr(r.nodeValue,n,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&t.mode))}i&&(e.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=e,e.stateNode=r}return Wu(e),null;case 13:if(jo(ti),r=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&e.mode)&&0==(128&e.flags))da(),pa(),e.flags|=98560,i=!1;else if(i=ha(e),null!==r&&null!==r.dehydrated){if(null===t){if(!i)throw Error(a(318));if(!(i=null!==(i=e.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ho]=e}else pa(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;Wu(e),i=!1}else null!==ia&&(is(ia),ia=null),i=!0;if(!i)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=n,e):((r=null!==r)!==(null!==t&&null!==t.memoizedState)&&r&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&ti.current)?0===Al&&(Al=3):vs())),null!==e.updateQueue&&(e.flags|=4),Wu(e),null);case 4:return Ka(),Cu(t,e),null===t&&Br(e.stateNode.containerInfo),Wu(e),null;case 10:return Na(e.type._context),Wu(e),null;case 19:if(jo(ti),null===(i=e.memoizedState))return Wu(e),null;if(r=0!=(128&e.flags),null===(l=i.rendering))if(r)Yu(i,!1);else{if(0!==Al||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(l=ei(t))){for(e.flags|=128,Yu(i,!1),null!==(r=l.updateQueue)&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;null!==n;)t=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,t=l.dependencies,i.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Lo(ti,1&ti.current|2),e.child}t=t.sibling}null!==i.tail&&Kt()>Bl&&(e.flags|=128,r=!0,Yu(i,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=ei(l))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),Yu(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Wu(e),null}else 2*Kt()-i.renderingStartTime>Bl&&1073741824!==n&&(e.flags|=128,r=!0,Yu(i,!1),e.lanes=4194304);i.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=i.last)?n.sibling=l:e.child=l,i.last=l)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,n=ti.current,Lo(ti,r?1&n|2:1&n),e):(Wu(e),null);case 22:case 23:return fs(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&0!=(1&e.mode)?0!=(1073741824&Cl)&&(Wu(e),6&e.subtreeFlags&&(e.flags|=8192)):Wu(e),null;case 24:case 25:return null}throw Error(a(156,e.tag))}function $u(t,e){switch(na(e),e.tag){case 1:return Oo(e.type)&&Ao(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return Ka(),jo(To),jo(Mo),ri(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Za(e),null;case 13:if(jo(ti),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(a(340));pa()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return jo(ti),null;case 4:return Ka(),null;case 10:return Na(e.type._context),null;case 22:case 23:return fs(),null;default:return null}}Pu=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cu=function(){},Ou=function(t,e,n,r){var o=t.memoizedProps;if(o!==r){t=e.stateNode,Qa(Wa.current);var a,i=null;switch(n){case"input":o=Q(t,o),r=Q(t,r),i=[];break;case"select":o=R({},o,{value:void 0}),r=R({},r,{value:void 0}),i=[];break;case"textarea":o=rt(t,o),r=rt(t,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(t.onclick=Zr)}for(c in mt(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Ir("scroll",t),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},Au=function(t,e,n,r){n!==r&&(e.flags|=4)};var Qu=!1,Xu=!1,Ku="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Zu(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ss(t,e,n)}else n.current=null}function tl(t,e,n){try{n()}catch(n){Ss(t,e,n)}}var el=!1;function nl(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&t)===t){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(e,n,a)}o=o.next}while(o!==r)}}function rl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ol(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function al(t){var e=t.alternate;null!==e&&(t.alternate=null,al(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[ho],delete e[po],delete e[go],delete e[yo],delete e[mo])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function il(t){return 5===t.tag||3===t.tag||4===t.tag}function ul(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||il(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Zr));else if(4!==r&&null!==(t=t.child))for(ll(t,e,n),t=t.sibling;null!==t;)ll(t,e,n),t=t.sibling}function sl(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(sl(t,e,n),t=t.sibling;null!==t;)sl(t,e,n),t=t.sibling}var cl=null,fl=!1;function hl(t,e,n){for(n=n.child;null!==n;)dl(t,e,n),n=n.sibling}function dl(t,e,n){if(ae&&"function"==typeof ae.onCommitFiberUnmount)try{ae.onCommitFiberUnmount(oe,n)}catch(t){}switch(n.tag){case 5:Xu||Zu(n,e);case 6:var r=cl,o=fl;cl=null,hl(t,e,n),fl=o,null!==(cl=r)&&(fl?(t=cl,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(fl?(t=cl,n=n.stateNode,8===t.nodeType?lo(t.parentNode,n):1===t.nodeType&&lo(t,n),Be(t)):lo(cl,n.stateNode));break;case 4:r=cl,o=fl,cl=n.stateNode.containerInfo,fl=!0,hl(t,e,n),cl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Xu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tl(n,e,i),o=o.next}while(o!==r)}hl(t,e,n);break;case 1:if(!Xu&&(Zu(n,e),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(t){Ss(n,e,t)}hl(t,e,n);break;case 21:hl(t,e,n);break;case 22:1&n.mode?(Xu=(r=Xu)||null!==n.memoizedState,hl(t,e,n),Xu=r):hl(t,e,n);break;default:hl(t,e,n)}}function pl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Ku),e.forEach((function(e){var r=Ns.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function vl(t,e){var n=e.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=t,u=e,l=u;t:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,fl=!1;break t;case 3:case 4:cl=l.stateNode.containerInfo,fl=!0;break t}l=l.return}if(null===cl)throw Error(a(160));dl(i,u,o),cl=null,fl=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(t){Ss(o,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)gl(e,t),e=e.sibling}function gl(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(vl(e,t),yl(t),4&r){try{nl(3,t,t.return),rl(3,t)}catch(e){Ss(t,t.return,e)}try{nl(5,t,t.return)}catch(e){Ss(t,t.return,e)}}break;case 1:vl(e,t),yl(t),512&r&&null!==n&&Zu(n,n.return);break;case 5:if(vl(e,t),yl(t),512&r&&null!==n&&Zu(n,n.return),32&t.flags){var o=t.stateNode;try{ht(o,"")}catch(e){Ss(t,t.return,e)}}if(4&r&&null!=(o=t.stateNode)){var i=t.memoizedProps,u=null!==n?n.memoizedProps:i,l=t.type,s=t.updateQueue;if(t.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&K(o,i),bt(l,u);var c=bt(l,i);for(u=0;u<s.length;u+=2){var f=s[u],h=s[u+1];"style"===f?gt(o,h):"dangerouslySetInnerHTML"===f?ft(o,h):"children"===f?ht(o,h):b(o,f,h,c)}switch(l){case"input":J(o,i);break;case"textarea":at(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?nt(o,!!i.multiple,p,!1):d!==!!i.multiple&&(null!=i.defaultValue?nt(o,!!i.multiple,i.defaultValue,!0):nt(o,!!i.multiple,i.multiple?[]:"",!1))}o[po]=i}catch(e){Ss(t,t.return,e)}}break;case 6:if(vl(e,t),yl(t),4&r){if(null===t.stateNode)throw Error(a(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(e){Ss(t,t.return,e)}}break;case 3:if(vl(e,t),yl(t),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Be(e.containerInfo)}catch(e){Ss(t,t.return,e)}break;case 4:default:vl(e,t),yl(t);break;case 13:vl(e,t),yl(t),8192&(o=t.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Hl=Kt())),4&r&&pl(t);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&t.mode?(Xu=(c=Xu)||f,vl(e,t),Xu=c):vl(e,t),yl(t),8192&r){if(c=null!==t.memoizedState,(t.stateNode.isHidden=c)&&!f&&0!=(1&t.mode))for(Ju=t,f=t.child;null!==f;){for(h=Ju=f;null!==Ju;){switch(p=(d=Ju).child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:Zu(d,d.return);var v=d.stateNode;if("function"==typeof v.componentWillUnmount){r=d,n=d.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(t){Ss(r,n,t)}}break;case 5:Zu(d,d.return);break;case 22:if(null!==d.memoizedState){xl(h);continue}}null!==p?(p.return=d,Ju=p):xl(h)}f=f.sibling}t:for(f=null,h=t;;){if(5===h.tag){if(null===f){f=h;try{o=h.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=h.stateNode,u=null!=(s=h.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=vt("display",u))}catch(e){Ss(t,t.return,e)}}}else if(6===h.tag){if(null===f)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(e){Ss(t,t.return,e)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===t)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===t)break t;for(;null===h.sibling;){if(null===h.return||h.return===t)break t;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vl(e,t),yl(t),4&r&&pl(t);case 21:}}function yl(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(il(n)){var r=n;break t}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ht(o,""),r.flags&=-33),sl(t,ul(t),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ll(t,ul(t),i);break;default:throw Error(a(161))}}catch(e){Ss(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function ml(t,e,n){Ju=t,bl(t,e,n)}function bl(t,e,n){for(var r=0!=(1&t.mode);null!==Ju;){var o=Ju,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Qu;if(!i){var u=o.alternate,l=null!==u&&null!==u.memoizedState||Xu;u=Qu;var s=Xu;if(Qu=i,(Xu=l)&&!s)for(Ju=o;null!==Ju;)l=(i=Ju).child,22===i.tag&&null!==i.memoizedState?kl(o):null!==l?(l.return=i,Ju=l):kl(o);for(;null!==a;)Ju=a,bl(a,e,n),a=a.sibling;Ju=o,Qu=u,Xu=s}wl(t)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Ju=a):wl(t)}}function wl(t){for(;null!==Ju;){var e=Ju;if(0!=(8772&e.flags)){var n=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:Xu||rl(5,e);break;case 1:var r=e.stateNode;if(4&e.flags&&!Xu)if(null===n)r.componentDidMount();else{var o=e.elementType===e.type?n.memoizedProps:nu(e.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;null!==i&&Ga(e,i,r);break;case 3:var u=e.updateQueue;if(null!==u){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}Ga(e,u,n)}break;case 5:var l=e.stateNode;if(null===n&&4&e.flags){n=l;var s=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var c=e.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&Be(h)}}}break;default:throw Error(a(163))}Xu||512&e.flags&&ol(e)}catch(t){Ss(e,e.return,t)}}if(e===t){Ju=null;break}if(null!==(n=e.sibling)){n.return=e.return,Ju=n;break}Ju=e.return}}function xl(t){for(;null!==Ju;){var e=Ju;if(e===t){Ju=null;break}var n=e.sibling;if(null!==n){n.return=e.return,Ju=n;break}Ju=e.return}}function kl(t){for(;null!==Ju;){var e=Ju;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{rl(4,e)}catch(t){Ss(e,n,t)}break;case 1:var r=e.stateNode;if("function"==typeof r.componentDidMount){var o=e.return;try{r.componentDidMount()}catch(t){Ss(e,o,t)}}var a=e.return;try{ol(e)}catch(t){Ss(e,a,t)}break;case 5:var i=e.return;try{ol(e)}catch(t){Ss(e,i,t)}}}catch(t){Ss(e,e.return,t)}if(e===t){Ju=null;break}var u=e.sibling;if(null!==u){u.return=e.return,Ju=u;break}Ju=e.return}}var _l,Sl=Math.ceil,El=w.ReactCurrentDispatcher,jl=w.ReactCurrentOwner,Ll=w.ReactCurrentBatchConfig,Nl=0,Ml=null,Tl=null,Pl=0,Cl=0,Ol=Eo(0),Al=0,Fl=null,Dl=0,Rl=0,zl=0,Il=null,ql=null,Hl=0,Bl=1/0,Ul=null,Gl=!1,Yl=null,Wl=null,Vl=!1,$l=null,Ql=0,Xl=0,Kl=null,Jl=-1,Zl=0;function ts(){return 0!=(6&Nl)?Kt():-1!==Jl?Jl:Jl=Kt()}function es(t){return 0==(1&t.mode)?1:0!=(2&Nl)&&0!==Pl?Pl&-Pl:null!==ga.transition?(0===Zl&&(Zl=ve()),Zl):0!==(t=be)?t:t=void 0===(t=window.event)?16:Xe(t.type)}function ns(t,e,n,r){if(50<Xl)throw Xl=0,Kl=null,Error(a(185));ye(t,n,r),0!=(2&Nl)&&t===Ml||(t===Ml&&(0==(2&Nl)&&(Rl|=n),4===Al&&us(t,Pl)),rs(t,r),1===n&&0===Nl&&0==(1&e.mode)&&(Bl=Kt()+500,qo&&Uo()))}function rs(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,o=t.expirationTimes,a=t.pendingLanes;0<a;){var i=31-ie(a),u=1<<i,l=o[i];-1===l?0!=(u&n)&&0==(u&r)||(o[i]=de(u,e)):l<=e&&(t.expiredLanes|=u),a&=~u}}(t,e);var r=he(t,t===Ml?Pl:0);if(0===r)null!==n&&$t(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(null!=n&&$t(n),1===e)0===t.tag?function(t){qo=!0,Bo(t)}(ls.bind(null,t)):Bo(ls.bind(null,t)),io((function(){0==(6&Nl)&&Uo()})),n=null;else{switch(we(r)){case 1:n=Zt;break;case 4:n=te;break;case 16:default:n=ee;break;case 536870912:n=re}n=Ms(n,os.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function os(t,e){if(Jl=-1,Zl=0,0!=(6&Nl))throw Error(a(327));var n=t.callbackNode;if(ks()&&t.callbackNode!==n)return null;var r=he(t,t===Ml?Pl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&t.expiredLanes)||e)e=gs(t,r);else{e=r;var o=Nl;Nl|=2;var i=ps();for(Ml===t&&Pl===e||(Ul=null,Bl=Kt()+500,hs(t,e));;)try{ms();break}catch(e){ds(t,e)}La(),El.current=i,Nl=o,null!==Tl?e=0:(Ml=null,Pl=0,e=Al)}if(0!==e){if(2===e&&(0!==(o=pe(t))&&(r=o,e=as(t,o))),1===e)throw n=Fl,hs(t,0),us(t,r),rs(t,Kt()),n;if(6===e)us(t,r);else{if(o=t.current.alternate,0==(30&r)&&!function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!ur(a(),o))return!1}catch(t){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(o)&&(2===(e=gs(t,r))&&(0!==(i=pe(t))&&(r=i,e=as(t,i))),1===e))throw n=Fl,hs(t,0),us(t,r),rs(t,Kt()),n;switch(t.finishedWork=o,t.finishedLanes=r,e){case 0:case 1:throw Error(a(345));case 2:case 5:xs(t,ql,Ul);break;case 3:if(us(t,r),(130023424&r)===r&&10<(e=Hl+500-Kt())){if(0!==he(t,0))break;if(((o=t.suspendedLanes)&r)!==r){ts(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=ro(xs.bind(null,t,ql,Ul),e);break}xs(t,ql,Ul);break;case 4:if(us(t,r),(4194240&r)===r)break;for(e=t.eventTimes,o=-1;0<r;){var u=31-ie(r);i=1<<u,(u=e[u])>o&&(o=u),r&=~i}if(r=o,10<(r=(120>(r=Kt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){t.timeoutHandle=ro(xs.bind(null,t,ql,Ul),r);break}xs(t,ql,Ul);break;default:throw Error(a(329))}}}return rs(t,Kt()),t.callbackNode===n?os.bind(null,t):null}function as(t,e){var n=Il;return t.current.memoizedState.isDehydrated&&(hs(t,e).flags|=256),2!==(t=gs(t,e))&&(e=ql,ql=n,null!==e&&is(e)),t}function is(t){null===ql?ql=t:ql.push.apply(ql,t)}function us(t,e){for(e&=~zl,e&=~Rl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-ie(e),r=1<<n;t[n]=-1,e&=~r}}function ls(t){if(0!=(6&Nl))throw Error(a(327));ks();var e=he(t,0);if(0==(1&e))return rs(t,Kt()),null;var n=gs(t,e);if(0!==t.tag&&2===n){var r=pe(t);0!==r&&(e=r,n=as(t,r))}if(1===n)throw n=Fl,hs(t,0),us(t,e),rs(t,Kt()),n;if(6===n)throw Error(a(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,xs(t,ql,Ul),rs(t,Kt()),null}function ss(t,e){var n=Nl;Nl|=1;try{return t(e)}finally{0===(Nl=n)&&(Bl=Kt()+500,qo&&Uo())}}function cs(t){null!==$l&&0===$l.tag&&0==(6&Nl)&&ks();var e=Nl;Nl|=1;var n=Ll.transition,r=be;try{if(Ll.transition=null,be=1,t)return t()}finally{be=r,Ll.transition=n,0==(6&(Nl=e))&&Uo()}}function fs(){Cl=Ol.current,jo(Ol)}function hs(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,oo(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:Ka(),jo(To),jo(Mo),ri();break;case 5:Za(r);break;case 4:Ka();break;case 13:case 19:jo(ti);break;case 10:Na(r.type._context);break;case 22:case 23:fs()}n=n.return}if(Ml=t,Tl=t=Os(t.current,null),Pl=Cl=e,Al=0,Fl=null,zl=Rl=Dl=0,ql=Il=null,null!==Ca){for(e=0;e<Ca.length;e++)if(null!==(r=(n=Ca[e]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ca=null}return t}function ds(t,e){for(;;){var n=Tl;try{if(La(),oi.current=Ji,ci){for(var r=ui.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ci=!1}if(ii=0,si=li=ui=null,fi=!1,hi=0,jl.current=null,null===n||null===n.return){Al=1,Fl=e,Tl=null;break}t:{var i=t,u=n.return,l=n,s=e;if(e=Pl,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=l,h=f.tag;if(0==(1&f.mode)&&(0===h||11===h||15===h)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=gu(u);if(null!==p){p.flags&=-257,yu(p,u,l,0,e),1&p.mode&&vu(i,c,e),s=c;var v=(e=p).updateQueue;if(null===v){var g=new Set;g.add(s),e.updateQueue=g}else v.add(s);break t}if(0==(1&e)){vu(i,c,e),vs();break t}s=Error(a(426))}else if(aa&&1&l.mode){var y=gu(u);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),yu(y,u,l,0,e),va(su(s,l));break t}}i=s=su(s,l),4!==Al&&(Al=2),null===Il?Il=[i]:Il.push(i),i=u;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e,Ba(i,du(0,s,e));break t;case 1:l=s;var m=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof m.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){i.flags|=65536,e&=-e,i.lanes|=e,Ba(i,pu(i,l,e));break t}}i=i.return}while(null!==i)}ws(n)}catch(t){e=t,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function ps(){var t=El.current;return El.current=Ji,null===t?Ji:t}function vs(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Ml||0==(268435455&Dl)&&0==(268435455&Rl)||us(Ml,Pl)}function gs(t,e){var n=Nl;Nl|=2;var r=ps();for(Ml===t&&Pl===e||(Ul=null,hs(t,e));;)try{ys();break}catch(e){ds(t,e)}if(La(),Nl=n,El.current=r,null!==Tl)throw Error(a(261));return Ml=null,Pl=0,Al}function ys(){for(;null!==Tl;)bs(Tl)}function ms(){for(;null!==Tl&&!Qt();)bs(Tl)}function bs(t){var e=_l(t.alternate,t,Cl);t.memoizedProps=t.pendingProps,null===e?ws(t):Tl=e,jl.current=null}function ws(t){var e=t;do{var n=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(n=Vu(n,e,Cl)))return void(Tl=n)}else{if(null!==(n=$u(n,e)))return n.flags&=32767,void(Tl=n);if(null===t)return Al=6,void(Tl=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Tl=e);Tl=e=t}while(null!==e);0===Al&&(Al=5)}function xs(t,e,n){var r=be,o=Ll.transition;try{Ll.transition=null,be=1,function(t,e,n,r){do{ks()}while(null!==$l);if(0!=(6&Nl))throw Error(a(327));n=t.finishedWork;var o=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var o=31-ie(n),a=1<<o;e[o]=0,r[o]=-1,t[o]=-1,n&=~a}}(t,i),t===Ml&&(Tl=Ml=null,Pl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Vl||(Vl=!0,Ms(ee,(function(){return ks(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ll.transition,Ll.transition=null;var u=be;be=1;var l=Nl;Nl|=4,jl.current=null,function(t,e){if(to=Ge,dr(t=hr())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var r=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(t){n=null;break t}var u=0,l=-1,s=-1,c=0,f=0,h=t,d=null;e:for(;;){for(var p;h!==n||0!==o&&3!==h.nodeType||(l=u+o),h!==i||0!==r&&3!==h.nodeType||(s=u+r),3===h.nodeType&&(u+=h.nodeValue.length),null!==(p=h.firstChild);)d=h,h=p;for(;;){if(h===t)break e;if(d===n&&++c===o&&(l=u),d===i&&++f===r&&(s=u),null!==(p=h.nextSibling))break;d=(h=d).parentNode}h=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(eo={focusedElem:t,selectionRange:n},Ge=!1,Ju=e;null!==Ju;)if(t=(e=Ju).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,Ju=t;else for(;null!==Ju;){e=Ju;try{var v=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,y=v.memoizedState,m=e.stateNode,b=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:nu(e.type,g),y);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=e.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(t){Ss(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,Ju=t;break}Ju=e.return}v=el,el=!1}(t,n),gl(n,t),pr(eo),Ge=!!to,eo=to=null,t.current=n,ml(n,t,o),Xt(),Nl=l,be=u,Ll.transition=i}else t.current=n;if(Vl&&(Vl=!1,$l=t,Ql=o),i=t.pendingLanes,0===i&&(Wl=null),function(t){if(ae&&"function"==typeof ae.onCommitFiberRoot)try{ae.onCommitFiberRoot(oe,t,void 0,128==(128&t.current.flags))}catch(t){}}(n.stateNode),rs(t,Kt()),null!==e)for(r=t.onRecoverableError,n=0;n<e.length;n++)o=e[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,t=Yl,Yl=null,t;0!=(1&Ql)&&0!==t.tag&&ks(),i=t.pendingLanes,0!=(1&i)?t===Kl?Xl++:(Xl=0,Kl=t):Xl=0,Uo()}(t,e,n,r)}finally{Ll.transition=o,be=r}return null}function ks(){if(null!==$l){var t=we(Ql),e=Ll.transition,n=be;try{if(Ll.transition=null,be=16>t?16:t,null===$l)var r=!1;else{if(t=$l,$l=null,Ql=0,0!=(6&Nl))throw Error(a(331));var o=Nl;for(Nl|=4,Ju=t.current;null!==Ju;){var i=Ju,u=i.child;if(0!=(16&Ju.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(Ju=c;null!==Ju;){var f=Ju;switch(f.tag){case 0:case 11:case 15:nl(8,f,i)}var h=f.child;if(null!==h)h.return=f,Ju=h;else for(;null!==Ju;){var d=(f=Ju).sibling,p=f.return;if(al(f),f===c){Ju=null;break}if(null!==d){d.return=p,Ju=d;break}Ju=p}}}var v=i.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ju=i}}if(0!=(2064&i.subtreeFlags)&&null!==u)u.return=i,Ju=u;else t:for(;null!==Ju;){if(0!=(2048&(i=Ju).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var m=i.sibling;if(null!==m){m.return=i.return,Ju=m;break t}Ju=i.return}}var b=t.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(0!=(2064&u.subtreeFlags)&&null!==w)w.return=u,Ju=w;else t:for(u=b;null!==Ju;){if(0!=(2048&(l=Ju).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(t){Ss(l,l.return,t)}if(l===u){Ju=null;break t}var x=l.sibling;if(null!==x){x.return=l.return,Ju=x;break t}Ju=l.return}}if(Nl=o,Uo(),ae&&"function"==typeof ae.onPostCommitFiberRoot)try{ae.onPostCommitFiberRoot(oe,t)}catch(t){}r=!0}return r}finally{be=n,Ll.transition=e}}return!1}function _s(t,e,n){t=qa(t,e=du(0,e=su(n,e),1),1),e=ts(),null!==t&&(ye(t,1,e),rs(t,e))}function Ss(t,e,n){if(3===t.tag)_s(t,t,n);else for(;null!==e;){if(3===e.tag){_s(e,t,n);break}if(1===e.tag){var r=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){e=qa(e,t=pu(e,t=su(n,t),1),1),t=ts(),null!==e&&(ye(e,1,t),rs(e,t));break}}e=e.return}}function Es(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=ts(),t.pingedLanes|=t.suspendedLanes&n,Ml===t&&(Pl&n)===n&&(4===Al||3===Al&&(130023424&Pl)===Pl&&500>Kt()-Hl?hs(t,0):zl|=n),rs(t,e)}function js(t,e){0===e&&(0==(1&t.mode)?e=1:(e=ce,0==(130023424&(ce<<=1))&&(ce=4194304)));var n=ts();null!==(t=Fa(t,e))&&(ye(t,e,n),rs(t,n))}function Ls(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),js(t,n)}function Ns(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(e),js(t,n)}function Ms(t,e){return Vt(t,e)}function Ts(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ps(t,e,n,r){return new Ts(t,e,n,r)}function Cs(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Os(t,e){var n=t.alternate;return null===n?((n=Ps(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function As(t,e,n,r,o,i){var u=2;if(r=t,"function"==typeof t)Cs(t)&&(u=1);else if("string"==typeof t)u=5;else t:switch(t){case _:return Fs(n.children,o,i,e);case S:u=8,o|=8;break;case E:return(t=Ps(12,n,e,2|o)).elementType=E,t.lanes=i,t;case M:return(t=Ps(13,n,e,o)).elementType=M,t.lanes=i,t;case T:return(t=Ps(19,n,e,o)).elementType=T,t.lanes=i,t;case O:return Ds(n,o,i,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case j:u=10;break t;case L:u=9;break t;case N:u=11;break t;case P:u=14;break t;case C:u=16,r=null;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Ps(u,n,e,o)).elementType=t,e.type=r,e.lanes=i,e}function Fs(t,e,n,r){return(t=Ps(7,t,r,e)).lanes=n,t}function Ds(t,e,n,r){return(t=Ps(22,t,r,e)).elementType=O,t.lanes=n,t.stateNode={isHidden:!1},t}function Rs(t,e,n){return(t=Ps(6,t,null,e)).lanes=n,t}function zs(t,e,n){return(e=Ps(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Is(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ge(0),this.expirationTimes=ge(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ge(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qs(t,e,n,r,o,a,i,u,l){return t=new Is(t,e,n,u,l),1===e?(e=1,!0===a&&(e|=8)):e=0,a=Ps(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),t}function Hs(t){if(!t)return No;t:{if(Bt(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Oo(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(a(171))}if(1===t.tag){var n=t.type;if(Oo(n))return Do(t,n,e)}return e}function Bs(t,e,n,r,o,a,i,u,l){return(t=qs(n,r,!0,t,0,a,0,u,l)).context=Hs(null),n=t.current,(a=Ia(r=ts(),o=es(n))).callback=null!=e?e:null,qa(n,a,o),t.current.lanes=o,ye(t,o,r),rs(t,r),t}function Us(t,e,n,r){var o=e.current,a=ts(),i=es(o);return n=Hs(n),null===e.context?e.context=n:e.pendingContext=n,(e=Ia(a,i)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=qa(o,e,i))&&(ns(t,o,i,a),Ha(t,o,i)),i}function Gs(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Ys(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function Ws(t,e){Ys(t,e),(t=t.alternate)&&Ys(t,e)}_l=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||To.current)bu=!0;else{if(0==(t.lanes&n)&&0==(128&e.flags))return bu=!1,function(t,e,n){switch(e.tag){case 3:Mu(e),pa();break;case 5:Ja(e);break;case 1:Oo(e.type)&&Ro(e);break;case 4:Xa(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,o=e.memoizedProps.value;Lo(_a,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=e.memoizedState))return null!==r.dehydrated?(Lo(ti,1&ti.current),e.flags|=128,null):0!=(n&e.child.childLanes)?Ru(t,e,n):(Lo(ti,1&ti.current),null!==(t=Gu(t,e,n))?t.sibling:null);Lo(ti,1&ti.current);break;case 19:if(r=0!=(n&e.childLanes),0!=(128&t.flags)){if(r)return Bu(t,e,n);e.flags|=128}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ti,ti.current),r)break;return null;case 22:case 23:return e.lanes=0,Su(t,e,n)}return Gu(t,e,n)}(t,e,n);bu=0!=(131072&t.flags)}else bu=!1,aa&&0!=(1048576&e.flags)&&ta(e,Vo,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Uu(t,e),t=e.pendingProps;var o=Co(e,Mo.current);Ta(e,n),o=gi(null,e,r,t,o,n);var i=yi();return e.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Oo(r)?(i=!0,Ro(e)):i=!1,e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ra(e),o.updater=ou,e.stateNode=o,o._reactInternals=e,lu(e,r,t,n),e=Nu(null,e,r,!0,i,n)):(e.tag=0,aa&&i&&ea(e),wu(null,e,o,n),e=e.child),e;case 16:r=e.elementType;t:{switch(Uu(t,e),t=e.pendingProps,r=(o=r._init)(r._payload),e.type=r,o=e.tag=function(t){if("function"==typeof t)return Cs(t)?1:0;if(null!=t){if((t=t.$$typeof)===N)return 11;if(t===P)return 14}return 2}(r),t=nu(r,t),o){case 0:e=ju(null,e,r,t,n);break t;case 1:e=Lu(null,e,r,t,n);break t;case 11:e=xu(null,e,r,t,n);break t;case 14:e=ku(null,e,r,nu(r.type,t),n);break t}throw Error(a(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,ju(t,e,r,o=e.elementType===r?o:nu(r,o),n);case 1:return r=e.type,o=e.pendingProps,Lu(t,e,r,o=e.elementType===r?o:nu(r,o),n);case 3:t:{if(Mu(e),null===t)throw Error(a(387));r=e.pendingProps,o=(i=e.memoizedState).element,za(t,e),Ua(e,r,null,n);var u=e.memoizedState;if(r=u.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},e.updateQueue.baseState=i,e.memoizedState=i,256&e.flags){e=Tu(t,e,r,n,o=su(Error(a(423)),e));break t}if(r!==o){e=Tu(t,e,r,n,o=su(Error(a(424)),e));break t}for(oa=so(e.stateNode.containerInfo.firstChild),ra=e,aa=!0,ia=null,n=ka(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===o){e=Gu(t,e,n);break t}wu(t,e,r,n)}e=e.child}return e;case 5:return Ja(e),null===t&&ca(e),r=e.type,o=e.pendingProps,i=null!==t?t.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==i&&no(r,i)&&(e.flags|=32),Eu(t,e),wu(t,e,u,n),e.child;case 6:return null===t&&ca(e),null;case 13:return Ru(t,e,n);case 4:return Xa(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=xa(e,null,r,n):wu(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,xu(t,e,r,o=e.elementType===r?o:nu(r,o),n);case 7:return wu(t,e,e.pendingProps,n),e.child;case 8:case 12:return wu(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,u=o.value,Lo(_a,r._currentValue),r._currentValue=u,null!==i)if(ur(i.value,u)){if(i.children===o.children&&!To.current){e=Gu(t,e,n);break t}}else for(null!==(i=e.child)&&(i.return=e);null!==i;){var l=i.dependencies;if(null!==l){u=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Ia(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Ma(i.return,n,e),l.lanes|=n;break}s=s.next}}else if(10===i.tag)u=i.type===e.type?null:i.child;else if(18===i.tag){if(null===(u=i.return))throw Error(a(341));u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),Ma(u,n,e),u=i.sibling}else u=i.child;if(null!==u)u.return=i;else for(u=i;null!==u;){if(u===e){u=null;break}if(null!==(i=u.sibling)){i.return=u.return,u=i;break}u=u.return}i=u}wu(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,Ta(e,n),r=r(o=Pa(o)),e.flags|=1,wu(t,e,r,n),e.child;case 14:return o=nu(r=e.type,e.pendingProps),ku(t,e,r,o=nu(r.type,o),n);case 15:return _u(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:nu(r,o),Uu(t,e),e.tag=1,Oo(r)?(t=!0,Ro(e)):t=!1,Ta(e,n),iu(e,r,o),lu(e,r,o,n),Nu(null,e,r,!0,t,n);case 19:return Bu(t,e,n);case 22:return Su(t,e,n)}throw Error(a(156,e.tag))};var Vs="function"==typeof reportError?reportError:function(t){console.error(t)};function $s(t){this._internalRoot=t}function Qs(t){this._internalRoot=t}function Xs(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function Ks(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Js(){}function Zs(t,e,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var u=o;o=function(){var t=Gs(i);u.call(t)}}Us(e,i,t,o)}else i=function(t,e,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var t=Gs(i);a.call(t)}}var i=Bs(e,r,t,0,null,!1,0,"",Js);return t._reactRootContainer=i,t[vo]=i.current,Br(8===t.nodeType?t.parentNode:t),cs(),i}for(;o=t.lastChild;)t.removeChild(o);if("function"==typeof r){var u=r;r=function(){var t=Gs(l);u.call(t)}}var l=qs(t,0,!1,null,0,!1,0,"",Js);return t._reactRootContainer=l,t[vo]=l.current,Br(8===t.nodeType?t.parentNode:t),cs((function(){Us(e,l,n,r)})),l}(n,e,t,o,r);return Gs(i)}Qs.prototype.render=$s.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(a(409));Us(t,e,null,null)},Qs.prototype.unmount=$s.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;cs((function(){Us(null,t,null,null)})),e[vo]=null}},Qs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Se();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Oe.length&&0!==e&&e<Oe[n].priority;n++);Oe.splice(n,0,t),0===n&&Re(t)}},xe=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=fe(e.pendingLanes);0!==n&&(me(e,1|n),rs(e,Kt()),0==(6&Nl)&&(Bl=Kt()+500,Uo()))}break;case 13:cs((function(){var e=Fa(t,1);if(null!==e){var n=ts();ns(e,t,1,n)}})),Ws(t,1)}},ke=function(t){if(13===t.tag){var e=Fa(t,134217728);if(null!==e)ns(e,t,134217728,ts());Ws(t,134217728)}},_e=function(t){if(13===t.tag){var e=es(t),n=Fa(t,e);if(null!==n)ns(n,t,e,ts());Ws(t,e)}},Se=function(){return be},Ee=function(t,e){var n=be;try{return be=t,e()}finally{be=n}},kt=function(t,e,n){switch(e){case"input":if(J(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var o=ko(r);if(!o)throw Error(a(90));V(r),J(r,o)}}}break;case"textarea":at(t,n);break;case"select":null!=(e=n.value)&&nt(t,!!n.multiple,e,!1)}},Nt=ss,Mt=cs;var tc={usingClientEntryPoint:!1,Events:[wo,xo,ko,jt,Lt,ss]},ec={findFiberByHostInstance:bo,bundleType:0,version:"18.3.0",rendererPackageName:"react-dom"},nc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Yt(t))?null:t.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-8a015b68cc-20240425"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{oe=rc.inject(nc),ae=rc}catch(ct){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,e.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(e))throw Error(a(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)},e.createRoot=function(t,e){if(!Xs(t))throw Error(a(299));var n=!1,r="",o=Vs;return null!=e&&(!0===e.unstable_strictMode&&(n=!0),void 0!==e.identifierPrefix&&(r=e.identifierPrefix),void 0!==e.onRecoverableError&&(o=e.onRecoverableError)),e=qs(t,1,!1,null,0,n,0,r,o),t[vo]=e.current,Br(8===t.nodeType?t.parentNode:t),new $s(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw t=Object.keys(t).join(","),Error(a(268,t))}return t=null===(t=Yt(e))?null:t.stateNode},e.flushSync=function(t){return cs(t)},e.hydrate=function(t,e,n){if(!Ks(e))throw Error(a(200));return Zs(null,t,e,!0,n)},e.hydrateRoot=function(t,e,n){if(!Xs(t))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",u=Vs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),e=Bs(e,null,t,1,null!=n?n:null,o,0,i,u),t[vo]=e.current,Br(t),r)for(t=0;t<r.length;t++)o=(o=(n=r[t])._getVersion)(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,o]:e.mutableSourceEagerHydrationData.push(n,o);return new Qs(e)},e.render=function(t,e,n){if(!Ks(e))throw Error(a(200));return Zs(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Ks(t))throw Error(a(40));return!!t._reactRootContainer&&(cs((function(){Zs(null,null,t,!1,(function(){t._reactRootContainer=null,t[vo]=null}))})),!0)},e.unstable_batchedUpdates=ss,e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Ks(n))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return Zs(t,e,n,!1,r)},e.version="18.3.0-next-8a015b68cc-20240425"},745:(t,e,n)=>{"use strict";var r=n(935);e.s=r.createRoot,r.hydrateRoot},935:(t,e,n)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(448)},251:(t,e,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(t,e,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==e.key&&(s=""+e.key),void 0!==e.ref&&(c=e.ref),e)i.call(e,r)&&!l.hasOwnProperty(r)&&(a[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===a[r]&&(a[r]=e[r]);return{$$typeof:o,type:t,key:s,ref:c,props:a,_owner:u.current}}e.Fragment=a,e.jsx=s,e.jsxs=s},408:(t,e)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function y(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||p}function m(){}function b(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=y.prototype;var w=b.prototype=new m;w.constructor=b,v(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,r){var o,a={},i=null,u=null;if(null!=e)for(o in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(i=""+e.key),e)k.call(e,o)&&!S.hasOwnProperty(o)&&(a[o]=e[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];a.children=s}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:t,key:i,ref:u,props:a,_owner:_.current}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var L=/\/+/g;function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function M(t,e,o,a,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=t),t=""===a?"."+N(l,0):a,x(i)?(o="",null!=t&&(o=t.replace(L,"$&/")+"/"),M(i,e,o,"",(function(t){return t}))):null!=i&&(j(i)&&(i=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(L,"$&/")+"/")+t)),e.push(i)),1;if(l=0,a=""===a?".":a+":",x(t))for(var s=0;s<t.length;s++){var c=a+N(u=t[s],s);l+=M(u,e,o,c,i)}else if(c=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(t),"function"==typeof c)for(t=c.call(t),s=0;!(u=t.next()).done;)l+=M(u=u.value,e,o,c=a+N(u,s++),i);else if("object"===u)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function T(t,e,n){if(null==t)return t;var r=[],o=0;return M(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function P(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var C={current:null},O={transition:null},A={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:O,ReactCurrentOwner:_};function F(){throw Error("act(...) is not supported in production builds of React.")}e.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!j(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=y,e.Fragment=o,e.Profiler=i,e.PureComponent=b,e.StrictMode=a,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,e.act=F,e.cloneElement=function(t,e,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=v({},t.props),a=t.key,i=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,u=_.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(s in e)k.call(e,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===e[s]&&void 0!==l?l[s]:e[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:t.type,key:a,ref:i,props:o,_owner:u}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:t},t.Consumer=t},e.createElement=E,e.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:s,render:t}},e.isValidElement=j,e.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:P}},e.memo=function(t,e){return{$$typeof:f,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=O.transition;O.transition={};try{t()}finally{O.transition=e}},e.unstable_act=F,e.useCallback=function(t,e){return C.current.useCallback(t,e)},e.useContext=function(t){return C.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return C.current.useDeferredValue(t)},e.useEffect=function(t,e){return C.current.useEffect(t,e)},e.useId=function(){return C.current.useId()},e.useImperativeHandle=function(t,e,n){return C.current.useImperativeHandle(t,e,n)},e.useInsertionEffect=function(t,e){return C.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return C.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return C.current.useMemo(t,e)},e.useReducer=function(t,e,n){return C.current.useReducer(t,e,n)},e.useRef=function(t){return C.current.useRef(t)},e.useState=function(t){return C.current.useState(t)},e.useSyncExternalStore=function(t,e,n){return C.current.useSyncExternalStore(t,e,n)},e.useTransition=function(){return C.current.useTransition()},e.version="18.3.1"},294:(t,e,n)=>{"use strict";t.exports=n(408)},893:(t,e,n)=>{"use strict";t.exports=n(251)},53:(t,e)=>{"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var r=n-1>>>1,o=t[r];if(!(0<a(o,e)))break t;t[r]=e,t[n]=o,n=r}}function r(t){return 0===t.length?null:t[0]}function o(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,o=t.length,i=o>>>1;r<i;){var u=2*(r+1)-1,l=t[u],s=u+1,c=t[s];if(0>a(l,n))s<o&&0>a(c,l)?(t[r]=c,t[s]=n,r=s):(t[r]=l,t[u]=n,r=u);else{if(!(s<o&&0>a(c,n)))break t;t[r]=c,t[s]=n,r=s}}}return e}function a(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}var s=[],c=[],f=1,h=null,d=3,p=!1,v=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(t){for(var e=r(c);null!==e;){if(null===e.callback)o(c);else{if(!(e.startTime<=t))break;o(c),e.sortIndex=e.expirationTime,n(s,e)}e=r(c)}}function x(t){if(g=!1,w(t),!v)if(null!==r(s))v=!0,O(k);else{var e=r(c);null!==e&&A(x,e.startTime-t)}}function k(t,n){v=!1,g&&(g=!1,m(j),j=-1),p=!0;var a=d;try{for(w(n),h=r(s);null!==h&&(!(h.expirationTime>n)||t&&!M());){var i=h.callback;if("function"==typeof i){h.callback=null,d=h.priorityLevel;var u=i(h.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?h.callback=u:h===r(s)&&o(s),w(n)}else o(s);h=r(s)}if(null!==h)var l=!0;else{var f=r(c);null!==f&&A(x,f.startTime-n),l=!1}return l}finally{h=null,d=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,E=null,j=-1,L=5,N=-1;function M(){return!(e.unstable_now()-N<L)}function T(){if(null!==E){var t=e.unstable_now();N=t;var n=!0;try{n=E(!0,t)}finally{n?_():(S=!1,E=null)}}else S=!1}if("function"==typeof b)_=function(){b(T)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,C=P.port2;P.port1.onmessage=T,_=function(){C.postMessage(null)}}else _=function(){y(T,0)};function O(t){E=t,S||(S=!0,_())}function A(t,n){j=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,O(k))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_scheduleCallback=function(t,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,t){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return t={id:f++,callback:o,priorityLevel:t,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>i?(t.sortIndex=a,n(c,t),null===r(s)&&t===r(c)&&(g?(m(j),j=-1):g=!0,A(x,a-i))):(t.sortIndex=u,n(s,t),v||p||(v=!0,O(k))),t},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(t){var e=d;return function(){var n=d;d=e;try{return t.apply(this,arguments)}finally{d=n}}}},840:(t,e,n)=>{"use strict";t.exports=n(53)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=n(78),e=n.n(t);function r(){if(("/definitions"==window.location.pathname||"/definitions/"==window.location.pathname)&&""!=window.location.hash){var t,n=e().select(window.location.hash);if((t=n)&&Array.isArray(t)&&Array.isArray(t[0])&&t[0][0].children&&t[0][0].children[0]){var r=n[0][0].children[0];"false"==r.ariaExpanded&&r.click()}}}n(324),document.addEventListener("DOMContentLoaded",(function(){e().selectAll(".download-data").on("click",(function(){var t=this.href,e=this.text;ga("send","event","Download Data",t,e)})),e().selectAll(".external-link").on("click",(function(){var t=this.href,e=this.text;ga("send","event","External Link",t,e)})),e().selectAll(".top-download-page").on("click",(function(){var t=this.href,e=this.text;ga("send","event","Top-Download Page",t,e)})),e().selectAll(".top-download-file").on("click",(function(){var t=this.href,e=this.text;ga("send","event","Top-Download File",t,e)}))})),window.addEventListener("hashchange",r),window.addEventListener("load",r)})()})();