/*! For license information please see main.e3ef0d82.js.LICENSE.txt */ (()=>{var e={2427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breakpoints=t.BreakpointConstraint=void 0;var r,i=n(2225);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=i._breakpoints[t]&&e=i._breakpoints[t]}))})),f(this,"valuesWithBreakpointProps",(function(e){var t,n=e.length,r=[];return i._sortedBreakpoints.forEach((function(i,o){var a=e[o];o0&&void 0!==arguments[0]?arguments[0]:e.validKeys()).reduce((function(e,n){return e[n]=t._mediaQueries[n],e}),{});return Object.entries(n).reduce((function(e,t){var n=a(t,2),r=n[0];return n[1].forEach((function(t,n){e.push((0,i.createRuleSet)((0,i.createClassName)(r,n),"not all and ".concat(t)))})),e}),[])}},{key:"shouldRenderMediaQuery",value:function(e,t){var n=this;if((e=this._normalizeProps(e)).lessThan){var r=this._breakpoints[e.lessThan];return Math.min.apply(Math,o(t.map((function(e){return n._breakpoints[e]}))))=i}if(e.greaterThanOrEqual){var a=this._breakpoints[e.greaterThanOrEqual];return Math.max.apply(Math,o(t.map((function(e){return n._breakpoints[e]}))))>=a}if(e.between){var s=this._breakpoints[e.between[0]],u=this._breakpoints[e.between[1]],l=t.map((function(e){return n._breakpoints[e]}));return!(Math.max.apply(Math,o(l))=u)}return!1}},{key:"_normalizeProps",value:function(e){if(e.at){var t=this._sortedBreakpoints.indexOf(e.at),n=this._sortedBreakpoints[t+1];return n?{between:[e.at,n]}:{greaterThanOrEqual:e.at}}return e}},{key:"_createBreakpointQuery",value:function(e){if((e=this._normalizeProps(e)).lessThan){var t=this._breakpoints[e.lessThan];return"(max-width:".concat(t-.02,"px)")}if(e.greaterThan){var n=this._breakpoints[this._findNextBreakpoint(e.greaterThan)];return"(min-width:".concat(n,"px)")}if(e.greaterThanOrEqual){var r=this._breakpoints[e.greaterThanOrEqual];return"(min-width:".concat(r,"px)")}if(e.between){var i=this._breakpoints[e.between[0]],o=this._breakpoints[e.between[1]];return"(min-width:".concat(i,"px) and (max-width:").concat(o-.02,"px)")}throw new Error("Unexpected breakpoint props: ".concat(JSON.stringify(e)))}},{key:"_createBreakpointQueries",value:function(e,t){var n=this;return t.reduce((function(t,r){return t.set(function(e){return Array.isArray(e)?e.join("-"):e}(r),n._createBreakpointQuery(f({},e,r))),t}),new Map)}},{key:"_findNextBreakpoint",value:function(e){var t=this._sortedBreakpoints[this._sortedBreakpoints.indexOf(e)+1];if(!t)throw new Error("There is no breakpoint larger than ".concat(e));return t}},{key:"sortedBreakpoints",get:function(){return this._sortedBreakpoints}},{key:"dynamicResponsiveMediaQueries",get:function(){return Array.from(this._mediaQueries[r.at].entries()).reduce((function(e,t){var n=a(t,2);return function(e){for(var t=1;t{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createResponsiveComponents=function(){var e=o.default.createContext({});return e.displayName="Media.DynamicContext",{Consumer:e.Consumer,Provider:function(t){function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}(this,u(n).call(this,e)),f(c(c(t)),"isSupportedEnvironment",(function(){return"undefined"!==typeof window&&"undefined"!==typeof window.matchMedia})),f(c(c(t)),"setupMatchers",(function(e){return Object.keys(e).reduce((function(t,n){return a({},t,f({},n,window.matchMedia(e[n])))}),{})})),f(c(c(t)),"checkMatchers",(function(e){return Object.keys(e).reduce((function(t,n){return a({},t,f({},n,e[n].matches))}),{})})),f(c(c(t)),"mediaQueryStatusChangedCallback",(function(){var e=t.checkMatchers(t.state.mediaQueryMatchers);t.setState({mediaQueryMatches:e})}));var i,o=void 0;return t.isSupportedEnvironment()?(o=t.setupMatchers(e.mediaQueries),i=t.checkMatchers(o)):i=Object.keys(e.mediaQueries).reduce((function(t,n){return a({},t,f({},n,!!e.initialMatchingMediaQueries&&e.initialMatchingMediaQueries.includes(n)))}),{}),t.state={mediaQueryMatchers:o,mediaQueryMatches:i},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,t),function(e,t,n){t&&s(e.prototype,t);n&&s(e,n)}(n,[{key:"componentDidMount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach((function(t){t.addListener(e)}))}}},{key:"componentWillUnmount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach((function(t){return t.removeListener(e)}))}}},{key:"shouldComponentUpdate",value:function(e,t){return!!this.state.mediaQueryMatchers&&(e.children!==this.props.children||!d(this.state.mediaQueryMatches,t.mediaQueryMatches))}},{key:"render",value:function(){return o.default.createElement(e.Provider,{value:this.state.mediaQueryMatches},this.props.children)}}]),n}(o.default.Component)}};var i,o=(i=n(9950))&&i.__esModule?i:{default:i};function a(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interactions=t.InteractionKey=void 0;var r,i=n(2225);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMedia=function(e){var t,n,i=(0,u.castBreakpointsToIntegers)(e.breakpoints),h=new s.MediaQueries(i,e.interactions||{}),w=(0,a.createResponsiveComponents)(),_=o.default.createContext({});_.displayName="Media.Context";var x=o.default.createContext({hasParentMedia:!1,breakpointProps:{}});_.displayName="MediaParent.Context";var E=(0,u.memoize)((function(e){return{onlyMatch:e}}));return{Media:(n=t=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,m(t).call(this,e)),v(y(y(n)),"getMediaParentContextValue",(0,u.memoize)((function(e){return{hasParentMedia:!0,breakpointProps:e}}))),function(e){var t=Object.keys(e).filter((function(e){return b.includes(e)}));if(t.length<1)throw new Error("1 of ".concat(b.join(", ")," is required."));if(t.length>1)throw new Error("Only 1 of ".concat(t.join(", ")," is allowed at a time."))}(e),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),function(e,t,n){t&&p(e.prototype,t);n&&p(e,n)}(t,[{key:"render",value:function(){var e=this,t=this.props,n=(t.children,t.className),r=t.style,i=t.interaction,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["children","className","style","interaction"]),s=this.getMediaParentContextValue(a);return o.default.createElement(x.Consumer,null,(function(l){return o.default.createElement(x.Provider,{value:s},o.default.createElement(_.Consumer,null,(function(){var s,c=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyMatch;if(t.interaction)s=(0,u.createClassName)("interaction",t.interaction);else{if(t.at){var f=h.breakpoints.largestBreakpoint;if(t.at===f){var d=null;try{var p=e._reactInternalFiber._debugOwner.type;d=p.displayName||p.name}catch(b){}console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `` to account for future ')+"breakpoint definitions outside of this range.".concat(d?" It is being used in the ".concat(d," component."):""))}}var m=(0,u.propKey)(a),g=a[m];s=(0,u.createClassName)(m,g)}var y=(!l.hasParentMedia||(0,u.intersection)(h.breakpoints.toVisibleAtBreakpointSet(l.breakpointProps),h.breakpoints.toVisibleAtBreakpointSet(a)).length>0)&&(void 0===c||h.shouldRenderMediaQuery(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaQueries=void 0;var r=n(2427),i=n(794),o=n(2225);function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0})):r(e)},t.createRuleSet=function(e,t){return"@media ".concat(t,"{.").concat(e,"{display:none!important;}}")},t.createClassName=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";Object.defineProperty(t,"H",{enumerable:!0,get:function(){return r.createMedia}});var r=n(1579),i=n(2427)},7901:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case u:return e;default:return t}}case i:return t}}}function x(e){return _(e)===f}t.isForwardRef=function(e){return _(e)===d}},7329:(e,t,n)=>{"use strict";e.exports=n(7901)},8657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(789);n(1942);var i=n(9950);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n=0;r-=1)this.handlers[r].called||(this.handlers[r].called=!0,this.handlers[r](e));for(var i=n;i>=0;i-=1)this.handlers[i].called=!1}else(0,this.handlers[n])(e)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(t){for(var n=[],r=this.handlers.length,i=0;i0;var t=this.handlerSets.get(e);return!!t&&t.hasHandlers()}},{key:"removeHandlers",value:function(t,n){var r=p(this.handlerSets);if(!r.has(t))return new e(this.poolName,r);var i=r.get(t).removeHandlers(n);return i.hasHandlers()?r.set(t,i):r.delete(t),new e(this.poolName,r)}}]),e}();l(y,"createByType",(function(e,t,n){var r=new Map;return r.set(t,new h(n)),new y(e,r)}));var v=function(){function e(t){var n=this;a(this,e),l(this,"handlers",new Map),l(this,"pools",new Map),l(this,"target",void 0),l(this,"createEmitter",(function(e){return function(t){n.pools.forEach((function(n){n.dispatchEvent(e,t)}))}})),this.target=t}return u(e,[{key:"addHandlers",value:function(e,t,n){if(this.pools.has(e)){var r=this.pools.get(e);this.pools.set(e,r.addHandlers(t,n))}else this.pools.set(e,y.createByType(e,t,n));this.handlers.has(t)||this.addTargetHandler(t)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(e,t,n){if(this.pools.has(e)){var r=this.pools.get(e).removeHandlers(t,n);r.hasHandlers()?this.pools.set(e,r):this.pools.delete(e);var i=!1;this.pools.forEach((function(e){return i=i||e.hasHandlers(t)})),i||this.removeTargetHandler(t)}}},{key:"addTargetHandler",value:function(e){var t=this.createEmitter(e);this.handlers.set(e,t),this.target.addEventListener(e,t,!0)}},{key:"removeTargetHandler",value:function(e){this.handlers.has(e)&&(this.target.removeEventListener(e,this.handlers.get(e),!0),this.handlers.delete(e))}}]),e}(),b=new(function(){function e(){var t=this;a(this,e),l(this,"targets",new Map),l(this,"getTarget",(function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=g(e);if(t.targets.has(r))return t.targets.get(r);if(!n)return null;var i=new v(r);return t.targets.set(r,i),i})),l(this,"removeTarget",(function(e){t.targets.delete(g(e))}))}return u(e,[{key:"sub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r.canUseDOM){var i=n.target,o=void 0===i?document:i,a=n.pool,s=void 0===a?"default":a;this.getTarget(o).addHandlers(s,e,m(t))}}},{key:"unsub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r.canUseDOM){var i=n.target,o=void 0===i?document:i,a=n.pool,s=void 0===a?"default":a,u=this.getTarget(o,!1);u&&(u.removeHandlers(s,e,m(t)),u.hasHandlers()||this.removeTarget(o))}}}]),e}()),w=function(){function e(){return a(this,e),d(this,c(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(e,i.PureComponent),u(e,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(e){this.unsubscribe(e),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(e){var t=e.name,n=e.on,r=e.pool,i=e.target;b.sub(t,n,{pool:r,target:i})}},{key:"unsubscribe",value:function(e){var t=e.name,n=e.on,r=e.pool,i=e.target;b.unsub(t,n,{pool:r,target:i})}},{key:"render",value:function(){return null}}]),e}();l(w,"defaultProps",{pool:"default",target:"document"}),w.propTypes={},t.instance=b,t.default=w},3302:(e,t,n)=>{"use strict";var r;r=n(8657),e.exports=r.default,e.exports.instance=r.instance},1475:(e,t,n)=>{"use strict";var r=n(4679),i=n(451),o=n(9932),a=n(9690),s=n(2215),u=n(2072);e.exports=function(e){var t,n=u(this),l=s(o(n,"length"));if(!a(e))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(t=arguments[1]);var c=r(n,0);return i(c,n,l,0,1,e,t),c}},6573:(e,t,n)=>{"use strict";var r=n(8726),i=n(3629),o=n(1475),a=n(7674),s=a(),u=n(6232),l=i(s);r(l,{getPolyfill:a,implementation:o,shim:u}),e.exports=l},7674:(e,t,n)=>{"use strict";var r=n(1475);e.exports=function(){return Array.prototype.flatMap||r}},6232:(e,t,n)=>{"use strict";var r=n(8726),i=n(5241),o=n(7674);e.exports=function(){var e=o();return r(Array.prototype,{flatMap:e},{flatMap:function(){return Array.prototype.flatMap!==e}}),i("flatMap"),e}},6676:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],u=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;sl?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3325:(e,t,n)=>{"use strict";const r=n(6676),i=n(6897),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let u=0;u>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function D(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Z((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Z((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"===typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},3110:(e,t,n)=>{"use strict";var r=n(6989),i=n(1264),o=n(7858),a=n(6265);e.exports=a||r.call(o,i)},3887:(e,t,n)=>{"use strict";var r=n(6989),i=n(1264),o=n(3110);e.exports=function(){return o(r,i,arguments)}},1264:e=>{"use strict";e.exports=Function.prototype.apply},7858:e=>{"use strict";e.exports=Function.prototype.call},9460:(e,t,n)=>{"use strict";var r=n(6989),i=n(7277),o=n(7858),a=n(3110);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},6265:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},3629:(e,t,n)=>{"use strict";var r=n(8259),i=n(6709),o=n(9460),a=n(3887);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},690:(e,t,n)=>{"use strict";var r=n(7375),i=n(9460),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},5685:function(){!function(e){"use strict";var t,n=e.Uint8Array,r=e.HTMLCanvasElement,i=r&&r.prototype,o=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",s=function(e){for(var r,i,o=e.length,a=new n(o/4*3|0),s=0,u=0,l=[0,0],c=0,f=0;o--;)i=e.charCodeAt(s++),255!==(r=t[i-43])&&undefined!==r&&(l[1]=l[0],l[0]=i,f=f<<6|r,4===++c&&(a[u++]=f>>>16,61!==l[1]&&(a[u++]=f>>>8),61!==l[0]&&(a[u++]=f),c=0));return a};n&&(t=new n([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!r||i.toBlob&&i.toBlobHD||(i.toBlob||(i.toBlob=function(e,t){if(t||(t="image/png"),this.mozGetAsFile)e(this.mozGetAsFile("canvas",t));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t))e(this.msToBlob());else{var r,i=Array.prototype.slice.call(arguments,1),u=this[a].apply(this,i),l=u.indexOf(","),c=u.substring(l+1),f=o.test(u.substring(0,l));Blob.fake?((r=new Blob).encoding=f?"base64":"URI",r.data=c,r.size=c.length):n&&(r=f?new Blob([s(c)],{type:t}):new Blob([decodeURIComponent(c)],{type:t})),e(r)}}),!i.toBlobHD&&i.toDataURLHD?i.toBlobHD=function(){a="toDataURLHD";var e=this.toBlob();return a="toDataURL",e}:i.toBlobHD=i.toBlob)}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content||this)},4309:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!==typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=g(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(C){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,n){return new Promise((function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}if(l.onload=function(){var e={statusText:l.statusText,headers:E(l.getAllResponseHeaders()||"")};0===s.url.indexOf("file://")&&(l.status<200||l.status>599)?e.status=200:e.status=l.status,e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;setTimeout((function(){i(new k(t,e))}),0)},l.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){o(new t.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(a?l.responseType="blob":u&&(l.responseType="arraybuffer")),n&&"object"===typeof n.headers&&!(n.headers instanceof p||r.Headers&&n.headers instanceof r.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){h.push(f(e)),l.setRequestHeader(e,d(n.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&l.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",c)}),l.send("undefined"===typeof s._bodyInit?null:s._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=p,r.Request=_,r.Response=k),t.Headers=p,t.Request=_,t.Response=k,t.fetch=A,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},8729:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};e.exports=n}()},1082:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r={value:()=>{}};function i(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),u=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u0)for(var n,r,i=new Array(n),o=0;o{"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}function o(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function a(){return[]}function s(e){return function(t){return t.matches(e)}}n.d(t,{A:()=>fe});var u=Array.prototype.find;function l(){return this.firstElementChild}var c=Array.prototype.filter;function f(){return this.children}function d(e){return new Array(e.length)}function h(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function p(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;st?1:e>=t?0:NaN}h.prototype={constructor:h,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var v="http://www.w3.org/1999/xhtml";const b={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),b.hasOwnProperty(t)?{space:b[t],local:e}:e}function _(e){return function(){this.removeAttribute(e)}}function x(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E(e,t){return function(){this.setAttribute(e,t)}}function k(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function S(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function C(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function D(e){return function(){this.style.removeProperty(e)}}function M(e,t,n){return function(){this.style.setProperty(e,t,n)}}function F(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function O(e){return function(){delete this[e]}}function T(e,t){return function(){this[e]=t}}function N(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function P(e){return e.trim().split(/^|\s+/)}function I(e){return e.classList||new R(e)}function R(e){this._node=e,this._names=P(e.getAttribute("class")||"")}function j(e,t){for(var n=I(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ue=[null];function le(e,t){this._groups=e,this._parents=t}function ce(){return new le([[document.documentElement]],ue)}le.prototype=ce.prototype={constructor:le,select:function(e){"function"!==typeof e&&(e=i(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=S&&(S=k+1);!(E=_[S])&&++S=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=y);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?D:"function"===typeof t?F:M)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||C(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?O:"function"===typeof t?N:T)(e,t)):this.node()[e]},classed:function(e,t){var n=P(e+"");if(arguments.length<2){for(var r=I(this.node()),i=-1,o=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?ie:re,r=0;r{"use strict";n.d(t,{A:()=>o,y:()=>a});var r=n(5574),i=n(2319);function o(e){var t=e.document.documentElement,n=(0,r.A)(e).on("dragstart.drag",i.A,!0);"onselectstart"in t?n.on("selectstart.drag",i.A,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.A)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.A,!0),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},2319:(e,t,n)=>{"use strict";function r(e){e.stopImmediatePropagation()}function i(e){e.preventDefault(),e.stopImmediatePropagation()}n.d(t,{A:()=>i,G:()=>r})},412:(e,t,n)=>{"use strict";function r(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function i(e,t){var n,r,i,a,l,c=new u(e),f=+e.value&&(c.value=e.value),d=[c];for(null==t&&(t=o);n=d.pop();)if(f&&(n.value=+n.data.value),(i=t(n.data))&&(l=i.length))for(n.children=new Array(l),a=l-1;a>=0;--a)d.push(r=n.children[a]=new u(i[a])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(s)}function o(e){return e.children}function a(e){e.data=e.data.data}function s(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function u(e){this.data=e,this.depth=this.height=0,this.parent=null}n.r(t),n.d(t,{flextree:()=>f}),u.prototype=i.prototype={constructor:u,count:function(){return this.eachAfter(r)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return i(this).eachBefore(a)}};const{rE:l}={rE:"2.1.2"},c=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function f(e){const t=Object.assign({},c,e);function n(e){const n=t[e];return"function"===typeof n?n:()=>n}function r(e){const t=a(function(){const e=o(),t=n("nodeSize"),r=n("spacing");return class extends e{constructor(e){super(e),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return t(this.data)}spacing(e){return r(this.data,e.data)}get x(){return this.data.x}set x(e){this.data.x=e}get y(){return this.data.y}set y(e){this.data.y=e}update(){return d(this),h(this),this}}}(),e,(e=>e.children));return t.update(),t.data}function o(){const e=n("nodeSize"),t=n("spacing");return class n extends i.prototype.constructor{constructor(e){super(e)}copy(){const e=a(this.constructor,this,(e=>e.children));return e.each((e=>e.data=e.data.data)),e}get size(){return e(this)}spacing(e){return t(this,e)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const e=this.ancestors();return e[e.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return null===this.children}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce(((e,t)=>n.maxExtents(e,t.extents)),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(e,t){return{top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom),left:Math.min(e.left,t.left),right:Math.max(e.right,t.right)}}}}function a(e,t,n){const r=(t,i)=>{const o=new e(t);Object.assign(o,{parent:i,depth:null===i?0:i.depth+1,height:0,length:1});const a=n(t)||[];return o.children=0===a.length?null:a.map((e=>r(e,o))),o.children&&Object.assign(o,o.children.reduce(((e,t)=>({height:Math.max(e.height,t.height+1),length:e.length+t.length})),o)),o};return r(t,null)}return Object.assign(r,{nodeSize(e){return arguments.length?(t.nodeSize=e,r):t.nodeSize},spacing(e){return arguments.length?(t.spacing=e,r):t.spacing},children(e){return arguments.length?(t.children=e,r):t.children},hierarchy(e,n){const r="undefined"===typeof n?t.children:n;return a(o(),e,r)},dump(e){const t=n("nodeSize"),r=e=>n=>{const i=e+" ",o=e+" ",{x:a,y:s}=n,u=t(n),l=n.children||[],c=0===l.length?" ":",".concat(i,"children: [").concat(o).concat(l.map(r(o)).join(o)).concat(i,"],").concat(e);return"{ size: [".concat(u.join(", "),"],").concat(i,"x: ").concat(a,", y: ").concat(s).concat(c,"},")};return r("\n")(e)}}),r}f.version=l;const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.y=t,(e.children||[]).reduce(((t,n)=>{const[r,i]=t;d(n,e.y+e.ySize);const o=(0===r?n.lExt:n.rExt).bottom;0!==r&&m(e,r,i);return[r+1,E(o,r,i)]}),[0,null]),p(e),x(e),e},h=(e,t,n)=>{"undefined"===typeof t&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach((t=>h(t,r,e.x))),e},p=e=>{(e.children||[]).reduce(((e,t)=>{const[n,r]=e,i=n+t.shift,o=r+i+t.change;return t.relX+=o,[i,o]}),[0,0])},m=(e,t,n)=>{const r=e.children[t-1],i=e.children[t];let o=r,a=r.relX,s=i,u=i.relX,l=!0;for(;o&&s;){o.bottom>n.lowY&&(n=n.next);const r=a+o.prelim-(u+s.prelim)+o.xSize/2+s.xSize/2+o.spacing(s);(r>0||r<0&&l)&&(u+=r,g(i,r),y(e,t,n.index,r)),l=!1;const c=o.bottom,f=s.bottom;c<=f&&(o=b(o),o&&(a+=o.relX)),c>=f&&(s=v(s),s&&(u+=s.relX))}!o&&s?w(e,t,s,u):o&&!s&&_(e,t,o,a)},g=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},y=(e,t,n,r)=>{const i=e.children[t],o=t-n;if(o>1){const t=r/o;e.children[n+1].shift+=t,i.shift-=t,i.change-=r-t}},v=e=>e.hasChildren?e.firstChild:e.lThr,b=e=>e.hasChildren?e.lastChild:e.rThr,w=(e,t,n,r)=>{const i=e.firstChild,o=i.lExt,a=e.children[t];o.lThr=n;const s=r-n.relX-i.lExtRelX;o.relX+=s,o.prelim-=s,i.lExt=a.lExt,i.lExtRelX=a.lExtRelX},_=(e,t,n,r)=>{const i=e.children[t],o=i.rExt,a=e.children[t-1];o.rThr=n;const s=r-n.relX-i.rExtRelX;o.relX+=s,o.prelim-=s,i.rExt=a.rExt,i.rExtRelX=a.rExtRelX},x=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},E=(e,t,n)=>{for(;null!==n&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}}},409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Adder:()=>x,Delaunay:()=>ws,FormatSpecifier:()=>uc,InternMap:()=>S.B,InternSet:()=>S.v,Voronoi:()=>ps,active:()=>jF,arc:()=>MC,area:()=>jC,areaRadial:()=>VC,ascending:()=>i,autoType:()=>ru,axisBottom:()=>Xe,axisLeft:()=>Ze,axisRight:()=>Ye,axisTop:()=>Ke,bin:()=>K,bisect:()=>f,bisectCenter:()=>c,bisectLeft:()=>l,bisectRight:()=>u,bisector:()=>o,blob:()=>Ku,brush:()=>Ui,brushSelection:()=>Li,brushX:()=>Bi,brushY:()=>zi,buffer:()=>Xu,chord:()=>Zi,chordDirected:()=>eo,chordTranspose:()=>Ji,cluster:()=>Sm,color:()=>zo,contourDensity:()=>Za,contours:()=>Va,count:()=>d,create:()=>nC,creator:()=>$S,cross:()=>g,csv:()=>nl,csvFormat:()=>Gs,csvFormatBody:()=>Ws,csvFormatRow:()=>Qs,csvFormatRows:()=>Vs,csvFormatValue:()=>$s,csvParse:()=>Hs,csvParseRows:()=>qs,cubehelix:()=>Fa,cumsum:()=>y,curveBasis:()=>SD,curveBasisClosed:()=>CD,curveBasisOpen:()=>MD,curveBumpX:()=>OD,curveBumpY:()=>TD,curveBundle:()=>PD,curveCardinal:()=>jD,curveCardinalClosed:()=>BD,curveCardinalOpen:()=>UD,curveCatmullRom:()=>GD,curveCatmullRomClosed:()=>VD,curveCatmullRomOpen:()=>$D,curveLinear:()=>NC,curveLinearClosed:()=>YD,curveMonotoneX:()=>iM,curveMonotoneY:()=>oM,curveNatural:()=>uM,curveStep:()=>cM,curveStepAfter:()=>dM,curveStepBefore:()=>fM,descending:()=>v,deviation:()=>w,difference:()=>Me,disjoint:()=>Fe,dispatch:()=>Je.A,drag:()=>Fs,dragDisable:()=>et.A,dragEnable:()=>et.y,dsv:()=>tl,dsvFormat:()=>zs,easeBack:()=>qu,easeBackIn:()=>Uu,easeBackInOut:()=>qu,easeBackOut:()=>Hu,easeBounce:()=>Lu,easeBounceIn:()=>ju,easeBounceInOut:()=>Bu,easeBounceOut:()=>Lu,easeCircle:()=>Au,easeCircleIn:()=>ku,easeCircleInOut:()=>Au,easeCircleOut:()=>Su,easeCubic:()=>fu,easeCubicIn:()=>lu,easeCubicInOut:()=>fu,easeCubicOut:()=>cu,easeElastic:()=>Vu,easeElasticIn:()=>Wu,easeElasticInOut:()=>Qu,easeElasticOut:()=>Vu,easeExp:()=>Eu,easeExpIn:()=>_u,easeExpInOut:()=>Eu,easeExpOut:()=>xu,easeLinear:()=>ou,easePoly:()=>pu,easePolyIn:()=>du,easePolyInOut:()=>pu,easePolyOut:()=>hu,easeQuad:()=>uu,easeQuadIn:()=>au,easeQuadInOut:()=>uu,easeQuadOut:()=>su,easeSin:()=>bu,easeSinIn:()=>yu,easeSinInOut:()=>bu,easeSinOut:()=>vu,every:()=>Ee,extent:()=>_,fcumsum:()=>k,filter:()=>Se,forceCenter:()=>fl,forceCollide:()=>kl,forceLink:()=>Cl,forceManyBody:()=>Jl,forceRadial:()=>ec,forceSimulation:()=>Zl,forceX:()=>tc,forceY:()=>nc,format:()=>hc,formatDefaultLocale:()=>vc,formatLocale:()=>yc,formatPrefix:()=>pc,formatSpecifier:()=>sc,fsum:()=>E,geoAlbers:()=>zp,geoAlbersUsa:()=>Up,geoArea:()=>kf,geoAzimuthalEqualArea:()=>Wp,geoAzimuthalEqualAreaRaw:()=>Gp,geoAzimuthalEquidistant:()=>Qp,geoAzimuthalEquidistantRaw:()=>Vp,geoBounds:()=>od,geoCentroid:()=>yd,geoCircle:()=>Dd,geoClipAntimeridian:()=>zd,geoClipCircle:()=>Ud,geoClipExtent:()=>Kd,geoClipRectangle:()=>$d,geoConicConformal:()=>Jp,geoConicConformalRaw:()=>Zp,geoConicEqualArea:()=>Bp,geoConicEqualAreaRaw:()=>Lp,geoConicEquidistant:()=>rm,geoConicEquidistantRaw:()=>nm,geoContains:()=>dh,geoDistance:()=>rh,geoEqualEarth:()=>cm,geoEqualEarthRaw:()=>lm,geoEquirectangular:()=>tm,geoEquirectangularRaw:()=>em,geoGnomonic:()=>dm,geoGnomonicRaw:()=>fm,geoGraticule:()=>gh,geoGraticule10:()=>yh,geoIdentity:()=>hm,geoInterpolate:()=>vh,geoLength:()=>eh,geoMercator:()=>Kp,geoMercatorRaw:()=>$p,geoNaturalEarth1:()=>mm,geoNaturalEarth1Raw:()=>pm,geoOrthographic:()=>ym,geoOrthographicRaw:()=>gm,geoPath:()=>_p,geoProjection:()=>Ip,geoProjectionMutator:()=>Rp,geoRotation:()=>Sd,geoStereographic:()=>bm,geoStereographicRaw:()=>vm,geoStream:()=>Jc,geoTransform:()=>xp,geoTransverseMercator:()=>_m,geoTransverseMercatorRaw:()=>wm,gray:()=>ca,greatest:()=>pe,greatestIndex:()=>me,group:()=>C,groupSort:()=>j,groups:()=>D,hcl:()=>ba,hierarchy:()=>Cm,histogram:()=>K,hsl:()=>Xo,html:()=>ll,image:()=>il,index:()=>O,indexes:()=>T,interpolate:()=>Vg,interpolateArray:()=>Lg,interpolateBasis:()=>Sg,interpolateBasisClosed:()=>Ag,interpolateBlues:()=>nS,interpolateBrBG:()=>pk,interpolateBuGn:()=>Tk,interpolateBuPu:()=>Pk,interpolateCividis:()=>hS,interpolateCool:()=>FS,interpolateCubehelix:()=>hy,interpolateCubehelixDefault:()=>DS,interpolateCubehelixLong:()=>py,interpolateDate:()=>zg,interpolateDiscrete:()=>Qg,interpolateGnBu:()=>Rk,interpolateGreens:()=>iS,interpolateGreys:()=>aS,interpolateHcl:()=>cy,interpolateHclLong:()=>fy,interpolateHsl:()=>ay,interpolateHslLong:()=>sy,interpolateHue:()=>$g,interpolateInferno:()=>US,interpolateLab:()=>uy,interpolateMagma:()=>zS,interpolateNumber:()=>Ug,interpolateNumberArray:()=>Rg,interpolateObject:()=>Hg,interpolateOrRd:()=>Lk,interpolateOranges:()=>dS,interpolatePRGn:()=>gk,interpolatePiYG:()=>vk,interpolatePlasma:()=>HS,interpolatePuBu:()=>Hk,interpolatePuBuGn:()=>zk,interpolatePuOr:()=>wk,interpolatePuRd:()=>Gk,interpolatePurples:()=>uS,interpolateRainbow:()=>TS,interpolateRdBu:()=>xk,interpolateRdGy:()=>kk,interpolateRdPu:()=>Vk,interpolateRdYlBu:()=>Ak,interpolateRdYlGn:()=>Dk,interpolateReds:()=>cS,interpolateRgb:()=>Tg,interpolateRgbBasis:()=>Pg,interpolateRgbBasisClosed:()=>Ig,interpolateRound:()=>Kg,interpolateSinebow:()=>RS,interpolateSpectral:()=>Fk,interpolateString:()=>Wg,interpolateTransformCss:()=>ty,interpolateTransformSvg:()=>ny,interpolateTurbo:()=>jS,interpolateViridis:()=>BS,interpolateWarm:()=>MS,interpolateYlGn:()=>Yk,interpolateYlGnBu:()=>$k,interpolateYlOrBr:()=>Zk,interpolateYlOrRd:()=>eS,interpolateZoom:()=>iy,interrupt:()=>cF,intersection:()=>Te,interval:()=>JM,isoFormat:()=>OM,isoParse:()=>NM,json:()=>al,lab:()=>fa,lch:()=>va,least:()=>de,leastIndex:()=>he,line:()=>RC,lineRadial:()=>WC,linkHorizontal:()=>eD,linkRadial:()=>nD,linkVertical:()=>tD,local:()=>iC,map:()=>Ae,matcher:()=>eA,max:()=>Y,maxIndex:()=>ie,mean:()=>oe,median:()=>ae,merge:()=>se,min:()=>X,minIndex:()=>ue,namespace:()=>WS,namespaces:()=>GS,nice:()=>Q,now:()=>GM,pack:()=>Xm,packEnclose:()=>Nm,packSiblings:()=>Vm,pairs:()=>le,partition:()=>rg,path:()=>uo,permute:()=>I,pie:()=>zC,piecewise:()=>my,pointRadial:()=>QC,pointer:()=>sC,pointers:()=>uC,polygonArea:()=>yy,polygonCentroid:()=>vy,polygonContains:()=>Ey,polygonHull:()=>xy,polygonLength:()=>ky,precisionFixed:()=>bc,precisionPrefix:()=>wc,precisionRound:()=>_c,quadtree:()=>gl,quantile:()=>ee,quantileSorted:()=>te,quantize:()=>gy,quickselect:()=>Z,radialArea:()=>VC,radialLine:()=>WC,randomBates:()=>Oy,randomBernoulli:()=>Py,randomBeta:()=>jy,randomBinomial:()=>Ly,randomCauchy:()=>zy,randomExponential:()=>Ty,randomGamma:()=>Ry,randomGeometric:()=>Iy,randomInt:()=>Cy,randomIrwinHall:()=>Fy,randomLcg:()=>Vy,randomLogNormal:()=>My,randomLogistic:()=>Uy,randomNormal:()=>Dy,randomPareto:()=>Ny,randomPoisson:()=>Hy,randomUniform:()=>Ay,randomWeibull:()=>By,range:()=>fe,reduce:()=>Ce,reverse:()=>De,rgb:()=>Go,ribbon:()=>wo,ribbonArrow:()=>_o,rollup:()=>M,rollups:()=>F,scaleBand:()=>Xy,scaleDiverging:()=>dE,scaleDivergingLog:()=>hE,scaleDivergingPow:()=>mE,scaleDivergingSqrt:()=>gE,scaleDivergingSymlog:()=>pE,scaleIdentity:()=>gb,scaleImplicit:()=>Ky,scaleLinear:()=>mb,scaleLog:()=>Sb,scaleOrdinal:()=>Yy,scalePoint:()=>Jy,scalePow:()=>Pb,scaleQuantile:()=>Gb,scaleQuantize:()=>Wb,scaleRadial:()=>jb,scaleSequential:()=>oE,scaleSequentialLog:()=>aE,scaleSequentialPow:()=>uE,scaleSequentialQuantile:()=>cE,scaleSequentialSqrt:()=>lE,scaleSequentialSymlog:()=>sE,scaleSqrt:()=>Ib,scaleSymlog:()=>Mb,scaleThreshold:()=>Vb,scaleTime:()=>tE,scaleUtc:()=>nE,scan:()=>ge,schemeAccent:()=>bE,schemeBlues:()=>tS,schemeBrBG:()=>hk,schemeBuGn:()=>Ok,schemeBuPu:()=>Nk,schemeCategory10:()=>vE,schemeDark2:()=>wE,schemeGnBu:()=>Ik,schemeGreens:()=>rS,schemeGreys:()=>oS,schemeOrRd:()=>jk,schemeOranges:()=>fS,schemePRGn:()=>mk,schemePaired:()=>_E,schemePastel1:()=>xE,schemePastel2:()=>EE,schemePiYG:()=>yk,schemePuBu:()=>Uk,schemePuBuGn:()=>Bk,schemePuOr:()=>bk,schemePuRd:()=>qk,schemePurples:()=>sS,schemeRdBu:()=>_k,schemeRdGy:()=>Ek,schemeRdPu:()=>Wk,schemeRdYlBu:()=>Sk,schemeRdYlGn:()=>Ck,schemeReds:()=>lS,schemeSet1:()=>kE,schemeSet2:()=>SE,schemeSet3:()=>AE,schemeSpectral:()=>Mk,schemeTableau10:()=>CE,schemeYlGn:()=>Kk,schemeYlGnBu:()=>Qk,schemeYlOrBr:()=>Xk,schemeYlOrRd:()=>Jk,select:()=>tC,selectAll:()=>lC,selection:()=>eC,selector:()=>YS,selectorAll:()=>JS,shuffle:()=>ye,shuffler:()=>ve,some:()=>ke,sort:()=>R,stack:()=>yM,stackOffsetDiverging:()=>bM,stackOffsetExpand:()=>vM,stackOffsetNone:()=>hM,stackOffsetSilhouette:()=>wM,stackOffsetWiggle:()=>_M,stackOrderAppearance:()=>xM,stackOrderAscending:()=>kM,stackOrderDescending:()=>AM,stackOrderInsideOut:()=>CM,stackOrderNone:()=>pM,stackOrderReverse:()=>DM,stratify:()=>ug,style:()=>xA,subset:()=>Pe,sum:()=>be,superset:()=>Ne,svg:()=>cl,symbol:()=>_D,symbolCircle:()=>rD,symbolCross:()=>iD,symbolDiamond:()=>sD,symbolSquare:()=>dD,symbolStar:()=>fD,symbolTriangle:()=>pD,symbolWye:()=>bD,symbols:()=>wD,text:()=>Ju,thresholdFreedmanDiaconis:()=>ne,thresholdScott:()=>re,thresholdSturges:()=>$,tickFormat:()=>hb,tickIncrement:()=>W,tickStep:()=>V,ticks:()=>G,timeDay:()=>_w,timeDays:()=>xw,timeFormat:()=>F_,timeFormatDefaultLocale:()=>Xx,timeFormatLocale:()=>D_,timeFriday:()=>Mw,timeFridays:()=>Rw,timeHour:()=>vw,timeHours:()=>bw,timeInterval:()=>sw,timeMillisecond:()=>lw,timeMilliseconds:()=>cw,timeMinute:()=>mw,timeMinutes:()=>gw,timeMonday:()=>Sw,timeMondays:()=>Tw,timeMonth:()=>Bw,timeMonths:()=>zw,timeParse:()=>O_,timeSaturday:()=>Fw,timeSaturdays:()=>jw,timeSecond:()=>dw,timeSeconds:()=>hw,timeSunday:()=>kw,timeSundays:()=>Ow,timeThursday:()=>Dw,timeThursdays:()=>Iw,timeTickInterval:()=>k_,timeTicks:()=>E_,timeTuesday:()=>Aw,timeTuesdays:()=>Nw,timeWednesday:()=>Cw,timeWednesdays:()=>Pw,timeWeek:()=>kw,timeWeeks:()=>Ow,timeYear:()=>Hw,timeYears:()=>qw,timeout:()=>ZM,timer:()=>QM,timerFlush:()=>$M,transition:()=>OF,transpose:()=>we,tree:()=>mg,treemap:()=>wg,treemapBinary:()=>_g,treemapDice:()=>ng,treemapResquarify:()=>Eg,treemapSlice:()=>gg,treemapSliceDice:()=>xg,treemapSquarify:()=>bg,tsv:()=>rl,tsvFormat:()=>Zs,tsvFormatBody:()=>Js,tsvFormatRow:()=>tu,tsvFormatRows:()=>eu,tsvFormatValue:()=>nu,tsvParse:()=>Ys,tsvParseRows:()=>Xs,union:()=>Ie,utcDay:()=>Xw,utcDays:()=>Zw,utcFormat:()=>T_,utcFriday:()=>o_,utcFridays:()=>d_,utcHour:()=>$w,utcHours:()=>Kw,utcMillisecond:()=>lw,utcMilliseconds:()=>cw,utcMinute:()=>Ww,utcMinutes:()=>Vw,utcMonday:()=>t_,utcMondays:()=>u_,utcMonth:()=>m_,utcMonths:()=>g_,utcParse:()=>N_,utcSaturday:()=>a_,utcSaturdays:()=>h_,utcSecond:()=>dw,utcSeconds:()=>hw,utcSunday:()=>e_,utcSundays:()=>s_,utcThursday:()=>i_,utcThursdays:()=>f_,utcTickInterval:()=>x_,utcTicks:()=>__,utcTuesday:()=>n_,utcTuesdays:()=>l_,utcWednesday:()=>r_,utcWednesdays:()=>c_,utcWeek:()=>e_,utcWeeks:()=>s_,utcYear:()=>v_,utcYears:()=>b_,variance:()=>b,version:()=>r,window:()=>vA,xml:()=>ul,zip:()=>xe,zoom:()=>XF,zoomIdentity:()=>UF,zoomTransform:()=>HF});var r="6.7.0";function i(e,t){return et?1:e>=t?0:NaN}function o(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>i(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function a(e){return null===e?NaN:+e}const s=o(i),u=s.right,l=s.left,c=o(a).center,f=u;function d(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function h(e){return 0|e.length}function p(e){return!(e>0)}function m(e){return"object"!==typeof e||"length"in e?e:Array.from(e)}function g(){for(var e=arguments.length,t=new Array(e),n=0;ne(...t)}(t.pop()),i=(t=t.map(m)).map(h),o=t.length-1,a=new Array(o+1).fill(0),s=[];if(o<0||i.some(p))return s;for(;;){s.push(a.map(((e,n)=>t[n][e])));let e=o;for(;++a[e]===i[e];){if(0===e)return r?s.map(r):s;a[e--]=0}}}function y(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:i=>n+=+t(i,r++,e)||0)}function v(e,t){return te?1:t>=e?0:NaN}function b(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}function w(e,t){const n=b(e,t);return n?Math.sqrt(n):n}function _(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r=o&&(n=r=o):(n>o&&(n=o),r0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}function E(e,t){const n=new x;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function k(e,t){const n=new x;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):i=>n.add(+t(i,++r,e)||0))}var S=n(150);function A(e){return e}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;i2?n-2:0),i=2;i1?t-1:0),r=1;r1?t-1:0),r=1;r=r.length)return n(i);const a=new S.B,s=r[o++];let u=-1;for(const t of i){const e=s(t,++u,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[t,n]of a)a.set(t,e(n,o));return t(a)}(e,0)}function I(e,t){return Array.from(t,(t=>e[t]))}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1){const t=Uint32Array.from(e,((e,t)=>t));return n.length>1?(n=n.map((t=>e.map(t))),t.sort(((e,t)=>{for(const r of n){const n=i(r[e],r[t]);if(n)return n}}))):(o=e.map(o),t.sort(((e,t)=>i(o[e],o[t])))),I(e,t)}return e.sort(o)}function j(e,t,n){return(1===t.length?R(M(e,t,n),((e,t)=>{let[n,r]=e,[o,a]=t;return i(r,a)||i(n,o)})):R(C(e,n),((e,n)=>{let[r,o]=e,[a,s]=n;return t(o,s)||i(r,a)}))).map((e=>{let[t]=e;return t}))}var L=Array.prototype,B=L.slice;L.map;function z(e){return function(){return e}}var U=Math.sqrt(50),H=Math.sqrt(10),q=Math.sqrt(2);function G(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=new Array(i=r-n+1);++st&&--r,o=new Array(i=r-n+1);++s=0?(o>=U?10:o>=H?5:o>=q?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=U?10:o>=H?5:o>=q?2:1)}function V(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=U?i*=10:o>=H?i*=5:o>=q&&(i*=2),t0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function $(e){return Math.ceil(Math.log(d(e))/Math.LN2)+1}function K(){var e=A,t=_,n=$;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i=c)if(e>=c&&t===_){const e=W(l,c,n);isFinite(e)&&(e>0?c=(Math.floor(c/e)+1)*e:e<0&&(c=(Math.ceil(c*-e)+1)/-e))}else d.pop()}for(var h=d.length;d[0]<=l;)d.shift(),--h;for(;d[h-1]>c;)d.pop(),--h;var p,m=new Array(h+1);for(i=0;i<=h;++i)(p=m[i]=[]).x0=i>0?d[i-1]:l,p.x1=i=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function X(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i;for(;r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);Z(e,t,Math.max(n,Math.floor(t-a*u/i+l)),Math.min(r,Math.floor(t+(i-a)*u/i+l)),o)}const i=e[t];let a=n,s=r;for(J(e,n,t),o(e[r],i)>0&&J(e,n,r);a0;)--s}0===o(e[n],i)?J(e,n,s):(++s,J(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function J(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ee(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return X(e);if(t>=1)return Y(e);var r,i=(r-1)*t,o=Math.floor(i),a=Y(Z(e,o).subarray(0,o+1));return a+(X(e.subarray(o+1))-a)*(i-o)}}function te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(i-o)}}function ne(e,t,n){return Math.ceil((n-t)/(2*(ee(e,.75)-ee(e,.25))*Math.pow(d(e),-1/3)))}function re(e,t,n){return Math.ceil((n-t)/(3.5*w(e)*Math.pow(d(e),-1/3)))}function ie(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n=o)&&(n=o,r=i);return r}function oe(e,t){let n=0,r=0;if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function ae(e,t){return ee(e,.5,t)}function se(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function ue(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ce;const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n}function ce(e,t){return[e,t]}function fe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(r?i(e,o)<0:0===i(e,e))&&(t=a,o=e,r=!0)}}else for(const i of e)(r?n(i,t)<0:0===n(i,i))&&(t=i,r=!0);return t}function he(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ue(e,n);let r=-1,o=-1;for(const i of e)++o,(r<0?0===n(i,i):n(i,t)<0)&&(t=i,r=o);return r}function pe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(r?i(e,o)>0:0===i(e,e))&&(t=a,o=e,r=!0)}}else for(const i of e)(r?n(i,t)>0:0===n(i,i))&&(t=i,r=!0);return t}function me(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ie(e,n);let r=-1,o=-1;for(const i of e)++o,(r<0?0===n(i,i):n(i,t)>0)&&(t=i,r=o);return r}function ge(e,t){const n=he(e,t);return n<0?void 0:n}const ye=ve(Math.random);function ve(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length)-(n=+n);for(;r;){const i=e()*r--|0,o=t[r+n];t[r+n]=t[i+n],t[i+n]=o}return t}}function be(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function we(e){if(!(i=e.length))return[];for(var t=-1,n=X(e,_e),r=new Array(n);++tt(n,r,e)))}function Ce(e,t,n){if("function"!==typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=t(n,o,++a,e);return n}function De(e){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Me(e){e=new Set(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r+e(t)}function Ve(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Qe(){return!this.__axis}function $e(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,l=e===Le||e===Ue?-1:1,c=e===Ue||e===Be?"x":"y",f=e===Le||e===ze?qe:Ge;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):je:i,m=Math.max(o,0)+s,g=t.range(),y=+g[0]+u,v=+g[g.length-1]+u,b=(t.bandwidth?Ve:We)(t.copy(),u),w=d.selection?d.selection():d,_=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(h,t).order(),E=x.exit(),k=x.enter().append("g").attr("class","tick"),S=x.select("line"),A=x.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*m).attr("dy",e===Le?"0em":e===ze?"0.71em":"0.32em")),d!==w&&(_=_.transition(d),x=x.transition(d),S=S.transition(d),A=A.transition(d),E=E.transition(d).attr("opacity",He).attr("transform",(function(e){return isFinite(e=b(e))?f(e+u):this.getAttribute("transform")})),k.attr("opacity",He).attr("transform",(function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+u)}))),E.remove(),_.attr("d",e===Ue||e===Be?a?"M"+l*a+","+y+"H"+u+"V"+v+"H"+l*a:"M"+u+","+y+"V"+v:a?"M"+y+","+l*a+"V"+u+"H"+v+"V"+l*a:"M"+y+","+u+"H"+v),x.attr("opacity",1).attr("transform",(function(e){return f(b(e)+u)})),S.attr(c+"2",l*o),A.attr(c,l*m).text(p),w.filter(Qe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Be?"start":e===Ue?"end":"middle"),w.each((function(){this.__axis=b}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Re.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Re.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Re.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d.offset=function(e){return arguments.length?(u=+e,d):u},d}function Ke(e){return $e(Le,e)}function Ye(e){return $e(Be,e)}function Xe(e){return $e(ze,e)}function Ze(e){return $e(Ue,e)}var Je=n(1082),et=n(4221);function tt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rt(){}var it=.7,ot=1/it,at="\\s*([+-]?\\d+)\\s*",st="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lt=/^#([0-9a-f]{3,8})$/,ct=new RegExp("^rgb\\("+[at,at,at]+"\\)$"),ft=new RegExp("^rgb\\("+[ut,ut,ut]+"\\)$"),dt=new RegExp("^rgba\\("+[at,at,at,st]+"\\)$"),ht=new RegExp("^rgba\\("+[ut,ut,ut,st]+"\\)$"),pt=new RegExp("^hsl\\("+[st,ut,ut]+"\\)$"),mt=new RegExp("^hsla\\("+[st,ut,ut,st]+"\\)$"),gt={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 yt(){return this.rgb().formatHex()}function vt(){return this.rgb().formatRgb()}function bt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?wt(t):3===n?new Et(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_t(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_t(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ct.exec(e))?new Et(t[1],t[2],t[3],1):(t=ft.exec(e))?new Et(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dt.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=ht.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=mt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):gt.hasOwnProperty(e)?wt(gt[e]):"transparent"===e?new Et(NaN,NaN,NaN,0):null}function wt(e){return new Et(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new Et(e,t,n,r)}function xt(e,t,n,r){return 1===arguments.length?((i=e)instanceof rt||(i=bt(i)),i?new Et((i=i.rgb()).r,i.g,i.b,i.opacity):new Et):new Et(e,t,n,null==r?1:r);var i}function Et(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function kt(){return"#"+At(this.r)+At(this.g)+At(this.b)}function St(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function At(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ct(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mt(e,t,n,r)}function Dt(e){if(e instanceof Mt)return new Mt(e.h,e.s,e.l,e.opacity);if(e instanceof rt||(e=bt(e)),!e)return new Mt;if(e instanceof Mt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new Mt(a,s,u,e.opacity)}function Mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ft(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ot(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}tt(rt,bt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yt,formatHex:yt,formatHsl:function(){return Dt(this).formatHsl()},formatRgb:vt,toString:vt}),tt(Et,xt,nt(rt,{brighter:function(e){return e=null==e?ot:Math.pow(ot,e),new Et(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?it:Math.pow(it,e),new Et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kt,formatHex:kt,formatRgb:St,toString:St})),tt(Mt,(function(e,t,n,r){return 1===arguments.length?Dt(e):new Mt(e,t,n,null==r?1:r)}),nt(rt,{brighter:function(e){return e=null==e?ot:Math.pow(ot,e),new Mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?it:Math.pow(it,e),new Mt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Et(Ft(e>=240?e-240:e+120,i,r),Ft(e,i,r),Ft(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Tt=e=>()=>e;function Nt(e,t){return function(n){return e+n*t}}function Pt(e){return 1===(e=+e)?It:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Tt(isNaN(t)?n:t)}}function It(e,t){var n=t-e;return n?Nt(e,n):Tt(isNaN(e)?t:e)}const Rt=function e(t){var n=Pt(t);function r(e,t){var r=n((e=xt(e)).r,(t=xt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=It(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jt(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:zt(n,r)})),o=qt.lastIndex;return ot?1:e>=t?0:NaN}an.prototype={constructor:an,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var fn="http://www.w3.org/1999/xhtml";const dn={svg:"http://www.w3.org/2000/svg",xhtml:fn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hn(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),dn.hasOwnProperty(t)?{space:dn[t],local:e}:e}function pn(e){return function(){this.removeAttribute(e)}}function mn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gn(e,t){return function(){this.setAttribute(e,t)}}function yn(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function bn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function wn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _n(e){return function(){this.style.removeProperty(e)}}function xn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function En(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function kn(e,t){return e.style.getPropertyValue(t)||wn(e).getComputedStyle(e,null).getPropertyValue(t)}function Sn(e){return function(){delete this[e]}}function An(e,t){return function(){this[e]=t}}function Cn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Dn(e){return e.trim().split(/^|\s+/)}function Mn(e){return e.classList||new Fn(e)}function Fn(e){this._node=e,this._names=Dn(e.getAttribute("class")||"")}function On(e,t){for(var n=Mn(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var nr=[null];function rr(e,t){this._groups=e,this._parents=t}function ir(){return new rr([[document.documentElement]],nr)}rr.prototype=ir.prototype={constructor:rr,select:function(e){"function"!==typeof e&&(e=$t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=w&&(w=b+1);!(v=g[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=cn);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?_n:"function"===typeof t?En:xn)(e,t,null==n?"":n)):kn(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Sn:"function"===typeof t?Cn:An)(e,t)):this.node()[e]},classed:function(e,t){var n=Dn(e+"");if(arguments.length<2){for(var r=Mn(this.node()),i=-1,o=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Zn:Xn,r=0;r=0&&t._call.call(null,e),t=t._next;--cr}()}finally{cr=0,function(){var e,t,n=ur,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ur=t);lr=e,kr(r)}(),pr=0}}function Er(){var e=gr.now(),t=e-hr;t>1e3&&(mr-=t,hr=e)}function kr(e){cr||(fr&&(fr=clearTimeout(fr)),e-pr>24?(e<1/0&&(fr=setTimeout(xr,e-gr.now()-mr)),dr&&(dr=clearInterval(dr))):(dr||(hr=gr.now(),dr=setInterval(Er,1e3)),cr=1,yr(xr)))}function Sr(e,t,n){var r=new wr;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}wr.prototype=_r.prototype={constructor:wr,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?vr():+n)+(null==t?0:+t),this._next||lr===this||(lr?lr._next=this:ur=this,lr=this),this._call=e,this._time=n,kr()},stop:function(){this._call&&(this._call=null,this._time=1/0,kr())}};var Ar=(0,Je.A)("start","end","cancel","interrupt"),Cr=[],Dr=2,Mr=5,Fr=6;function Or(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Sr(a);4===d.state?(d.state=Fr,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function Nr(e,t){var n=Pr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ir(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>Dr&&n.state180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:zt(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:zt(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:zt(e,n)},{i:s-2,x:zt(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Tr:Nr;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=hn(e),r="transform"===n?Hr:Vr;return this.attrTween(e,"function"===typeof t?(n.local?Zr:Xr)(n,r,Wr(this,"attr."+e,t)):null==t?(n.local?$r:Qr)(n):(n.local?Yr:Kr)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=hn(e);return this.tween(n,(r.local?Jr:ei)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?Ur:Vr;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=kn(this,e),a=(this.style.removeProperty(e),kn(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,ai(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=kn(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=kn(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,Wr(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=Nr(this,e),l=u.on,c=null==u.value[a]?o||(o=ai(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=kn(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Pr(this.node(),n).tween,o=0,a=i.length;o()=>e;function pi(e,t){let{sourceEvent:n,target:r,selection:i,mode:o,dispatch:a}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function mi(e){e.preventDefault(),e.stopImmediatePropagation()}var gi={name:"drag"},yi={name:"space"},vi={name:"handle"},bi={name:"center"};const{abs:wi,max:_i,min:xi}=Math;function Ei(e){return[+e[0],+e[1]]}function ki(e){return[Ei(e[0]),Ei(e[1])]}var Si={name:"x",handles:["w","e"].map(Ni),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Ai={name:"y",handles:["n","s"].map(Ni),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Ci={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ni),input:function(e){return null==e?null:ki(e)},output:function(e){return e}},Di={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Mi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Oi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ti={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ni(e){return{type:e}}function Pi(e){return!e.ctrlKey&&!e.button}function Ii(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ri(){return navigator.maxTouchPoints||"ontouchstart"in this}function ji(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Li(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Bi(){return Hi(Si)}function zi(){return Hi(Ai)}function Ui(){return Hi(Ci)}function Hi(e){var t,n=Ii,r=Pi,i=Ri,o=!0,a=(0,Je.A)("start","brush","end"),s=6;function u(t){var n=t.property("__brush",m).selectAll(".overlay").data([Ni("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Di.overlay).merge(n).each((function(){var e=ji(this).extent;ar(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([Ni("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Di.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return Di[e.type]})),t.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var e=ar(this),t=ji(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-s/2:t[0][0]-s/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-s/2:t[0][1]-s/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+s:s})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+s:s}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new f(e,t,n):r}function f(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function d(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,a,s,u,f,d,h,p,m,g,y,v=this,b=n.target.__data__.type,w="selection"===(o&&n.metaKey?b="overlay":b)?gi:o&&n.altKey?bi:vi,_=e===Ai?null:Oi[b],x=e===Si?null:Ti[b],E=ji(v),k=E.extent,S=E.selection,A=k[0][0],C=k[0][1],D=k[1][0],M=k[1][1],F=0,O=0,T=_&&x&&o&&n.shiftKey,N=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=sr(e,v)).point0=e.slice(),e.identifier=t,e}));if("overlay"===b){S&&(m=!0);const t=[N[0],N[1]||N[0]];E.selection=S=[[i=e===Ai?A:xi(t[0][0],t[1][0]),s=e===Si?C:xi(t[0][1],t[1][1])],[f=e===Ai?D:_i(t[0][0],t[1][0]),h=e===Si?M:_i(t[0][1],t[1][1])]],N.length>1&&B()}else i=S[0][0],s=S[0][1],f=S[1][0],h=S[1][1];a=i,u=s,d=f,p=h;var P=ar(v).attr("pointer-events","none"),I=P.selectAll(".overlay").attr("cursor",Di[b]);Ir(v);var R=c(v,arguments,!0).beforestart();if(n.touches)R.moved=L,R.ended=z;else{var j=ar(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",z,!0);o&&j.on("keydown.brush",(function(e){switch(e.keyCode){case 16:T=_&&x;break;case 18:w===vi&&(_&&(f=d-F*_,i=a+F*_),x&&(h=p-O*x,s=u+O*x),w=bi,B());break;case 32:w!==vi&&w!==bi||(_<0?f=d-F:_>0&&(i=a-F),x<0?h=p-O:x>0&&(s=u-O),w=yi,I.attr("cursor",Di.selection),B());break;default:return}mi(e)}),!0).on("keyup.brush",(function(e){switch(e.keyCode){case 16:T&&(g=y=T=!1,B());break;case 18:w===bi&&(_<0?f=d:_>0&&(i=a),x<0?h=p:x>0&&(s=u),w=vi,B());break;case 32:w===yi&&(e.altKey?(_&&(f=d-F*_,i=a+F*_),x&&(h=p-O*x,s=u+O*x),w=bi):(_<0?f=d:_>0&&(i=a),x<0?h=p:x>0&&(s=u),w=vi),I.attr("cursor",Di[b]),B());break;default:return}mi(e)}),!0),(0,et.A)(n.view)}l.call(v),R.start(n,w.name)}function L(e){for(const t of e.changedTouches||[e])for(const e of N)e.identifier===t.identifier&&(e.cur=sr(t,v));if(T&&!g&&!y&&1===N.length){const e=N[0];wi(e.cur[0]-e[0])>wi(e.cur[1]-e[1])?y=!0:g=!0}for(const t of N)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);m=!0,mi(e),B(e)}function B(e){const t=N[0],n=t.point0;var r;switch(F=t[0]-n[0],O=t[1]-n[1],w){case yi:case gi:_&&(F=_i(A-i,xi(D-f,F)),a=i+F,d=f+F),x&&(O=_i(C-s,xi(M-h,O)),u=s+O,p=h+O);break;case vi:N[1]?(_&&(a=_i(A,xi(D,N[0][0])),d=_i(A,xi(D,N[1][0])),_=1),x&&(u=_i(C,xi(M,N[0][1])),p=_i(C,xi(M,N[1][1])),x=1)):(_<0?(F=_i(A-i,xi(D-i,F)),a=i+F,d=f):_>0&&(F=_i(A-f,xi(D-f,F)),a=i,d=f+F),x<0?(O=_i(C-s,xi(M-s,O)),u=s+O,p=h):x>0&&(O=_i(C-h,xi(M-h,O)),u=s,p=h+O));break;case bi:_&&(a=_i(A,xi(D,i-F*_)),d=_i(A,xi(D,f+F*_))),x&&(u=_i(C,xi(M,s-O*x)),p=_i(C,xi(M,h+O*x)))}de+n))}function Zi(){return to(!1,!1)}function Ji(){return to(!1,!0)}function eo(){return to(!0,!1)}function to(e,t){var n=0,r=null,i=null,o=null;function a(a){var s,u=a.length,l=new Array(u),c=Xi(0,u),f=new Array(u*u),d=new Array(u),h=0;a=Float64Array.from({length:u*u},t?(e,t)=>a[t%u][t/u|0]:(e,t)=>a[t/u|0][t%u]);for(let t=0;tr(l[e],l[t])));for(const n of c){const r=t;if(e){const e=Xi(1+~u,u).filter((e=>e<0?a[~e*u+n]:a[n*u+e]));i&&e.sort(((e,t)=>i(e<0?-a[~e*u+n]:a[n*u+e],t<0?-a[~t*u+n]:a[n*u+t])));for(const r of e)if(r<0){(f[~r*u+n]||(f[~r*u+n]={source:null,target:null})).target={index:n,startAngle:t,endAngle:t+=a[~r*u+n]*h,value:a[~r*u+n]}}else{(f[n*u+r]||(f[n*u+r]={source:null,target:null})).source={index:n,startAngle:t,endAngle:t+=a[n*u+r]*h,value:a[n*u+r]}}d[n]={index:n,startAngle:r,endAngle:t,value:l[n]}}else{const e=Xi(0,u).filter((e=>a[n*u+e]||a[e*u+n]));i&&e.sort(((e,t)=>i(a[n*u+e],a[n*u+t])));for(const r of e){let e;if(nio)if(Math.abs(c*s-u*l)>io&&i){var d=n-o,h=r-a,p=s*s+u*u,m=d*d+h*h,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((no-Math.acos((p+f-m)/(2*g*y)))/2),b=v/y,w=v/g;Math.abs(b-1)>io&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*d>l*h)+","+(this._x1=e+w*s)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>io||Math.abs(this._y1-l)>io)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%ro+ro),f>oo?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>io&&(this._+="A"+n+","+n+",0,"+ +(f>=no)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const uo=so;var lo=Array.prototype.slice;function co(e){return function(){return e}}function fo(e){return e.source}function ho(e){return e.target}function po(e){return e.radius}function mo(e){return e.startAngle}function go(e){return e.endAngle}function yo(){return 0}function vo(){return 10}function bo(e){var t=fo,n=ho,r=po,i=po,o=mo,a=go,s=yo,u=null;function l(){var l,c=t.apply(this,arguments),f=n.apply(this,arguments),d=s.apply(this,arguments)/2,h=lo.call(arguments),p=+r.apply(this,(h[0]=c,h)),m=o.apply(this,h)-Qi,g=a.apply(this,h)-Qi,y=+i.apply(this,(h[0]=f,h)),v=o.apply(this,h)-Qi,b=a.apply(this,h)-Qi;if(u||(u=l=uo()),d>Yi&&(qi(g-m)>2*d+Yi?g>m?(m+=d,g-=d):(m-=d,g+=d):m=g=(m+g)/2,qi(b-v)>2*d+Yi?b>v?(v+=d,b-=d):(v-=d,b+=d):v=b=(v+b)/2),u.moveTo(p*Gi(m),p*Wi(m)),u.arc(0,0,p,m,g),m!==v||g!==b)if(e){var w=y-+e.apply(this,arguments),_=(v+b)/2;u.quadraticCurveTo(0,0,w*Gi(v),w*Wi(v)),u.lineTo(y*Gi(_),y*Wi(_)),u.lineTo(w*Gi(b),w*Wi(b))}else u.quadraticCurveTo(0,0,y*Gi(v),y*Wi(v)),u.arc(0,0,y,v,b);if(u.quadraticCurveTo(0,0,p*Gi(m),p*Wi(m)),u.closePath(),l)return u=null,l+""||null}return e&&(l.headRadius=function(t){return arguments.length?(e="function"===typeof t?t:co(+t),l):e}),l.radius=function(e){return arguments.length?(r=i="function"===typeof e?e:co(+e),l):r},l.sourceRadius=function(e){return arguments.length?(r="function"===typeof e?e:co(+e),l):r},l.targetRadius=function(e){return arguments.length?(i="function"===typeof e?e:co(+e),l):i},l.startAngle=function(e){return arguments.length?(o="function"===typeof e?e:co(+e),l):o},l.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:co(+e),l):a},l.padAngle=function(e){return arguments.length?(s="function"===typeof e?e:co(+e),l):s},l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.context=function(e){return arguments.length?(u=null==e?null:e,l):u},l}function wo(){return bo()}function _o(){return bo(vo)}function xo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Eo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ko(){}var So=.7,Ao=1/So,Co="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fo=/^#([0-9a-f]{3,8})$/,Oo=new RegExp("^rgb\\("+[Co,Co,Co]+"\\)$"),To=new RegExp("^rgb\\("+[Mo,Mo,Mo]+"\\)$"),No=new RegExp("^rgba\\("+[Co,Co,Co,Do]+"\\)$"),Po=new RegExp("^rgba\\("+[Mo,Mo,Mo,Do]+"\\)$"),Io=new RegExp("^hsl\\("+[Do,Mo,Mo]+"\\)$"),Ro=new RegExp("^hsla\\("+[Do,Mo,Mo,Do]+"\\)$"),jo={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 Lo(){return this.rgb().formatHex()}function Bo(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uo(t):3===n?new Wo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ho(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ho(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Oo.exec(e))?new Wo(t[1],t[2],t[3],1):(t=To.exec(e))?new Wo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=No.exec(e))?Ho(t[1],t[2],t[3],t[4]):(t=Po.exec(e))?Ho(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Io.exec(e))?Ko(t[1],t[2]/100,t[3]/100,1):(t=Ro.exec(e))?Ko(t[1],t[2]/100,t[3]/100,t[4]):jo.hasOwnProperty(e)?Uo(jo[e]):"transparent"===e?new Wo(NaN,NaN,NaN,0):null}function Uo(e){return new Wo(e>>16&255,e>>8&255,255&e,1)}function Ho(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wo(e,t,n,r)}function qo(e){return e instanceof ko||(e=zo(e)),e?new Wo((e=e.rgb()).r,e.g,e.b,e.opacity):new Wo}function Go(e,t,n,r){return 1===arguments.length?qo(e):new Wo(e,t,n,null==r?1:r)}function Wo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Vo(){return"#"+$o(this.r)+$o(this.g)+$o(this.b)}function Qo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function $o(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ko(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Zo(e,t,n,r)}function Yo(e){if(e instanceof Zo)return new Zo(e.h,e.s,e.l,e.opacity);if(e instanceof ko||(e=zo(e)),!e)return new Zo;if(e instanceof Zo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new Zo(a,s,u,e.opacity)}function Xo(e,t,n,r){return 1===arguments.length?Yo(e):new Zo(e,t,n,null==r?1:r)}function Zo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jo(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xo(ko,zo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Lo,formatHex:Lo,formatHsl:function(){return Yo(this).formatHsl()},formatRgb:Bo,toString:Bo}),xo(Wo,Go,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vo,formatHex:Vo,formatRgb:Qo,toString:Qo})),xo(Zo,Xo,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Zo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Zo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Wo(Jo(e>=240?e-240:e+120,i,r),Jo(e,i,r),Jo(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const ea=Math.PI/180,ta=180/Math.PI,na=.96422,ra=1,ia=.82521,oa=4/29,aa=6/29,sa=3*aa*aa,ua=aa*aa*aa;function la(e){if(e instanceof da)return new da(e.l,e.a,e.b,e.opacity);if(e instanceof wa)return _a(e);e instanceof Wo||(e=qo(e));var t,n,r=ga(e.r),i=ga(e.g),o=ga(e.b),a=ha((.2225045*r+.7168786*i+.0606169*o)/ra);return r===i&&i===o?t=n=a:(t=ha((.4360747*r+.3850649*i+.1430804*o)/na),n=ha((.0139322*r+.0971045*i+.7141733*o)/ia)),new da(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ca(e,t){return new da(e,0,0,null==t?1:t)}function fa(e,t,n,r){return 1===arguments.length?la(e):new da(e,t,n,null==r?1:r)}function da(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ha(e){return e>ua?Math.pow(e,1/3):e/sa+oa}function pa(e){return e>aa?e*e*e:sa*(e-oa)}function ma(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ga(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ya(e){if(e instanceof wa)return new wa(e.h,e.c,e.l,e.opacity);if(e instanceof da||(e=la(e)),0===e.a&&0===e.b)return new wa(NaN,0=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}(e))/Math.LN2)+1}xo(Oa,Fa,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Oa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Oa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ea,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Wo(255*(t+n*(xa*r+Ea*i)),255*(t+n*(ka*r+Sa*i)),255*(t+n*(Aa*r)),this.opacity)}}));var Na=Math.sqrt(50),Pa=Math.sqrt(10),Ia=Math.sqrt(2);function Ra(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Na?i*=10:o>=Pa?i*=5:o>=Ia&&(i*=2),t()=>e;function Ua(e,t){for(var n,r=-1,i=t.length;++rr!==h>r&&n<(d-l)*(r-c)/(h-c)+l&&(i=-i)}return i}function qa(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}function Ga(){}var Wa=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Va(){var e=1,t=1,n=Ta,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Ba);else{var r=function(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r=o&&(n=r=o):(n>o&&(n=o),r=r,Wa[l<<1].forEach(p);for(;++o=r,Wa[u|l<<1].forEach(p);Wa[l|0].forEach(p);for(;++s=r,c=n[s*e]>=r,Wa[l<<1|c<<2].forEach(p);++o=r,f=c,c=n[s*e+o+1]>=r,Wa[u|l<<1|c<<2|f<<3].forEach(p);Wa[l|c<<3].forEach(p)}o=-1,c=n[s*e]>=r,Wa[c<<2].forEach(p);for(;++o=r,Wa[c<<2|f<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+s],u=[e[1][0]+o,e[1][1]+s],l=a(r),c=a(u);(t=h[l])?(n=d[c])?(delete h[t.end],delete d[n.start],t===n?(t.ring.push(u),i(t.ring)):d[t.start]=h[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete h[t.end],t.ring.push(u),h[t.end=c]=t):(t=d[c])?(n=h[l])?(delete d[t.start],delete h[n.end],t===n?(t.ring.push(u),i(t.ring)):d[n.start]=h[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=l]=t):d[l]=h[c]={start:l,end:c,ring:[r,u]}}Wa[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t0?o.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,r=o.length;n0&&a0&&s=0&&o>=0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?za(La.call(e)):za(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:Ga,i):r===s},i}function Qa(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function $a(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function Ka(e){return e[0]}function Ya(e){return e[1]}function Xa(){return 1}function Za(){var e=Ka,t=Ya,n=Xa,r=960,i=500,o=20,a=2,s=3*o,u=r+2*s>>a,l=i+2*s>>a,c=za(20);function f(r){var i=new Float32Array(u*l),f=new Float32Array(u*l);r.forEach((function(r,o,c){var f=+e(r,o,c)+s>>a,d=+t(r,o,c)+s>>a,h=+n(r,o,c);f>=0&&f=0&&d>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),Qa({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),Qa({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a);var h=c(i);if(!Array.isArray(h)){var p=function(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}(i);h=Ra(0,p,h),(h=ja(0,Math.floor(p/h)*h,h)).shift()}return Va().thresholds(h).size([u,l])(i).map(d)}function d(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(h),e}function h(e){e.forEach(p)}function p(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function g(){return u=r+2*(s=3*o)>>a,l=i+2*s>>a,f}return f.x=function(t){return arguments.length?(e="function"===typeof t?t:za(+t),f):e},f.y=function(e){return arguments.length?(t="function"===typeof e?e:za(+e),f):t},f.weight=function(e){return arguments.length?(n="function"===typeof e?e:za(+e),f):n},f.size=function(e){if(!arguments.length)return[r,i];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return r=t,i=n,g()},f.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),g()},f.thresholds=function(e){return arguments.length?(c="function"===typeof e?e:Array.isArray(e)?za(La.call(e)):za(e),f):c},f.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),g()},f}const Ja=Math.pow(2,-52),es=new Uint32Array(512);class ts{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ls,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cs;const r=e.length,i=new Float64Array(2*r);for(let o=0;o>1;if(t>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,s=1/0,u=-1/0,l=-1/0;for(let S=0;Su&&(u=t),n>l&&(l=n),this._ids[S]=S}const c=(a+u)/2,f=(s+l)/2;let d,h,p,m=1/0;for(let S=0;S0&&(h=S,m=t)}let v=e[2*h],b=e[2*h+1],w=1/0;for(let S=0;Sr&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(is(g,y,v,b,_,x)){const e=h,t=v,n=b;h=p,v=_,b=x,p=e,_=t,x=n}const E=function(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,d=.5/(a*l-s*u),h=e+(l*c-s*f)*d,p=t+(a*f-u*c)*d;return{x:h,y:p}}(g,y,v,b,_,x);this._cx=E.x,this._cy=E.y;for(let S=0;S0&&Math.abs(a-S)<=Ja&&Math.abs(s-A)<=Ja)continue;if(S=a,A=s,o===d||o===h||o===p)continue;let u=0;for(let e=0,t=this._hashKey(a,s);e0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=es[--i];continue}const u=a-a%3,l=s+(e+1)%3,c=u+(a+2)%3,f=t[o],d=t[e],h=t[l],p=t[c];if(os(r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=f;const r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,c);const s=u+(a+1)%3;i=33306690738754716e-32*Math.abs(a+s)?a-s:0}function is(e,t,n,r,i,o){return(rs(i,o,e,t,n,r)||rs(e,t,n,r,i,o)||rs(n,r,i,o,e,t))<0}function os(e,t,n,r,i,o,a,s){const u=e-a,l=t-s,c=n-a,f=r-s,d=i-a,h=o-s,p=c*c+f*f,m=d*d+h*h;return u*(f*m-p*h)-l*(c*m-p*d)+(u*u+l*l)*(c*h-f*d)<0}function as(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,d=.5/(a*l-s*u),h=(l*c-s*f)*d,p=(a*f-u*c)*d;return h*h+p*p}function ss(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;us(e,n+r>>1,i),t[e[n]]>t[e[r]]&&us(e,n,r),t[e[i]]>t[e[r]]&&us(e,i,r),t[e[n]]>t[e[i]]&&us(e,n,i);const a=e[i],s=t[a];for(;;){do{i++}while(t[e[i]]s);if(o=o-n?(ss(e,t,i,r),ss(e,t,n,o-1)):(ss(e,t,n,o-1),ss(e,t,i,r))}}function us(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ls(e){return e[0]}function cs(e){return e[1]}const fs=1e-6;class ds{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+="L".concat(this._x1=+e,",").concat(this._y1=+t)}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(r,",").concat(i):(Math.abs(this._x1-r)>fs||Math.abs(this._y1-i)>fs)&&(this._+="L"+r+","+i),n&&(this._+="A".concat(n,",").concat(n,",0,1,1,").concat(e-n,",").concat(t,"A").concat(n,",").concat(n,",0,1,1,").concat(this._x1=r,",").concat(this._y1=i))}rect(e,t,n,r){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t,"h").concat(+n,"v").concat(+r,"h").concat(-n,"Z")}value(){return this._||null}}class hs{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class ps{constructor(e){let[t,n,r,i]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500];if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let d,h,p=0,m=0,g=n.length;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}}const ms=2*Math.PI,gs=Math.pow;function ys(e){return e[0]}function vs(e){return e[1]}function bs(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class ws{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ys,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vs,r=arguments.length>3?arguments[3]:void 0;return new ws("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a2&&function(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let o=0,a=t.length/2;o0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new ps(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t2&&void 0!==arguments[2]?arguments[2]:0;if((e=+e)!==e||(t=+t)!==t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(-1===r[e]||!u.length)return(e+1)%(u.length>>1);let l=e,c=gs(t-u[2*e],2)+gs(n-u[2*e+1],2);const f=r[e];let d=f;do{let r=s[d];const f=gs(t-u[2*r],2)+gs(n-u[2*r+1],2);if(f1&&void 0!==arguments[1]?arguments[1]:2;const n=null==e?e=new ds:void 0,{points:r}=this;for(let i=0,o=r.length;i()=>e;function Ss(e,t){let{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:l,dy:c,dispatch:f}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}function As(e){return!e.ctrlKey&&!e.button}function Cs(){return this.parentNode}function Ds(e,t){return null==t?{x:e.x,y:e.y}:t}function Ms(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fs(){var e,t,n,r,i=As,o=Cs,a=Ds,s=Ms,u={},l=(0,Je.A)("start","drag","end"),c=0,f=0;function d(e){e.on("mousedown.drag",h).filter(s).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,s){if(!r&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&((0,_s.A)(a.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),(0,et.A)(a.view),(0,Es.G)(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if((0,Es.A)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>f}u.mouse("drag",r)}function m(e){(0,_s.A)(e.view).on("mousemove.drag mouseup.drag",null),(0,et.y)(e.view,n),(0,Es.A)(e),u.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),u=a.length;for(n=0;n9999?"+"+Ls(e,6):Ls(e,4)}(e.getUTCFullYear())+"-"+Ls(e.getUTCMonth()+1,2)+"-"+Ls(e.getUTCDate(),2)+(i?"T"+Ls(t,2)+":"+Ls(n,2)+":"+Ls(r,2)+"."+Ls(i,3)+"Z":r?"T"+Ls(t,2)+":"+Ls(n,2)+":"+Ls(r,2)+"Z":n||t?"T"+Ls(t,2)+":"+Ls(n,2)+"Z":"")}function zs(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,s=0,u=o<=0,l=!1;function c(){if(u)return Ts;if(l)return l=!1,Os;var t,r,i=a;if(e.charCodeAt(i)===Ns){for(;a++=o?u=!0:(r=e.charCodeAt(a++))===Ps?l=!0:r===Is&&(l=!0,e.charCodeAt(a)===Ps&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a+e;function au(e){return e*e}function su(e){return e*(2-e)}function uu(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function lu(e){return e*e*e}function cu(e){return--e*e*e+1}function fu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var du=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),hu=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),pu=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),mu=Math.PI,gu=mu/2;function yu(e){return 1===+e?1:1-Math.cos(e*gu)}function vu(e){return Math.sin(e*gu)}function bu(e){return(1-Math.cos(mu*e))/2}function wu(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function _u(e){return wu(1-+e)}function xu(e){return 1-wu(e)}function Eu(e){return((e*=2)<=1?wu(1-e):2-wu(e-1))/2}function ku(e){return 1-Math.sqrt(1-e*e)}function Su(e){return Math.sqrt(1- --e*e)}function Au(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Cu=4/11,Du=6/11,Mu=8/11,Fu=3/4,Ou=9/11,Tu=10/11,Nu=15/16,Pu=21/22,Iu=63/64,Ru=1/Cu/Cu;function ju(e){return 1-Lu(1-e)}function Lu(e){return(e=+e)Ju(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}const ul=sl("application/xml");var ll=sl("text/html"),cl=sl("image/svg+xml");function fl(e,t){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i=(o=(m+y)/2))?m=o:y=o,(c=n>=(a=(g+v)/2))?g=a:v=a,i=h,!(h=h[f=c<<1|l]))return i[f]=p,e;if(s=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===s&&n===u)return p.next=h,i?i[f]=p:e._root=p,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(l=t>=(o=(m+y)/2))?m=o:y=o,(c=n>=(a=(g+v)/2))?g=a:v=a}while((f=c<<1|l)===(d=(u>=a)<<1|s>=o));return i[d]=h,i[f]=p,e}function hl(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function pl(e){return e[0]}function ml(e){return e[1]}function gl(e,t,n){var r=new yl(null==t?pl:t,null==n?ml:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function yl(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function vl(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var bl=gl.prototype=yl.prototype;function wl(e){return function(){return e}}function _l(e){return 1e-6*(e()-.5)}function xl(e){return e.x+e.vx}function El(e){return e.y+e.vy}function kl(e){var t,n,r,i=1,o=1;function a(){for(var e,a,u,l,c,f,d,h=t.length,p=0;pl+p||oc+p||au.index){var m=l-s.x-s.vx,g=c-s.y-s.vy,y=m*m+g*g;ye.r&&(e.r=e[t].r)}function u(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r[s(e,t,r),e])));for(a=0,i=new Array(l);ac&&(c=r),if&&(f=i));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),n=0;ne||e>=i||r>t||t>=o;)switch(s=(td||(o=u.y0)>h||(a=u.x1)=y)<<1|e>=g)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var v=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),w=v*v+b*b;if(w=(s=(p+g)/2))?p=s:g=s,(c=a>=(u=(m+y)/2))?m=u:y=u,t=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=i,this)},bl.removeAll=function(e){for(var t=0,n=e.length;t=0&&t._call.call(null,e),t=t._next;--Fl}()}finally{Fl=0,function(){var e,t,n=Dl,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Dl=t);Ml=e,Gl(r)}(),Pl=0}}function ql(){var e=Rl.now(),t=e-Nl;t>1e3&&(Il-=t,Nl=e)}function Gl(e){Fl||(Ol&&(Ol=clearTimeout(Ol)),e-Pl>24?(e<1/0&&(Ol=setTimeout(Hl,e-Rl.now()-Il)),Tl&&(Tl=clearInterval(Tl))):(Tl||(Nl=Rl.now(),Tl=setInterval(ql,1e3)),Fl=1,jl(Hl)))}zl.prototype=Ul.prototype={constructor:zl,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Ll():+n)+(null==t?0:+t),this._next||Ml===this||(Ml?Ml._next=this:Dl=this,Ml=this),this._call=e,this._time=n,Gl()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gl())}};const Wl=1664525,Vl=1013904223,Ql=4294967296;function $l(e){return e.x}function Kl(e){return e.y}var Yl=10,Xl=Math.PI*(3-Math.sqrt(5));function Zl(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,u=Ul(f),l=(0,Je.A)("tick","end"),c=function(){let e=1;return()=>(e=(Wl*e+Vl)%Ql)/Ql}();function f(){d(),l.call("tick",t),n1?(null==n?s.delete(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.on(e)}}}function Jl(){var e,t,n,r,i,o=wl(-30),a=1,s=1/0,u=.81;function l(n){var i,o=e.length,a=gl(e,$l,Kl).visitAfter(f);for(r=n,i=0;i=s)){(e.data!==t||e.next)&&(0===f&&(p+=(f=_l(n))*f),0===d&&(p+=(d=_l(n))*d),p1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ic(e){return(e=rc(Math.abs(e)))?e[1]:NaN}var oc,ac=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sc(e){if(!(t=ac.exec(e)))throw new Error("invalid format: "+e);var t;return new uc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function uc(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function lc(e,t){var n=rc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}sc.prototype=uc.prototype,uc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const cc={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>lc(100*e,t),r:lc,s:function(e,t){var n=rc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(oc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rc(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fc(e){return e}var dc,hc,pc,mc=Array.prototype.map,gc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function yc(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?fc:(t=mc.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?fc:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mc.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=sc(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):cc[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===d?o:/[%p]/.test(v)?u:"",_=cc[v],x=/[defgprs%]/.test(v);function E(e){var i,o,u,d=b,E=w;if("c"===v)E=_(e)+E,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==f&&(k=!1),d=(k?"("===f?f:l:"-"===f||"("===f?"":f)+d,E=("s"===v?gc[8+oc/3]:"")+E+(k&&"("===f?")":""),x)for(i=-1,o=e.length;++i(u=e.charCodeAt(i))||u>57){E=(46===u?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var S=d.length+e.length+E.length,A=S>1)+d+e+E+A.slice(S);break;default:e=A+d+e+E}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return e+""},E}return{format:f,formatPrefix:function(e,t){var n=f(((e=sc(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ic(t)/3))),i=Math.pow(10,-r),o=gc[8+r/3];return function(e){return n(i*e)+o}}}}function vc(e){return dc=yc(e),hc=dc.format,pc=dc.formatPrefix,dc}function bc(e){return Math.max(0,-ic(Math.abs(e)))}function wc(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ic(t)/3)))-ic(Math.abs(e)))}function _c(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ic(t)-ic(e))+1}vc({thousands:",",grouping:[3],currency:["$",""]});class xc{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}var Ec=1e-6,kc=1e-12,Sc=Math.PI,Ac=Sc/2,Cc=Sc/4,Dc=2*Sc,Mc=180/Sc,Fc=Sc/180,Oc=Math.abs,Tc=Math.atan,Nc=Math.atan2,Pc=Math.cos,Ic=Math.ceil,Rc=Math.exp,jc=(Math.floor,Math.hypot),Lc=Math.log,Bc=Math.pow,zc=Math.sin,Uc=Math.sign||function(e){return e>0?1:e<0?-1:0},Hc=Math.sqrt,qc=Math.tan;function Gc(e){return e>1?0:e<-1?Sc:Math.acos(e)}function Wc(e){return e>1?Ac:e<-1?-Ac:Math.asin(e)}function Vc(e){return(e=zc(e/2))*e}function Qc(){}function $c(e,t){e&&Yc.hasOwnProperty(e.type)&&Yc[e.type](e,t)}var Kc={Feature:function(e,t){$c(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=Pc(t=(t*=Fc)/2+Cc),a=zc(t),s=of*a,u=rf*o+s*Pc(i),l=s*r*zc(i);yf.add(Nc(l,u)),nf=e,rf=o,of=a}function kf(e){return vf=new xc,Jc(e,bf),2*vf}function Sf(e){return[Nc(e[1],e[0]),Wc(e[2])]}function Af(e){var t=e[0],n=e[1],r=Pc(n);return[r*Pc(t),r*zc(t),zc(n)]}function Cf(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Df(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Mf(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ff(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Of(e){var t=Hc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Tf,Nf,Pf,If,Rf,jf,Lf,Bf,zf,Uf,Hf,qf,Gf,Wf,Vf,Qf,$f={point:Kf,lineStart:Xf,lineEnd:Zf,polygonStart:function(){$f.point=Jf,$f.lineStart=ed,$f.lineEnd=td,pf=new xc,bf.polygonStart()},polygonEnd:function(){bf.polygonEnd(),$f.point=Kf,$f.lineStart=Xf,$f.lineEnd=Zf,yf<0?(af=-(uf=180),sf=-(lf=90)):pf>Ec?lf=90:pf<-Ec&&(sf=-90),gf[0]=af,gf[1]=uf},sphere:function(){af=-(uf=180),sf=-(lf=90)}};function Kf(e,t){mf.push(gf=[af=e,uf=e]),tlf&&(lf=t)}function Yf(e,t){var n=Af([e*Fc,t*Fc]);if(hf){var r=Df(hf,n),i=Df([r[1],-r[0],0],r);Of(i),i=Sf(i);var o,a=e-cf,s=a>0?1:-1,u=i[0]*Mc*s,l=Oc(a)>180;l^(s*cflf&&(lf=o):l^(s*cf<(u=(u+360)%360-180)&&ulf&&(lf=t)),l?end(af,uf)&&(uf=e):nd(e,uf)>nd(af,uf)&&(af=e):uf>=af?(euf&&(uf=e)):e>cf?nd(af,e)>nd(af,uf)&&(uf=e):nd(e,uf)>nd(af,uf)&&(af=e)}else mf.push(gf=[af=e,uf=e]);tlf&&(lf=t),hf=n,cf=e}function Xf(){$f.point=Yf}function Zf(){gf[0]=af,gf[1]=uf,$f.point=Kf,hf=null}function Jf(e,t){if(hf){var n=e-cf;pf.add(Oc(n)>180?n+(n>0?360:-360):n)}else ff=e,df=t;bf.point(e,t),Yf(e,t)}function ed(){bf.lineStart()}function td(){Jf(ff,df),bf.lineEnd(),Oc(pf)>Ec&&(af=-(uf=180)),gf[0]=af,gf[1]=uf,hf=null}function nd(e,t){return(t-=e)<0?t+360:t}function rd(e,t){return e[0]-t[0]}function id(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tnd(r[0],r[1])&&(r[1]=i[1]),nd(i[0],r[1])>nd(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(s=nd(r[1],i[0]))>a&&(a=s,af=i[0],uf=r[1])}return mf=gf=null,af===1/0||sf===1/0?[[NaN,NaN],[NaN,NaN]]:[[af,sf],[uf,lf]]}var ad={sphere:Qc,point:sd,lineStart:ld,lineEnd:dd,polygonStart:function(){ad.lineStart=hd,ad.lineEnd=pd},polygonEnd:function(){ad.lineStart=ld,ad.lineEnd=dd}};function sd(e,t){e*=Fc;var n=Pc(t*=Fc);ud(n*Pc(e),n*zc(e),zc(t))}function ud(e,t,n){++Tf,Pf+=(e-Pf)/Tf,If+=(t-If)/Tf,Rf+=(n-Rf)/Tf}function ld(){ad.point=cd}function cd(e,t){e*=Fc;var n=Pc(t*=Fc);Wf=n*Pc(e),Vf=n*zc(e),Qf=zc(t),ad.point=fd,ud(Wf,Vf,Qf)}function fd(e,t){e*=Fc;var n=Pc(t*=Fc),r=n*Pc(e),i=n*zc(e),o=zc(t),a=Nc(Hc((a=Vf*o-Qf*i)*a+(a=Qf*r-Wf*o)*a+(a=Wf*i-Vf*r)*a),Wf*r+Vf*i+Qf*o);Nf+=a,jf+=a*(Wf+(Wf=r)),Lf+=a*(Vf+(Vf=i)),Bf+=a*(Qf+(Qf=o)),ud(Wf,Vf,Qf)}function dd(){ad.point=sd}function hd(){ad.point=md}function pd(){gd(qf,Gf),ad.point=sd}function md(e,t){qf=e,Gf=t,e*=Fc,t*=Fc,ad.point=gd;var n=Pc(t);Wf=n*Pc(e),Vf=n*zc(e),Qf=zc(t),ud(Wf,Vf,Qf)}function gd(e,t){e*=Fc;var n=Pc(t*=Fc),r=n*Pc(e),i=n*zc(e),o=zc(t),a=Vf*o-Qf*i,s=Qf*r-Wf*o,u=Wf*i-Vf*r,l=jc(a,s,u),c=Wc(l),f=l&&-c/l;zf.add(f*a),Uf.add(f*s),Hf.add(f*u),Nf+=c,jf+=c*(Wf+(Wf=r)),Lf+=c*(Vf+(Vf=i)),Bf+=c*(Qf+(Qf=o)),ud(Wf,Vf,Qf)}function yd(e){Tf=Nf=Pf=If=Rf=jf=Lf=Bf=0,zf=new xc,Uf=new xc,Hf=new xc,Jc(e,ad);var t=+zf,n=+Uf,r=+Hf,i=jc(t,n,r);return iSc?e+Math.round(-e/Dc)*Dc:e,t]}function _d(e,t,n){return(e%=Dc)?t||n?bd(Ed(e),kd(t,n)):Ed(e):t||n?kd(t,n):wd}function xd(e){return function(t,n){return[(t+=e)>Sc?t-Dc:t<-Sc?t+Dc:t,n]}}function Ed(e){var t=xd(e);return t.invert=xd(-e),t}function kd(e,t){var n=Pc(e),r=zc(e),i=Pc(t),o=zc(t);function a(e,t){var a=Pc(t),s=Pc(e)*a,u=zc(e)*a,l=zc(t),c=l*n+s*r;return[Nc(u*i-c*o,s*n-l*r),Wc(c*i+u*o)]}return a.invert=function(e,t){var a=Pc(t),s=Pc(e)*a,u=zc(e)*a,l=zc(t),c=l*i-u*o;return[Nc(u*i+l*o,s*n+c*r),Wc(c*n-s*r)]},a}function Sd(e){function t(t){return(t=e(t[0]*Fc,t[1]*Fc))[0]*=Mc,t[1]*=Mc,t}return e=_d(e[0]*Fc,e[1]*Fc,e.length>2?e[2]*Fc:0),t.invert=function(t){return(t=e.invert(t[0]*Fc,t[1]*Fc))[0]*=Mc,t[1]*=Mc,t},t}function Ad(e,t,n,r,i,o){if(n){var a=Pc(t),s=zc(t),u=r*n;null==i?(i=t+r*Dc,o=t-u/2):(i=Cd(a,i),o=Cd(a,o),(r>0?io)&&(i+=r*Dc));for(var l,c=i;r>0?c>o:c1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Fd(e,t){return Oc(e[0]-t[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}}function Nd(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,A=S*k,C=A>Sc,D=g*x;if(u.add(Nc(D*S*zc(A),y*E+D*Pc(A))),a+=C?k+S*Dc:k,C^p>=n^w>=n){var M=Df(Af(h),Af(b));Of(M);var F=Df(o,M);Of(F);var O=(C^k>=0?-1:1)*Wc(F[2]);(r>O||r===O&&(M[0]||M[1]))&&(s+=C^k>=0?1:-1)}}return(a<-Ec||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&u&&d.push(d.pop().concat(d.shift())),a.push(d.filter(Ld))}return d}}function Ld(e){return e.length>1}function Bd(e,t){return((e=e.x)[0]<0?e[1]-Ac-Ec:Ac-e[1])-((t=t.x)[0]<0?t[1]-Ac-Ec:Ac-t[1])}wd.invert=wd;const zd=jd((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Sc:-Sc,u=Oc(o-n);Oc(u-Sc)0?Ac:-Ac),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Sc&&(Oc(n-i)Ec?Tc((zc(t)*(o=Pc(r))*zc(n)-zc(r)*(i=Pc(t))*zc(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Ac,r.point(-Sc,i),r.point(0,i),r.point(Sc,i),r.point(Sc,0),r.point(Sc,-i),r.point(0,-i),r.point(-Sc,-i),r.point(-Sc,0),r.point(-Sc,i);else if(Oc(e[0]-t[0])>Ec){var o=e[0]0,i=Oc(t)>Ec;function o(e,n){return Pc(e)*Pc(n)>t}function a(e,n,r){var i=[1,0,0],o=Df(Af(e),Af(n)),a=Cf(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var l=t*a/u,c=-t*s/u,f=Df(i,o),d=Ff(i,l);Mf(d,Ff(o,c));var h=f,p=Cf(d,h),m=Cf(h,h),g=p*p-m*(Cf(d,d)-1);if(!(g<0)){var y=Hc(g),v=Ff(h,(-p-y)/m);if(Mf(v,d),v=Sf(v),!r)return v;var b,w=e[0],_=n[0],x=e[1],E=n[1];_0^v[1]<(Oc(v[0]-w)Sc^(w<=v[0]&&v[0]<=_)){var A=Ff(h,(-p+y)/m);return Mf(A,d),[v,Sf(A)]}}}function s(t,n){var i=r?e:Sc-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return jd(o,(function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,d){var h,p=[f,d],m=o(f,d),g=r?m?0:s(f,d):m?s(f+(f<0?Sc:-Sc),d):0;if(!t&&(l=u=m)&&e.lineStart(),m!==u&&(!(h=a(t,p))||Fd(t,h)||Fd(p,h))&&(p[2]=1),m!==u)c=0,m?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(i&&t&&r^m){var y;g&n||!(y=a(p,t,!0))||(c=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1],3)))}!m||t&&Fd(t,p)||e.point(p[0],p[1]),t=p,u=m,n=g},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}}),(function(t,r,i,o){Ad(o,e,n,i,t,r)}),r?[0,-e]:[-Sc,e-Sc])}var Hd,qd,Gd,Wd,Vd=1e9,Qd=-Vd;function $d(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,l){var c=0,f=0;if(null==i||(c=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return Oc(r[0]-e)0?0:3:Oc(r[0]-n)0?2:1:Oc(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,l,c,f,d,h,p,m,g,y,v,b=a,w=Md(),_={point:x,lineStart:function(){_.point=E,l&&l.push(c=[]);y=!0,g=!1,p=m=NaN},lineEnd:function(){u&&(E(f,d),h&&g&&w.rejoin(),u.push(w.result()));_.point=x,g&&b.lineEnd()},polygonStart:function(){b=w,u=[],l=[],v=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;nr&&(d-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(d-o)*(r-a)<(h-a)*(e-o)&&--t;return t}(),n=v&&t,i=(u=Rd(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Td(u,s,t,o,a),a.polygonEnd());b=a,u=l=c=null}};function x(e,t){i(e,t)&&b.point(e,t)}function E(o,a){var s=i(o,a);if(l&&c.push([o,a]),y)f=o,d=a,h=s,y=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&g)b.point(o,a);else{var u=[p=Math.max(Qd,Math.min(Vd,p)),m=Math.max(Qd,Math.min(Vd,m))],w=[o=Math.max(Qd,Math.min(Vd,o)),a=Math.max(Qd,Math.min(Vd,a))];!function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=0,c=1,f=t[0]-s,d=t[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a0&&(e[0]=s+l*f,e[1]=u+l*d),c<1&&(t[0]=s+c*f,t[1]=u+c*d),!0}}}}}(u,w,e,t,n,r)?s&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(u[0],u[1])),b.point(w[0],w[1]),s||b.lineEnd(),v=!1)}p=o,m=a,g=s}return _}}function Kd(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=$d(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}}var Yd={sphere:Qc,point:Qc,lineStart:function(){Yd.point=Zd,Yd.lineEnd=Xd},lineEnd:Qc,polygonStart:Qc,polygonEnd:Qc};function Xd(){Yd.point=Yd.lineEnd=Qc}function Zd(e,t){qd=e*=Fc,Gd=zc(t*=Fc),Wd=Pc(t),Yd.point=Jd}function Jd(e,t){e*=Fc;var n=zc(t*=Fc),r=Pc(t),i=Oc(e-qd),o=Pc(i),a=r*zc(i),s=Wd*n-Gd*r*o,u=Gd*n+Wd*r*o;Hd.add(Nc(Hc(a*a+s*s),u)),qd=e,Gd=n,Wd=r}function eh(e){return Hd=new xc,Jc(e,Yd),+Hd}var th=[null,null],nh={type:"LineString",coordinates:th};function rh(e,t){return th[0]=e,th[1]=t,eh(nh)}var ih={Feature:function(e,t){return ah(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r0&&(i=rh(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))Ec})).map(u)).concat(hh(Ic(o/h)*h,i,h).filter((function(e){return Oc(e%m)>Ec})).map(l))}return y.lines=function(){return v().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(f(a).slice(1),c(n).reverse().slice(1),f(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(g)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),y.precision(g)):[[t,o],[e,i]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(p=+e[0],m=+e[1],y):[p,m]},y.stepMinor=function(e){return arguments.length?(d=+e[0],h=+e[1],y):[d,h]},y.precision=function(d){return arguments.length?(g=+d,u=ph(o,i,90),l=mh(t,e,g),c=ph(s,a,90),f=mh(r,n,g),y):g},y.extentMajor([[-180,-90+Ec],[180,90-Ec]]).extentMinor([[-180,-80-Ec],[180,80+Ec]])}function yh(){return gh()()}function vh(e,t){var n=e[0]*Fc,r=e[1]*Fc,i=t[0]*Fc,o=t[1]*Fc,a=Pc(r),s=zc(r),u=Pc(o),l=zc(o),c=a*Pc(n),f=a*zc(n),d=u*Pc(i),h=u*zc(i),p=2*Wc(Hc(Vc(o-r)+a*u*Vc(i-n))),m=zc(p),g=p?function(e){var t=zc(e*=p)/m,n=zc(p-e)/m,r=n*c+t*d,i=n*f+t*h,o=n*s+t*l;return[Nc(i,r)*Mc,Nc(o,Hc(r*r+i*i))*Mc]}:function(){return[n*Mc,r*Mc]};return g.distance=p,g}const bh=e=>e;var wh,_h,xh,Eh,kh=new xc,Sh=new xc,Ah={point:Qc,lineStart:Qc,lineEnd:Qc,polygonStart:function(){Ah.lineStart=Ch,Ah.lineEnd=Fh},polygonEnd:function(){Ah.lineStart=Ah.lineEnd=Ah.point=Qc,kh.add(Oc(Sh)),Sh=new xc},result:function(){var e=kh/2;return kh=new xc,e}};function Ch(){Ah.point=Dh}function Dh(e,t){Ah.point=Mh,wh=xh=e,_h=Eh=t}function Mh(e,t){Sh.add(Eh*e-xh*t),xh=e,Eh=t}function Fh(){Mh(wh,_h)}const Oh=Ah;var Th=1/0,Nh=Th,Ph=-Th,Ih=Ph,Rh={point:function(e,t){ePh&&(Ph=e);tIh&&(Ih=t)},lineStart:Qc,lineEnd:Qc,polygonStart:Qc,polygonEnd:Qc,result:function(){var e=[[Th,Nh],[Ph,Ih]];return Ph=Ih=-(Nh=Th=1/0),e}};const jh=Rh;var Lh,Bh,zh,Uh,Hh=0,qh=0,Gh=0,Wh=0,Vh=0,Qh=0,$h=0,Kh=0,Yh=0,Xh={point:Zh,lineStart:Jh,lineEnd:np,polygonStart:function(){Xh.lineStart=rp,Xh.lineEnd=ip},polygonEnd:function(){Xh.point=Zh,Xh.lineStart=Jh,Xh.lineEnd=np},result:function(){var e=Yh?[$h/Yh,Kh/Yh]:Qh?[Wh/Qh,Vh/Qh]:Gh?[Hh/Gh,qh/Gh]:[NaN,NaN];return Hh=qh=Gh=Wh=Vh=Qh=$h=Kh=Yh=0,e}};function Zh(e,t){Hh+=e,qh+=t,++Gh}function Jh(){Xh.point=ep}function ep(e,t){Xh.point=tp,Zh(zh=e,Uh=t)}function tp(e,t){var n=e-zh,r=t-Uh,i=Hc(n*n+r*r);Wh+=i*(zh+e)/2,Vh+=i*(Uh+t)/2,Qh+=i,Zh(zh=e,Uh=t)}function np(){Xh.point=Zh}function rp(){Xh.point=op}function ip(){ap(Lh,Bh)}function op(e,t){Xh.point=ap,Zh(Lh=zh=e,Bh=Uh=t)}function ap(e,t){var n=e-zh,r=t-Uh,i=Hc(n*n+r*r);Wh+=i*(zh+e)/2,Vh+=i*(Uh+t)/2,Qh+=i,$h+=(i=Uh*e-zh*t)*(zh+e),Kh+=i*(Uh+t),Yh+=3*i,Zh(zh=e,Uh=t)}const sp=Xh;function up(e){this._context=e}up.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Dc)}},result:Qc};var lp,cp,fp,dp,hp,pp=new xc,mp={point:Qc,lineStart:function(){mp.point=gp},lineEnd:function(){lp&&yp(cp,fp),mp.point=Qc},polygonStart:function(){lp=!0},polygonEnd:function(){lp=null},result:function(){var e=+pp;return pp=new xc,e}};function gp(e,t){mp.point=yp,cp=dp=e,fp=hp=t}function yp(e,t){dp-=e,hp-=t,pp.add(Hc(dp*dp+hp*hp)),dp=e,hp=t}const vp=mp;function bp(){this._string=[]}function wp(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function _p(e,t){var n,r,i=4.5;function o(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),Jc(e,n(r))),r.result()}return o.area=function(e){return Jc(e,n(Oh)),Oh.result()},o.measure=function(e){return Jc(e,n(vp)),vp.result()},o.bounds=function(e){return Jc(e,n(jh)),jh.result()},o.centroid=function(e){return Jc(e,n(sp)),sp.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,bh):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new bp):new up(t=e),"function"!==typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}function xp(e){return{stream:Ep(e)}}function Ep(e){return function(t){var n=new kp;for(var r in e)n[r]=e[r];return n.stream=t,n}}function kp(){}function Sp(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Jc(n,e.stream(jh)),t(jh.result()),null!=r&&e.clipExtent(r),e}function Ap(e,t,n){return Sp(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}function Cp(e,t,n){return Ap(e,[[0,0],t],n)}function Dp(e,t,n){return Sp(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}function Mp(e,t,n){return Sp(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}bp.prototype={_radius:4.5,_circle:wp(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=wp(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},kp.prototype={constructor:kp,point:function(e,t){this.stream.point(e,t)},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()}};var Fp=16,Op=Pc(30*Fc);function Tp(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,l,c,f,d,h,p,m,g){var y=l-r,v=c-i,b=y*y+v*v;if(b>4*t&&m--){var w=a+d,_=s+h,x=u+p,E=Hc(w*w+_*_+x*x),k=Wc(x/=E),S=Oc(Oc(x)-1)t||Oc((y*M+v*F)/b-.5)>.3||a*d+s*h+u*p2?e[2]%360*Fc:0,M()):[g*Mc,y*Mc,v*Mc]},C.angle=function(e){return arguments.length?(b=e%360*Fc,M()):b*Mc},C.reflectX=function(e){return arguments.length?(w=e?-1:1,M()):w<0},C.reflectY=function(e){return arguments.length?(_=e?-1:1,M()):_<0},C.precision=function(e){return arguments.length?(a=Tp(s,A=e*e),F()):Hc(A)},C.fitExtent=function(e,t){return Ap(C,e,t)},C.fitSize=function(e,t){return Cp(C,e,t)},C.fitWidth=function(e,t){return Dp(C,e,t)},C.fitHeight=function(e,t){return Mp(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&D,M()}}function jp(e){var t=0,n=Sc/3,r=Rp(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Fc,n=e[1]*Fc):[t*Mc,n*Mc]},i}function Lp(e,t){var n=zc(e),r=(n+zc(t))/2;if(Oc(r)=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(e)},c.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i0?t<-Ac+Ec&&(t=-Ac+Ec):t>Ac-Ec&&(t=Ac-Ec);var n=i/Bc(Xp(t),r);return[n*zc(r*e),i-n*Pc(r*e)]}return o.invert=function(e,t){var n=i-t,o=Uc(r)*Hc(e*e+n*n),a=Nc(e,Oc(n))*Uc(n);return n*r<0&&(a-=Sc*Uc(e)*Uc(n)),[a/r,2*Tc(Bc(i/o,1/r))-Ac]},o}function Jp(){return jp(Zp).scale(109.5).parallels([30,30])}function em(e,t){return[e,t]}function tm(){return Ip(em).scale(152.63)}function nm(e,t){var n=Pc(e),r=e===t?zc(e):(n-Pc(t))/(t-e),i=n/r+e;if(Oc(r)2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}function xm(e,t){return e.parent===t.parent?1:2}function Em(e,t){return e+t.x}function km(e,t){return Math.max(e,t.y)}function Sm(){var e=xm,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Em,0)/e.length}(n),t.y=function(e){return 1+e.reduce(km,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=s.x-e(s,u)/2,c=u.x+e(u,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(c-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function Am(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Cm(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Mm)):void 0===t&&(t=Dm);for(var n,r,i,o,a,s=new Tm(e),u=[s];n=u.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new Tm(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Om)}function Dm(e){return e.children}function Mm(e){return Array.isArray(e)?e[1]:null}function Fm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Om(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Tm(e){this.data=e,this.depth=this.height=0,this.parent=null}function Nm(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Array.from(e))).length,o=[];r0&&n*n>r*r+i*i}function jm(e,t){for(var n=0;n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function Hm(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function qm(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function Gm(e){this._=e,this.next=null,this.previous=null}function Wm(e){if(!(i=(e=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;Um(n,t,r=e[2]),t=new Gm(t),n=new Gm(n),r=new Gm(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sEc&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},gm.invert=qp(Wc),vm.invert=qp((function(e){return 2*Tc(e)})),wm.invert=function(e,t){return[-t,2*Tc(Rc(e))-Ac]},Tm.prototype=Cm.prototype={constructor:Tm,count:function(){return this.eachAfter(Am)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Cm(this).eachBefore(Fm)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=Qm(t),n):e},n.parentId=function(e){return arguments.length?(t=Qm(e),n):t},n}function lg(e,t){return e.parent===t.parent?1:2}function cg(e){var t=e.children;return t?t[0]:e.t}function fg(e){var t=e.children;return t?t[t.length-1]:e.t}function dg(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function hg(e,t,n){return e.a.parent===t.parent?e.a:n}function pg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function mg(){var e=lg,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,a=new pg(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new pg(r[i],i)),n.parent=t;return(a.parent=new pg(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(e){e.xc.x&&(c=e),e.depth>f.depth&&(f=e)}));var d=l===c?1:e(l,c)/2,h=d-l.x,p=t/(c.x+d+h),m=n/(f.depth||1);i.eachBefore((function(e){e.x=(e.x+h)*p,e.y=e.depth*m}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,d=u.m;s=fg(s),o=cg(o),s&&o;)u=cg(u),(a=fg(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(dg(hg(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,d+=u.m,c+=a.m;s&&!fg(a)&&(a.t=s,a.m+=f-c),o&&!cg(u)&&(u.t=o,u.m+=l-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function gg(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(i-n)/e.value;++sd&&(d=s),g=c*c*m,(h=Math.max(d/g,g/f))>p){c-=s;break}p=h}y.push(a={value:c,dice:u1?t:1)},n}(yg);function wg(){var e=bg,t=!1,n=1,r=1,i=[0],o=$m,a=$m,s=$m,u=$m,l=$m;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(tg),e}function f(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,d=t.y1-n;f=n-1){var c=s[t];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[t],d=r/2+f,h=t+1,p=n-1;for(;h>>1;l[m]u-o){var v=r?(i*y+a*g)/r:a;e(t,h,g,i,o,v,u),e(h,n,y,v,o,a,u)}else{var b=r?(o*y+u*g)/r:u;e(t,h,g,i,o,a,b),e(h,n,y,i,b,a,u)}}(0,u,e.value,t,n,r,i)}function xg(e,t,n,r,i){(1&e.depth?gg:ng)(e,t,n,r,i)}const Eg=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,d=a.length,h=e.value;++f1?t:1)},n}(yg);function kg(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Sg(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r()=>e;function Dg(e,t){return function(n){return e+n*t}}function Mg(e,t){var n=t-e;return n?Dg(e,n>180||n<-180?n-360*Math.round(n/360):n):Cg(isNaN(e)?t:e)}function Fg(e){return 1===(e=+e)?Og:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Cg(isNaN(t)?n:t)}}function Og(e,t){var n=t-e;return n?Dg(e,n):Cg(isNaN(e)?t:e)}const Tg=function e(t){var n=Fg(t);function r(e,t){var r=n((e=Go(e)).r,(t=Go(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Og(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ng(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;no&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Ug(n,r)})),o=Gg.lastIndex;return o180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Ug(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Ug(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Ug(e,n)},{i:s-2,x:Ug(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n1&&by(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function xy(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;ts!==l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=r;return c}function ky(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++r1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(Sy),My=function e(t){var n=Dy.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(Sy),Fy=function e(t){function n(e){return(e=+e)<=0?()=>0:function(){for(var n=0,r=e;r>1;--r)n+=t();return n+r*t()}}return n.source=e,n}(Sy),Oy=function e(t){var n=Fy.source(t);function r(e){if(0===(e=+e))return t;var r=n(e);return function(){return r()/e}}return r.source=e,r}(Sy),Ty=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(Sy),Ny=function e(t){function n(e){if((e=+e)<0)throw new RangeError("invalid alpha");return e=1/-e,function(){return Math.pow(1-t(),e)}}return n.source=e,n}(Sy),Py=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+e)}}return n.source=e,n}(Sy),Iy=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return 0===e?()=>1/0:1===e?()=>1:(e=Math.log1p(-e),function(){return 1+Math.floor(Math.log1p(-t())/e)})}return n.source=e,n}(Sy),Ry=function e(t){var n=Dy.source(t)();function r(e,r){if((e=+e)<0)throw new RangeError("invalid k");if(0===e)return()=>0;if(r=null==r?1:+r,1===e)return()=>-Math.log1p(-t())*r;var i=(e<1?e+1:e)-1/3,o=1/(3*Math.sqrt(i)),a=e<1?()=>Math.pow(t(),1/e):()=>1;return function(){do{do{var e=n(),s=1+o*e}while(s<=0);s*=s*s;var u=1-t()}while(u>=1-.0331*e*e*e*e&&Math.log(u)>=.5*e*e+i*(1-s+Math.log(s)));return i*s*a()*r}}return r.source=e,r}(Sy),jy=function e(t){var n=Ry.source(t);function r(e,t){var r=n(e),i=n(t);return function(){var e=r();return 0===e?0:e/(e+i())}}return r.source=e,r}(Sy),Ly=function e(t){var n=Iy.source(t),r=jy.source(t);function i(e,t){return e=+e,(t=+t)>=1?()=>e:t<=0?()=>0:function(){for(var i=0,o=e,a=t;o*a>16&&o*(1-a)>16;){var s=Math.floor((o+1)*a),u=r(s,o-s+1)();u<=a?(i+=s,o-=s,a=(a-u)/(1-u)):(o=s-1,a/=u)}for(var l=a<.5,c=n(l?a:1-a),f=c(),d=0;f<=o;++d)f+=c();return i+(l?d:o-d)}}return i.source=e,i}(Sy),By=function e(t){function n(e,n,r){var i;return 0===(e=+e)?i=e=>-Math.log(e):(e=1/e,i=t=>Math.pow(t,e)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-t()))}}return n.source=e,n}(Sy),zy=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){return e+n*Math.tan(Math.PI*t())}}return n.source=e,n}(Sy),Uy=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){var r=t();return e+n*Math.log(r/(1-r))}}return n.source=e,n}(Sy),Hy=function e(t){var n=Ry.source(t),r=Ly.source(t);function i(e){return function(){for(var i=0,o=e;o>16;){var a=Math.floor(.875*o),s=n(a)();if(s>o)return i+r(a-1,o/s)();i+=a,o-=s}for(var u=-Math.log1p(-t()),l=0;u<=o;++l)u-=Math.log1p(-t());return i+l}}return i.source=e,i}(Sy),qy=1664525,Gy=1013904223,Wy=1/4294967296;function Vy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Math.random(),t=0|(0<=e&&e<1?e/Wy:Math.abs(e));return()=>(t=qy*t+Gy|0,Wy*(t>>>0))}function Qy(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function $y(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}const Ky=Symbol("implicit");function Yy(){var e=new Map,t=[],n=[],r=Ky;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==Ky)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Yy(t,n).unknown(r)},Qy.apply(i,arguments),i}function Xy(){var e,t,n=Yy().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,l=0,c=.5;function f(){var n=r().length,f=a0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=new Array(i=r-n+1);++st&&--r,o=new Array(i=r-n+1);++s=0?(o>=ev?10:o>=tv?5:o>=nv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ev?10:o>=tv?5:o>=nv?2:1)}function ov(e,t){return et?1:e>=t?0:NaN}function av(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>ov(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function sv(e){return null===e?NaN:+e}const uv=av(ov),lv=uv.right,cv=(uv.left,av(sv).center,lv);function fv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hv(){}var pv=.7,mv=1.4285714285714286,gv="\\s*([+-]?\\d+)\\s*",yv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",vv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bv=/^#([0-9a-f]{3,8})$/,wv=new RegExp("^rgb\\("+[gv,gv,gv]+"\\)$"),_v=new RegExp("^rgb\\("+[vv,vv,vv]+"\\)$"),xv=new RegExp("^rgba\\("+[gv,gv,gv,yv]+"\\)$"),Ev=new RegExp("^rgba\\("+[vv,vv,vv,yv]+"\\)$"),kv=new RegExp("^hsl\\("+[yv,vv,vv]+"\\)$"),Sv=new RegExp("^hsla\\("+[yv,vv,vv,yv]+"\\)$"),Av={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 Cv(){return this.rgb().formatHex()}function Dv(){return this.rgb().formatRgb()}function Mv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fv(t):3===n?new Nv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ov(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ov(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wv.exec(e))?new Nv(t[1],t[2],t[3],1):(t=_v.exec(e))?new Nv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xv.exec(e))?Ov(t[1],t[2],t[3],t[4]):(t=Ev.exec(e))?Ov(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kv.exec(e))?jv(t[1],t[2]/100,t[3]/100,1):(t=Sv.exec(e))?jv(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?Fv(Av[e]):"transparent"===e?new Nv(NaN,NaN,NaN,0):null}function Fv(e){return new Nv(e>>16&255,e>>8&255,255&e,1)}function Ov(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nv(e,t,n,r)}function Tv(e,t,n,r){return 1===arguments.length?((i=e)instanceof hv||(i=Mv(i)),i?new Nv((i=i.rgb()).r,i.g,i.b,i.opacity):new Nv):new Nv(e,t,n,null==r?1:r);var i}function Nv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pv(){return"#"+Rv(this.r)+Rv(this.g)+Rv(this.b)}function Iv(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Rv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function jv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bv(e,t,n,r)}function Lv(e){if(e instanceof Bv)return new Bv(e.h,e.s,e.l,e.opacity);if(e instanceof hv||(e=Mv(e)),!e)return new Bv;if(e instanceof Bv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new Bv(a,s,u,e.opacity)}function Bv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Uv(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}fv(hv,Mv,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cv,formatHex:Cv,formatHsl:function(){return Lv(this).formatHsl()},formatRgb:Dv,toString:Dv}),fv(Nv,Tv,dv(hv,{brighter:function(e){return e=null==e?mv:Math.pow(mv,e),new Nv(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?pv:Math.pow(pv,e),new Nv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pv,formatHex:Pv,formatRgb:Iv,toString:Iv})),fv(Bv,(function(e,t,n,r){return 1===arguments.length?Lv(e):new Bv(e,t,n,null==r?1:r)}),dv(hv,{brighter:function(e){return e=null==e?mv:Math.pow(mv,e),new Bv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?pv:Math.pow(pv,e),new Bv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nv(zv(e>=240?e-240:e+120,i,r),zv(e,i,r),zv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Hv=e=>()=>e;function qv(e,t){return function(n){return e+n*t}}function Gv(e){return 1===(e=+e)?Wv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Hv(isNaN(t)?n:t)}}function Wv(e,t){var n=t-e;return n?qv(e,n):Hv(isNaN(e)?t:e)}const Vv=function e(t){var n=Gv(t);function r(e,t){var r=n((e=Tv(e)).r,(t=Tv(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Wv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Qv(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yv(n,r)})),o=Jv.lastIndex;return ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?lb:ub,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(s,a.map(e),Yv)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,ib),c()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),u=rb,c()},f.clamp=function(e){return arguments.length?(l=!!e||ab,c()):l!==ab},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function db(){return fb()(ab,ab)}function hb(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ev?i*=10:o>=tv?i*=5:o>=nv&&(i*=2),t0;){if((i=iv(u,l,n))===r)return o[a]=u,o[s]=l,t(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function mb(){var e=db();return e.copy=function(){return cb(e,mb())},Qy.apply(e,arguments),pb(e)}function gb(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,ib),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return gb(e).unknown(t)},e=arguments.length?Array.from(e,ib):[0,1],pb(n)}function yb(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a0){for(;d<=h;++d)for(c=1,l=n(d);cu)break;m.push(f)}}else for(;d<=h;++d)for(c=o-1,l=n(d);c>=1;--c)if(!((f=l*c)u)break;m.push(f)}2*m.length=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function Bb(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function zb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ov;for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1);zb(e,t,Math.max(n,Math.floor(t-a*u/o+l)),Math.min(r,Math.floor(t+(o-a)*u/o+l)),i)}const o=e[t];let a=n,s=r;for(Ub(e,n,t),i(e[r],o)>0&&Ub(e,n,r);a0;)--s}0===i(e[n],o)?Ub(e,n,s):(++s,Ub(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ub(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Hb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Bb(e);if(t>=1)return Lb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Lb(zb(e,o).subarray(0,o+1));return a+(Bb(e.subarray(o+1))-a)*(i-o)}}function qb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sv;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function Gb(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e0?r[i-1]:t[0],i=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Wb().domain([t,n]).range(o).unknown(e)},Qy.apply(pb(a),arguments)}function Vb(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[cv(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Vb().domain(t).range(n).unknown(e)},Qy.apply(i,arguments)}function Qb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return et?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var $b=Math.sqrt(50),Kb=Math.sqrt(10),Yb=Math.sqrt(2);function Xb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$b?i*=10:o>=Kb?i*=5:o>=Yb&&(i*=2),t0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return ow.setTime(+t),aw.setTime(+r),e(ow),e(aw),Math.floor(n(ow,aw))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var uw=sw((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));uw.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?sw((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):uw:null};const lw=uw;var cw=uw.range,fw=sw((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Zb)}),(function(e,t){return(t-e)/Zb}),(function(e){return e.getUTCSeconds()}));const dw=fw;var hw=fw.range,pw=sw((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zb)}),(function(e,t){e.setTime(+e+t*Jb)}),(function(e,t){return(t-e)/Jb}),(function(e){return e.getMinutes()}));const mw=pw;var gw=pw.range,yw=sw((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zb-e.getMinutes()*Jb)}),(function(e,t){e.setTime(+e+t*ew)}),(function(e,t){return(t-e)/ew}),(function(e){return e.getHours()}));const vw=yw;var bw=yw.range,ww=sw((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jb)/tw),(e=>e.getDate()-1));const _w=ww;var xw=ww.range;function Ew(e){return sw((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jb)/nw}))}var kw=Ew(0),Sw=Ew(1),Aw=Ew(2),Cw=Ew(3),Dw=Ew(4),Mw=Ew(5),Fw=Ew(6),Ow=kw.range,Tw=Sw.range,Nw=Aw.range,Pw=Cw.range,Iw=Dw.range,Rw=Mw.range,jw=Fw.range,Lw=sw((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const Bw=Lw;var zw=Lw.range,Uw=sw((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Uw.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sw((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const Hw=Uw;var qw=Uw.range,Gw=sw((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Jb)}),(function(e,t){return(t-e)/Jb}),(function(e){return e.getUTCMinutes()}));const Ww=Gw;var Vw=Gw.range,Qw=sw((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ew)}),(function(e,t){return(t-e)/ew}),(function(e){return e.getUTCHours()}));const $w=Qw;var Kw=Qw.range,Yw=sw((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/tw}),(function(e){return e.getUTCDate()-1}));const Xw=Yw;var Zw=Yw.range;function Jw(e){return sw((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/nw}))}var e_=Jw(0),t_=Jw(1),n_=Jw(2),r_=Jw(3),i_=Jw(4),o_=Jw(5),a_=Jw(6),s_=e_.range,u_=t_.range,l_=n_.range,c_=r_.range,f_=i_.range,d_=o_.range,h_=a_.range,p_=sw((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const m_=p_;var g_=p_.range,y_=sw((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));y_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sw((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const v_=y_;var b_=y_.range;function w_(e,t,n,r,i,o){const a=[[dw,1,Zb],[dw,5,5e3],[dw,15,15e3],[dw,30,3e4],[o,1,Jb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ew],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,tw],[r,2,1728e5],[n,1,nw],[t,1,rw],[t,3,7776e6],[e,1,iw]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Qb((e=>{let[,,t]=e;return t})).right(a,i);if(o===a.length)return e.every(Xb(t/iw,n/iw,r));if(0===o)return lw.every(Math.max(Xb(t,n,r),1));const[s,u]=a[i/a[o-1][2]=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Kx,s:Yx,S:gx,u:yx,U:vx,V:wx,w:_x,W:xx,x:null,X:null,y:Ex,Y:Sx,Z:Cx,"%":$x},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Dx,e:Dx,f:Nx,g:Gx,G:Vx,H:Mx,I:Fx,j:Ox,L:Tx,m:Px,M:Ix,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Kx,s:Yx,S:Rx,u:jx,U:Lx,V:zx,w:Ux,W:Hx,x:null,X:null,y:qx,Y:Wx,Z:Qx,"%":$x},_={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Z_,e:Z_,f:ix,g:$_,G:Q_,H:ex,I:ex,j:J_,L:rx,m:X_,M:tx,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Y_,Q:ax,s:sx,S:nx,u:q_,U:G_,V:W_,w:H_,W:V_,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$_,Y:Q_,Z:K_,"%":ox};function x(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=A_(C_(o.y,0,1))).getUTCDay(),r=i>4||0===i?t_.ceil(r):t_(r),r=Xw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=S_(C_(o.y,0,1))).getDay(),r=i>4||0===i?Sw.ceil(r):Sw(r),r=_w.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?A_(C_(o.y,0,1)).getUTCDay():S_(C_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,A_(o)):S_(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=_[i in P_?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}var M_,F_,O_,T_,N_,P_={"-":"",_:" ",0:"0"},I_=/^\s*\d+/,R_=/^%/,j_=/[\\^$*+?|[\]().{}]/g;function L_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[e.toLowerCase(),t])))}function H_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function q_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function W_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function V_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=I_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function K_(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Y_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function X_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Z_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function J_(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ex(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tx(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nx(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ix(e,t,n){var r=I_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ox(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ax(e,t,n){var r=I_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function sx(e,t,n){var r=I_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ux(e,t){return L_(e.getDate(),t,2)}function lx(e,t){return L_(e.getHours(),t,2)}function cx(e,t){return L_(e.getHours()%12||12,t,2)}function fx(e,t){return L_(1+_w.count(Hw(e),e),t,3)}function dx(e,t){return L_(e.getMilliseconds(),t,3)}function hx(e,t){return dx(e,t)+"000"}function px(e,t){return L_(e.getMonth()+1,t,2)}function mx(e,t){return L_(e.getMinutes(),t,2)}function gx(e,t){return L_(e.getSeconds(),t,2)}function yx(e){var t=e.getDay();return 0===t?7:t}function vx(e,t){return L_(kw.count(Hw(e)-1,e),t,2)}function bx(e){var t=e.getDay();return t>=4||0===t?Dw(e):Dw.ceil(e)}function wx(e,t){return e=bx(e),L_(Dw.count(Hw(e),e)+(4===Hw(e).getDay()),t,2)}function _x(e){return e.getDay()}function xx(e,t){return L_(Sw.count(Hw(e)-1,e),t,2)}function Ex(e,t){return L_(e.getFullYear()%100,t,2)}function kx(e,t){return L_((e=bx(e)).getFullYear()%100,t,2)}function Sx(e,t){return L_(e.getFullYear()%1e4,t,4)}function Ax(e,t){var n=e.getDay();return L_((e=n>=4||0===n?Dw(e):Dw.ceil(e)).getFullYear()%1e4,t,4)}function Cx(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+L_(t/60|0,"0",2)+L_(t%60,"0",2)}function Dx(e,t){return L_(e.getUTCDate(),t,2)}function Mx(e,t){return L_(e.getUTCHours(),t,2)}function Fx(e,t){return L_(e.getUTCHours()%12||12,t,2)}function Ox(e,t){return L_(1+Xw.count(v_(e),e),t,3)}function Tx(e,t){return L_(e.getUTCMilliseconds(),t,3)}function Nx(e,t){return Tx(e,t)+"000"}function Px(e,t){return L_(e.getUTCMonth()+1,t,2)}function Ix(e,t){return L_(e.getUTCMinutes(),t,2)}function Rx(e,t){return L_(e.getUTCSeconds(),t,2)}function jx(e){var t=e.getUTCDay();return 0===t?7:t}function Lx(e,t){return L_(e_.count(v_(e)-1,e),t,2)}function Bx(e){var t=e.getUTCDay();return t>=4||0===t?i_(e):i_.ceil(e)}function zx(e,t){return e=Bx(e),L_(i_.count(v_(e),e)+(4===v_(e).getUTCDay()),t,2)}function Ux(e){return e.getUTCDay()}function Hx(e,t){return L_(t_.count(v_(e)-1,e),t,2)}function qx(e,t){return L_(e.getUTCFullYear()%100,t,2)}function Gx(e,t){return L_((e=Bx(e)).getUTCFullYear()%100,t,2)}function Wx(e,t){return L_(e.getUTCFullYear()%1e4,t,4)}function Vx(e,t){var n=e.getUTCDay();return L_((e=n>=4||0===n?i_(e):i_.ceil(e)).getUTCFullYear()%1e4,t,4)}function Qx(){return"+0000"}function $x(){return"%"}function Kx(e){return+e}function Yx(e){return Math.floor(+e/1e3)}function Xx(e){return M_=D_(e),F_=M_.format,O_=M_.parse,T_=M_.utcFormat,N_=M_.utcParse,M_}function Zx(e){return new Date(e)}function Jx(e){return e instanceof Date?+e:+new Date(+e)}function eE(e,t,n,r,i,o,a,s,u,l){var c=db(),f=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),b=l("%B"),w=l("%Y");function _(e){return(u(e)t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>Hb(e,r/t)))},n.copy=function(){return cE(t).domain(e)},$y.apply(n,arguments)}function fE(){var e,t,n,r,i,o,a,s=0,u=.5,l=1,c=1,f=ab,d=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jE.exec(e))?new XE(t[1],t[2],t[3],1):(t=LE.exec(e))?new XE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=BE.exec(e))?$E(t[1],t[2],t[3],t[4]):(t=zE.exec(e))?$E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UE.exec(e))?tk(t[1],t[2]/100,t[3]/100,1):(t=HE.exec(e))?tk(t[1],t[2]/100,t[3]/100,t[4]):qE.hasOwnProperty(e)?QE(qE[e]):"transparent"===e?new XE(NaN,NaN,NaN,0):null}function QE(e){return new XE(e>>16&255,e>>8&255,255&e,1)}function $E(e,t,n,r){return r<=0&&(e=t=n=NaN),new XE(e,t,n,r)}function KE(e){return e instanceof FE||(e=VE(e)),e?new XE((e=e.rgb()).r,e.g,e.b,e.opacity):new XE}function YE(e,t,n,r){return 1===arguments.length?KE(e):new XE(e,t,n,null==r?1:r)}function XE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ZE(){return"#"+ek(this.r)+ek(this.g)+ek(this.b)}function JE(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ek(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function tk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rk(e,t,n,r)}function nk(e){if(e instanceof rk)return new rk(e.h,e.s,e.l,e.opacity);if(e instanceof FE||(e=VE(e)),!e)return new rk;if(e instanceof rk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new rk(a,s,u,e.opacity)}function rk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ik(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ok(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}DE(FE,VE,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:GE,formatHex:GE,formatHsl:function(){return nk(this).formatHsl()},formatRgb:WE,toString:WE}),DE(XE,YE,ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new XE(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new XE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZE,formatHex:ZE,formatRgb:JE,toString:JE})),DE(rk,(function(e,t,n,r){return 1===arguments.length?nk(e):new rk(e,t,n,null==r?1:r)}),ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new rk(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new rk(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new XE(ik(e>=240?e-240:e+120,i,r),ik(e,i,r),ik(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const ak=e=>()=>e;function sk(e,t){return function(n){return e+n*t}}function uk(e){return 1===(e=+e)?lk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ak(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?sk(e,n):ak(isNaN(e)?t:e)}(function e(t){var n=uk(t);function r(e,t){var r=n((e=YE(e)).r,(t=YE(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=lk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);function ck(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=rfk(e[e.length-1]);var hk=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(yE);const pk=dk(hk);var mk=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(yE);const gk=dk(mk);var yk=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(yE);const vk=dk(yk);var bk=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(yE);const wk=dk(bk);var _k=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(yE);const xk=dk(_k);var Ek=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(yE);const kk=dk(Ek);var Sk=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(yE);const Ak=dk(Sk);var Ck=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(yE);const Dk=dk(Ck);var Mk=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(yE);const Fk=dk(Mk);var Ok=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(yE);const Tk=dk(Ok);var Nk=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(yE);const Pk=dk(Nk);var Ik=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(yE);const Rk=dk(Ik);var jk=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(yE);const Lk=dk(jk);var Bk=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(yE);const zk=dk(Bk);var Uk=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(yE);const Hk=dk(Uk);var qk=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(yE);const Gk=dk(qk);var Wk=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(yE);const Vk=dk(Wk);var Qk=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(yE);const $k=dk(Qk);var Kk=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(yE);const Yk=dk(Kk);var Xk=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(yE);const Zk=dk(Xk);var Jk=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(yE);const eS=dk(Jk);var tS=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(yE);const nS=dk(tS);var rS=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(yE);const iS=dk(rS);var oS=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(yE);const aS=dk(oS);var sS=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(yE);const uS=dk(sS);var lS=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(yE);const cS=dk(lS);var fS=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(yE);const dS=dk(fS);function hS(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}const pS=Math.PI/180,mS=180/Math.PI;var gS=-.14861,yS=1.78277,vS=-.29227,bS=-.90649,wS=1.97294,_S=-1.7884503806,xS=3.5172982438,ES=-.6557636667999999;function kS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof SS)return new SS(e.h,e.s,e.l,e.opacity);e instanceof XE||(e=KE(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ES*r+_S*t-xS*n)/-5.9615122912,o=r-i,a=(wS*(n-i)-vS*o)/bS,s=Math.sqrt(a*a+o*o)/(wS*i*(1-i)),u=s?Math.atan2(a,o)*mS-120:NaN;return new SS(u<0?u+360:u,s,i,e.opacity)}(e):new SS(e,t,n,null==r?1:r)}function SS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function AS(e){return function t(n){function r(t,r){var i=e((t=kS(t)).h,(r=kS(r)).h),o=lk(t.s,r.s),a=lk(t.l,r.l),s=lk(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}DE(SS,kS,ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new SS(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new SS(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*pS,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new XE(255*(t+n*(gS*r+yS*i)),255*(t+n*(vS*r+bS*i)),255*(t+n*(wS*r)),this.opacity)}}));AS((function(e,t){var n=t-e;return n?sk(e,n>180||n<-180?n-360*Math.round(n/360):n):ak(isNaN(e)?t:e)}));var CS=AS(lk);const DS=CS(kS(300,.5,0),kS(-240,.5,1));var MS=CS(kS(-100,.75,.35),kS(80,1.5,.8)),FS=CS(kS(260,.75,.35),kS(80,1.5,.8)),OS=kS();function TS(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return OS.h=360*e-100,OS.s=1.5-1.5*t,OS.l=.8-.9*t,OS+""}var NS=YE(),PS=Math.PI/3,IS=2*Math.PI/3;function RS(e){var t;return e=(.5-e)*Math.PI,NS.r=255*(t=Math.sin(e))*t,NS.g=255*(t=Math.sin(e+PS))*t,NS.b=255*(t=Math.sin(e+IS))*t,NS+""}function jS(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function LS(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const BS=LS(yE("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var zS=LS(yE("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),US=LS(yE("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),HS=LS(yE("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),qS="http://www.w3.org/1999/xhtml";const GS={svg:"http://www.w3.org/2000/svg",xhtml:qS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function WS(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),GS.hasOwnProperty(t)?{space:GS[t],local:e}:e}function VS(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qS&&t.documentElement.namespaceURI===qS?t.createElement(e):t.createElementNS(n,e)}}function QS(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $S(e){var t=WS(e);return(t.local?QS:VS)(t)}function KS(){}function YS(e){return null==e?KS:function(){return this.querySelector(e)}}function XS(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function ZS(){return[]}function JS(e){return null==e?ZS:function(){return this.querySelectorAll(e)}}function eA(e){return function(){return this.matches(e)}}function tA(e){return function(t){return t.matches(e)}}var nA=Array.prototype.find;function rA(){return this.firstElementChild}var iA=Array.prototype.filter;function oA(){return this.children}function aA(e){return new Array(e.length)}function sA(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function uA(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;st?1:e>=t?0:NaN}function dA(e){return function(){this.removeAttribute(e)}}function hA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pA(e,t){return function(){this.setAttribute(e,t)}}function mA(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gA(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function yA(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function vA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bA(e){return function(){this.style.removeProperty(e)}}function wA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _A(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function xA(e,t){return e.style.getPropertyValue(t)||vA(e).getComputedStyle(e,null).getPropertyValue(t)}function EA(e){return function(){delete this[e]}}function kA(e,t){return function(){this[e]=t}}function SA(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function AA(e){return e.trim().split(/^|\s+/)}function CA(e){return e.classList||new DA(e)}function DA(e){this._node=e,this._names=AA(e.getAttribute("class")||"")}function MA(e,t){for(var n=CA(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var XA=[null];function ZA(e,t){this._groups=e,this._parents=t}function JA(){return new ZA([[document.documentElement]],XA)}ZA.prototype=JA.prototype={constructor:ZA,select:function(e){"function"!==typeof e&&(e=YS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=w&&(w=b+1);!(v=g[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=fA);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?bA:"function"===typeof t?_A:wA)(e,t,null==n?"":n)):xA(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?EA:"function"===typeof t?SA:kA)(e,t)):this.node()[e]},classed:function(e,t){var n=AA(e+"");if(arguments.length<2){for(var r=CA(this.node()),i=-1,o=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?QA:VA,r=0;rsC(e,t)))}function lC(e){return"string"===typeof e?new ZA([document.querySelectorAll(e)],[document.documentElement]):new ZA([null==e?[]:XS(e)],XA)}function cC(e){return function(){return e}}oC.prototype=iC.prototype={constructor:oC,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var fC=Math.abs,dC=Math.atan2,hC=Math.cos,pC=Math.max,mC=Math.min,gC=Math.sin,yC=Math.sqrt,vC=1e-12,bC=Math.PI,wC=bC/2,_C=2*bC;function xC(e){return e>=1?wC:e<=-1?-wC:Math.asin(e)}function EC(e){return e.innerRadius}function kC(e){return e.outerRadius}function SC(e){return e.startAngle}function AC(e){return e.endAngle}function CC(e){return e&&e.padAngle}function DC(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/yC(s*s+u*u),c=l*u,f=-l*s,d=e+c,h=t+f,p=n+c,m=r+f,g=(d+p)/2,y=(h+m)/2,v=p-d,b=m-h,w=v*v+b*b,_=i-o,x=d*m-p*h,E=(b<0?-1:1)*yC(pC(0,_*_*w-x*x)),k=(x*b-v*E)/w,S=(-x*v-b*E)/w,A=(x*b+v*E)/w,C=(-x*v+b*E)/w,D=k-g,M=S-y,F=A-g,O=C-y;return D*D+M*M>F*F+O*O&&(k=A,S=C),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(i/_-1),y11:S*(i/_-1)}}function MC(){var e=EC,t=kC,n=cC(0),r=null,i=SC,o=AC,a=CC,s=null;function u(){var u,l,c=+e.apply(this,arguments),f=+t.apply(this,arguments),d=i.apply(this,arguments)-wC,h=o.apply(this,arguments)-wC,p=fC(h-d),m=h>d;if(s||(s=u=uo()),fvC)if(p>_C-vC)s.moveTo(f*hC(d),f*gC(d)),s.arc(0,0,f,d,h,!m),c>vC&&(s.moveTo(c*hC(h),c*gC(h)),s.arc(0,0,c,h,d,m));else{var g,y,v=d,b=h,w=d,_=h,x=p,E=p,k=a.apply(this,arguments)/2,S=k>vC&&(r?+r.apply(this,arguments):yC(c*c+f*f)),A=mC(fC(f-c)/2,+n.apply(this,arguments)),C=A,D=A;if(S>vC){var M=xC(S/c*gC(k)),F=xC(S/f*gC(k));(x-=2*M)>vC?(w+=M*=m?1:-1,_-=M):(x=0,w=_=(d+h)/2),(E-=2*F)>vC?(v+=F*=m?1:-1,b-=F):(E=0,v=b=(d+h)/2)}var O=f*hC(v),T=f*gC(v),N=c*hC(_),P=c*gC(_);if(A>vC){var I,R=f*hC(b),j=f*gC(b),L=c*hC(w),B=c*gC(w);if(p1?0:e<-1?bC:Math.acos(e)}((z*H+U*q)/(yC(z*z+U*U)*yC(H*H+q*q)))/2),W=yC(I[0]*I[0]+I[1]*I[1]);C=mC(A,(c-W)/(G-1)),D=mC(A,(f-W)/(G+1))}}E>vC?D>vC?(g=DC(L,B,O,T,f,D,m),y=DC(R,j,N,P,f,D,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),DvC&&x>vC?C>vC?(g=DC(N,P,R,j,c,-C,m),y=DC(O,T,L,B,c,-C,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),C=c;--f)s.point(g[f],y[f]);s.lineEnd(),s.areaEnd()}m&&(g[l]=+e(d,l,u),y[l]=+t(d,l,u),s.point(r?+r(d,l,u):g[l],n?+n(d,l,u):y[l]))}if(h)return s=null,h+""||null}function l(){return RC().defined(i).curve(a).context(o)}return e="function"===typeof e?e:void 0===e?PC:cC(+e),t="function"===typeof t?t:cC(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?IC:cC(+n),u.x=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:cC(+e),u):r},u.y=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:cC(+e),u):n},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(n)},u.lineX1=function(){return l().x(r).y(t)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:cC(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u}function LC(e,t){return te?1:t>=e?0:NaN}function BC(e){return e}function zC(){var e=BC,t=LC,n=null,r=cC(0),i=cC(_C),o=cC(0);function a(a){var s,u,l,c,f,d=(a=OC(a)).length,h=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),y=Math.min(_C,Math.max(-_C,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s0&&(h+=f);for(null!=t?p.sort((function(e,n){return t(m[e],m[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,l=h?(y-d*b)/h:0;s0?f*l:0)+b,m[u]={data:a[u],index:s,value:f,startAngle:g,endAngle:c,padAngle:v};return m}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:cC(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:cC(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:cC(+e),a):o},a}TC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var UC=qC(NC);function HC(e){this._curve=e}function qC(e){function t(t){return new HC(e(t))}return t._curve=e,t}function GC(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(qC(e)):t()._curve},e}function WC(){return GC(RC().curve(UC))}function VC(){var e=jC().curve(UC),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return GC(n())},delete e.lineX0,e.lineEndAngle=function(){return GC(r())},delete e.lineX1,e.lineInnerRadius=function(){return GC(i())},delete e.lineY0,e.lineOuterRadius=function(){return GC(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(qC(e)):t()._curve},e}function QC(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}function $C(e){return e.source}function KC(e){return e.target}function YC(e){var t=$C,n=KC,r=PC,i=IC,o=null;function a(){var a,s=FC.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=uo()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:cC(+e),a):r},a.y=function(e){return arguments.length?(i="function"===typeof e?e:cC(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function XC(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function ZC(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function JC(e,t,n,r,i){var o=QC(t,n),a=QC(t,n=(n+i)/2),s=QC(r,n),u=QC(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function eD(){return YC(XC)}function tD(){return YC(ZC)}function nD(){var e=YC(JC);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}HC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};const rD={draw:function(e,t){var n=Math.sqrt(t/bC);e.moveTo(n,0),e.arc(0,0,n,0,_C)}},iD={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var oD=Math.sqrt(1/3),aD=2*oD;const sD={draw:function(e,t){var n=Math.sqrt(t/aD),r=n*oD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var uD=Math.sin(bC/10)/Math.sin(7*bC/10),lD=Math.sin(_C/10)*uD,cD=-Math.cos(_C/10)*uD;const fD={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=lD*n,i=cD*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=_C*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},dD={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var hD=Math.sqrt(3);const pD={draw:function(e,t){var n=-Math.sqrt(t/(3*hD));e.moveTo(0,2*n),e.lineTo(-hD*n,-n),e.lineTo(hD*n,-n),e.closePath()}};var mD=-.5,gD=Math.sqrt(3)/2,yD=1/Math.sqrt(12),vD=3*(yD/2+1);const bD={draw:function(e,t){var n=Math.sqrt(t/vD),r=n/2,i=n*yD,o=r,a=n*yD+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(mD*r-gD*i,gD*r+mD*i),e.lineTo(mD*o-gD*a,gD*o+mD*a),e.lineTo(mD*s-gD*u,gD*s+mD*u),e.lineTo(mD*r+gD*i,mD*i-gD*r),e.lineTo(mD*o+gD*a,mD*a-gD*o),e.lineTo(mD*s+gD*u,mD*u-gD*s),e.closePath()}};var wD=[rD,iD,sD,dD,fD,pD,bD];function _D(e,t){var n=null;function r(){var r;if(n||(n=r=uo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:cC(e||rD),t="function"===typeof t?t:cC(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:cC(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function xD(){}function ED(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function kD(e){this._context=e}function SD(e){return new kD(e)}function AD(e){this._context=e}function CD(e){return new AD(e)}function DD(e){this._context=e}function MD(e){return new DD(e)}kD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ED(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},AD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},DD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class FD{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function OD(e){return new FD(e,!0)}function TD(e){return new FD(e,!1)}function ND(e,t){this._basis=new kD(e),this._beta=t}ND.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const PD=function e(t){function n(e){return 1===t?new kD(e):new ND(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function ID(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function RD(e,t){this._context=e,this._k=(1-t)/6}RD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ID(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jD=function e(t){function n(e){return new RD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function LD(e,t){this._context=e,this._k=(1-t)/6}LD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const BD=function e(t){function n(e){return new LD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function zD(e,t){this._context=e,this._k=(1-t)/6}zD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UD=function e(t){function n(e){return new zD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function HD(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>vC){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>vC){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function qD(e,t){this._context=e,this._alpha=t}qD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GD=function e(t){function n(e){return t?new qD(e,t):new RD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function WD(e,t){this._context=e,this._alpha=t}WD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const VD=function e(t){function n(e){return t?new WD(e,t):new LD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function QD(e,t){this._context=e,this._alpha=t}QD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $D=function e(t){function n(e){return t?new QD(e,t):new zD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function KD(e){this._context=e}function YD(e){return new KD(e)}function XD(e){return e<0?-1:1}function ZD(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(XD(o)+XD(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function JD(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function eM(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function tM(e){this._context=e}function nM(e){this._context=new rM(e)}function rM(e){this._context=e}function iM(e){return new tM(e)}function oM(e){return new nM(e)}function aM(e){this._context=e}function sM(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function mM(e,t){return e[t]}function gM(e){const t=[];return t.key=e,t}function yM(){var e=cC([]),t=pM,n=hM,r=mM;function i(i){var o,a,s=Array.from(e.apply(this,arguments),gM),u=s.length,l=-1;for(const e of i)for(o=0,++l;o0){for(var n,r,i,o=0,a=e[0].length;o0)for(var n,r,i,o,a,s,u=0,l=e[t[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function wM(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=t,r=n);return r}function kM(e){var t=e.map(SM);return pM(e).sort((function(e,n){return t[e]-t[n]}))}function SM(e){for(var t,n=0,r=-1,i=e.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var MM="%Y-%m-%dT%H:%M:%S.%LZ";var FM=Date.prototype.toISOString?function(e){return e.toISOString()}:T_(MM);const OM=FM;var TM=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:N_(MM);const NM=TM;var PM,IM,RM=0,jM=0,LM=0,BM=0,zM=0,UM=0,HM="object"===typeof performance&&performance.now?performance:Date,qM="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function GM(){return zM||(qM(WM),zM=HM.now()+UM)}function WM(){zM=0}function VM(){this._call=this._time=this._next=null}function QM(e,t,n){var r=new VM;return r.restart(e,t,n),r}function $M(){GM(),++RM;for(var e,t=PM;t;)(e=zM-t._time)>=0&&t._call.call(null,e),t=t._next;--RM}function KM(){zM=(BM=HM.now())+UM,RM=jM=0;try{$M()}finally{RM=0,function(){var e,t,n=PM,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:PM=t);IM=e,XM(r)}(),zM=0}}function YM(){var e=HM.now(),t=e-BM;t>1e3&&(UM-=t,BM=e)}function XM(e){RM||(jM&&(jM=clearTimeout(jM)),e-zM>24?(e<1/0&&(jM=setTimeout(KM,e-HM.now()-UM)),LM&&(LM=clearInterval(LM))):(LM||(BM=HM.now(),LM=setInterval(YM,1e3)),RM=1,qM(KM)))}function ZM(e,t,n){var r=new VM;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}function JM(e,t,n){var r=new VM,i=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?GM():+n,r._restart((function o(a){a+=i,r._restart(o,i+=t,n),e(a)}),t,n)},r.restart(e,t,n),r)}VM.prototype=QM.prototype={constructor:VM,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?GM():+n)+(null==t?0:+t),this._next||IM===this||(IM?IM._next=this:PM=this,IM=this),this._call=e,this._time=n,XM()},stop:function(){this._call&&(this._call=null,this._time=1/0,XM())}};var eF=(0,Je.A)("start","end","cancel","interrupt"),tF=[],nF=1,rF=2,iF=5,oF=6;function aF(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=nF,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(n.state!==nF)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return ZM(a);4===d.state?(d.state=oF,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function uF(e,t){var n=lF(e,t);if(n.state>3)throw new Error("too late; already running");return n}function lF(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function cF(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>rF&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?sF:uF;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=WS(e),r="transform"===n?ny:pF;return this.attrTween(e,"function"===typeof t?(n.local?wF:bF)(n,r,hF(this,"attr."+e,t)):null==t?(n.local?gF:mF)(n):(n.local?vF:yF)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=WS(e);return this.tween(n,(r.local?_F:xF)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?ty:pF;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=xA(this,e),a=(this.style.removeProperty(e),xA(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,DF(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=xA(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=xA(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,hF(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=uF(this,e),l=u.on,c=null==u.value[a]?o||(o=DF(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=xA(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(hF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=lF(this.node(),n).tween,o=0,a=i.length;onF&&n.name===t)return new FF([[e]],RF,t,+r);return null}const LF=e=>()=>e;function BF(e,t){let{sourceEvent:n,target:r,transform:i,dispatch:o}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zF(e,t,n){this.k=e,this.x=t,this.y=n}zF.prototype={constructor:zF,scale:function(e){return 1===e?this:new zF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new zF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var UF=new zF(1,0,0);function HF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return UF;return e.__zoom}function qF(e){e.stopImmediatePropagation()}function GF(e){e.preventDefault(),e.stopImmediatePropagation()}function WF(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function VF(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function QF(){return this.__zoom||UF}function $F(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function KF(){return navigator.maxTouchPoints||"ontouchstart"in this}function YF(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function XF(){var e,t,n,r=WF,i=VF,o=YF,a=$F,s=KF,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,f=iy,d=(0,Je.A)("start","zoom","end"),h=0,p=10;function m(e){e.property("__zoom",QF).on("wheel.zoom",x).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new zF(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new zF(e.k,r,i)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=w(e,o).event(r),s=i.apply(e,o),u=null==n?v(s):"function"===typeof n?n.apply(e,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,d="function"===typeof t?t.apply(e,o):t,h=f(c.invert(u).concat(l/c.k),d.invert(u).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=l/t[2];e=new zF(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1?t-1:0),a=1;ah}s.event(e).zoom("mouse",o(y(s.that.__zoom,s.mouse[0]=sC(e,f),s.mouse[1]),s.extent,l))}),!0).on("mouseup.zoom",(function(e){u.on("mousemove.zoom mouseup.zoom",null),(0,et.y)(e.view,s.moved),GF(e),s.event(e).end()}),!0),c=sC(e,f),f=e.currentTarget,d=e.clientX,p=e.clientY;(0,et.A)(e.view),qF(e),s.mouse=[c,this.__zoom.invert(c)],cF(this),s.start()}}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0?tC(this).transition().duration(c).call(b,h,u,e):tC(this).call(m.transform,h,u,e)}}function S(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a1?t-1:0),r=1;r1?r-1:0),o=1;o{function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!==typeof e)throw new TypeError("Expected the first parameter to be a function, got `".concat(typeof e,"`."));if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}="boolean"===typeof n?{immediate:n}:n;let i,o,a,s,u;function l(){const t=i,n=o;return i=void 0,o=void 0,u=e.apply(t,n),u}function c(){const e=Date.now()-s;e=0?a=setTimeout(c,t-e):(a=void 0,r||(u=l()))}const f=function(){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this;for(var e=arguments.length,n=new Array(e),f=0;fvoid 0!==a}),f.clear=()=>{a&&(clearTimeout(a),a=void 0)},f.flush=()=>{a&&f.trigger()},f.trigger=()=>{u=l(),f.clear()},f}e.exports.debounce=t,e.exports=t},9411:(e,t,n)=>{"use strict";var r=n(6709),i=n(7430),o=n(7277),a=n(4553);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!c&&(s||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(9411),u=n(7734)(),l=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";var r,i=n(9460),o=n(4553);try{r=[].__proto__===Array.prototype}catch(l){if(!l||"object"!==typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof u&&function(e){return u(null==e?e:s(e))}},9518:(e,t,n)=>{"use strict";var r=n(9460),i=n(4553),o=n(7277),a={};try{a.__proto__=null}catch(l){if(!l||"object"!==typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var s=!("toString"in a),u=i&&i(Object.prototype,"__proto__");e.exports=s&&(!!u&&"function"===typeof u.set&&r([u.set])||function(e,t){if(null==e)throw new o("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})},6709:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},3123:e=>{"use strict";e.exports=EvalError},6953:e=>{"use strict";e.exports=Error},3780:e=>{"use strict";e.exports=RangeError},8768:e=>{"use strict";e.exports=ReferenceError},7430:e=>{"use strict";e.exports=SyntaxError},7277:e=>{"use strict";e.exports=TypeError},1619:e=>{"use strict";e.exports=URIError},6790:(e,t,n)=>{"use strict";var r=n(7277);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},8446:(e,t,n)=>{"use strict";var r=n(6954),i=n(6790);e.exports=function(e){return i(e),r(e)}},6954:e=>{"use strict";e.exports=Object},5241:(e,t,n)=>{"use strict";var r=n(2155),i="function"===typeof Symbol&&"symbol"===typeof Symbol.unscopables,o=i&&Array.prototype[Symbol.unscopables],a=TypeError;e.exports=function(e){if("string"!==typeof e||!e)throw new a("method must be a non-empty string");if(!r(Array.prototype,e))throw new a("method must be on Array.prototype");i&&(o[e]=!0)}},3151:(e,t,n)=>{"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,i=n(6216),o=n(6806),a=n(4866),s=n(5334);e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&"undefined"!==typeof n){if(!o(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var u=t.call(e,n);if(i(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},789:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},755:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,l,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d{if(!t.rels.children)return;const n=t.rels.spouses||[];t.rels.children.sort(((r,i)=>{const o=e.find((e=>e.id===r)),s=e.find((e=>e.id===i)),u=a(o,t,e)||{},l=a(s,t,e)||{},c=n.indexOf(u.id),f=n.indexOf(l.id);return"M"===t.data.gender?c-f:f-c}))}))}function a(e,t,n){return n.find((n=>n.id!==t.id&&(n.id===e.rels.mother||n.id===e.rels.father)))}function s(e,t,n){if(e.exiting=n,t)0!==e.depth||e.spouse?e.spouse?(e._x=e.spouse.x,e._y=e.spouse.y):e.is_ancestry?(e._x=e.parent.x,e._y=e.parent.y):(e._x=e.psx,e._y=e.psy):(e._x=e.x,e._y=e.y);else if(n){const t=e.x>0?1:-1,n=e.y>0?1:-1;e._x=e.x+400*t,e._y=e.y+400*n}}function u(e,t){const n=t?"rels":"_rels",r=t?"_rels":"rels";function i(t){e.data[n]&&e.data[n][t]&&(e.data[r]||(e.data[r]={}),e.data[r][t]=e.data[n][t],delete e.data[n][t])}function o(){if(!e.data[n]||!e.data[n].children)return;const t=e.data[n].children.slice(0),i=e.spouse?[e.spouse]:e.spouses||[];[e,...i].forEach((e=>t.forEach((t=>{e.data[n].children.includes(t)&&(e.data[r]||(e.data[r]={}),e.data[r].children||(e.data[r].children=[]),e.data[r].children.push(t),e.data[n].children.splice(e.data[n].children.indexOf(t),1))}))))}e.is_ancestry||e.data.main?(i("father"),i("mother")):o()}function l(e,t){e.forEach((e=>{e.data.hide_rels=t,u(e,t)}))}function c(e,t){const n=e.rels,r=[n.father,n.mother,...n.spouses||[],...n.children||[]].filter((e=>!!e)),i=[];for(let s=0;se.id===r[s])),[e])){i.push(r[s]);break}return 0===i.length;function o(e,n){let r;return a(e)&&(r=[e]),i(e,[e]),r;function i(e,o){function s(t){const r=e.rels;[r.father,r.mother,...r.spouses||[],...r.children||[]].filter((e=>e&&![...n,...o].find((t=>t.id===e)))).forEach((e=>t(e)))}function u(e){a(e)&&(r=o)}function l(e){i(t.find((t=>t.id===e)),o)}r||(o=[...o,e],s(u),r||s(l))}}function a(e){return"object"===typeof e?e.id===t[0].id:e===t[0].id}}function f(e){let{datum:t,store:n,fields:r,postSubmit:i,addRelative:o,deletePerson:a,onCancel:s,editFirst:u}=e;const l={fields:[],onSubmit:f};return t._new_rel_data||(l.onDelete=d,l.addRelative=()=>o.activate(t),l.addRelativeCancel=()=>o.onCancel(),l.addRelativeActive=o.is_active,l.editable=!1),t._new_rel_data&&(l.title=t._new_rel_data.label,l.new_rel=!0,l.editable=!0,l.onCancel=s),l.onDelete&&(l.can_delete=c(t,n.getData())),u&&(l.editable=!0),l.gender_field={id:"gender",type:"switch",label:"Gender",initial_value:t.data.gender,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]},r.forEach((e=>{const n={id:e.id,type:e.type,label:e.label,initial_value:t.data[e.id]};l.fields.push(n)})),l;function f(e){e.preventDefault(),new FormData(e.target).forEach(((e,n)=>t.data[n]=e)),t.to_add&&delete t.to_add,i()}function d(){a(),i({delete:!0})}}function d(e,t){return delete e.to_add,e}function h(e,t){return p(e,t),!1}function p(e,t){return c(e,t)?(n(),{success:!0}):{success:!1,error:"checkIfRelativesConnectedWithoutPerson"};function n(){t.forEach((t=>{for(let n in t.rels)t.rels.hasOwnProperty(n)&&(t.rels[n]===e.id?delete t.rels[n]:Array.isArray(t.rels[n])&&t.rels[n].includes(e.id)&&t.rels[n].splice(t.rels[n].findIndex((t=>t===e.id)),1))})),t.splice(t.findIndex((t=>t.id===e.id)),1),t.forEach((e=>{e.to_add&&p(e,t)})),0===t.length&&t.push(x({}).data[0])}}function m(e){let t=JSON.parse(e);return t.forEach((e=>e.to_add?h(e,t):e)),t.forEach((e=>delete e.main)),t.forEach((e=>delete e.hide_rels)),JSON.stringify(t,null,2)}function g(e){return e.forEach((t=>t.to_add?h(t,e):t)),e}function y(e){let{datum:t,data_stash:n,rel_type:r,rel_datum:i}=e;function o(e){return e.data.other_parent&&(t(e.data.other_parent),delete e.data.other_parent),e.rels["M"===i.data.gender?"father":"mother"]=i.id,i.rels.children||(i.rels.children=[]),i.rels.children.push(e.id),e;function t(t){"_new"===t&&(t=o().id);const r=n.find((e=>e.id===t));function o(){const e=w({rel_type:"spouse",rel_datum:i});return s(e),_({data_stash:n,datum:e}),e}e.rels["M"===r.data.gender?"father":"mother"]=r.id,r.rels.hasOwnProperty("children")||(r.rels.children=[]),r.rels.children.push(e.id)}}function a(e){const t="M"===e.data.gender,r=i.rels[t?"father":"mother"];function o(){return i.rels[t?"father":"mother"]=e.id,r(),e.rels.children=[i.id],e;function r(){const r=i.rels[t?"mother":"father"];if(!r)return;const o=n.find((e=>e.id===r));return e.rels.spouses=[r],o.rels.spouses||(o.rels.spouses=[]),o.rels.spouses.push(e.id),o}}r&&h(n.find((e=>e.id===r)),n),o()}function s(e){function t(){i.rels.spouses&&i.rels.spouses.forEach((e=>{const t=n.find((t=>t.id===e));t.to_add&&h(t,n)}))}t(),i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.push(e.id),e.rels.spouses=[i.id]}"daughter"===r||"son"===r?o(t):"father"===r||"mother"===r?a(t):"spouse"===r&&s(t)}function v(e){let{datum:t,new_rel_datum:n,data_stash:r}=e;const i=n._new_rel_data.rel_type;if(delete n._new_rel_data,n=JSON.parse(JSON.stringify(n)),"son"===i||"daughter"===i){let e=r.find((e=>e.id===n.rels.mother)),t=r.find((e=>e.id===n.rels.father));n.rels={},t&&(t.rels.children||(t.rels.children=[]),t.rels.children.push(n.id),n.rels.father=t.id),e&&(e.rels.children||(e.rels.children=[]),e.rels.children.push(n.id),n.rels.mother=e.id)}else if("spouse"===i)t.rels.spouses||(t.rels.spouses=[]),t.rels.spouses.includes(n.id)||t.rels.spouses.push(n.id),n.rels.children=n.rels.children.filter((e=>{const i=r.find((t=>t.id===e));return!!i&&(i.rels.mother!==t.id&&(r.find((e=>e.id===i.rels.mother))&&r.splice(r.findIndex((e=>e.id===i.rels.mother)),1),i.rels.mother=n.id),i.rels.father!==t.id&&(r.find((e=>e.id===i.rels.father))&&r.splice(r.findIndex((e=>e.id===i.rels.father)),1),i.rels.father=n.id),!0)})),n.rels={spouses:[t.id],children:n.rels.children};else if("father"===i){if(t.rels.father=n.id,n.rels={children:[t.id]},t.rels.mother){n.rels.spouses=[t.rels.mother];const e=r.find((e=>e.id===t.rels.mother));e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.push(n.id)}}else if("mother"===i&&(t.rels.mother=n.id,n.rels={children:[t.id]},t.rels.father)){n.rels.spouses=[t.rels.father];const e=r.find((e=>e.id===t.rels.father));e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.push(n.id)}r.push(n)}function b(e){let{data:t,rels:n}=e;return{id:k(),data:t||{},rels:n||{}}}function w(e){let{data:t,rel_type:n,rel_datum:r}=e;const i=o(r,n);return t=Object.assign(t||{},{gender:i}),b({data:t});function o(e,t){return["daughter","mother"].includes(t)||"spouse"===t&&"M"===e.data.gender?"F":"M"}}function _(e){let{data_stash:t,datum:n}=e;t.push(n)}function x(e){let{data:t,version:n}=e;return{data:[b({data:t})],version:n}}function E(e){let{datum:t,data_stash:n,rel_type:r,rel_datum:i}=e;_({data_stash:n,datum:t}),y({datum:t,data_stash:n,rel_type:r,rel_datum:i})}function k(){var e=(new Date).getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function S(e){let{amount:t,svg:n,transition_time:r=500}=e;const o=n.__zoomObj;i.select(n).transition().duration(r||0).delay(r?100:0).call(o.scaleBy,t)}function A(e,t){const n=e.data.rels;return[n.father,n.mother,...n.spouses||[],...n.children||[]].filter((e=>e)).every((e=>t.some((t=>t.data.id===e))))}function C(e){let{data:t,main_id:n=null,node_separation:r=250,level_separation:a=150,single_parent_empty_card:s=!0,is_horizontal:u=!1}=e;if(!t||!t.length)return{data:[],data_stash:[],dim:{width:0,height:0},main_id:null};u&&([r,a]=[a,r]);const l=s?k(t):t;o(l);const c=null!==n&&l.find((e=>e.id===n))||l[0],f=m(c,"children",!1),d=m(c,"parents",!0);l.forEach((e=>e.main=e===c)),g(d,f);const h=y(d,f);x({tree:h}),w({tree:h,node_separation:r}),_({tree:h}),v({tree:h}),h.forEach((e=>e.all_rels_displayed=A(e,h)));const p=E(h,r,a);return{data:h,data_stash:l,dim:p,main_id:c.id,is_horizontal:u};function m(e,t,n){const o="children"===t?m:g,s=i.tree().nodeSize([r,a]).separation(c),u=i.hierarchy(e,o);return s(u),u.descendants();function c(e,t){let r=1;return n||(f(e,t)||(r+=.25),p(e,t)&&(r+=y(e,t)),f(e,t)&&!d(e,t)&&(r+=.125)),r}function f(e,t){return e.parent==t.parent}function d(e,t){return e.data.rels.father===t.data.rels.father&&e.data.rels.mother===t.data.rels.mother}function h(e){return e.data.rels.spouses&&e.data.rels.spouses.length>0}function p(e,t){return h(e)||h(t)}function m(e){return[...e.rels.children||[]].map((e=>l.find((t=>t.id===e))))}function g(e){return[e.rels.father,e.rels.mother].filter((e=>e)).map((e=>l.find((t=>t.id===e))))}function y(e,t){return.5*((e.data.rels.spouses||[]).length+(t.data.rels.spouses||[]).length)}}function g(e,t){const n=(e[0].x-t[0].x)/2;e.forEach((e=>e.x-=n)),t.forEach((e=>e.x+=n))}function y(e,t){return e.forEach((e=>{e.is_ancestry=!0})),e.forEach((e=>1===e.depth?e.parent=t[0]:null)),[...t,...e.slice(1)]}function v(e){let{tree:t}=e;t.forEach((e=>{if(e.y*=e.is_ancestry?-1:1,u){const t=e.x;e.x=e.y,e.y=t}}))}function w(e){let{tree:t,node_separation:n}=e;for(let r=t.length;r--;){const e=t[r];if(!e.is_ancestry&&e.data.rels.spouses&&e.data.rels.spouses.length>0){const r="M"===e.data.data.gender?-1:1;e.x+=e.data.rels.spouses.length/2*n*r,e.data.rels.spouses.forEach(((i,o)=>{const a={data:l.find((e=>e.id===i)),added:!0};a.x=e.x-n*(o+1)*r,a.y=e.y,a.sx=o>0?a.x:a.x+n/2*r,a.sy=o>0?a.y:a.y+n/2*r,a.depth=e.depth,a.spouse=e,e.spouses||(e.spouses=[]),e.spouses.push(a),t.push(a)}))}if(e.parents&&2===e.parents.length){const t=e.parents[0],r=e.parents[1],i=t.x-(t.x-r.x)/2,o=(e,t)=>i+n/2*(e.xt.data.id===e)):null}t.forEach((e=>{if(e.is_ancestry)return;if(0===e.depth)return;if(e.added)return;const t=n(e.data.rels.mother),r=n(e.data.rels.father);if(t&&r)t.added||r.added||console.error("no added spouse",t,r),i(e,t.added?t:r);else if(t||r){const n=t||r;n.sx=n.x,n.sy=n.y,i(e,n)}function i(e,t){e.psx=u?t.y:t.sx,e.psy=u?t.sx:t.y}}))}function x(e){let{tree:t}=e;t.forEach((e=>{delete e.children,t.forEach((t=>{t.parent===e&&(t.is_ancestry?(e.parents||(e.parents=[]),e.parents.push(t)):(e.children||(e.children=[]),e.children.push(t)))}))}))}function E(e,t,n){u&&([t,n]=[n,t]);const r=i.extent(e,(e=>e.x)),o=i.extent(e,(e=>e.y));return{width:r[1]-r[0]+t,height:o[1]-o[0]+n,x_off:-r[0]+t/2,y_off:-o[0]+n/2}}function k(e){const t=[];for(let r=0;r0){t.rels.spouses||(t.rels.spouses=[]);const r="M"===t.data.gender;let i;t.rels.children.forEach((o=>{const a=e.find((e=>e.id===o));a.rels[r?"father":"mother"]===t.id&&(a.rels[r?"mother":"father"]||(i||(i=n(t),t.rels.spouses.push(i.id)),i.rels.children.push(a.id),a.rels[r?"mother":"father"]=i.id))}))}}return t.forEach((t=>e.push(t))),e;function n(e){const n=b({data:{gender:"M"===e.data.gender?"F":"M"},rels:{spouses:[e.id],children:[]}});return n.to_add=!0,t.push(n),n}}}function D(e){let t;const n=e;return n.main_id_history=[],{state:n,updateTree:e=>{n.tree=r(),n.main_id||u(n.tree.main_id),t&&t(e)},updateData:e=>n.data=e,updateMainId:u,getMainId:()=>n.main_id,getData:()=>n.data,getTree:()=>n.tree,setOnUpdate:e=>t=e,getMainDatum:i,getDatum:o,getTreeMainDatum:a,getTreeDatum:s,getLastAvailableMainDatum:l,methods:{}};function r(){return C({data:n.data,main_id:n.main_id,node_separation:n.node_separation,level_separation:n.level_separation,single_parent_empty_card:n.single_parent_empty_card,is_horizontal:n.is_horizontal})}function i(){return n.data.find((e=>e.id===n.main_id))}function o(e){return n.data.find((t=>t.id===e))}function a(){return n.tree?n.tree.data.find((e=>e.data.id===n.main_id)):null}function s(e){return n.tree?n.tree.data.find((t=>t.id===e)):null}function u(e){e!==n.main_id&&(n.main_id_history=n.main_id_history.filter((t=>t!==e)).slice(-10),n.main_id_history.push(e),n.main_id=e)}function l(){let e=n.main_id_history.slice(0).reverse().find((e=>o(e)));return e||(e=n.data[0].id),e!==n.main_id&&u(e),o(e)}}function M(e){let{t:t,svg:n,transition_time:r=2e3}=e;const o=n.__zoomObj?n:n.parentNode,a=o.__zoomObj;i.select(o).transition().duration(r||0).delay(r?100:0).call(a.transform,i.zoomIdentity.scale(t.k).translate(t.x,t.y))}function F(e){let{svg:t,svg_dim:n,tree_dim:r,with_transition:i,transition_time:o}=e;M({t:O(n,r),svg:t,with_transition:i,transition_time:o})}function O(e,t){let n=Math.min(e.width/t.width,e.height/t.height);return n>1&&(n=1),{k:n,x:t.x_off+(e.width-t.width*n)/n/2,y:t.y_off+(e.height-t.height*n)/n/2}}function T(e){let{datum:t,svg:n,svg_dim:r,scale:i,transition_time:o}=e;const a=i||1;M({t:{k:a,x:(r.width/2-t.x*a)/a,y:(r.height/2-t.y)/a},svg:n,with_transition:!0,transition_time:o})}function N(e){let{d:t,tree:n,is_horizontal:r=!1}=e;const i=[];return t.data.rels.spouses&&t.data.rels.spouses.length>0&&s({d:t}),o({d:t}),a({d:t}),i;function o(e){let{d:t}=e;if(!t.parents)return;const n=t.parents[0],r=t.parents[1]||n,o={x:u(n,r,"x"),y:u(n,r,"y")};i.push({d:c(t,o),_d:()=>c({x:t.x,y:t.y},{x:t.x,y:t.y}),curve:!0,id:h(t,n,r),depth:t.depth+1,is_ancestry:!0,source:t,target:[n,r]})}function a(e){let{d:t}=e;t.children&&0!==t.children.length&&t.children.forEach(((e,o)=>{const a=p(e,t,n)||t,s=a.sx,u=r?{x:t.x,y:s}:{x:s,y:t.y};i.push({d:c(e,u),_d:()=>c(u,{x:l(u,"x"),y:l(u,"y")}),curve:!0,id:h(e,t,a),depth:t.depth+1,is_ancestry:!1,source:[t,a],target:e})}))}function s(e){let{d:t}=e;t.data.rels.spouses.forEach((e=>{const r=m(t,n,(t=>t.data.id===e));r&&!t.spouse&&i.push({d:[[t.x,t.y],[r.x,r.y]],_d:()=>[t.is_ancestry?[l(t,"x")-1e-4,l(t,"y")]:[t.x,t.y],t.is_ancestry?[l(r,"x"),l(r,"y")]:[t.x-1e-4,t.y]],curve:!1,id:h(t,r),depth:t.depth,spouse:!0,is_ancestry:r.is_ancestry,source:t,target:r})}))}function u(e,t,n,r){return r?l(e,n)-(l(e,n)-l(t,n))/2:e[n]-(e[n]-t[n])/2}function l(e,t){return e.hasOwnProperty("_"+t)?e["_"+t]:e[t]}function c(e,t){return r?d(e,t):f(e,t)}function f(e,t){const n=e.y+(t.y-e.y)/2;return[[e.x,e.y],[e.x,n],[e.x,n],[t.x,n],[t.x,n],[t.x,t.y]]}function d(e,t){const n=e.x+(t.x-e.x)/2;return[[e.x,e.y],[n,e.y],[n,e.y],[n,t.y],[n,t.y],[t.x,t.y]]}function h(){for(var e=arguments.length,t=new Array(e),n=0;ne.data.id)).sort().join(", ")}function p(e,t,n){return m(t,n,(n=>n.data.id!==t.data.id&&(n.data.id===e.data.rels.mother||n.data.id===e.data.rels.father)))}function m(e,t,n){const r=t.filter(n),i=(e,t)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));return r.length>1?r.sort(((t,n)=>i(t,e)-i(n,e)))[0]:r[0]}}function P(e,t,n,r){const i=n.is_ancestry,o=t.data();let a=[],s=[];if(i){const i=[];let u=n,c=0;for(;u!==r.data&&c<100;){c++;const e=o.find((e=>!0===e.spouse&&(e.source===u||e.target===u)));if(e){const t=o.find((t=>Array.isArray(t.target)&&t.target.includes(e.source)&&t.target.includes(e.target)));if(!t)break;i.push(e),i.push(t),u=t.source}else{const e=o.find((e=>Array.isArray(e.target)&&e.target.includes(u)));if(!e)break;i.push(e),u=e.source}}t.each((function(e){i.includes(e)&&a.push({link:e,node:this})}));const f=l(n,i);e.each((function(e){f.includes(e)&&s.push({card:e,node:this})}))}else if(n.spouse&&n.spouse.data===r.data){t.each((function(e){e.target===n&&a.push({link:e,node:this})}));const i=[r,n];e.each((function(e){i.includes(e)&&s.push({card:e,node:this})}))}else{let i=[],c=n,f=0;for(;c!==r.data&&f<100;){f++;const e=o.find((e=>e.target===c&&Array.isArray(e.source)));if(e){const t=o.find((t=>!0===t.spouse&&u([t.source,t.target],e.source)));i.push(e),i.push(t),c=t?t.source:e.source[0]}else{const e=o.find((e=>e.target===c&&!Array.isArray(e.source)));if(!e)break;i.push(e),c=e.source}}t.each((function(e){i.includes(e)&&a.push({link:e,node:this})}));const d=l(r,i);e.each((function(e){d.includes(e)&&s.push({card:e,node:this})}))}return[s,a];function u(e,t){return e.every((e=>t.some((t=>e===t))))}function l(e,t){const i=t.filter((e=>e)).reduce(((e,t)=>(Array.isArray(t.target)?e.push(...t.target):e.push(t.target),Array.isArray(t.source)?e.push(...t.source):e.push(t.source),e)),[]),o=[r,n];return a(e),o;function a(e){e.data.rels.children&&e.data.rels.children.forEach((e=>{const t=i.find((t=>t.data.id===e));t&&(o.push(t),a(t))}))}}}function I(e,t){const n=i.line().curve(i.curveMonotoneY),r=i.line().curve(i.curveBasis),o=t?e._d():e.d;return e.curve?!0===e.curve?r(o):void 0:n(o)}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.data.reduce(((e,n)=>(N({d:n,tree:t.data,is_horizontal:t.is_horizontal}).forEach((t=>e[t.id]=t)),e)),{}),o=Object.values(r),a=i.select(e).select(".links_view").selectAll("path.link").data(o,(e=>e.id)),s=a.exit(),u=a.enter().append("path").attr("class","link"),l=u.merge(a);function c(e){i.select(this).attr("fill","none").attr("stroke","#fff").attr("stroke-width",1).style("opacity",0).attr("d",I(e,!0))}function f(e){const r=i.select(this),o=n.initial?Y(t,e,n.transition_time):0;r.transition("path").duration(n.transition_time).delay(o).attr("d",I(e)).style("opacity",1)}function d(e){const t=i.select(this);t.transition("op").duration(800).style("opacity",0),t.transition("path").duration(n.transition_time).attr("d",I(e,!0)).on("end",(()=>t.remove()))}s.each(d),u.each(c),l.each(f)}function j(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(e).select(".cards_view").selectAll("g.card_cont").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("g").attr("class","card_cont"),l=u.merge(o);function c(e){i.select(this).attr("transform","translate(".concat(e._x,", ").concat(e._y,")")).style("opacity",0),n.call(this,e)}function f(e){}function d(e){n.call(this,e);const o=r.initial?Y(t,e,r.transition_time):0;i.select(this).transition().duration(r.transition_time).delay(o).attr("transform","translate(".concat(e.x,", ").concat(e.y,")")).style("opacity",1)}function h(e){const t=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).attr("transform","translate(".concat(e._x,", ").concat(e._y,")")).on("end",(()=>t.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function L(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(e).select(".cards_view").selectAll("div.card_cont").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("div").attr("class","card_cont").style("pointer-events","none"),l=u.merge(o);function c(e){i.select(this).style("position","absolute").style("top","0").style("left","0").style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).style("opacity",0),n.call(this,e)}function f(e){}function d(e){n.call(this,e);const o=r.initial?Y(t,e,r.transition_time):0;i.select(this).transition().duration(r.transition_time).delay(o).style("transform","translate(".concat(e.x,"px, ").concat(e.y,"px)")).style("opacity",1)}function h(e){const t=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).on("end",(()=>t.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function B(e,t){const n=i.select(e).selectAll("div.card_cont_2fake").data(t,(e=>e.data.id)),r=n.exit(),o=n.enter().append("div").attr("class","card_cont_2fake").style("display","none").attr("data-id",(()=>Math.random())),a=o.merge(n);function s(e){e.unique_id=i.select(this).attr("data-id")}function u(e){e.unique_id=i.select(this).attr("data-id")}function l(e){e.unique_id=i.select(this).attr("data-id"),i.select(this).remove()}r.each(l),o.each(s),a.each(u)}function z(e){i.select(e()).append("div").attr("class","cards_view_fake").style("display","none")}function U(e){return i.select(e()).select("div.cards_view_fake").node()}function H(e,t){return function(n){const r=n.transform;i.select(e()).style("transform","translate(".concat(r.x,"px, ").concat(r.y,"px) scale(").concat(r.k,") ")),i.select(t()).style("transform","translate(".concat(r.x,"px, ").concat(r.y,"px) scale(").concat(r.k,") "))}}function q(e){let t=[];return function(n){const r=W(n,t);return t=[...n,...r],B(U(e),t),t}}function G(e){const t=i.select(e).select("#f3Canvas").append("div").attr("id","htmlSvg").attr("style","position: absolute; width: 100%; height: 100%; z-index: 2; top: 0; left: 0");return t.append("div").attr("class","cards_view").style("transform-origin","0 0"),z((()=>t.node())),t.node()}function W(e,t){return t.length>0?t.filter((t=>!e.find((e=>e.data.id===t.data.id)))):[]}function V(e){return e.unique_id}var Q=Object.freeze({__proto__:null,assignUniqueIdToTreeData:B,setupHtmlSvg:z,getCardsViewFake:U,onZoomSetup:H,setupReactiveTreeData:q,createHtmlSvg:G,getUniqueId:V});function $(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(U((()=>e))).selectAll("div.card_cont_fake").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("div").attr("class","card_cont_fake").style("display","none"),l=u.merge(o);function c(e){i.select(n(e)).style("position","absolute").style("top","0").style("left","0").style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)"))}function f(e){}function d(e){const o=i.select(n(e)),a=r.initial?Y(t,e,r.transition_time):0;o.transition().duration(r.transition_time).delay(a).style("transform","translate(".concat(e.x,"px, ").concat(e.y,"px)")).style("opacity",1)}function h(e){const t=i.select(n(e)),o=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).on("end",(()=>o.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function K(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.initial=r.hasOwnProperty("initial")?r.initial:!i.select(t.parentNode).select(".card_cont").node(),r.transition_time=r.hasOwnProperty("transition_time")?r.transition_time:2e3,r.cardComponent?$(r.cardComponent,e,n,r):r.cardHtml?L(r.cardHtml,e,n,r):j(t,e,n,r),R(t,e,r);const o=r.tree_position||"fit";return r.initial?F({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:0}):"fit"===o?F({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:r.transition_time}):"main_to_middle"===o&&T({datum:e.data[0],svg:t,svg_dim:t.getBoundingClientRect(),scale:r.scale,transition_time:r.transition_time}),!0}function Y(e,t,n){const r=.4*n,i=Math.max(...e.data.map((e=>e.is_ancestry?e.depth:0)));let o=t.depth*r;return 0===t.depth&&!t.spouse||t.is_ancestry||(o+=i*r,t.spouse&&(o+=r),o+=t.depth*r),o}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.getBoundingClientRect(),r='\n \n \n \n \n \n \n \n \n \n \n '),o=u(e),a=i.create("div").node();a.innerHTML=r;const s=a.querySelector("svg");return o.appendChild(s),e.appendChild(o),Z(o,t),s;function u(e){let t=e.querySelector("#f3Canvas");return t||(t=i.create("div").attr("id","f3Canvas").attr("style","position: relative; overflow: hidden; width: 100%; height: 100%;").node()),t}}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.__zoom)return;const n=e.querySelector(".view"),r=i.zoom().on("zoom",t.onZoom||o);function o(e){i.select(n).attr("transform",e.transform)}function a(e){return!("wheel"===e.type&&!e.ctrlKey)&&!(e.touches&&e.touches.length<2)}i.select(e).call(r),e.__zoomObj=r,t.zoom_polite&&r.filter(a)}function J(e,t){let{d:n}=t;return l(e.getTree().data,!1),e.updateMainId(n.data.id),e.updateTree({tree_position:e.state.tree_fit_on_change}),!0}function ee(e,t){let{d:n,cardEditForm:r}=t;const i=n.data;r({datum:i,postSubmit:t=>{i.to_add&&d(i,e.getData()),t&&t.delete&&(i.main&&e.updateMainId(null),p(i,e.getData())),e.updateTree()},store:e})}function te(e,t){let{d:n}=t;n.data.hide_rels=!n.data.hide_rels,u(n,n.data.hide_rels),e.updateTree({tree_position:e.state.tree_fit_on_change})}function ne(){return'\n \n '.concat(Ce(),'\n \n \n ')}function re(){return'\n \n '.concat(Ce(),'\n \n \n ')}function ie(){return'\n \n '.concat(Ce(),'\n \n \n ')}function oe(){return'\n \n '.concat(Ce(),'\n \n \n \n ')}function ae(){return'\n \n '.concat(Ce(),'\n \n \n ')}function se(){return'\n \n '.concat(Ce(),'\n \n \n ')}function ue(){return'\n \n '.concat(Ce(),'\n \n \n ')}function le(){return'\n \n '.concat(Ce(),'\n \n \n ')}function ce(){return'\n \n '.concat(Ce(),'\n \n \n ')}function fe(){return'\n \n '.concat(Ce(),'\n \n \n ')}function de(){return'\n \n \n \n '}function he(){return'\n \n \n \n \n \n \n \n \n \n \n '}function pe(){return Ae(ne())}function me(){return Ae(re())}function ge(){return Ae(ie())}function ye(){return Ae(oe())}function ve(){return Ae(ae())}function be(){return Ae(se())}function we(){return Ae(ue())}function _e(){return Ae(le())}function xe(){return Ae(ce())}function Ee(){return Ae(fe())}function ke(){return Ae(de(),"0 0 512 512")}function Se(){return Ae(he(),"0 0 72 25")}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0 0 24 24";const n=e.match(/data-icon="([^"]+)"/),r=n?'data-icon="'.concat(n[1],'"'):"";return'\n \n ").concat(e,"\n \n ")}function Ce(){return'\n \n '}var De=Object.freeze({__proto__:null,userIcon:ne,userEditIcon:re,userPlusIcon:ie,userPlusCloseIcon:oe,plusIcon:ae,pencilIcon:se,pencilOffIcon:ue,trashIcon:le,historyBackIcon:ce,historyForwardIcon:fe,personIcon:de,miniTreeIcon:he,userSvgIcon:pe,userEditSvgIcon:me,userPlusSvgIcon:ge,userPlusCloseSvgIcon:ye,plusSvgIcon:ve,pencilSvgIcon:be,pencilOffSvgIcon:we,trashSvgIcon:_e,historyBackSvgIcon:xe,historyForwardSvgIcon:Ee,personSvgIcon:ke,miniTreeSvgIcon:Se});function Me(e,t){const n=document.createElement("div");return r(),n;function r(){const t=Fe(e);return n.innerHTML=t,i(),n}function i(){const i=n.querySelector("form");i.addEventListener("submit",e.onSubmit);const o=i.querySelector(".f3-cancel-btn");o.addEventListener("click",l);const a=i.querySelector(".f3-edit-btn");a&&a.addEventListener("click",c);const s=i.querySelector(".f3-delete-btn");s&&e.onDelete&&s.addEventListener("click",e.onDelete);const u=i.querySelector(".f3-add-relative-btn");function l(){e.editable=!1,e.onCancel&&e.onCancel(),r()}function c(){e.editable=!e.editable,r()}u&&e.addRelative&&u.addEventListener("click",(()=>{e.addRelativeActive?e.addRelativeCancel():e.addRelative(),e.addRelativeActive=!e.addRelativeActive,r()})),i.querySelector(".f3-close-btn").addEventListener("click",t),e.other_parent_field&&(o.style.display="none")}}function Fe(e){return' \n
\n ').concat(s(),"\n ").concat(e.title?'

'.concat(e.title,"

"):"",'\n
\n ').concat(e.addRelative&&!e.no_edit?n():"","\n ").concat(e.no_edit?u():r(),"\n
\n ").concat(i(),"\n\n ").concat(o(),"\n\n ").concat(e.other_parent_field?a():"","\n\n ").concat(e.onDelete?t():"",'\n \n
\n \n \n
\n
\n ');function t(){return'\n
\n \n
\n ")}function n(){return'\n \n '.concat(e.addRelativeActive?ye():ge(),"\n \n ")}function r(){return'\n \n '.concat(e.editable?we():be(),"\n \n ")}function i(){return e.editable?'\n
\n '.concat(e.gender_field.options.map((t=>'\n \n "))).join(""),"\n
\n "):""}function o(){return e.editable?e.fields.map((e=>"\n ".concat("text"===e.type?'\n
\n \n \n
\n '):"textarea"===e.type?'\n
\n \n \n
\n "):"","\n "))).join(""):t();function t(){return e.fields.map((e=>'\n
\n '.concat(e.label,'\n ').concat(e.initial_value||"","\n
\n "))).join("")}}function a(){return'\n
\n \n \n
\n ")}function s(){return'\n \n \xd7\n \n '}function u(){return'
'}}function Oe(e,t,n){let r=[],i=-1;return{changed:o,back:a,forward:s,canForward:u,canBack:l};function o(){i0}function c(t){e.updateMainId(t.main_id),e.updateData(t),n()}}function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const r=i.select(e).append("div").attr("class","f3-history-controls"),o=r.append("button").attr("class","f3-back-button").on("click",(()=>{t.back(),s(),n()})),a=r.append("button").attr("class","f3-forward-button").on("click",(()=>{t.forward(),s(),n()}));return o.html(xe()),a.html(Ee()),{back_btn:o.node(),forward_btn:a.node(),updateButtons:s,destroy:u};function s(){o.classed("disabled",!t.canBack()),a.classed("disabled",!t.canForward()),r.style("display",t.canBack()||t.canForward()?null:"none")}function u(){t=null,i.select(e).select(".f3-history-controls").remove()}}var Ne=Object.freeze({__proto__:null,manualZoom:S,isAllRelativeDisplayed:A,cardChangeMain:J,cardEdit:ee,cardShowHideRels:te,handleRelsOfNewDatum:y,handleNewRel:v,createNewPerson:b,createNewPersonWithGenderFromRel:w,addNewPerson:_,createTreeDataWithMainNode:x,addNewPersonAndHandleRels:E,checkIfRelativesConnectedWithoutPerson:c,createForm:f,moveToAddToAdded:d,removeToAdd:h,deletePerson:p,cleanupDataJson:m,removeToAddFromData:g,formInfoSetup:Me,createHistory:Oe,createHistoryControls:Te,treeFit:F,calculateTreeFit:O,cardToMiddle:T});function Pe(e){let{d:t,card_dim:n,card_display:r}=e;return{template:'\n \n \n ').concat(Ie({d:t,card_dim:n,card_display:r}).template,"\n \n ")}}function Ie(e){let{d:t,card_dim:n,card_display:r}=e;return{template:'\n \n \n \n \n ').concat(Array.isArray(r)?r.map((e=>'',e(t.data),""))).join("\n"):r(t.data),'\n \n \n \n \n \n ')}}function Re(e){let{d:t,card_dim:n,card_add:r,label:i}=e;return{template:'\n \n \n \n ').concat(i,"\n \n \n ")}}function je(e){let{d:t,card_dim:n,is_new:r}=e;return{template:'\n \n ')}}function Le(e){let{d:t,card_dim:n,x:r,y:i}=e;return{template:'\n \n \n \n \n ')}}function Be(e){let{d:t,card_dim:n}=e;return{template:'\n \n \n \n \n \n \n \n \n \n \n ')}}function ze(e){let{d:t,card_dim:n,x:r,y:i}=e;return{template:'\n \n \n \n \n \n \n \n \n \n ')}}function Ue(e){let{x:t,y:n,rt:r,closed:i}=e;return{template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')}}function He(e){let{d:t,card_dim:n}=e,r="",i=t.data.rels,o=t.data._rels||{},a=t.data.hide_rels,s=e=>e.father||e.mother,u=e=>e.children&&e.children.length>0;if((t.is_ancestry||t.data.main)&&(s(i)||s(o))&&(r+=Ue({x:n.w/2,y:0,rt:-45,closed:a}).template),!t.is_ancestry&&t.added){const e=t.spouse,s=e.data.rels,l=e.data._rels||{};(u(i)||u(o))&&(u(s)||u(l))&&(r+=Ue({x:t.sx-t.x+n.w/2+24.4,y:(t.x!==t.sx?n.h/2:n.h)+1,rt:135,closed:a}).template)}return{template:r}}function qe(e){let{d:t,image:n,card_dim:r,maleIcon:i,femaleIcon:o}=e;return{template:'\n \n ').concat(n?''):"F"===t.data.data.gender&&o?o({card_dim:r}):"M"===t.data.data.gender&&i?i({card_dim:r}):a()," \n \n ")};function a(){return'\n \n \n \n \n \n \n ')}}function Ge(e,t,n){const r=document.createElementNS("http://www.w3.org/2000/svg","g");r.innerHTML=e,n?t.insertBefore(r,t.firstChild):t.appendChild(r)}const We={miniTree:Ve,lineBreak:Qe,cardBody:$e,cardImage:Ke,cardEdit:Ye,cardAdd:Xe};function Ve(e,t){if(e.data.to_add)return;const n=t.card_dim;if(e.all_rels_displayed)return;const r=i.create("svg:g").html(Be({d:e,card_dim:n}).template);return r.on("click",(function(n){n.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,n,e):J(t.store,{d:e})})),r.node()}function Qe(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(He({d:e,card_dim:n}).template);return r.on("click",(n=>{n.stopPropagation(),te(t.store,{d:e})})),r.node()}function $e(e,t){const n=t.cardEditForm?"ADD":"UNKNOWN",r=t.card_dim;let o;return e.data.to_add?(o=i.create("svg:g").html(Re({d:e,card_dim:r,card_add:t.cardEditForm,label:n}).template),o.on("click",(n=>{n.stopPropagation(),ee(t.store,{d:e,cardEditForm:t.cardEditForm})}))):(o=i.create("svg:g").html(Pe({d:e,card_dim:r,card_display:t.card_display}).template),o.on("click",(function(n){n.stopPropagation(),t.onCardClick?t.onCardClick.call(this,n,e):J(t.store,{d:e})}))),o.node()}function Ke(e,t){if(e.data.to_add)return;const n=t.card_dim;return i.create("svg:g").html(qe({d:e,image:e.data.data.avatar||null,card_dim:n,maleIcon:null,femaleIcon:null}).template).node()}function Ye(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(Le({card_dim:n,x:n.w-46,y:n.h-20}).template);return r.on("click",(n=>{n.stopPropagation(),ee(t.store,{d:e,cardEditForm:t.cardEditForm})})),r.node()}function Xe(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(ze({card_dim:n,x:n.w-26,y:n.h-20}).template);return r.on("click",(n=>{n.stopPropagation(),t.addRelative({d:e})})),r.node()}function Ze(e,t,n){e&&(n?t.insertBefore(e,t.firstChild):t.appendChild(e))}function Je(e,t){function n(e,t,n){const{w:r,h:i}=e,o=t,a=n||[],s=e=>a.includes(e),u=s("lx")?"M0,0":"M0,".concat(o," Q 0,0 5,0"),l=s("rx")?"H".concat(r):"H".concat(r-o," Q ").concat(r,",0 ").concat(r,",5"),c=s("ry")?"V".concat(i):"V".concat(i-o," Q ").concat(r,",").concat(i," ").concat(r-o,",").concat(i),f=s("ly")?"H0":"H".concat(o," Q 0,").concat(i," 0,").concat(i-o);return"".concat(u," ").concat(l," ").concat(c," ").concat(f," z")}e.querySelector("defs#f3CardDef")||e.insertAdjacentHTML("afterbegin",'\n \n \n \n \n \n \n \n \n \n \n \n \n '))}function et(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),Je(e,t)}function tt(e){return Je((e=t(e)).svg,e.card_dim),function(t){const n="M"===t.data.data.gender?"card-male":"F"===t.data.data.gender?"card-female":"card-genderless",r=e.card_dim,o=i.create("svg:g").attr("class","card ".concat(n)).attr("transform","translate(".concat([-r.w/2,-r.h/2],")"));o.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(o.node()),Ge(je({d:t,card_dim:r,is_new:t.data.to_add}).template,o.node(),!0),Ze(We.cardBody(t,e),this.querySelector(".card-inner")),e.img&&Ze(We.cardImage(t,e),this.querySelector(".card")),e.mini_tree&&Ze(We.miniTree(t,e),this.querySelector(".card"),!0),e.link_break&&Ze(We.lineBreak(t,e),this.querySelector(".card")),e.cardEditForm&&(Ze(We.cardEdit(t,e),this.querySelector(".card-inner")),Ze(We.cardAdd(t,e),this.querySelector(".card-inner"))),e.onCardUpdates&&e.onCardUpdates.map((e=>e.call(this,t))),e.onCardUpdate&&e.onCardUpdate.call(this,t)};function t(e){const t={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};e||(e={});for(const n in t)"undefined"===typeof e[n]&&(e[n]=t[n]);return e}}function nt(e){const t="default"===e.style?c:"imageCircleRect"===e.style?l:"imageCircle"===e.style?f:"imageRect"===e.style?d:"rect"===e.style?h:c;return function(n){this.innerHTML='\n
\n ').concat(e.mini_tree?u(n):"","\n ").concat(t(n),"\n
\n "),this.querySelector(".card").addEventListener("click",(t=>e.onCardClick(t,n))),e.onCardUpdate&&e.onCardUpdate.call(this,n),e.onCardMouseenter&&i.select(this).select(".card").on("mouseenter",(t=>e.onCardMouseenter(t,n))),e.onCardMouseleave&&i.select(this).select(".card").on("mouseleave",(t=>e.onCardMouseleave(t,n)))};function n(e){return'\n
\n ").concat(e.data.data.avatar?'"):y(e),'\n
').concat(a(e),"
\n
\n ")}function r(e){return'\n
\n ").concat(e.data.data.avatar?'"):y(e),'\n
').concat(a(e),"
\n
\n ")}function o(e){return'\n
\n ").concat(a(e),"\n
\n ")}function a(t){return t.data._new_rel_data?s(t):t.data.to_add?"
".concat(e.empty_card_label||"ADD","
"):"\n ".concat(e.card_display.map((e=>"
".concat(e(t.data),"
"))).join(""),"\n ")}function s(e){const t=[];return t.push('data-rel-type="'.concat(e.data._new_rel_data.rel_type,'"')),["son","daughter"].includes(e.data._new_rel_data.rel_type)&&t.push('data-other-parent-id="'.concat(e.data._new_rel_data.other_parent_id,'"')),"
").concat(e.data._new_rel_data.label,"
")}function u(t){return e.mini_tree?t.data.to_add||t.data._new_rel_data||t.all_rels_displayed?"":'
'.concat(Se(),"
"):""}function l(e){return e.data.data.avatar?f(e):h(e)}function c(e){return r(e)}function f(e){return n(e)}function d(e){return r(e)}function h(e){return o(e)}function p(e){const t=[];return"M"===e.data.data.gender?t.push("card-male"):"F"===e.data.data.gender?t.push("card-female"):t.push("card-genderless"),e.data.main&&t.push("card-main"),e.data._new_rel_data&&t.push("card-new-rel"),e.data.to_add&&t.push("card-to-add"),t}function m(){let t='style="';return e.card_dim.w||e.card_dim.h?(t+="width: ".concat(e.card_dim.w,"px; min-height: ").concat(e.card_dim.h,"px;"),e.card_dim.height_auto?t+="height: auto;":t+="height: ".concat(e.card_dim.h,"px;"),t+='"',t):""}function g(){let t='style="position: relative;';return e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y?(t+="width: ".concat(e.card_dim.img_w,"px; height: ").concat(e.card_dim.img_h,"px;"),t+="left: ".concat(e.card_dim.img_x,"px; top: ").concat(e.card_dim.img_y,"px;"),t+='"',t):""}function y(e){return e.data._new_rel_data?'
").concat(ve(),"
"):'
").concat(ke(),"
")}}var rt=Object.freeze({__proto__:null,appendElement:Ze,Card:tt,CardHtml:nt}),it=function(){for(var e=arguments.length,t=new Array(e),n=0;nt.id===e.rels.mother)),o=r.find((t=>t.id===e.rels.father));if(i.rels.spouses=[o.id],o.rels.spouses=[i.id],i.rels.children=[e.id],o.rels.children=[e.id],e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let t;e.rels.children.forEach((i=>{const o=r.find((e=>e.id===i));o.rels.mother||(t||(t=b({data:{gender:"F"},rels:{spouses:[e.id],children:[]}})),t._new_rel_data={rel_type:"spouse",label:n.spouse},t.rels.children.push(o.id),e.rels.spouses.push(t.id),o.rels.mother=t.id,r.push(t)),o.rels.father||(t||(t=b({data:{gender:"M"},rels:{spouses:[e.id],children:[]}})),t._new_rel_data={rel_type:"spouse",label:n.spouse},t.rels.children.push(o.id),e.rels.spouses.push(t.id),o.rels.father=t.id,r.push(t))}))}const a=b({data:{gender:"F"},rels:{spouses:[e.id]}});return a._new_rel_data={rel_type:"spouse",label:n.spouse},e.rels.spouses.push(a.id),r.push(a),e.rels.children||(e.rels.children=[]),e.rels.spouses.forEach((t=>{const i=r.find((e=>e.id===t));i.rels.children||(i.rels.children=[]),i.rels.children=i.rels.children.filter((t=>e.rels.children.includes(t)));const o=b({data:{gender:"M"},rels:{father:e.id,mother:i.id}});o._new_rel_data={rel_type:"son",label:n.son,other_parent_id:i.id},i.rels.children.push(o.id),e.rels.children.push(o.id),r.push(o);const a=b({data:{gender:"F"},rels:{mother:i.id,father:e.id}});a._new_rel_data={rel_type:"daughter",label:n.daughter,other_parent_id:i.id},i.rels.children.push(a.id),e.rels.children.push(a.id),r.push(a)})),r}function st(e,t){return JSON.parse(JSON.stringify(e.find((e=>e.id===t))))}function ut(e,t){const n=[e];return Object.keys(e.rels).forEach((t=>{const n=e.rels[t];Array.isArray(n)?n.forEach((e=>{r(t,e)})):r(t,n)})),n;function r(e,r){const i=st(t,r);"father"!==e&&"mother"!==e||(delete i.rels.father,delete i.rels.mother),"children"===e&&(i.rels.children=[],i.rels.spouses=[]),n.push(i)}}function lt(){for(var e=arguments.length,t=new Array(e),n=0;n{"function"===typeof e?t.push(e):"string"===typeof e?t.push((t=>t.data[e])):Array.isArray(e)&&t.push((t=>e.map((e=>t.data[e])).join(" ")))})):"function"===typeof e?t.push(e):"string"===typeof e&&t.push((t=>t.data[e])),t}function mt(){for(var e=arguments.length,t=new Array(e),n=0;n"".concat(e.data["first name"]," ").concat(e.data["last name"])],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault,this.onCardUpdate=null,this.onCardUpdates=null,this.init(),this}function yt(){for(var e=arguments.length,t=new Array(e),n=0;n"".concat(e.data["first name"]," ").concat(e.data["last name"])],this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.onCardUpdate=null,this.card_dim={},this.init(),this}ot.prototype.activate=function(e){this.is_active&&this.onCancel(),this.is_active=!0;const t=this.store;this.store_data=t.getData(),this.datum=e;const n=at(e=JSON.parse(JSON.stringify(this.datum)),this.getStoreData(),this.addRelLabels);function r(e){if(null!==e&&void 0!==e&&e._new_rel_data){const t=e;v({datum:this.datum,new_rel_datum:t,data_stash:this.getStoreData()}),this.onSubmitCallback(this.datum,t)}else e.id===this.datum.id?this.datum.data=e.data:console.error("Something went wrong")}function i(){this.is_active&&(this.is_active=!1,t.updateData(this.getStoreData()),this.cancelCallback(this.datum),this.store_data=null,this.datum=null,this.onChange=null,this.onCancel=null)}t.updateData(n),t.updateTree({}),this.onChange=r.bind(this),this.onCancel=i.bind(this)},ot.prototype.setAddRelLabels=function(e){if("object"===typeof e){for(let t in e)this.addRelLabels[t]=e[t];return this}console.error("add_rel_labels must be an object")},ot.prototype.addRelLabelsDefault=function(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}},ot.prototype.getStoreData=function(){return this.store_data},ct.prototype.init=function(){this.form_cont=i.select(this.cont).append("div").classed("f3-form-cont",!0).node(),this.addRelativeInstance=this.setupAddRelative(),this.createHistory()},ct.prototype.open=function(e){e.data.data&&(e=e.data),this.addRelativeInstance.is_active&&!e._new_rel_data&&(this.addRelativeInstance.onCancel(),e=this.store.getDatum(e.id)),this.cardEditForm(e)},ct.prototype.openWithoutRelCancel=function(e){e.data.data&&(e=e.data),this.cardEditForm(e)},ct.prototype.cardEditForm=function(e){const t={};(null===e||void 0===e?void 0:e._new_rel_data)?t.onCancel=()=>this.addRelativeInstance.onCancel():(t.addRelative=this.addRelativeInstance,t.deletePerson=()=>{const t=this.store.getData();p(e,t),this.store.updateData(t),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const n=bt.handlers.createForm(r({store:this.store,datum:e,postSubmit:o.bind(this),fields:this.fields,card_display:this.card_display,addRelative:null,onCancel:()=>{},editFirst:this.editFirst},t));n.no_edit=this.no_edit;const i=bt.handlers.formInfoSetup(n,this.closeForm.bind(this));function o(t){this.addRelativeInstance.is_active?this.addRelativeInstance.onChange(e):null!==t&&void 0!==t&&t.delete||this.openFormWithId(e.id),this.is_fixed||this.closeForm(),this.store.updateTree({}),this.updateHistory()}this.form_cont.innerHTML="",this.form_cont.appendChild(i),this.openForm()},ct.prototype.openForm=function(){i.select(this.form_cont).classed("opened",!0)},ct.prototype.closeForm=function(){i.select(this.form_cont).classed("opened",!1).html(""),this.store.updateTree({})},ct.prototype.fixed=function(){return this.is_fixed=!0,i.select(this.form_cont).style("position","relative"),this},ct.prototype.absolute=function(){return this.is_fixed=!1,i.select(this.form_cont).style("position","absolute"),this},ct.prototype.setCardClickOpen=function(e){return e.setOnCardClick(((e,t)=>{this.addRelativeInstance.is_active?this.open(t):(this.open(t),this.store.updateMainId(t.data.id),this.store.updateTree({}))})),this},ct.prototype.openFormWithId=function(e){if(e){const t=this.store.getDatum(e);this.openWithoutRelCancel({data:t})}else{const e=this.store.getMainDatum();this.openWithoutRelCancel({data:e})}},ct.prototype.createHistory=function(){return this.history=bt.handlers.createHistory(this.store,this.getStoreData.bind(this),e.bind(this)),this.history.controls=bt.handlers.createHistoryControls(this.cont,this.history),this.history.changed(),this.history.controls.updateButtons(),this;function e(){var e;this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId(null===(e=this.store.getMainDatum())||void 0===e?void 0:e.id)}},ct.prototype.setNoEdit=function(){return this.no_edit=!0,this},ct.prototype.setEdit=function(){return this.no_edit=!1,this},ct.prototype.setFields=function(e){const t=[];if(!Array.isArray(e))return console.error("fields must be an array"),this;for(const n of e)"string"===typeof n?t.push({type:"text",label:n,id:n}):"object"===typeof n?n.id?t.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=t,this},ct.prototype.setOnChange=function(e){return this.onChange=e,this},ct.prototype.addRelative=function(e){return e||(e=this.store.getMainDatum()),this.addRelativeInstance.activate(e),this},ct.prototype.setupAddRelative=function(){return it(this.store,t.bind(this),e.bind(this));function e(e,t){this.store.updateMainId(e.id),this.openFormWithId(e.id)}function t(e){this.store.updateMainId(e.id),this.store.updateTree({}),this.openFormWithId(e.id)}},ct.prototype.setEditFirst=function(e){return this.editFirst=e,this},ct.prototype.isAddingRelative=function(){return this.addRelativeInstance.is_active},ct.prototype.setAddRelLabels=function(e){return this.addRelativeInstance.setAddRelLabels(e),this},ct.prototype.getStoreData=function(){return this.addRelativeInstance.is_active?this.addRelativeInstance.getStoreData():this.store.getData()},ct.prototype.getDataJson=function(e){const t=this.getStoreData();return bt.handlers.cleanupDataJson(JSON.stringify(t))},ct.prototype.updateHistory=function(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()},ct.prototype.destroy=function(){return this.history.controls.destroy(),this.history=null,i.select(this.cont).select(".f3-form-cont").remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this},dt.prototype.init=function(e,t){this.cont=e=ht(e);const n=()=>e.querySelector("svg .view"),r=()=>e.querySelector("#htmlSvg"),i=()=>e.querySelector("#htmlSvg .cards_view");this.svg=bt.createSvg(e,{onZoom:bt.htmlHandlers.onZoomSetup(n,i)}),bt.htmlHandlers.createHtmlSvg(e),this.store=bt.createStore({data:t,node_separation:this.node_separation,level_separation:this.level_separation,single_parent_empty_card:this.single_parent_empty_card,is_horizontal:this.is_horizontal}),this.setCard(bt.CardSvg),this.store.setOnUpdate((e=>{this.beforeUpdate&&this.beforeUpdate(e),e=Object.assign({transition_time:this.transition_time},e||{}),this.is_card_html&&(e=Object.assign({},e||{},{cardHtml:r()})),bt.view(this.store.getTree(),this.svg,this.getCard(),e||{}),this.afterUpdate&&this.afterUpdate(e)}))},dt.prototype.updateTree=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{initial:!1};return this.store.updateTree(e),this},dt.prototype.updateData=function(e){return this.store.updateData(e),this},dt.prototype.setCardYSpacing=function(e){return"number"!==typeof e?(console.error("card_y_spacing must be a number"),this):(this.level_separation=e,this.store.state.level_separation=e,this)},dt.prototype.setCardXSpacing=function(e){return"number"!==typeof e?(console.error("card_x_spacing must be a number"),this):(this.node_separation=e,this.store.state.node_separation=e,this)},dt.prototype.setOrientationVertical=function(){return this.is_horizontal=!1,this.store.state.is_horizontal=!1,this},dt.prototype.setOrientationHorizontal=function(){return this.is_horizontal=!0,this.store.state.is_horizontal=!0,this},dt.prototype.setSingleParentEmptyCard=function(e){let{label:t="Unknown"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.single_parent_empty_card=e,this.store.state.single_parent_empty_card=e,this.store.state.single_parent_empty_card_label=t,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),bt.handlers.removeToAddFromData(this.store.getData()||[]),this},dt.prototype.setCard=function(e){this.is_card_html=e.is_html,this.is_card_html?(this.svg.querySelector(".cards_view").innerHTML="",this.cont.querySelector("#htmlSvg").style.display="block"):(this.cont.querySelector("#htmlSvg .cards_view").innerHTML="",this.cont.querySelector("#htmlSvg").style.display="none");const t=e(this.cont,this.store);return this.getCard=()=>t.getCard(),t},dt.prototype.setTransitionTime=function(e){return this.transition_time=e,this},dt.prototype.editTree=function(){return this.editTreeInstance=lt(this.cont,this.store)},dt.prototype.updateMain=function(e){return this.store.updateMainId(e.data.id),this.store.updateTree({}),this},dt.prototype.updateMainId=function(e){return this.store.updateMainId(e),this},dt.prototype.getMainDatum=function(){return this.store.getMainDatum()},dt.prototype.getDataJson=function(e){const t=this.store.getData();return bt.handlers.cleanupDataJson(JSON.stringify(t))},dt.prototype.updateData=function(e){this.store.updateData(e)},dt.prototype.setBeforeUpdate=function(e){return this.beforeUpdate=e,this},dt.prototype.setAfterUpdate=function(e){return this.afterUpdate=e,this},mt.is_html=!1,gt.prototype.init=function(){this.svg=this.cont.querySelector("svg.main_svg"),this.getCard=()=>bt.elements.Card({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate,onCardUpdates:this.onCardUpdates})},gt.prototype.setCardDisplay=function(e){return this.card_display=pt(e),this},gt.prototype.setCardDim=function(e){if("object"!==typeof e)return console.error("card_dim must be an object"),this;for(let t in e){const n=e[t];if("number"!==typeof n)return console.error("card_dim.".concat(t," must be a number")),this;"width"===t&&(t="w"),"height"===t&&(t="h"),this.card_dim[t]=n}return et(this.svg,this.card_dim),this},gt.prototype.setMiniTree=function(e){return this.mini_tree=e,this},gt.prototype.setLinkBreak=function(e){return this.link_break=e,this},gt.prototype.setCardTextSvg=function(e){function t(t){i.select(this).select(".card-text text").node().parentNode.innerHTML=e(t.data)}return t.id="setCardTextSvg",this.onCardUpdates||(this.onCardUpdates=[]),this.onCardUpdates=this.onCardUpdates.filter((e=>"setCardTextSvg"!==e.id)),this.onCardUpdates.push(t),this},gt.prototype.onCardClickDefault=function(e,t){this.store.updateMainId(t.data.id),this.store.updateTree({})},gt.prototype.setOnCardClick=function(e){return this.onCardClick=e,this},yt.is_html=!0,vt.prototype.is_html=!0,vt.prototype.init=function(){this.svg=this.cont.querySelector("svg.main_svg"),this.getCard=()=>bt.elements.CardHtml({store:this.store,card_display:this.card_display,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):null,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):null})},vt.prototype.setCardDisplay=function(e){return this.card_display=pt(e),this},vt.prototype.setOnCardClick=function(e){return this.onCardClick=e,this},vt.prototype.onCardClickDefault=function(e,t){this.store.updateMainId(t.data.id),this.store.updateTree({})},vt.prototype.setStyle=function(e){return this.style=e,this},vt.prototype.setMiniTree=function(e){return this.mini_tree=e,this},vt.prototype.setOnCardUpdate=function(e){return this.onCardUpdate=e,this},vt.prototype.setCardDim=function(e){if("object"!==typeof e)return console.error("card_dim must be an object"),this;for(let t in e){const n=e[t];if("number"!==typeof n&&"boolean"!==typeof n)return console.error("card_dim.".concat(t," must be a number or boolean")),this;"width"===t&&(t="w"),"height"===t&&(t="h"),"img_width"===t&&(t="img_w"),"img_height"===t&&(t="img_h"),"img_x"===t&&(t="img_x"),"img_y"===t&&(t="img_y"),this.card_dim[t]=n}return this},vt.prototype.resetCardDim=function(){return this.card_dim={},this},vt.prototype.setOnHoverPathToMain=function(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this},vt.prototype.unsetOnHoverPathToMain=function(){return this.onCardMouseenter=null,this.onCardMouseleave=null,this},vt.prototype.onEnterPathToMain=function(e,t){this.to_transition=t.data.id;const n=this.store.getTreeMainDatum(),r=i.select(this.cont).select("div.cards_view").selectAll(".card_cont"),o=i.select(this.cont).select("svg.main_svg .links_view").selectAll(".link"),[a,s]=P(r,o,t,n);return a.forEach((e=>{const n=200*Math.abs(t.depth-e.card.depth);i.select(e.node.querySelector("div.card-inner")).transition().duration(0).delay(n).on("end",(()=>this.to_transition===t.data.id&&i.select(e.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0)))})),s.forEach((e=>{const n=200*Math.abs(t.depth-e.link.depth);i.select(e.node).transition().duration(0).delay(n).on("end",(()=>this.to_transition===t.data.id&&i.select(e.node).classed("f3-path-to-main",!0)))})),this},vt.prototype.onLeavePathToMain=function(e,t){return this.to_transition=!1,i.select(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),i.select(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this};var bt={CalculateTree:C,createStore:D,view:K,createSvg:X,handlers:Ne,elements:rt,htmlHandlers:Q,icons:De,createChart:ft,CardSvg:mt,CardHtml:yt};return bt}(n(409))},8191:(e,t,n)=>{"use strict";n.d(t,{$:()=>ce,$1:()=>be,a8:()=>fe,he:()=>pe});var r={},i=Uint8Array,o=Uint16Array,a=Int32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),u=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,y[v]=((65280&b)>>8|(255&b)<<8)>>1}var w=function(e,t,n){for(var r=e.length,i=0,a=new o(t);i>l]=c}else for(s=new o(r),i=0;i>15-e[i]);return s},_=new i(288);for(v=0;v<144;++v)_[v]=8;for(v=144;v<256;++v)_[v]=9;for(v=256;v<280;++v)_[v]=7;for(v=280;v<288;++v)_[v]=8;var x=new i(32);for(v=0;v<32;++v)x[v]=5;var E=w(_,9,0),k=w(_,9,1),S=w(x,5,0),A=w(x,5,1),C=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},D=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},M=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},F=function(e){return(e+7)/8|0},O=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},T=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],N=function(e,t,n){var r=new Error(t||T[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,N),!n)throw r;return r},P=function(e,t,n,r){var o=e.length,a=r?r.length:0;if(!o||t.f&&!t.l)return n||new i(0);var c=!n,f=c||2!=t.i,h=t.i;c&&(n=new i(3*o));var p=function(e){var t=n.length;if(e>t){var r=new i(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,y=t.p||0,v=t.b||0,b=t.l,_=t.d,x=t.m,E=t.n,S=8*o;do{if(!b){g=D(e,y,1);var T=D(e,y+1,3);if(y+=3,!T){var P=e[(W=F(y)+4)-4]|e[W-3]<<8,I=W+P;if(I>o){h&&N(0);break}f&&p(v+P),n.set(e.subarray(W,I),v),t.b=v+=P,t.p=y=8*I,t.f=g;continue}if(1==T)b=k,_=A,x=9,E=5;else if(2==T){var R=D(e,y,31)+257,j=D(e,y+10,15)+4,L=R+D(e,y+5,31)+1;y+=14;for(var B=new i(L),z=new i(19),U=0;U>4)<16)B[U++]=W;else{var Q=0,$=0;for(16==W?($=3+D(e,y,3),y+=2,Q=B[U-1]):17==W?($=3+D(e,y,7),y+=3):18==W&&($=11+D(e,y,127),y+=7);$--;)B[U++]=Q}}var K=B.subarray(0,R),Y=B.subarray(R);x=C(K),E=C(Y),b=w(K,x,1),_=w(Y,E,1)}else N(1);if(y>S){h&&N(0);break}}f&&p(v+131072);for(var X=(1<>4;if((y+=15&Q)>S){h&&N(0);break}if(Q||N(2),ee<256)n[v++]=ee;else{if(256==ee){J=y,b=null;break}var te=ee-254;if(ee>264){var ne=s[U=ee-257];te=D(e,y,(1<>4;re||N(3),y+=15&re;Y=m[ie];if(ie>3){ne=u[ie];Y+=M(e,y)&(1<S){h&&N(0);break}f&&p(v+131072);var oe=v+te;if(v>8},R=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},j=function(e,t){for(var n=[],r=0;rp&&(p=s[r].s);var m=new o(p+1),g=L(n[d-1],m,0);if(g>t){r=0;var y=0,v=g-t,b=1<t))break;y+=b-(1<>=v;y>0;){var _=s[r].s;m[_]=0&&y;--r){var x=s[r].s;m[x]==t&&(--m[x],++y)}g=t}return{t:new i(m),l:g}},L=function(e,t,n){return-1==e.s?Math.max(L(e.l,t,n+1),L(e.r,t,n+1)):t[e.s]=n},B=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new o(++t),r=0,i=e[0],a=1,s=function(e){n[r++]=e},u=1;u<=t;++u)if(e[u]==i&&u!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[u]}return{c:n.subarray(0,r),n:t}},z=function(e,t){for(var n=0,r=0;r>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!L[l[q-1]];--q);var G,W,V,Q,$=h+5<<3,K=z(i,_)+z(a,x)+c,Y=z(i,g)+z(a,b)+c+14+3*q+z(T,L)+2*T[16]+3*T[17]+7*T[18];if(d>=0&&$<=K&&$<=Y)return U(t,p,e.subarray(d,d+h));if(I(t,p,1+(Y15&&(I(t,p,ee[N]>>5&127),p+=ee[N]>>12)}}}else G=E,W=_,V=S,Q=x;for(N=0;N255){R(t,p,G[(te=ne>>18&31)+257]),p+=W[te+257],te>7&&(I(t,p,ne>>23&31),p+=s[te]);var re=31≠R(t,p,V[re]),p+=Q[re],re>3&&(R(t,p,ne>>5&8191),p+=u[re])}else R(t,p,G[ne]),p+=W[ne]}return R(t,p,G[256]),p+W[256]},q=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new i(0),W=function(e,t,n,r,l,c){var f=c.z||e.length,d=new i(r+f+5*(1+Math.ceil(f/7e3))+l),p=d.subarray(r,d.length-l),m=c.l,y=7&(c.r||0);if(t){y&&(p[0]=c.r>>3);for(var v=q[t-1],b=v>>13,w=8191&v,_=(1<7e3||I>24576)&&(G>423||!m)){y=H(e,p,0,C,D,M,N,I,j,P-j,y),I=T=N=0,j=P;for(var W=0;W<286;++W)D[W]=0;for(W=0;W<30;++W)M[W]=0}var V=2,Q=0,$=w,K=B-z&32767;if(G>2&&L==A(P-K))for(var Y=Math.min(b,G)-1,X=Math.min(32767,P),Z=Math.min(258,G);K<=X&&--$&&B!=z;){if(e[P+V]==e[P+V-K]){for(var J=0;JV){if(V=J,Q=K,J>Y)break;var ee=Math.min(K,J-2),te=0;for(W=0;Wte&&(te=re,z=ne)}}}K+=(B=z)-(z=x[B])&32767}if(Q){C[I++]=268435456|h[V]<<18|g[Q];var ie=31&h[V],oe=31&g[Q];N+=s[ie]+u[oe],++D[257+ie],++M[oe],R=P+V,++T}else C[I++]=e[P],++D[e[P]]}}for(P=Math.max(P,R);P=f&&(p[y/8|0]=m,ae=f),y=U(p,y+1,e.subarray(P,ae))}c.i=f}return O(d,0,r+F(y)+l)},V=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=0|n.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a>16),i=(65535&i)+15*(i>>16)}e=r,t=i},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},Q=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new i(a.length+e.length);s.set(a),s.set(e,a.length),e=s,o.w=a.length}return W(e,null==t.level?6:t.level,null==t.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,o)},$=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},K=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a>>0},ie=function(e,t){return re(e,t)+4294967296*re(e,t+4)},oe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ae=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=V();i.p(t.dictionary),oe(e,2,i.d())}},se=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&N(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&N(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function ue(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&N(7),te(e,t,[Z],(function(e){return J(le(e.data[0],ee(e.data[1])))}),1,n)}function le(e,t){return P(e,{i:2},t&&t.out,t&&t.dictionary)}function ce(e,t){t||(t={});var n=V();n.p(e);var r=Q(e,t,t.dictionary?6:2,4);return ae(r,t),oe(r,r.length-4,n.d()),r}function fe(e,t){return P(e.subarray(se(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var de="undefined"!=typeof TextDecoder&&new TextDecoder;try{de.decode(G,{stream:!0})}catch(we){}var he=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:O(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function pe(e,t){if(t){for(var n="",r=0;r65558)return s(N(13,0,1),null),o;var l=ne(e,u+8);if(l){var c=l,f=re(e,u+16),d=4294967295==f||65535==c;if(d){var h=re(e,u-12);(d=101075792==re(e,h))&&(c=l=re(e,h+32),f=re(e,h+48))}for(var p=t&&t.filter,m=function(t){var n=ge(e,f,d),c=n[0],h=n[1],m=n[2],g=n[3],y=n[4],v=n[5],b=me(e,v);f=y;var w=function(e,t){e?(o(),s(e,null)):(t&&(a[g]=t),--l||s(null,a))};if(!p||p({name:g,size:h,originalSize:m,compression:c}))if(c)if(8==c){var _=e.subarray(b,b+h);if(m<524288||h>.8*m)try{w(null,le(_,{out:new i(m)}))}catch(u){w(u,null)}else r.push(ue(_,{size:m},w))}else w(N(14,"unknown compression type "+c,1),null);else w(null,O(e,b,b+h));else w(null,null)},g=0;g=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,u=document.createElement("a");t=t||e.name||"download",u.download=t,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):i(u.href)?r(e,t,n):o(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(i(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var o="application/octet-stream"===e.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var f=a.URL||a.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});a.saveAs=u.saveAs=u,e.exports=u})?r.apply(t,i):r)||(e.exports=o)},5520:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8307:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7375:(e,t,n)=>{"use strict";var r,i=n(6954),o=n(6953),a=n(3123),s=n(3780),u=n(8768),l=n(7430),c=n(7277),f=n(1619),d=n(4960),h=n(8974),p=n(2938),m=n(6516),g=n(5158),y=n(7856),v=n(8707),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},_=n(4553),x=n(6709),E=function(){throw new c},k=_?function(){try{return E}catch(e){try{return _(arguments,"callee").get}catch(t){return E}}}():E,S=n(757)(),A=n(6054),C=n(5266),D=n(6298),M=n(1264),F=n(7858),O={},T="undefined"!==typeof Uint8Array&&A?A(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&S&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&S&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&A?A(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":k,"%TypedArray%":T,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":F,"%Function.prototype.apply%":M,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":D};if(A)try{null.error}catch(Q){var P=A(A(Q));N["%Error.prototype%"]=P}var I=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(n=A(i.prototype))}return N[t]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=n(6989),L=n(2155),B=j.call(F,Array.prototype.concat),z=j.call(M,Array.prototype.splice),U=j.call(F,String.prototype.replace),H=j.call(F,String.prototype.slice),q=j.call(F,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e,t){var n,r=e;if(L(R,r)&&(r="%"+(n=R[r])[0]+"%"),L(N,r)){var i=N[r];if(i===O&&(i=I(r)),"undefined"===typeof i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,G,(function(e,t,n,i){r[r.length]=n?U(i,W,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=V("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],z(n,B([0,1],u)));for(var f=1,d=!0;f=n.length){var g=_(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=L(a,h),a=a[h];d&&!s&&(N[o]=a)}}return a}},5266:(e,t,n)=>{"use strict";var r=n(6954);e.exports=r.getPrototypeOf||null},6298:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},6054:(e,t,n)=>{"use strict";var r=n(6298),i=n(5266),o=n(7042);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},1555:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},4553:(e,t,n)=>{"use strict";var r=n(1555);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},7734:(e,t,n)=>{"use strict";var r=n(6709),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},757:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},3175:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5550:(e,t,n)=>{"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},2155:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6989);e.exports=o.call(r,i)},3876:(e,t,n)=>{"use strict";var r=n(630),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),g=0;g{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case u:return e;default:return t}}case i:return t}}}function x(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},630:(e,t,n)=>{"use strict";e.exports=n(2138)},6897:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},150:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,v:()=>i});class r extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class i extends Set{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const n of e)this.add(n)}has(e){return super.has(o(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function o(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):t}function a(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):(n.set(i,t),t)}function s(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)&&(t=n.get(t),n.delete(i)),t}function u(e){return null!==e&&"object"===typeof e?e.valueOf():e}},8412:e=>{function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},6806:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(h){h!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,l="function"===typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},4866:(e,t,n)=>{"use strict";var r=n(690),i=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),a=n(5550)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(t){return!1}}(e):"[object Date]"===o(e))}},2157:(e,t,n)=>{"use strict";var r,i=n(690),o=n(5550)(),a=n(2155),s=n(4553);if(o){var u=i("RegExp.prototype.exec"),l={},c=function(){throw l},f={toString:c,valueOf:c};"symbol"===typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=c),r=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{u(e,f)}catch(n){return n===l}}}else{var d=i("Object.prototype.toString");r=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===d(e)}}e.exports=r},5334:(e,t,n)=>{"use strict";var r=n(690),i=r("Object.prototype.toString"),o=n(757)(),a=n(2695);if(o){var s=r("Symbol.prototype.toString"),u=a(/^Symbol\(.*\)$/);e.exports=function(e){if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||"[object Symbol]"!==i(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&u(s(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},2576:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3586:e=>{e.exports=function e(t,n){"use strict";var r,i,o=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0x[0-9a-f]+$/i,l=/^0/,c=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},f=c(t).replace(a,"")||"",d=c(n).replace(a,"")||"",h=f.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=d.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(f.match(u),16)||1!==h.length&&f.match(s)&&Date.parse(f),g=parseInt(d.match(u),16)||m&&d.match(s)&&Date.parse(d)||null;if(g){if(mg)return 1}for(var y=0,v=Math.max(h.length,p.length);yi)return 1}return 0}},3131:function(e){e.exports=function(){"use strict";function e(e){for(var t=1;t{"use strict";for(var t=function(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e},n={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},r=0;r<24;r+=1)n[112+r]="F"+(r+1);for(var i=0;i<26;i+=1){var o=i+65;n[o]=[String.fromCharCode(o+32),String.fromCharCode(o)]}var a={codes:n,getCode:function(e){return t(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var r=t(e);if(r&&e.key)return e.key;var i=n[r?e.keyCode||e.which:e];return Array.isArray(i)&&(i=r?i[e.shiftKey?1:0]:i[0]),i},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};a.Spacebar=a[" "],a.Digit0=a[0],a.Digit1=a[1],a.Digit2=a[2],a.Digit3=a[3],a.Digit4=a[4],a.Digit5=a[5],a.Digit6=a[6],a.Digit7=a[7],a.Digit8=a[8],a.Digit9=a[9],a.Tilde=a["~"],a.GraveAccent=a["`"],a.ExclamationPoint=a["!"],a.AtSign=a["@"],a.PoundSign=a["#"],a.PercentSign=a["%"],a.Caret=a["^"],a.Ampersand=a["&"],a.PlusSign=a["+"],a.MinusSign=a["-"],a.EqualsSign=a["="],a.DivisionSign=a["/"],a.MultiplicationSign=a["*"],a.Comma=a[","],a.Decimal=a["."],a.Colon=a[":"],a.Semicolon=a[";"],a.Pipe=a["|"],a.BackSlash=a["\\"],a.QuestionMark=a["?"],a.SingleQuote=a["'"],a.DoubleQuote=a['"'],a.LeftCurlyBrace=a["{"],a.RightCurlyBrace=a["}"],a.LeftParenthesis=a["("],a.RightParenthesis=a[")"],a.LeftAngleBracket=a["<"],a.RightAngleBracket=a[">"],a.LeftSquareBracket=a["["],a.RightSquareBracket=a["]"],e.exports=a},75:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function c(e){var t=e.re=n(4370)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):u.push(t)}})),u.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function f(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},c(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},4370:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(1537).source,t.src_Cc=n(5170).source,t.src_Z=n(4244).source,t.src_P=n(9170).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},8106:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.de=function(){this.pipeline.reset(),this.pipeline.add(e.de.trimmer,e.de.stopWordFilter,e.de.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.de.stemmer))},e.de.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.de.trimmer=e.trimmerSupport.generateTrimmer(e.de.wordCharacters),e.Pipeline.registerFunction(e.de.trimmer,"trimmer-de"),e.de.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("",-1,6),new t("U",0,2),new t("Y",0,1),new t("\xe4",0,3),new t("\xf6",0,4),new t("\xfc",0,5)],a=[new t("e",-1,2),new t("em",-1,1),new t("en",-1,2),new t("ern",-1,1),new t("er",-1,1),new t("s",-1,3),new t("es",5,2)],s=[new t("en",-1,1),new t("er",-1,1),new t("st",-1,2),new t("est",2,1)],u=[new t("ig",-1,1),new t("lich",-1,1)],l=[new t("end",-1,1),new t("ig",-1,2),new t("ung",-1,1),new t("lich",-1,3),new t("isch",-1,2),new t("ik",-1,2),new t("heit",-1,3),new t("keit",-1,4)],c=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],f=[117,30,5],d=[117,30,4],h=new n;function p(e,t,n){return!(!h.eq_s(1,e)||(h.ket=h.cursor,!h.in_grouping(c,97,252)))&&(h.slice_from(t),h.cursor=n,!0)}function m(){for(var e,t,n,r,i=h.cursor;;)if(e=h.cursor,h.bra=e,h.eq_s(1,"\xdf"))h.ket=h.cursor,h.slice_from("ss");else{if(e>=h.limit)break;h.cursor=e+1}for(h.cursor=i;;)for(t=h.cursor;;){if(n=h.cursor,h.in_grouping(c,97,252)){if(r=h.cursor,h.bra=r,p("u","U",n))break;if(h.cursor=r,p("y","Y",n))break}if(n>=h.limit)return void(h.cursor=t);h.cursor=n+1}}function g(){for(;!h.in_grouping(c,97,252);){if(h.cursor>=h.limit)return!0;h.cursor++}for(;!h.out_grouping(c,97,252);){if(h.cursor>=h.limit)return!0;h.cursor++}return!1}function y(){i=h.limit,r=i;var t=h.cursor+3;0<=t&&t<=h.limit&&(e=t,g()||((i=h.cursor)=h.limit)return;h.cursor++}}}function b(){return i<=h.cursor}function w(){return r<=h.cursor}function _(){var e,t,n,r,i=h.limit-h.cursor;if(h.ket=h.cursor,(e=h.find_among_b(a,7))&&(h.bra=h.cursor,b()))switch(e){case 1:h.slice_del();break;case 2:h.slice_del(),h.ket=h.cursor,h.eq_s_b(1,"s")&&(h.bra=h.cursor,h.eq_s_b(3,"nis")&&h.slice_del());break;case 3:h.in_grouping_b(f,98,116)&&h.slice_del()}if(h.cursor=h.limit-i,h.ket=h.cursor,(e=h.find_among_b(s,4))&&(h.bra=h.cursor,b()))switch(e){case 1:h.slice_del();break;case 2:if(h.in_grouping_b(d,98,116)){var o=h.cursor-3;h.limit_backward<=o&&o<=h.limit&&(h.cursor=o,h.slice_del())}}if(h.cursor=h.limit-i,h.ket=h.cursor,(e=h.find_among_b(l,8))&&(h.bra=h.cursor,w()))switch(e){case 1:h.slice_del(),h.ket=h.cursor,h.eq_s_b(2,"ig")&&(h.bra=h.cursor,t=h.limit-h.cursor,h.eq_s_b(1,"e")||(h.cursor=h.limit-t,w()&&h.slice_del()));break;case 2:n=h.limit-h.cursor,h.eq_s_b(1,"e")||(h.cursor=h.limit-n,h.slice_del());break;case 3:if(h.slice_del(),h.ket=h.cursor,r=h.limit-h.cursor,!h.eq_s_b(2,"er")&&(h.cursor=h.limit-r,!h.eq_s_b(2,"en")))break;h.bra=h.cursor,b()&&h.slice_del();break;case 4:h.slice_del(),h.ket=h.cursor,(e=h.find_among_b(u,2))&&(h.bra=h.cursor,w()&&1==e&&h.slice_del())}}this.setCurrent=function(e){h.setCurrent(e)},this.getCurrent=function(){return h.getCurrent()},this.stem=function(){var e=h.cursor;return m(),h.cursor=e,y(),h.limit_backward=e,h.cursor=h.limit,_(),h.cursor=h.limit_backward,v(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.de.stemmer,"stemmer-de"),e.de.stopWordFilter=e.generateStopWordFilter("aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann das dasselbe dazu da\xdf dein deine deinem deinen deiner deines dem demselben den denn denselben der derer derselbe derselben des desselben dessen dich die dies diese dieselbe dieselben diesem diesen dieser dieses dir doch dort du durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er es etwas euch euer eure eurem euren eurer eures f\xfcr gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich ihm ihn ihnen ihr ihre ihrem ihren ihrer ihres im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines k\xf6nnen k\xf6nnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mich mir mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie sind so solche solchem solchen solcher solches soll sollte sondern sonst um und uns unse unsem unsen unser unses unter viel vom von vor war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte w\xe4hrend w\xfcrde w\xfcrden zu zum zur zwar zwischen \xfcber".split(" ")),e.Pipeline.registerFunction(e.de.stopWordFilter,"stopWordFilter-de")}})?r.call(t,n,t,e):r)||(e.exports=i)},2625:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.fr=function(){this.pipeline.reset(),this.pipeline.add(e.fr.trimmer,e.fr.stopWordFilter,e.fr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.fr.stemmer))},e.fr.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.fr.trimmer=e.trimmerSupport.generateTrimmer(e.fr.wordCharacters),e.Pipeline.registerFunction(e.fr.trimmer,"trimmer-fr"),e.fr.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("col",-1,-1),new t("par",-1,-1),new t("tap",-1,-1)],a=[new t("",-1,4),new t("I",0,1),new t("U",0,2),new t("Y",0,3)],s=[new t("iqU",-1,3),new t("abl",-1,3),new t("I\xe8r",-1,4),new t("i\xe8r",-1,4),new t("eus",-1,2),new t("iv",-1,1)],u=[new t("ic",-1,2),new t("abil",-1,1),new t("iv",-1,3)],l=[new t("iqUe",-1,1),new t("atrice",-1,2),new t("ance",-1,1),new t("ence",-1,5),new t("logie",-1,3),new t("able",-1,1),new t("isme",-1,1),new t("euse",-1,11),new t("iste",-1,1),new t("ive",-1,8),new t("if",-1,8),new t("usion",-1,4),new t("ation",-1,2),new t("ution",-1,4),new t("ateur",-1,2),new t("iqUes",-1,1),new t("atrices",-1,2),new t("ances",-1,1),new t("ences",-1,5),new t("logies",-1,3),new t("ables",-1,1),new t("ismes",-1,1),new t("euses",-1,11),new t("istes",-1,1),new t("ives",-1,8),new t("ifs",-1,8),new t("usions",-1,4),new t("ations",-1,2),new t("utions",-1,4),new t("ateurs",-1,2),new t("ments",-1,15),new t("ements",30,6),new t("issements",31,12),new t("it\xe9s",-1,7),new t("ment",-1,15),new t("ement",34,6),new t("issement",35,12),new t("amment",34,13),new t("emment",34,14),new t("aux",-1,10),new t("eaux",39,9),new t("eux",-1,1),new t("it\xe9",-1,7)],c=[new t("ira",-1,1),new t("ie",-1,1),new t("isse",-1,1),new t("issante",-1,1),new t("i",-1,1),new t("irai",4,1),new t("ir",-1,1),new t("iras",-1,1),new t("ies",-1,1),new t("\xeemes",-1,1),new t("isses",-1,1),new t("issantes",-1,1),new t("\xeetes",-1,1),new t("is",-1,1),new t("irais",13,1),new t("issais",13,1),new t("irions",-1,1),new t("issions",-1,1),new t("irons",-1,1),new t("issons",-1,1),new t("issants",-1,1),new t("it",-1,1),new t("irait",21,1),new t("issait",21,1),new t("issant",-1,1),new t("iraIent",-1,1),new t("issaIent",-1,1),new t("irent",-1,1),new t("issent",-1,1),new t("iront",-1,1),new t("\xeet",-1,1),new t("iriez",-1,1),new t("issiez",-1,1),new t("irez",-1,1),new t("issez",-1,1)],f=[new t("a",-1,3),new t("era",0,2),new t("asse",-1,3),new t("ante",-1,3),new t("\xe9e",-1,2),new t("ai",-1,3),new t("erai",5,2),new t("er",-1,2),new t("as",-1,3),new t("eras",8,2),new t("\xe2mes",-1,3),new t("asses",-1,3),new t("antes",-1,3),new t("\xe2tes",-1,3),new t("\xe9es",-1,2),new t("ais",-1,3),new t("erais",15,2),new t("ions",-1,1),new t("erions",17,2),new t("assions",17,3),new t("erons",-1,2),new t("ants",-1,3),new t("\xe9s",-1,2),new t("ait",-1,3),new t("erait",23,2),new t("ant",-1,3),new t("aIent",-1,3),new t("eraIent",26,2),new t("\xe8rent",-1,2),new t("assent",-1,3),new t("eront",-1,2),new t("\xe2t",-1,3),new t("ez",-1,2),new t("iez",32,2),new t("eriez",33,2),new t("assiez",33,3),new t("erez",32,2),new t("\xe9",-1,2)],d=[new t("e",-1,3),new t("I\xe8re",0,2),new t("i\xe8re",0,2),new t("ion",-1,1),new t("Ier",-1,2),new t("ier",-1,2),new t("\xeb",-1,4)],h=[new t("ell",-1,-1),new t("eill",-1,-1),new t("enn",-1,-1),new t("onn",-1,-1),new t("ett",-1,-1)],p=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,128,130,103,8,5],m=[1,65,20,0,0,0,0,0,0,0,0,0,0,0,0,0,128],g=new n;function y(e,t,n){return!(!g.eq_s(1,e)||(g.ket=g.cursor,!g.in_grouping(p,97,251)))&&(g.slice_from(t),g.cursor=n,!0)}function v(e,t,n){return!!g.eq_s(1,e)&&(g.ket=g.cursor,g.slice_from(t),g.cursor=n,!0)}function b(){for(var e,t;;){if(e=g.cursor,g.in_grouping(p,97,251)){if(g.bra=g.cursor,t=g.cursor,y("u","U",e))continue;if(g.cursor=t,y("i","I",e))continue;if(g.cursor=t,v("y","Y",e))continue}if(g.cursor=e,g.bra=e,!y("y","Y",e)){if(g.cursor=e,g.eq_s(1,"q")&&(g.bra=g.cursor,v("u","U",e)))continue;if(g.cursor=e,e>=g.limit)return;g.cursor++}}}function w(){for(;!g.in_grouping(p,97,251);){if(g.cursor>=g.limit)return!0;g.cursor++}for(;!g.out_grouping(p,97,251);){if(g.cursor>=g.limit)return!0;g.cursor++}return!1}function _(){var t=g.cursor;if(i=g.limit,r=i,e=i,g.in_grouping(p,97,251)&&g.in_grouping(p,97,251)&&g.cursor=g.limit){g.cursor=i;break}g.cursor++}while(!g.in_grouping(p,97,251))}i=g.cursor,g.cursor=t,w()||(r=g.cursor,w()||(e=g.cursor))}function x(){for(var e,t;t=g.cursor,g.bra=t,e=g.find_among(a,4);)switch(g.ket=g.cursor,e){case 1:g.slice_from("i");break;case 2:g.slice_from("u");break;case 3:g.slice_from("y");break;case 4:if(g.cursor>=g.limit)return;g.cursor++}}function E(){return i<=g.cursor}function k(){return r<=g.cursor}function S(){return e<=g.cursor}function A(){var e,t;if(g.ket=g.cursor,e=g.find_among_b(l,43)){switch(g.bra=g.cursor,e){case 1:if(!S())return!1;g.slice_del();break;case 2:if(!S())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,S()?g.slice_del():g.slice_from("iqU"));break;case 3:if(!S())return!1;g.slice_from("log");break;case 4:if(!S())return!1;g.slice_from("u");break;case 5:if(!S())return!1;g.slice_from("ent");break;case 6:if(!E())return!1;if(g.slice_del(),g.ket=g.cursor,e=g.find_among_b(s,6))switch(g.bra=g.cursor,e){case 1:S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,S()&&g.slice_del()));break;case 2:S()?g.slice_del():k()&&g.slice_from("eux");break;case 3:S()&&g.slice_del();break;case 4:E()&&g.slice_from("i")}break;case 7:if(!S())return!1;if(g.slice_del(),g.ket=g.cursor,e=g.find_among_b(u,3))switch(g.bra=g.cursor,e){case 1:S()?g.slice_del():g.slice_from("abl");break;case 2:S()?g.slice_del():g.slice_from("iqU");break;case 3:S()&&g.slice_del()}break;case 8:if(!S())return!1;if(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")))){g.bra=g.cursor,S()?g.slice_del():g.slice_from("iqU");break}break;case 9:g.slice_from("eau");break;case 10:if(!k())return!1;g.slice_from("al");break;case 11:if(S())g.slice_del();else{if(!k())return!1;g.slice_from("eux")}break;case 12:if(!k()||!g.out_grouping_b(p,97,251))return!1;g.slice_del();break;case 13:return E()&&g.slice_from("ant"),!1;case 14:return E()&&g.slice_from("ent"),!1;case 15:return t=g.limit-g.cursor,g.in_grouping_b(p,97,251)&&E()&&(g.cursor=g.limit-t,g.slice_del()),!1}return!0}return!1}function C(){var e,t;if(g.cursor=i){if(n=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,e=g.find_among_b(d,7))switch(g.bra=g.cursor,e){case 1:if(S()){if(r=g.limit-g.cursor,!g.eq_s_b(1,"s")&&(g.cursor=g.limit-r,!g.eq_s_b(1,"t")))break;g.slice_del()}break;case 2:g.slice_from("i");break;case 3:g.slice_del();break;case 4:g.eq_s_b(2,"gu")&&g.slice_del()}g.limit_backward=n}}function F(){var e=g.limit-g.cursor;g.find_among_b(h,5)&&(g.cursor=g.limit-e,g.ket=g.cursor,g.cursor>g.limit_backward&&(g.cursor--,g.bra=g.cursor,g.slice_del()))}function O(){for(var e,t=1;g.out_grouping_b(p,97,251);)t--;if(t<=0){if(g.ket=g.cursor,e=g.limit-g.cursor,!g.eq_s_b(1,"\xe9")&&(g.cursor=g.limit-e,!g.eq_s_b(1,"\xe8")))return;g.bra=g.cursor,g.slice_from("e")}}function T(){if(!A()&&(g.cursor=g.limit,!C()&&(g.cursor=g.limit,!D())))return g.cursor=g.limit,void M();g.cursor=g.limit,g.ket=g.cursor,g.eq_s_b(1,"Y")?(g.bra=g.cursor,g.slice_from("i")):(g.cursor=g.limit,g.eq_s_b(1,"\xe7")&&(g.bra=g.cursor,g.slice_from("c")))}this.setCurrent=function(e){g.setCurrent(e)},this.getCurrent=function(){return g.getCurrent()},this.stem=function(){var e=g.cursor;return b(),g.cursor=e,_(),g.limit_backward=e,g.cursor=g.limit,T(),g.cursor=g.limit,F(),g.cursor=g.limit,O(),g.cursor=g.limit_backward,x(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.fr.stemmer,"stemmer-fr"),e.fr.stopWordFilter=e.generateStopWordFilter("ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci cel\xe0 ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux e\xfbmes e\xfbt e\xfbtes furent fus fusse fussent fusses fussiez fussions fut f\xfbmes f\xfbt f\xfbtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon m\xeame n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y \xe0 \xe9taient \xe9tais \xe9tait \xe9tant \xe9tiez \xe9tions \xe9t\xe9 \xe9t\xe9e \xe9t\xe9es \xe9t\xe9s \xeates".split(" ")),e.Pipeline.registerFunction(e.fr.stopWordFilter,"stopWordFilter-fr")}})?r.call(t,n,t,e):r)||(e.exports=i)},7312:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.it=function(){this.pipeline.reset(),this.pipeline.add(e.it.trimmer,e.it.stopWordFilter,e.it.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.it.stemmer))},e.it.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.it.trimmer=e.trimmerSupport.generateTrimmer(e.it.wordCharacters),e.Pipeline.registerFunction(e.it.trimmer,"trimmer-it"),e.it.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("",-1,7),new t("qu",0,6),new t("\xe1",0,1),new t("\xe9",0,2),new t("\xed",0,3),new t("\xf3",0,4),new t("\xfa",0,5)],a=[new t("",-1,3),new t("I",0,1),new t("U",0,2)],s=[new t("la",-1,-1),new t("cela",0,-1),new t("gliela",0,-1),new t("mela",0,-1),new t("tela",0,-1),new t("vela",0,-1),new t("le",-1,-1),new t("cele",6,-1),new t("gliele",6,-1),new t("mele",6,-1),new t("tele",6,-1),new t("vele",6,-1),new t("ne",-1,-1),new t("cene",12,-1),new t("gliene",12,-1),new t("mene",12,-1),new t("sene",12,-1),new t("tene",12,-1),new t("vene",12,-1),new t("ci",-1,-1),new t("li",-1,-1),new t("celi",20,-1),new t("glieli",20,-1),new t("meli",20,-1),new t("teli",20,-1),new t("veli",20,-1),new t("gli",20,-1),new t("mi",-1,-1),new t("si",-1,-1),new t("ti",-1,-1),new t("vi",-1,-1),new t("lo",-1,-1),new t("celo",31,-1),new t("glielo",31,-1),new t("melo",31,-1),new t("telo",31,-1),new t("velo",31,-1)],u=[new t("ando",-1,1),new t("endo",-1,1),new t("ar",-1,2),new t("er",-1,2),new t("ir",-1,2)],l=[new t("ic",-1,-1),new t("abil",-1,-1),new t("os",-1,-1),new t("iv",-1,1)],c=[new t("ic",-1,1),new t("abil",-1,1),new t("iv",-1,1)],f=[new t("ica",-1,1),new t("logia",-1,3),new t("osa",-1,1),new t("ista",-1,1),new t("iva",-1,9),new t("anza",-1,1),new t("enza",-1,5),new t("ice",-1,1),new t("atrice",7,1),new t("iche",-1,1),new t("logie",-1,3),new t("abile",-1,1),new t("ibile",-1,1),new t("usione",-1,4),new t("azione",-1,2),new t("uzione",-1,4),new t("atore",-1,2),new t("ose",-1,1),new t("ante",-1,1),new t("mente",-1,1),new t("amente",19,7),new t("iste",-1,1),new t("ive",-1,9),new t("anze",-1,1),new t("enze",-1,5),new t("ici",-1,1),new t("atrici",25,1),new t("ichi",-1,1),new t("abili",-1,1),new t("ibili",-1,1),new t("ismi",-1,1),new t("usioni",-1,4),new t("azioni",-1,2),new t("uzioni",-1,4),new t("atori",-1,2),new t("osi",-1,1),new t("anti",-1,1),new t("amenti",-1,6),new t("imenti",-1,6),new t("isti",-1,1),new t("ivi",-1,9),new t("ico",-1,1),new t("ismo",-1,1),new t("oso",-1,1),new t("amento",-1,6),new t("imento",-1,6),new t("ivo",-1,9),new t("it\xe0",-1,8),new t("ist\xe0",-1,1),new t("ist\xe8",-1,1),new t("ist\xec",-1,1)],d=[new t("isca",-1,1),new t("enda",-1,1),new t("ata",-1,1),new t("ita",-1,1),new t("uta",-1,1),new t("ava",-1,1),new t("eva",-1,1),new t("iva",-1,1),new t("erebbe",-1,1),new t("irebbe",-1,1),new t("isce",-1,1),new t("ende",-1,1),new t("are",-1,1),new t("ere",-1,1),new t("ire",-1,1),new t("asse",-1,1),new t("ate",-1,1),new t("avate",16,1),new t("evate",16,1),new t("ivate",16,1),new t("ete",-1,1),new t("erete",20,1),new t("irete",20,1),new t("ite",-1,1),new t("ereste",-1,1),new t("ireste",-1,1),new t("ute",-1,1),new t("erai",-1,1),new t("irai",-1,1),new t("isci",-1,1),new t("endi",-1,1),new t("erei",-1,1),new t("irei",-1,1),new t("assi",-1,1),new t("ati",-1,1),new t("iti",-1,1),new t("eresti",-1,1),new t("iresti",-1,1),new t("uti",-1,1),new t("avi",-1,1),new t("evi",-1,1),new t("ivi",-1,1),new t("isco",-1,1),new t("ando",-1,1),new t("endo",-1,1),new t("Yamo",-1,1),new t("iamo",-1,1),new t("avamo",-1,1),new t("evamo",-1,1),new t("ivamo",-1,1),new t("eremo",-1,1),new t("iremo",-1,1),new t("assimo",-1,1),new t("ammo",-1,1),new t("emmo",-1,1),new t("eremmo",54,1),new t("iremmo",54,1),new t("immo",-1,1),new t("ano",-1,1),new t("iscano",58,1),new t("avano",58,1),new t("evano",58,1),new t("ivano",58,1),new t("eranno",-1,1),new t("iranno",-1,1),new t("ono",-1,1),new t("iscono",65,1),new t("arono",65,1),new t("erono",65,1),new t("irono",65,1),new t("erebbero",-1,1),new t("irebbero",-1,1),new t("assero",-1,1),new t("essero",-1,1),new t("issero",-1,1),new t("ato",-1,1),new t("ito",-1,1),new t("uto",-1,1),new t("avo",-1,1),new t("evo",-1,1),new t("ivo",-1,1),new t("ar",-1,1),new t("ir",-1,1),new t("er\xe0",-1,1),new t("ir\xe0",-1,1),new t("er\xf2",-1,1),new t("ir\xf2",-1,1)],h=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2,1],p=[17,65,0,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2],m=[17],g=new n;function y(e,t,n){return!(!g.eq_s(1,e)||(g.ket=g.cursor,!g.in_grouping(h,97,249)))&&(g.slice_from(t),g.cursor=n,!0)}function v(){for(var e,t,n,r,i=g.cursor;;){if(g.bra=g.cursor,e=g.find_among(o,7))switch(g.ket=g.cursor,e){case 1:g.slice_from("\xe0");continue;case 2:g.slice_from("\xe8");continue;case 3:g.slice_from("\xec");continue;case 4:g.slice_from("\xf2");continue;case 5:g.slice_from("\xf9");continue;case 6:g.slice_from("qU");continue;case 7:if(g.cursor>=g.limit)break;g.cursor++;continue}break}for(g.cursor=i;;)for(t=g.cursor;;){if(n=g.cursor,g.in_grouping(h,97,249)){if(g.bra=g.cursor,r=g.cursor,y("u","U",n))break;if(g.cursor=r,y("i","I",n))break}if(g.cursor=n,g.cursor>=g.limit)return void(g.cursor=t);g.cursor++}}function b(e){if(g.cursor=e,!g.in_grouping(h,97,249))return!1;for(;!g.out_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}return!0}function w(){if(g.in_grouping(h,97,249)){var e=g.cursor;if(g.out_grouping(h,97,249)){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return b(e);g.cursor++}return!0}return b(e)}return!1}function _(){var e,t=g.cursor;if(!w()){if(g.cursor=t,!g.out_grouping(h,97,249))return;if(e=g.cursor,g.out_grouping(h,97,249)){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return g.cursor=e,void(g.in_grouping(h,97,249)&&g.cursor=g.limit)return;g.cursor++}i=g.cursor}function x(){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}for(;!g.out_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}return!0}function E(){var t=g.cursor;i=g.limit,r=i,e=i,_(),g.cursor=t,x()&&(r=g.cursor,x()&&(e=g.cursor))}function k(){for(var e;g.bra=g.cursor,e=g.find_among(a,3);)switch(g.ket=g.cursor,e){case 1:g.slice_from("i");break;case 2:g.slice_from("u");break;case 3:if(g.cursor>=g.limit)return;g.cursor++}}function S(){return i<=g.cursor}function A(){return r<=g.cursor}function C(){return e<=g.cursor}function D(){var e;if(g.ket=g.cursor,g.find_among_b(s,37)&&(g.bra=g.cursor,(e=g.find_among_b(u,5))&&S()))switch(e){case 1:g.slice_del();break;case 2:g.slice_from("e")}}function M(){var e;if(g.ket=g.cursor,!(e=g.find_among_b(f,51)))return!1;switch(g.bra=g.cursor,e){case 1:if(!C())return!1;g.slice_del();break;case 2:if(!C())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,C()&&g.slice_del());break;case 3:if(!C())return!1;g.slice_from("log");break;case 4:if(!C())return!1;g.slice_from("u");break;case 5:if(!C())return!1;g.slice_from("ente");break;case 6:if(!S())return!1;g.slice_del();break;case 7:if(!A())return!1;g.slice_del(),g.ket=g.cursor,(e=g.find_among_b(l,4))&&(g.bra=g.cursor,C()&&(g.slice_del(),1==e&&(g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,C()&&g.slice_del()))));break;case 8:if(!C())return!1;g.slice_del(),g.ket=g.cursor,(e=g.find_among_b(c,3))&&(g.bra=g.cursor,1==e&&C()&&g.slice_del());break;case 9:if(!C())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,C()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,C()&&g.slice_del())))}return!0}function F(){var e,t;g.cursor>=i&&(t=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,(e=g.find_among_b(d,87))&&(g.bra=g.cursor,1==e&&g.slice_del()),g.limit_backward=t)}function O(){var e=g.limit-g.cursor;g.ket=g.cursor,g.in_grouping_b(p,97,242)&&(g.bra=g.cursor,S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(1,"i")&&(g.bra=g.cursor,S())))?g.slice_del():g.cursor=g.limit-e}function T(){O(),g.ket=g.cursor,g.eq_s_b(1,"h")&&(g.bra=g.cursor,g.in_grouping_b(m,99,103)&&S()&&g.slice_del())}this.setCurrent=function(e){g.setCurrent(e)},this.getCurrent=function(){return g.getCurrent()},this.stem=function(){var e=g.cursor;return v(),g.cursor=e,E(),g.limit_backward=e,g.cursor=g.limit,D(),g.cursor=g.limit,M()||(g.cursor=g.limit,F()),g.cursor=g.limit,T(),g.cursor=g.limit_backward,k(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.it.stemmer,"stemmer-it"),e.it.stopWordFilter=e.generateStopWordFilter("a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avr\xe0 avr\xf2 avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete far\xe0 far\xf2 fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perch\xe9 pi\xf9 quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sar\xe0 sar\xf2 se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete star\xe0 star\xf2 stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro \xe8".split(" ")),e.Pipeline.registerFunction(e.it.stopWordFilter,"stopWordFilter-it")}})?r.call(t,n,t,e):r)||(e.exports=i)},6960:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.ru=function(){this.pipeline.reset(),this.pipeline.add(e.ru.trimmer,e.ru.stopWordFilter,e.ru.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.ru.stemmer))},e.ru.wordCharacters="\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f",e.ru.trimmer=e.trimmerSupport.generateTrimmer(e.ru.wordCharacters),e.Pipeline.registerFunction(e.ru.trimmer,"trimmer-ru"),e.ru.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i=[new t("\u0432",-1,1),new t("\u0438\u0432",0,2),new t("\u044b\u0432",0,2),new t("\u0432\u0448\u0438",-1,1),new t("\u0438\u0432\u0448\u0438",3,2),new t("\u044b\u0432\u0448\u0438",3,2),new t("\u0432\u0448\u0438\u0441\u044c",-1,1),new t("\u0438\u0432\u0448\u0438\u0441\u044c",6,2),new t("\u044b\u0432\u0448\u0438\u0441\u044c",6,2)],o=[new t("\u0435\u0435",-1,1),new t("\u0438\u0435",-1,1),new t("\u043e\u0435",-1,1),new t("\u044b\u0435",-1,1),new t("\u0438\u043c\u0438",-1,1),new t("\u044b\u043c\u0438",-1,1),new t("\u0435\u0439",-1,1),new t("\u0438\u0439",-1,1),new t("\u043e\u0439",-1,1),new t("\u044b\u0439",-1,1),new t("\u0435\u043c",-1,1),new t("\u0438\u043c",-1,1),new t("\u043e\u043c",-1,1),new t("\u044b\u043c",-1,1),new t("\u0435\u0433\u043e",-1,1),new t("\u043e\u0433\u043e",-1,1),new t("\u0435\u043c\u0443",-1,1),new t("\u043e\u043c\u0443",-1,1),new t("\u0438\u0445",-1,1),new t("\u044b\u0445",-1,1),new t("\u0435\u044e",-1,1),new t("\u043e\u044e",-1,1),new t("\u0443\u044e",-1,1),new t("\u044e\u044e",-1,1),new t("\u0430\u044f",-1,1),new t("\u044f\u044f",-1,1)],a=[new t("\u0435\u043c",-1,1),new t("\u043d\u043d",-1,1),new t("\u0432\u0448",-1,1),new t("\u0438\u0432\u0448",2,2),new t("\u044b\u0432\u0448",2,2),new t("\u0449",-1,1),new t("\u044e\u0449",5,1),new t("\u0443\u044e\u0449",6,2)],s=[new t("\u0441\u044c",-1,1),new t("\u0441\u044f",-1,1)],u=[new t("\u043b\u0430",-1,1),new t("\u0438\u043b\u0430",0,2),new t("\u044b\u043b\u0430",0,2),new t("\u043d\u0430",-1,1),new t("\u0435\u043d\u0430",3,2),new t("\u0435\u0442\u0435",-1,1),new t("\u0438\u0442\u0435",-1,2),new t("\u0439\u0442\u0435",-1,1),new t("\u0435\u0439\u0442\u0435",7,2),new t("\u0443\u0439\u0442\u0435",7,2),new t("\u043b\u0438",-1,1),new t("\u0438\u043b\u0438",10,2),new t("\u044b\u043b\u0438",10,2),new t("\u0439",-1,1),new t("\u0435\u0439",13,2),new t("\u0443\u0439",13,2),new t("\u043b",-1,1),new t("\u0438\u043b",16,2),new t("\u044b\u043b",16,2),new t("\u0435\u043c",-1,1),new t("\u0438\u043c",-1,2),new t("\u044b\u043c",-1,2),new t("\u043d",-1,1),new t("\u0435\u043d",22,2),new t("\u043b\u043e",-1,1),new t("\u0438\u043b\u043e",24,2),new t("\u044b\u043b\u043e",24,2),new t("\u043d\u043e",-1,1),new t("\u0435\u043d\u043e",27,2),new t("\u043d\u043d\u043e",27,1),new t("\u0435\u0442",-1,1),new t("\u0443\u0435\u0442",30,2),new t("\u0438\u0442",-1,2),new t("\u044b\u0442",-1,2),new t("\u044e\u0442",-1,1),new t("\u0443\u044e\u0442",34,2),new t("\u044f\u0442",-1,2),new t("\u043d\u044b",-1,1),new t("\u0435\u043d\u044b",37,2),new t("\u0442\u044c",-1,1),new t("\u0438\u0442\u044c",39,2),new t("\u044b\u0442\u044c",39,2),new t("\u0435\u0448\u044c",-1,1),new t("\u0438\u0448\u044c",-1,2),new t("\u044e",-1,2),new t("\u0443\u044e",44,2)],l=[new t("\u0430",-1,1),new t("\u0435\u0432",-1,1),new t("\u043e\u0432",-1,1),new t("\u0435",-1,1),new t("\u0438\u0435",3,1),new t("\u044c\u0435",3,1),new t("\u0438",-1,1),new t("\u0435\u0438",6,1),new t("\u0438\u0438",6,1),new t("\u0430\u043c\u0438",6,1),new t("\u044f\u043c\u0438",6,1),new t("\u0438\u044f\u043c\u0438",10,1),new t("\u0439",-1,1),new t("\u0435\u0439",12,1),new t("\u0438\u0435\u0439",13,1),new t("\u0438\u0439",12,1),new t("\u043e\u0439",12,1),new t("\u0430\u043c",-1,1),new t("\u0435\u043c",-1,1),new t("\u0438\u0435\u043c",18,1),new t("\u043e\u043c",-1,1),new t("\u044f\u043c",-1,1),new t("\u0438\u044f\u043c",21,1),new t("\u043e",-1,1),new t("\u0443",-1,1),new t("\u0430\u0445",-1,1),new t("\u044f\u0445",-1,1),new t("\u0438\u044f\u0445",26,1),new t("\u044b",-1,1),new t("\u044c",-1,1),new t("\u044e",-1,1),new t("\u0438\u044e",30,1),new t("\u044c\u044e",30,1),new t("\u044f",-1,1),new t("\u0438\u044f",33,1),new t("\u044c\u044f",33,1)],c=[new t("\u043e\u0441\u0442",-1,1),new t("\u043e\u0441\u0442\u044c",-1,1)],f=[new t("\u0435\u0439\u0448\u0435",-1,1),new t("\u043d",-1,2),new t("\u0435\u0439\u0448",-1,1),new t("\u044c",-1,3)],d=[33,65,8,232],h=new n;function p(){for(;!h.in_grouping(d,1072,1103);){if(h.cursor>=h.limit)return!1;h.cursor++}return!0}function m(){for(;!h.out_grouping(d,1072,1103);){if(h.cursor>=h.limit)return!1;h.cursor++}return!0}function g(){r=h.limit,e=r,p()&&(r=h.cursor,m()&&p()&&m()&&(e=h.cursor))}function y(){return e<=h.cursor}function v(e,t){var n,r;if(h.ket=h.cursor,n=h.find_among_b(e,t)){switch(h.bra=h.cursor,n){case 1:if(r=h.limit-h.cursor,!h.eq_s_b(1,"\u0430")&&(h.cursor=h.limit-r,!h.eq_s_b(1,"\u044f")))return!1;case 2:h.slice_del()}return!0}return!1}function b(){return v(i,9)}function w(e,t){var n;return h.ket=h.cursor,!!(n=h.find_among_b(e,t))&&(h.bra=h.cursor,1==n&&h.slice_del(),!0)}function _(){return w(o,26)}function x(){return!!_()&&(v(a,8),!0)}function E(){return w(s,2)}function k(){return v(u,46)}function S(){w(l,36)}function A(){var e;h.ket=h.cursor,(e=h.find_among_b(c,2))&&(h.bra=h.cursor,y()&&1==e&&h.slice_del())}function C(){var e;if(h.ket=h.cursor,e=h.find_among_b(f,4))switch(h.bra=h.cursor,e){case 1:if(h.slice_del(),h.ket=h.cursor,!h.eq_s_b(1,"\u043d"))break;h.bra=h.cursor;case 2:if(!h.eq_s_b(1,"\u043d"))break;case 3:h.slice_del()}}this.setCurrent=function(e){h.setCurrent(e)},this.getCurrent=function(){return h.getCurrent()},this.stem=function(){return g(),h.cursor=h.limit,!(h.cursor=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor++,!0}return!1},in_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i<=r&&i>=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor--,!0}return!1},out_grouping:function(t,n,r){if(this.cursorr||i>3]&1<<(7&i)))return this.cursor++,!0}return!1},out_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i>r||i>3]&1<<(7&i)))return this.cursor--,!0}return!1},eq_s:function(t,n){if(this.limit-this.cursor>1),f=0,d=s0||i==r||l)break;l=!0}}for(;;){if(s>=(h=t[r]).s_size){if(this.cursor=o+h.s_size,!h.method)return h.result;var m=h.method();if(this.cursor=o+h.s_size,m)return h.result}if((r=h.substring_i)<0)return 0}},find_among_b:function(t,n){for(var r=0,i=n,o=this.cursor,a=this.limit_backward,s=0,u=0,l=!1;;){for(var c=r+(i-r>>1),f=0,d=s=0;h--){if(o-d==a){f=-1;break}if(f=e.charCodeAt(o-1-d)-p.s[h])break;d++}if(f<0?(i=c,u=d):(r=c,s=d),i-r<=1){if(r>0||i==r||l)break;l=!0}}for(;;){var p;if(s>=(p=t[r]).s_size){if(this.cursor=o-p.s_size,!p.method)return p.result;var m=p.method();if(this.cursor=o-p.s_size,m)return p.result}if((r=p.substring_i)<0)return 0}},replace_s:function(t,n,r){var i=r.length-(n-t),o=e.substring(0,t),a=e.substring(n);return e=o+r+a,this.limit+=i,this.cursor>=n?this.cursor+=i:this.cursor>t&&(this.cursor=t),i},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>e.length)throw"faulty slice operation"},slice_from:function(e){this.slice_check(),this.replace_s(this.bra,this.ket,e)},slice_del:function(){this.slice_from("")},insert:function(e,t,n){var r=this.replace_s(e,t,n);e<=this.bra&&(this.bra+=r),e<=this.ket&&(this.ket+=r)},slice_to:function(){return this.slice_check(),e.substring(this.bra,this.ket)},eq_v_b:function(e){return this.eq_s_b(e.length,e)}}}},e.trimmerSupport={generateTrimmer:function(e){var t=new RegExp("^[^"+e+"]+"),n=new RegExp("[^"+e+"]+$");return function(e){return"function"===typeof e.update?e.update((function(e){return e.replace(t,"").replace(n,"")})):e.replace(t,"").replace(n,"")}}}}})?r.call(t,n,t,e):r)||(e.exports=i)},8849:(e,t,n)=>{var r,i;!function(){var o=function(e){var t=new o.Builder;return t.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer),t.searchPipeline.add(o.stemmer),e.call(t,t),t.build()};o.version="2.3.9",o.utils={},o.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),o.utils.asString=function(e){return void 0===e||null===e?"":e.toString()},o.utils.clone=function(e){if(null===e||void 0===e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r0){var l=o.utils.clone(t)||{};l.position=[s,u],l.index=i.length,i.push(new o.Token(n.slice(s,a),l))}s=a+1}}return i},o.tokenizer.separator=/[\s\-]+/,o.Pipeline=function(){this._stack=[]},o.Pipeline.registeredFunctions=Object.create(null),o.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&o.utils.warn("Overwriting existing registered function: "+t),e.label=t,o.Pipeline.registeredFunctions[e.label]=e},o.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||o.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},o.Pipeline.load=function(e){var t=new o.Pipeline;return e.forEach((function(e){var n=o.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},o.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){o.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},o.Pipeline.prototype.after=function(e,t){o.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},o.Pipeline.prototype.before=function(e,t){o.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},o.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},o.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n1&&(oe&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e||o>e?2*i:os?l+=2:a==s&&(t+=n[u+1]*r[l+1],u+=2,l+=2);return t},o.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},o.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t0){var a,s=i.str.charAt(0);s in i.node.edges?a=i.node.edges[s]:(a=new o.TokenSet,i.node.edges[s]=a),1==i.str.length&&(a.final=!0),r.push({node:a,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new o.TokenSet;i.node.edges["*"]=u}if(0==i.str.length&&(u.final=!0),r.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new o.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,f=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?c=i.node.edges[d]:(c=new o.TokenSet,i.node.edges[d]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:f+i.str.slice(2)})}}}return n},o.TokenSet.fromString=function(e){for(var t=new o.TokenSet,n=t,r=0,i=e.length;r=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},o.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},o.Index.prototype.search=function(e){return this.query((function(t){new o.QueryParser(e,t).parse()}))},o.Index.prototype.query=function(e){for(var t=new o.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),a=Object.create(null),s=Object.create(null),u=0;u1?1:e},o.Builder.prototype.k1=function(e){this._k1=e},o.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i=this.length)return o.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},o.QueryLexer.prototype.width=function(){return this.pos-this.start},o.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},o.QueryLexer.prototype.backup=function(){this.pos-=1},o.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=o.QueryLexer.EOS&&this.backup()},o.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(o.QueryLexer.TERM)),e.ignore(),e.more())return o.QueryLexer.lexText},o.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(o.QueryLexer.EDIT_DISTANCE),o.QueryLexer.lexText},o.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(o.QueryLexer.BOOST),o.QueryLexer.lexText},o.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(o.QueryLexer.TERM)},o.QueryLexer.termSeparator=o.tokenizer.separator,o.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==o.QueryLexer.EOS)return o.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return o.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(o.QueryLexer.TERM),o.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(o.QueryLexer.TERM),o.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(o.QueryLexer.PRESENCE),o.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(o.QueryLexer.PRESENCE),o.QueryLexer.lexText;if(t.match(o.QueryLexer.termSeparator))return o.QueryLexer.lexTerm}else e.escapeCharacter()}},o.QueryParser=function(e,t){this.lexer=new o.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},o.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=o.QueryParser.parseClause;e;)e=e(this);return this.query},o.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},o.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},o.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},o.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(void 0!=t)switch(t.type){case o.QueryLexer.PRESENCE:return o.QueryParser.parsePresence;case o.QueryLexer.FIELD:return o.QueryParser.parseField;case o.QueryLexer.TERM:return o.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new o.QueryParseError(n,t.start,t.end)}},o.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(void 0!=t){switch(t.str){case"-":e.currentClause.presence=o.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=o.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new o.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(void 0==r){n="expecting term or field, found nothing";throw new o.QueryParseError(n,t.start,t.end)}switch(r.type){case o.QueryLexer.FIELD:return o.QueryParser.parseField;case o.QueryLexer.TERM:return o.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new o.QueryParseError(n,r.start,r.end)}}},o.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(void 0!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(void 0==i){r="expecting term, found nothing";throw new o.QueryParseError(r,t.start,t.end)}if(i.type===o.QueryLexer.TERM)return o.QueryParser.parseTerm;r="expecting term, found '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}},o.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(void 0!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(void 0!=n)switch(n.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new o.QueryParseError(r,n.start,n.end)}else e.nextClause()}},o.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(void 0!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(void 0!=i)switch(i.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}else e.nextClause()}},o.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(void 0!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(void 0!=i)switch(i.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}else e.nextClause()}},void 0===(i="function"===typeof(r=function(){return o})?r.call(t,n,t,e):r)||(e.exports=i)}()},4960:e=>{"use strict";e.exports=Math.abs},6583:e=>{"use strict";e.exports=4294967295},5587:e=>{"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},8974:e=>{"use strict";e.exports=Math.floor},1497:(e,t,n)=>{"use strict";var r=n(1581);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},2190:(e,t,n)=>{"use strict";var r=n(4960),i=n(8974),o=n(1581),a=n(1497);e.exports=function(e){if("number"!==typeof e||o(e)||!a(e))return!1;var t=r(e);return i(t)===t}},1581:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},2938:e=>{"use strict";e.exports=Math.max},6516:e=>{"use strict";e.exports=Math.min},5158:e=>{"use strict";e.exports=Math.pow},7856:e=>{"use strict";e.exports=Math.round},8707:(e,t,n)=>{"use strict";var r=n(1581);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},69:(e,t,n)=>{!function(){var t=n(8729),r=n(4309).utf8,i=n(8412),o=n(4309).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),u=8*e.length,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[u>>>5]|=128<>>9<<4)]=u;var p=a._ff,m=a._gg,g=a._hh,y=a._ii;for(h=0;h>>0,c=c+b>>>0,f=f+w>>>0,d=d+_>>>0}return t.endian([l,c,f,d])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}}()},4141:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,k=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,F="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var I=n(2634),R=I.custom,j=G(R)?R:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,n){var r=n.quoteStyle||t,i=L[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function H(e){return"[object Array]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}function q(e){return"[object RegExp]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}function G(e){if(F)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!M)return!1;try{return M.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var u=r||{};if(V(u,"quoteStyle")&&!V(L,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(u,"customInspect")||u.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return K(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?P(t,x):x}if("bigint"===typeof t){var A=String(t)+"n";return w?P(t,A):A}var D="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof i&&(i=0),i>=D&&D>0&&"object"===typeof t)return H(t)?"[Array]":"[Object]";var R=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(u,i);if("undefined"===typeof s)s=[];else if($(s,t)>=0)return"[Circular]";function B(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:u.depth};return V(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"===typeof t&&!q(t)){var W=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=te(t,B);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Y.length>0?" { "+k.call(Y,", ")+" }":"")}if(G(t)){var ne=F?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!==typeof t||F?ne:X(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+_.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe"}if(H(t)){if(0===t.length)return"[]";var ae=te(t,B);return R&&!function(e){for(var t=0;t=0)return!1;return!0}(ae)?"["+ee(ae,R)+"]":"[ "+k.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t)){var se=te(t,B);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(se,", ")+" }":"{ ["+String(t)+"] "+k.call(E.call("[cause]: "+B(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(j&&"function"===typeof t[j]&&I)return I(t,{depth:D-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(B(n,t,!0)+" => "+B(e,t))})),J("Map",o.call(t),ue,R)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(B(e,t))})),J("Set",l.call(t),le,R)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(B(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return X(B(C.call(t)));if(function(e){return"[object Boolean]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(p.call(t));if(function(e){return"[object String]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(B(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t)&&!q(t)){var ce=te(t,B),fe=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!fe&&O&&Object(t)===t&&O in t?v.call(Q(t),8,-1):de?"Object":"",pe=(fe||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+k.call(E.call([],he||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":R?pe+"{"+ee(ce,R)+"}":pe+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return W.call(e,t)}function Q(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||"single"];return i.lastIndex=0,z(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):k.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(543),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var r=Array.prototype.slice,i=n(543),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},543:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1241:e=>{function t(e){return function(t){return t.tag===e}}function n(e){return e.id=e.pointer,e.name=function(e){if("INDI"===e.tag){var n=(e.tree.filter(t("NAME"))||[])[0];return n?n.data.replace(/\//g,""):"?"}return"Family"}(e),e}e.exports=function(e){var r=e.filter(t("INDI")).map(n),i=e.filter(t("FAM")),o=i.map(n),a=i.reduce((function(e,t){return e.concat(function(e){var t=e.tree.filter((function(e){return e.data&&"@"===e.data[0]})).map((function(t){return{source:e.pointer,target:t.data}}));return t}(t))}),[]),s=r.concat(o),u=s.reduce((function(e,t,n){return e[t.id]=n,e}),{});return a=a.map(function(e){return function(t){function n(t){return e[t]}return{source:n(t.source),target:n(t.target)}}}(u)),{nodes:s,links:a}}},8148:(e,t,n)=>{var r=n(8966),i=/\s*(0|[1-9]+[0-9]*) (@[^@]+@ |)([A-Za-z0-9_]+)( [^\n\r]*|)/;e.exports.parse=function(e){var t={root:{tree:[]},level:0};t.pointer=t.root;var n=e.split("\n").map((function(e){var t=e.match(i);return t?{level:parseInt(t[1],10),pointer:t[2].trim(),tag:t[3].trim(),data:t[4].trimLeft(),tree:[]}:null})).filter((function(e){return e})).reduce((function(e,t){if(t.level===e.level)e.pointer.tree.push(t);else if(t.level>e.level){var n=e.pointer;e.pointer=e.pointer.tree[e.pointer.tree.length-1],e.pointer.tree.push(t),e.pointer.up=n,e.level=t.level}else if(t.level{var r=n(2576);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return u(o(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,u="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(u+=e.slice(s,h),s=h+f.length,d)u+=d[1];else{var p=e[s],m=n[2],g=n[3],y=n[4],v=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var _=null!=m&&null!=p&&p!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,k=m||l,S=y||v,A=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:k,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:S?c(S):w?".*":a(k,A)})}}return s-1?"[^"+l(e)+"]+?":l(t)+"|(?:(?!"+l(t)+")[^"+l(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function u(e,t){for(var n=new Array(e.length),i=0;i{"use strict";var r=n(3959);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},1942:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8345:(e,t,n)=>{"use strict";var r=n(9950),i=n(5340);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n