diff --git a/polynomial-roots/bundle.js b/cubic-roots/bundle.js similarity index 77% rename from polynomial-roots/bundle.js rename to cubic-roots/bundle.js index ef31edd..76023b3 100644 --- a/polynomial-roots/bundle.js +++ b/cubic-roots/bundle.js @@ -1 +1 @@ -!function(){return function t(n,e,r){function i(o,u){if(!e[o]){if(!n[o]){var f="function"==typeof require&&require;if(!u&&f)return f(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var s=e[o]={exports:{}};n[o][0].call(s.exports,function(t){return i(n[o][1][t]||t)},s,s.exports,t,n,e,r)}return e[o].exports}for(var a="function"==typeof require&&require,o=0;o1&&r--,a=6*r<1?n+6*(e-n)*r:2*r<1?e:3*r<2?n+(e-n)*(2/3-r)*6:n,i[c]=a;return i}},{}],3:[function(t,n,e){n.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},{}],4:[function(t,n,e){n.exports=function(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],f=n[6],c=n[7],s=n[8],l=s*o-u*c,h=-s*a+u*f,d=c*a-o*f,p=e*l+r*h+i*d;return p?(p=1/p,t[0]=l*p,t[1]=(-s*r+i*c)*p,t[2]=(u*r-i*o)*p,t[3]=h*p,t[4]=(s*e-i*f)*p,t[5]=(-u*e+i*a)*p,t[6]=d*p,t[7]=(-c*e+r*f)*p,t[8]=(o*e-r*a)*p,t):null}},{}],5:[function(t,n,e){!function(){function t(){var t=[].slice.call(arguments),n=null;function e(t){if(null==t);else if("string"==typeof t)n?n.appendChild(document.createTextNode(t)):t.split(/([\.#]?[a-zA-Z0-9_-]+)/).forEach(function(t){var e=t.substring(1,t.length);t&&(n?"."===t[0]?n.classList.add(e):"#"===t[0]&&n.setAttribute("id",e):n=document.createElement(t))});else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(document.createTextNode(t.toString()));else if(Array.isArray(t))t.forEach(e);else if(t instanceof HTMLElement)n.appendChild(t);else if("object"==typeof t)for(var r in t)if("function"==typeof t[r])n.addEventListener(r,t[r]);else if("style"===r)for(var i in t[r])n.style.setProperty(i,t[r][i]);else n.setAttribute(r,t[r])}for(;t.length;)e(t.shift());return n}"object"==typeof n?n.exports=t:this.h=t}()},{}],6:[function(t,n,e){"use strict";var r=t("float-hsl2rgb");n.exports=function(t,n,e){return r([(t+.65)/n,.7,void 0===e?.65:e])}},{"float-hsl2rgb":2}],7:[function(t,n,e){"use strict";var r=t("gl-mat3/create"),i=t("gl-mat4/create"),a=t("./mat4-from-mat3"),o=t("gl-mat3/invert"),u=t("./mat3-from-linear-scales");n.exports=function(t){var n={view3:r(),inverseView3:r(),view:i(),inverseView:i()},e=t({context:{view3:t.prop("view3"),inverseView3:t.prop("inverseView3"),view:t.prop("view"),inverseView:t.prop("inverseView")},uniforms:{view3:t.prop("view3"),inverseView3:t.prop("inverseView3"),view:t.prop("view"),inverseView:t.prop("inverseView")}});return function(t,r,i){u(n.view3,t,r),o(n.inverseView3,n.view3),a(n.view,n.view3),a(n.inverseView,n.inverseView3),e(n,i)}}},{"./mat3-from-linear-scales":17,"./mat4-from-mat3":18,"gl-mat3/create":3,"gl-mat3/invert":4,"gl-mat4/create":19}],8:[function(t,n,e){"use strict";var r=t("gl-mat3/create"),i={t:0,r:0,b:0,l:0};n.exports=function(t){r();var n=t({scissor:{enable:!0,box:{x:function(t,n){return t.pixelRatio*n.margin.l},y:function(t,n){return t.pixelRatio*n.margin.b},width:function(t,n){return t.framebufferWidth-t.pixelRatio*(n.margin.r+n.margin.l)},height:function(t,n){return t.framebufferHeight-t.pixelRatio*(n.margin.t+n.margin.b)}}},viewport:{x:function(t,n){return t.pixelRatio*n.margin.l},y:function(t,n){return t.pixelRatio*n.margin.b},width:function(t,n){return t.framebufferWidth-t.pixelRatio*(n.margin.r+n.margin.l)},height:function(t,n){return t.framebufferHeight-t.pixelRatio*(n.margin.t+n.margin.b)}},uniforms:{viewportResolution:function(t,n){return[t.viewportWidth,t.viewportHeight]},framebufferResolution:function(t){return[t.framebufferWidth,t.framebufferHeight]},inverseViewportResolution:function(t,n){return[1/t.viewportWidth,1/t.viewportHeight]},inverseFramebufferResolution:function(t){return[1/t.framebufferWidth,1/t.framebufferHeight]},pixelRatio:t.context("pixelRatio")}});return function(t,e){var r=Object.assign({},i);t&&t.margin&&Object.assign(r,t.margin),n({margin:r},e)}}},{"gl-mat3/create":3}],9:[function(t,n,e){"use strict";var r,i,a,o,u,f,c,s,l,h,d,p,v,y,g,m,b,_,x,w;function M(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function A(t,n,e){return(n=L(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function k(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||H(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,a,o,u=[],f=!0,c=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;f=!1}else for(;!(f=(r=a.call(e)).done)&&(u.push(r.value),u.length!==n);f=!0);}catch(t){c=!0,i=t}finally{try{if(!f&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}(t,n)||H(t,n)||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 E(){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=z(t)););return t}(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:e):i.value}}).apply(this,arguments)}function S(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&B(t,n)}function C(t){var n=j();return function(){var e,r=z(t);if(n){var i=z(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return N(this,e)}}function N(t,n){if(n&&("object"===$(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return D(t)}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){var n="function"==typeof Map?new Map:void 0;return(P=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,z(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B(r,t)})(t)}function O(t,n,e){return(O=j()?Reflect.construct.bind():function(t,n,e){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(t,r));return e&&B(i,e.prototype),i}).apply(null,arguments)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function B(t,n){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function F(t,n){for(var e=0;e=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=e.call(a,"catchLoc"),f=e.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),l}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;A(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:T(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function q(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=H(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw a}}}}function H(t,n){if(t){if("string"==typeof t)return Y(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Y(t,n):void 0}}function Y(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);en?1:t>=n?0:NaN}function x(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function w(t){var n,r,i;function a(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;r(t[o],e)<0?i=o+1:a=o}while(i2&&void 0!==arguments[2]?arguments[2]:0,r=a(t,n,e,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return r>e&&i(t[r-1],n)>-i(t[r],n)?r-1:r},right:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;r(t[o],e)<=0?i=o+1:a=o}while(i=a,!n.t0){n.next=10;break}return n.next=10,a;case 10:n.next=4;break;case 12:n.next=17;break;case 14:n.prev=14,n.t1=n.catch(2),r.e(n.t1);case 17:return n.prev=17,r.f(),n.finish(17);case 20:n.next=42;break;case 22:o=-1,u=q(t),n.prev=24,u.s();case 26:if((f=u.n()).done){n.next=34;break}if(c=f.value,n.t2=null!=(c=e(c,++o,t))&&(c=+c)>=c,!n.t2){n.next=32;break}return n.next=32,c;case 32:n.next=26;break;case 34:n.next=39;break;case 36:n.prev=36,n.t3=n.catch(24),u.e(n.t3);case 39:return n.prev=39,u.f(),n.finish(39);case 42:case"end":return n.stop()}},n,null,[[2,14,17,20],[24,36,39,42]])}var F=w(e),L=F.right,H=F.left,Y=w(j).center,V=L,G=X(K),W=X(function(t){var n=K(t);return function(t,e,r,i,a){n(t,e,0+(r<<=2),0+(i<<=2),a<<=2),n(t,e,r+1,i+1,a),n(t,e,r+2,i+2,a),n(t,e,r+3,i+3,a)}});function X(t){return function(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");var i=n.data,a=n.width,o=n.height;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(void 0!==o?o:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!e&&!r)return n;var u=e&&t(e),f=r&&t(r),c=i.slice();return u&&f?(Q(u,c,i,a,o),Q(u,i,c,a,o),Q(u,c,i,a,o),Z(f,i,c,a,o),Z(f,c,i,a,o),Z(f,i,c,a,o)):u?(Q(u,i,c,a,o),Q(u,c,i,a,o),Q(u,i,c,a,o)):f&&(Z(f,i,c,a,o),Z(f,c,i,a,o),Z(f,i,c,a,o)),n}}function Q(t,n,e,r,i){for(var a=0,o=r*i;a=i){for(var u=t*r[i],f=o*t,c=i,s=i+f;c=a){for(var f=n*i[a],c=u*n,s=c+u,l=a,h=a+c;l=a&&++e}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(c=+c)>=c&&++e}}catch(t){f.e(t)}finally{f.f()}}return e}function tt(t){return 0|t.length}function nt(t){return!(t>0)}function et(t){return"object"!=$(t)||"length"in t?t:Array.from(t)}function rt(t,n){var e,r=0,i=0,a=0;if(void 0===n){var o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value;null!=f&&(f=+f)>=f&&(a+=(e=f-i)*(f-(i+=e/++r)))}}catch(t){u.e(t)}finally{u.f()}}else{var c,s=-1,l=q(t);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=(h=n(h,++s,t))&&(h=+h)>=h&&(a+=(e=h-i)*(h-(i+=e/++r)))}}catch(t){l.e(t)}finally{l.f()}}if(r>1)return a/(r-1)}function it(t,n){var e=rt(t,n);return e?Math.sqrt(e):e}function at(t,n){var e,r;if(void 0===n){var i,a=q(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;null!=o&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r=s&&(e=r=s):(e>s&&(e=s),r0){for(a=r[--i];i>0&&(t=a,!(e=(n=r[--i])-((a=t+n)-t))););i>0&&(e<0&&r[i-1]<0||e>0&&r[i-1]>0)&&((n=2*e)==(t=a+n)-a&&(a=t))}return a}}]),t}(),ut=function(t){S(e,P(Map));var n=C(e);function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;if(R(this,e),r=n.call(this),Object.defineProperties(D(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=T(a.value,2),f=u[0],c=u[1];r.set(f,c)}}catch(t){o.e(t)}finally{o.f()}}return N(r)}return I(e,[{key:"get",value:function(t){return E(z(e.prototype),"get",this).call(this,ct(this,t))}},{key:"has",value:function(t){return E(z(e.prototype),"has",this).call(this,ct(this,t))}},{key:"set",value:function(t,n){return E(z(e.prototype),"set",this).call(this,st(this,t),n)}},{key:"delete",value:function(t){return E(z(e.prototype),"delete",this).call(this,lt(this,t))}}]),e}(),ft=function(t){S(e,P(Set));var n=C(e);function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;if(R(this,e),r=n.call(this),Object.defineProperties(D(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;r.add(u)}}catch(t){o.e(t)}finally{o.f()}}return N(r)}return I(e,[{key:"has",value:function(t){return E(z(e.prototype),"has",this).call(this,ct(this,t))}},{key:"add",value:function(t){return E(z(e.prototype),"add",this).call(this,st(this,t))}},{key:"delete",value:function(t){return E(z(e.prototype),"delete",this).call(this,lt(this,t))}}]),e}();function ct(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)?e.get(r):n}function st(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function lt(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ht(t){return null!==t&&"object"==$(t)?t.valueOf():t}function dt(t){return t}function pt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r2?e-2:0),i=2;i2?e-2:0),i=2;i=r.length)return e(i);var o,u=new ut,f=r[a++],c=-1,s=q(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,h=f(l,++c,i),d=u.get(h);d?d.push(l):u.set(h,[l])}}catch(t){s.e(t)}finally{s.f()}var p,v=q(u);try{for(v.s();!(p=v.n()).done;){var y=T(p.value,2),g=y[0],m=y[1];u.set(g,t(m,a))}}catch(t){v.e(t)}finally{v.f()}return n(u)}(t,0)}function xt(t,n){return Array.from(n,function(n){return t[n]})}function wt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1){var a=Uint32Array.from(t,function(t,n){return n});return e.length>1?(e=e.map(function(n){return t.map(n)}),a.sort(function(t,n){var r,i=q(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=At(a[t],a[n]);if(o)return o}}catch(t){i.e(t)}finally{i.f()}})):(i=t.map(i),a.sort(function(t,n){return At(i[t],i[n])})),xt(t,a)}return t.sort(Mt(i))}function Mt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if(t===e)return At;if("function"!=typeof t)throw new TypeError("compare is not a function");return function(n,e){var r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function At(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(tn?1:0)}var kt=Array.prototype.slice;function Tt(t){return function(){return t}}var Et=Math.sqrt(50),St=Math.sqrt(10),Ct=Math.sqrt(2);function Nt(t,n,e){var r,i,a,o,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n0){var f=Math.round(t/o),c=Math.round(n/o);for(f*on&&--c,a=new Array(i=c-f+1);++un&&--l,a=new Array(i=l-s+1);++u=0?(a>=Et?10:a>=St?5:a>=Ct?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Et?10:a>=St?5:a>=Ct?2:1)}function Pt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Et?i*=10:a>=St?i*=5:a>=Ct&&(i*=2),n0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function jt(t){return Math.ceil(Math.log(J(t))/Math.LN2)+1}function Bt(){var t=dt,n=at,e=jt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,o,u=r.length,f=new Array(u);for(i=0;i=l)if(p>=l&&n===at){var y=Dt(s,l,v);isFinite(y)&&(y>0?l=(Math.floor(l/y)+1)*y:y<0&&(l=(Math.ceil(l*-y)+1)/-y))}else h.pop()}for(var g=h.length,m=0,b=g;h[m]<=s;)++m;for(;h[b-1]>l;)--b;(m||b0?h[i-1]:s,_.x1=i0)for(i=0;i=a)&&(e=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(e=c)&&(e=c)}}catch(t){f.e(t)}finally{f.f()}}return e}function Rt(t,n){var e,r=-1,i=-1;if(void 0===n){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;++i,null!=u&&(e=u)&&(e=u,r=i)}}catch(t){o.e(t)}finally{o.f()}}else{var f,c=q(t);try{for(c.s();!(f=c.n()).done;){var s=f.value;null!=(s=n(s,++i,t))&&(e=s)&&(e=s,r=i)}}catch(t){c.e(t)}finally{c.f()}}return r}function Ft(t,n){var e;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(e>a||void 0===e&&a>=a)&&(e=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(e>c||void 0===e&&c>=c)&&(e=c)}}catch(t){f.e(t)}finally{f.f()}}return e}function It(t,n){var e,r=-1,i=-1;if(void 0===n){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;++i,null!=u&&(e>u||void 0===e&&u>=u)&&(e=u,r=i)}}catch(t){o.e(t)}finally{o.f()}}else{var f,c=q(t);try{for(c.s();!(f=c.n()).done;){var s=f.value;null!=(s=n(s,++i,t))&&(e>s||void 0===e&&s>=s)&&(e=s,r=i)}}catch(t){c.e(t)}finally{c.f()}}return r}function Lt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),e=Math.floor(Math.max(0,e)),r=Math.floor(Math.min(t.length-1,r)),!(e<=n&&n<=r))return t;for(i=void 0===i?At:Mt(i);r>e;){if(r-e>600){var a=r-e+1,o=n-e+1,u=Math.log(a),f=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*f*(a-f)/a)*(o-a/2<0?-1:1);Lt(t,n,Math.max(e,Math.floor(n-o*f/a+c)),Math.min(r,Math.floor(n+(a-o)*f/a+c)),i)}var s=t[n],l=e,h=r;for(Ut(t,e,n),i(t[r],s)>0&&Ut(t,e,r);l0;)--h}0===i(t[e],s)?Ut(t,e,h):Ut(t,++h,r),h<=n&&(e=h+1),n<=h&&(r=h-1)}return t}function Ut(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function qt(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=!1;if(1===r.length){var a,o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value,c=r(f);(i?e(c,a)>0:0===e(c,c))&&(n=f,a=c,i=!0)}}catch(t){u.e(t)}finally{u.f()}}else{var s,l=q(t);try{for(l.s();!(s=l.n()).done;){var h=s.value;(i?r(h,n)>0:0===r(h,h))&&(n=h,i=!0)}}catch(t){l.e(t)}finally{l.f()}}return n}function Ht(t,n,e){if((r=(t=Float64Array.from(B(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return Ft(t);if(n>=1)return zt(t);var r,i=(r-1)*n,a=Math.floor(i),o=zt(Lt(t,a).subarray(0,a+1));return o+(Ft(t.subarray(a+1))-o)*(i-a)}}function Yt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;if((r=t.length)&&!isNaN(n=+n)){if(n<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),o=+e(t[a],a,t);return o+(+e(t[a+1],a+1,t)-o)*(i-a)}}function $t(t,n,e){if((r=(t=Float64Array.from(B(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return It(t);if(n>=1)return Rt(t);var r,i=Math.floor((r-1)*n);return qt(Lt(Uint32Array.from(t,function(t,n){return n}),i,0,r-1,function(n,e){return At(t[n],t[e])}).subarray(0,i+1),function(n){return t[n]})}}function Vt(t){return Array.from(U().mark(function t(n){var e,r,i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=q(n),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=8;break}return i=r.value,t.delegateYield(i,"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),e.e(t.t1);case 13:return t.prev=13,e.f(),t.finish(13);case 16:case"end":return t.stop()}},t,null,[[1,10,13,16]])})(t))}function Gt(t,n){return[t,n]}function Wt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),a=new Array(i);++r1&&void 0!==arguments[1]?arguments[1]:e;if(1===n.length)return It(t,n);var r,i,a=-1,o=-1,u=q(t);try{for(u.s();!(i=u.n()).done;){var f=i.value;++o,(a<0?0===n(f,f):n(f,r)<0)&&(r=f,a=o)}}catch(t){u.e(t)}finally{u.f()}return a}var Qt=Zt(Math.random);function Zt(t){return function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length)-(e=+e);r;){var i=t()*r--|0,a=n[r+e];n[r+e]=n[i+e],n[i+e]=a}return n}}function Kt(t){if(!(i=t.length))return[];for(var n=-1,e=Ft(t,Jt),r=new Array(e);++n1?0:.5,c=1===t||4===t?-1:1,s=4===t||2===t?"x":"y",l=1===t||3===t?on:un;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):rn:i,v=Math.max(a,0)+u,y=n.range(),g=+y[0]+f,m=+y[y.length-1]+f,b=(n.bandwidth?function(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}:function(t){return function(n){return+t(n)}})(n.copy(),f),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,n).order(),M=w.exit(),A=w.enter().append("g").attr("class","tick"),k=w.select("line"),T=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),k=k.merge(A.append("line").attr("stroke","currentColor").attr(s+"2",c*a)),T=T.merge(A.append("text").attr("fill","currentColor").attr(s,c*v).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),k=k.transition(h),T=T.transition(h),M=M.transition(h).attr("opacity",an).attr("transform",function(t){return isFinite(t=b(t))?l(t+f):this.getAttribute("transform")}),A.attr("opacity",an).attr("transform",function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+f)})),M.remove(),x.attr("d",4===t||2===t?o?"M"+c*o+","+g+"H"+f+"V"+m+"H"+c*o:"M"+f+","+g+"V"+m:o?"M"+g+","+c*o+"V"+f+"H"+m+"V"+c*o:"M"+g+","+f+"H"+m),w.attr("opacity",1).attr("transform",function(t){return l(b(t)+f)}),k.attr(s+"2",c*a),T.attr(s,c*v).text(p),_.filter(fn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(f=+t,h):f},h}var sn={value:function(){}};function ln(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),a=0;a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),yn.hasOwnProperty(n)?{space:yn[n],local:t}:t}function mn(t){var n=gn(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vn&&n.documentElement.namespaceURI===vn?n.createElement(t):n.createElementNS(e,t)}})(n)}function bn(){}function _n(t){return null==t?bn:function(){return this.querySelector(t)}}function xn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function wn(){return[]}function Mn(t){return null==t?wn:function(){return this.querySelectorAll(t)}}function An(t){return function(){return this.matches(t)}}function kn(t){return function(n){return n.matches(t)}}var Tn=Array.prototype.find;function En(){return this.firstElementChild}var Sn=Array.prototype.filter;function Cn(){return Array.from(this.children)}function Nn(t){return new Array(t.length)}function Dn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Pn(t,n,e,r,i,a){for(var o,u=0,f=n.length,c=a.length;un?1:t>=n?0:NaN}function Rn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fn(t,n){return t.style.getPropertyValue(n)||Rn(t).getComputedStyle(t,null).getPropertyValue(n)}function In(t){return t.trim().split(/^|\s+/)}function Ln(t){return t.classList||new Un(t)}function Un(t){this._node=t,this._names=In(t.getAttribute("class")||"")}function qn(t,n){for(var e=Ln(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ne=[null];function ee(t,n){this._groups=t,this._parents=n}function re(){return new ee([[document.documentElement]],ne)}function ie(t){return"string"==typeof t?new ee([[document.querySelector(t)]],[document.documentElement]):new ee([[t]],ne)}ee.prototype=re.prototype=A({constructor:ee,select:function(t){"function"!=typeof t&&(t=_n(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=_&&(_=b+1);!(m=y[_])&&++_=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=zn);for(var e=this._groups,r=e.length,i=new Array(r),a=0;a1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):Fn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=In(t+"");if(arguments.length<2){for(var r=Ln(this.node()),i=-1,a=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),o=a.length;if(!(arguments.length<2)){for(u=n?Jn:Kn,r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Ue(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Ue(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ne.exec(t))?new Ye(n[1],n[2],n[3],1):(n=De.exec(t))?new Ye(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Pe.exec(t))?Ue(n[1],n[2],n[3],n[4]):(n=Oe.exec(t))?Ue(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=je.exec(t))?Qe(n[1],n[2]/100,n[3]/100,1):(n=Be.exec(t))?Qe(n[1],n[2]/100,n[3]/100,n[4]):ze.hasOwnProperty(t)?Le(ze[t]):"transparent"===t?new Ye(NaN,NaN,NaN,0):null}function Le(t){return new Ye(t>>16&255,t>>8&255,255&t,1)}function Ue(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ye(t,n,e,r)}function qe(t){return t instanceof Ae||(t=Ie(t)),t?new Ye((t=t.rgb()).r,t.g,t.b,t.opacity):new Ye}function He(t,n,e,r){return 1===arguments.length?qe(t):new Ye(t,n,e,null==r?1:r)}function Ye(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function $e(){return"#".concat(Xe(this.r)).concat(Xe(this.g)).concat(Xe(this.b))}function Ve(){var t=Ge(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(We(this.r),", ").concat(We(this.g),", ").concat(We(this.b)).concat(1===t?")":", ".concat(t,")"))}function Ge(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function We(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xe(t){return((t=We(t))<16?"0":"")+t.toString(16)}function Qe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Je(t,n,e,r)}function Ze(t){if(t instanceof Je)return new Je(t.h,t.s,t.l,t.opacity);if(t instanceof Ae||(t=Ie(t)),!t)return new Je;if(t instanceof Je)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,f=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(e0&&f<1?0:o,new Je(o,u,f,t.opacity)}function Ke(t,n,e,r){return 1===arguments.length?Ze(t):new Je(t,n,e,null==r?1:r)}function Je(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function tr(t){return(t=(t||0)%360)<0?t+360:t}function nr(t){return Math.max(0,Math.min(1,t||0))}function er(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}we(Ae,Ie,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Re,formatHex:Re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:Fe,toString:Fe}),we(Ye,He,Me(Ae,{brighter:function(t){return t=null==t?ke:Math.pow(ke,t),new Ye(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ye(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new Ye(We(this.r),We(this.g),We(this.b),Ge(this.opacity))},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:$e,formatHex:$e,formatHex8:function(){return"#".concat(Xe(this.r)).concat(Xe(this.g)).concat(Xe(this.b)).concat(Xe(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Ve,toString:Ve})),we(Je,Ke,Me(Ae,{brighter:function(t){return t=null==t?ke:Math.pow(ke,t),new Je(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Je(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ye(er(t>=240?t-240:t+120,i,r),er(t,i,r),er(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new Je(tr(this.h),nr(this.s),nr(this.l),Ge(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 t=Ge(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(tr(this.h),", ").concat(100*nr(this.s),"%, ").concat(100*nr(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var rr=Math.PI/180,ir=180/Math.PI,ar=.96422,or=.82521,ur=4/29,fr=6/29,cr=3*fr*fr;function sr(t){if(t instanceof hr)return new hr(t.l,t.a,t.b,t.opacity);if(t instanceof br)return _r(t);t instanceof Ye||(t=qe(t));var n,e,r=yr(t.r),i=yr(t.g),a=yr(t.b),o=dr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?n=e=o:(n=dr((.4360747*r+.3850649*i+.1430804*a)/ar),e=dr((.0139322*r+.0971045*i+.7141733*a)/or)),new hr(116*o-16,500*(n-o),200*(o-e),t.opacity)}function lr(t,n,e,r){return 1===arguments.length?sr(t):new hr(t,n,e,null==r?1:r)}function hr(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function dr(t){return t>.008856451679035631?Math.pow(t,1/3):t/cr+ur}function pr(t){return t>fr?t*t*t:cr*(t-ur)}function vr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gr(t){if(t instanceof br)return new br(t.h,t.c,t.l,t.opacity);if(t instanceof hr||(t=sr(t)),0===t.a&&0===t.b)return new br(NaN,0=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||e<-180?e-360*Math.round(e/360):e):Or(isNaN(t)?n:t)}function zr(t,n){var e=n-t;return e?jr(t,e):Or(isNaN(t)?n:t)}var Rr=function t(n){var e=function(t){return 1==(t=+t)?zr:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Or(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=He(t)).r,(n=He(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=zr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function Fr(t){return function(n){var e,r,i=n.length,a=new Array(i),o=new Array(i),u=new Array(i);for(e=0;ea&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,f.push({i:o,x:$r(e,r)})),a=Wr.lastIndex;return a180?n+=360:n-t>180&&(t+=360),f.push({i:e.push(i(e)+"rotate(",null,r)-2,x:$r(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(a.rotate,o.rotate,u),function(t,n,e,a){t!==n?f.push({i:e.push(i(e)+"skewX(",null,r)-2,x:$r(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(a.skewX,o.skewX,u),function(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:$r(t,e)},{i:u-2,x:$r(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,f),a=o=null,function(t){for(var n,e=-1,r=f.length;++e=0&&n._call.call(void 0,t),n=n._next;--bi}function Pi(){Mi=(wi=ki.now())+Ai,bi=_i=0;try{Di()}finally{bi=0,function(){for(var t,n,e=gi,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:gi=n);mi=t,ji(r)}(),Mi=0}}function Oi(){var t=ki.now(),n=t-wi;n>1e3&&(Ai-=n,wi=t)}function ji(t){bi||(_i&&(_i=clearTimeout(_i)),t-Mi>24?(t<1/0&&(_i=setTimeout(Pi,t-ki.now()-Ai)),xi&&(xi=clearInterval(xi))):(xi||(wi=ki.now(),xi=setInterval(Oi,1e3)),bi=1,Ti(Pi)))}function Bi(t,n,e){var r=new Ci;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}Ci.prototype=Ni.prototype={constructor:Ci,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ei():+e)+(null==n?0:+n),this._next||mi===this||(mi?mi._next=this:gi=this,mi=this),this._call=t,this._time=e,ji()},stop:function(){this._call&&(this._call=null,this._time=1/0,ji())}};var zi=ln("start","end","cancel","interrupt"),Ri=[];function Fi(t,n,e,r,i,a){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function a(f){var c,s,l,h;if(1!==e.state)return u();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Bi(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function Li(t,n){var e=Ui(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ui(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function qi(t,n){var e,r,i,a=t.__transition,o=!0;if(a){for(i in n=null==n?null:n+"",a)(e=a[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete a[i]):o=!1;o&&delete t.__transition}}function Hi(t,n,e){var r=t._id;return t.each(function(){var t=Li(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Ui(t,r).value[n]}}function Yi(t,n){var e;return("number"==typeof n?$r:n instanceof Ie?Rr:(e=Ie(n))?(n=e,Rr):Xr)(t,n)}var $i=re.prototype.constructor;function Vi(t){return function(){this.style.removeProperty(t)}}var Gi=0;function Wi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Xi(t){return re().transition(t)}function Qi(){return++Gi}var Zi=re.prototype;function Ki(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Ji(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Wi.prototype=Xi.prototype=A({constructor:Wi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=_n(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o=0&&(t=t.slice(0,n)),!t||"start"===t})?Ii:Li;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(n,e),o.on=i}}(e,t,n))},attr:function(t,n){var e=gn(t),r="transform"===e?ii:Yi;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,a;return function(){var o,u,f=e(this);if(null!=f)return(o=this.getAttributeNS(t.space,t.local))===(u=f+"")?null:o===r&&u===i?a:(i=u,a=n(r=o,f));this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,a;return function(){var o,u,f=e(this);if(null!=f)return(o=this.getAttribute(t))===(u=f+"")?null:o===r&&u===i?a:(i=u,a=n(r=o,f));this.removeAttribute(t)}})(e,r,Hi(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=n(r=o,e)}}:function(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=n(r=o,e)}})(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=gn(t);return this.tween(e,(r.local?function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}:function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ri:Yi;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var a=Fn(this,t),o=(this.style.removeProperty(t),Fn(this,t));return a===o?null:a===e&&o===r?i:i=n(e=a,r=o)}}(t,r)).on("end.style."+t,Vi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,a;return function(){var o=Fn(this,t),u=e(this),f=u+"";return null==u&&(this.style.removeProperty(t),f=u=Fn(this,t)),o===f?null:o===r&&f===i?a:(i=f,a=n(r=o,u))}}(t,r,Hi(this,"style."+t,n))).each(function(t,n){var e,r,i,a,o="style."+n,u="end."+o;return function(){var f=Li(this,t),c=f.on,s=null==f.value[o]?a||(a=Vi(n)):void 0;c===e&&i===s||(r=(e=c).copy()).on(u,i=s),f.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,a=e+"";return function(){var o=Fn(this,t);return o===a?null:o===r?i:i=n(r=o,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function a(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,a,e)),r}return a._value=n,a}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Hi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Ui(this.node(),e).tween,a=0,o=i.length;a1&&L(e)}else i=k[0][0],u=k[0][1],l=k[1][0],d=k[1][1];o=i,f=u,h=l,p=d;var z=ie(m).attr("pointer-events","none"),R=z.selectAll(".overlay").attr("cursor",Fa[b]);if(e.touches)j.moved=I,j.ended=U;else{var F=ie(e.view).on("mousemove.brush",I,!0).on("mouseup.brush",U,!0);a&&F.on("keydown.brush",function(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===Sa&&(x&&(l=h-N*x,i=o+N*x),w&&(d=p-D*w,u=f+D*w),_=Ca,L(t));break;case 32:_!==Sa&&_!==Ca||(x<0?l=h-N:x>0&&(i=o-N),w<0?d=p-D:w>0&&(u=f-D),_=Ea,R.attr("cursor",Fa.selection),L(t));break;default:return}ka(t)},!0).on("keyup.brush",function(t){switch(t.keyCode){case 16:P&&(y=g=P=!1,L(t));break;case 18:_===Ca&&(x<0?l=h:x>0&&(i=o),w<0?d=p:w>0&&(u=f),_=Sa,L(t));break;case 32:_===Ea&&(t.altKey?(x&&(l=h-N*x,i=o+N*x),w&&(d=p-D*w,u=f+D*w),_=Ca):(x<0?l=h:x>0&&(i=o),w<0?d=p:w>0&&(u=f),_=Sa),R.attr("cursor",Fa[b]),L(t));break;default:return}ka(t)},!0),pe(e.view)}c.call(m),j.start(e,_.name)}function I(t){var n,e=q(t.changedTouches||[t]);try{for(e.s();!(n=e.n()).done;){var r,i=n.value,a=q(O);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.identifier===i.identifier&&(o.cur=ce(i,m))}}catch(t){a.e(t)}finally{a.f()}}}catch(t){e.e(t)}finally{e.f()}if(P&&!y&&!g&&1===O.length){var u=O[0];Na(u.cur[0]-u[0])>Na(u.cur[1]-u[1])?g=!0:y=!0}var f,c=q(O);try{for(c.s();!(f=c.n()).done;){var s=f.value;s.cur&&(s[0]=s.cur[0],s[1]=s.cur[1])}}catch(t){c.e(t)}finally{c.f()}v=!0,ka(t),L(t)}function L(t){var n,e=O[0],r=e.point0;switch(N=e[0]-r[0],D=e[1]-r[1],_){case Ea:case Ta:x&&(N=Da(T-i,Pa(S-l,N)),o=i+N,h=l+N),w&&(D=Da(E-u,Pa(C-d,D)),f=u+D,p=d+D);break;case Sa:O[1]?(x&&(o=Da(T,Pa(S,O[0][0])),h=Da(T,Pa(S,O[1][0])),x=1),w&&(f=Da(E,Pa(C,O[0][1])),p=Da(E,Pa(C,O[1][1])),w=1)):(x<0?(N=Da(T-i,Pa(S-i,N)),o=i+N,h=l):x>0&&(N=Da(T-l,Pa(S-l,N)),o=i,h=l+N),w<0?(D=Da(E-u,Pa(C-u,D)),f=u+D,p=d):w>0&&(D=Da(E-d,Pa(C-d,D)),f=u,p=d+D));break;case Ca:x&&(o=Da(T,Pa(S,i-N*x)),h=Da(T,Pa(S,l+N*x))),w&&(f=Da(E,Pa(C,u-D*w)),p=Da(E,Pa(C,d+D*w)))}h=0))throw new Error("invalid digits: ".concat(t));if(n>15)return co;var e=Math.pow(10,n);return function(t){this._+=t[0];for(var n=1,r=t.length;nuo)if(Math.abs(p*u-h*d)>uo&&i){var y=e-a,g=r-o,m=u*u+h*h,b=y*y+g*g,_=Math.sqrt(m),x=Math.sqrt(v),w=i*Math.tan((ao-Math.acos((m+v-b)/(2*_*x)))/2),A=w/x,k=w/_;Math.abs(A-1)>uo&&this._append(c||(c=M(["L",",",""])),t+A*d,n+A*p),this._append(s||(s=M(["A",",",",0,0,",",",",",""])),i,i,+(p*y>d*g),this._x1=t+k*u,this._y1=n+k*h)}else this._append(l||(l=M(["L",",",""])),this._x1=t,this._y1=n)}},{key:"arc",value:function(t,n,e,r,i,a){if(t=+t,n=+n,a=!!a,(e=+e)<0)throw new Error("negative radius: ".concat(e));var o=e*Math.cos(r),u=e*Math.sin(r),f=t+o,c=n+u,s=1^a,l=a?r-i:i-r;null===this._x1?this._append(h||(h=M(["M",",",""])),f,c):(Math.abs(this._x1-f)>uo||Math.abs(this._y1-c)>uo)&&this._append(d||(d=M(["L",",",""])),f,c),e&&(l<0&&(l=l%oo+oo),l>fo?this._append(p||(p=M(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),e,e,s,t-o,n-u,e,e,s,this._x1=f,this._y1=c):l>uo&&this._append(v||(v=M(["A",",",",0,",",",",",",",""])),e,e,+(l>=ao),s,this._x1=t+e*Math.cos(i),this._y1=n+e*Math.sin(i)))}},{key:"rect",value:function(t,n,e,r){this._append(y||(y=M(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+n,e=+e,+r,-e)}},{key:"toString",value:function(){return this._}}]),t}();function lo(){return new so}lo.prototype=so.prototype;var ho=Array.prototype.slice;function po(t){return function(){return t}}function vo(t){return t.source}function yo(t){return t.target}function go(t){return t.radius}function mo(t){return t.startAngle}function bo(t){return t.endAngle}function _o(){return 0}function xo(){return 10}function wo(t){var n=vo,e=yo,r=go,i=go,a=mo,o=bo,u=_o,f=null;function c(){var c,s=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=ho.call(arguments),p=+r.apply(this,(d[0]=s,d)),v=a.apply(this,d)-Ja,y=o.apply(this,d)-Ja,g=+i.apply(this,(d[0]=l,d)),m=a.apply(this,d)-Ja,b=o.apply(this,d)-Ja;if(f||(f=c=lo()),h>eo&&(Xa(y-v)>2*h+eo?y>v?(v+=h,y-=h):(v-=h,y+=h):v=y=(v+y)/2,Xa(b-m)>2*h+eo?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),f.moveTo(p*Qa(v),p*Za(v)),f.arc(0,0,p,v,y),v!==m||y!==b)if(t){var _=g-+t.apply(this,arguments),x=(m+b)/2;f.quadraticCurveTo(0,0,_*Qa(m),_*Za(m)),f.lineTo(g*Qa(x),g*Za(x)),f.lineTo(_*Qa(b),_*Za(b))}else f.quadraticCurveTo(0,0,g*Qa(m),g*Za(m)),f.arc(0,0,g,m,b);if(f.quadraticCurveTo(0,0,p*Qa(v),p*Za(v)),f.closePath(),c)return f=null,c+""||null}return t&&(c.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:po(+n),c):t}),c.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:po(+t),c):r},c.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:po(+t),c):r},c.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:po(+t),c):i},c.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:po(+t),c):a},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:po(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:po(+t),c):u},c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(e=t,c):e},c.context=function(t){return arguments.length?(f=null==t?null:t,c):f},c}var Mo=Array.prototype.slice;function Ao(t,n){return t-n}var ko=function(t){return function(){return t}};function To(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-c)*(r-s)/(d-s)+c&&(i=-i)}return i}function So(t,n,e){var r,i,a,o;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],a=e[r],o=n[r],i<=a&&a<=o||o<=a&&a<=i)}function Co(){}var No=[[],[[[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 Do(){var t=1,n=1,e=jt,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ao);else{var r=at(t),i=Pt(r[0],r[1],n);n=Nt(Math.floor(r[0]/i)*i,Math.floor(r[1]/i-1)*i,n)}return n.map(function(n){return a(t,n)})}function a(e,i){var a=[],u=[];return function(e,r,i){var a,u,f,c,s,l,h=new Array,d=new Array;for(a=u=-1,c=e[0]>=r,No[c<<1].forEach(p);++a=r,No[f|c<<1].forEach(p);for(No[c<<0].forEach(p);++u=r,s=e[u*t]>=r,No[c<<1|s<<2].forEach(p);++a=r,l=s,s=e[u*t+a+1]>=r,No[f|c<<1|s<<2|l<<3].forEach(p);No[c|s<<3].forEach(p)}for(a=-1,s=e[u*t]>=r,No[s<<2].forEach(p);++a=r,No[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+a,t[0][1]+u],f=[t[1][0]+a,t[1][1]+u],c=o(r),s=o(f);(n=d[c])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(f),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(f),d[n.end=s]=n):(n=h[s])?(e=d[c])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(f),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=c]=n):h[c]=d[s]={start:c,end:s,ring:[r,f]}}No[s<<3].forEach(p)}(e,i,function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?a.push([t]):u.push(t)}),u.forEach(function(t){for(var n,e=0,r=a.length;e0&&o0&&u=0&&a>=0))throw new Error("invalid size");return t=r,n=a,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?ko(Mo.call(t)):ko(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Co,i):r===u},i}function Po(t){return t[0]}function Oo(t){return t[1]}function jo(){return 1}var Bo=134217729;function zo(t,n,e,r,i){var a,o,u,f,c=n[0],s=r[0],l=0,h=0;s>c==s>-c?(a=c,c=n[++l]):(a=s,s=r[++h]);var d=0;if(lc==s>-c?(u=a-((o=c+a)-c),c=n[++l]):(u=a-((o=s+a)-s),s=r[++h]),a=o,0!==u&&(i[d++]=u);lc==s>-c?(u=a-((o=a+c)-(f=o-a))+(c-f),c=n[++l]):(u=a-((o=a+s)-(f=o-a))+(s-f),s=r[++h]),a=o,0!==u&&(i[d++]=u);for(;l0!=u>0)return f;var c=Math.abs(o+u);return Math.abs(f)>=3.3306690738754716e-16*c?f:-function(t,n,e,r,i,a,o){var u,f,c,s,l,h,d,p,v,y,g,m,b,_,x,w,M,A,k=t-i,T=e-i,E=n-a,S=r-a;l=(x=(p=k-(d=(h=Bo*k)-(h-k)))*(y=S-(v=(h=Bo*S)-(h-S)))-((_=k*S)-d*v-p*v-d*y))-(g=x-(M=(p=E-(d=(h=Bo*E)-(h-E)))*(y=T-(v=(h=Bo*T)-(h-T)))-((w=E*T)-d*v-p*v-d*y))),Fo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),Fo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,Fo[2]=m-(A-l)+(g-l),Fo[3]=A;var C=function(t,n){for(var e=n[0],r=1;r<4;r++)e+=n[r];return e}(0,Fo),N=2.2204460492503146e-16*o;if(C>=N||-C>=N)return C;if(u=t-(k+(l=t-k))+(l-i),c=e-(T+(l=e-T))+(l-i),f=n-(E+(l=n-E))+(l-a),s=r-(S+(l=r-S))+(l-a),0===u&&0===f&&0===c&&0===s)return C;if(N=1.1093356479670487e-31*o+3.3306690738754706e-16*Math.abs(C),(C+=k*s+S*u-(E*c+T*f))>=N||-C>=N)return C;l=(x=(p=u-(d=(h=Bo*u)-(h-u)))*(y=S-(v=(h=Bo*S)-(h-S)))-((_=u*S)-d*v-p*v-d*y))-(g=x-(M=(p=f-(d=(h=Bo*f)-(h-f)))*(y=T-(v=(h=Bo*T)-(h-T)))-((w=f*T)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var D=zo(4,Fo,4,qo,Io);l=(x=(p=k-(d=(h=Bo*k)-(h-k)))*(y=s-(v=(h=Bo*s)-(h-s)))-((_=k*s)-d*v-p*v-d*y))-(g=x-(M=(p=E-(d=(h=Bo*E)-(h-E)))*(y=c-(v=(h=Bo*c)-(h-c)))-((w=E*c)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var P=zo(D,Io,4,qo,Lo);l=(x=(p=u-(d=(h=Bo*u)-(h-u)))*(y=s-(v=(h=Bo*s)-(h-s)))-((_=u*s)-d*v-p*v-d*y))-(g=x-(M=(p=f-(d=(h=Bo*f)-(h-f)))*(y=c-(v=(h=Bo*c)-(h-c)))-((w=f*c)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var O=zo(P,Lo,4,qo,Uo);return Uo[O-1]}(t,n,e,r,i,a,c)}var Yo=Math.pow(2,-52),$o=new Uint32Array(512),Vo=function(){function t(n){R(this,t);var e=n.length>>1;if(e>0&&"number"!=typeof n[0])throw new Error("Expected coords to contain numbers.");this.coords=n;var r=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}return I(t,[{key:"update",value:function(){for(var t=this.coords,n=this._hullPrev,e=this._hullNext,r=this._hullTri,i=this._hullHash,a=t.length>>1,o=1/0,u=1/0,f=-1/0,c=-1/0,s=0;sf&&(f=l),h>c&&(c=h),this._ids[s]=s}for(var d,p,v,y=(o+f)/2,g=(u+c)/2,m=1/0,b=0;b0&&(p=M,m=A)}for(var k=t[2*p],T=t[2*p+1],E=1/0,S=0;Sz&&(O[j++]=R,z=this._dists[R])}return this.hull=O.subarray(0,j),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Ho(x,w,k,T,N,D)<0){var F=p,I=k,L=T;p=v,k=N,T=D,v=F,N=I,D=L}var U=function(t,n,e,r,i,a){var o=k-x,u=T-w,f=N-x,c=D-w,s=o*o+u*u,l=f*f+c*c,h=.5/(o*c-u*f);return{x:x+(c*s-u*l)*h,y:w+(o*l-f*s)*h}}();this._cx=U.x,this._cy=U.y;for(var q=0;q0&&Math.abs(W-Y)<=Yo&&Math.abs(X-$)<=Yo)&&(Y=W,$=X,G!==d&&G!==p&&G!==v)){for(var Q=0,Z=0,K=this._hashKey(W,X);Z=0;)if((tt=J)===Q){tt=-1;break}if(-1!==tt){var nt=this._addTriangle(tt,G,e[tt],-1,-1,r[tt]);r[G]=this._legalize(nt+2),r[tt]=nt,H++;for(var et=e[tt];J=e[et],Ho(W,X,t[2*et],t[2*et+1],t[2*J],t[2*J+1])<0;)nt=this._addTriangle(et,G,J,r[G],-1,r[et]),r[G]=this._legalize(nt+2),e[et]=et,H--,et=J;if(tt===Q)for(;Ho(W,X,t[2*(J=n[tt])],t[2*J+1],t[2*tt],t[2*tt+1])<0;)nt=this._addTriangle(J,G,tt,-1,r[tt],r[J]),this._legalize(nt+2),r[J]=nt,e[tt]=tt,H--,tt=J;this._hullStart=n[G]=tt,e[tt]=n[et]=G,e[G]=et,i[this._hashKey(W,X)]=G,i[this._hashKey(t[2*tt],t[2*tt+1])]=tt}}}this.hull=new Uint32Array(H);for(var rt=0,it=this._hullStart;rt0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}},{key:"_legalize",value:function(t){for(var n=this._triangles,e=this._halfedges,r=this.coords,i=0,a=0;;){var o=e[t],u=t-t%3;if(a=u+(t+2)%3,-1!==o){var f=o-o%3,c=u+(t+1)%3,s=f+(o+2)%3,l=n[a],h=n[t],d=n[c],p=n[s];if(Wo(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[o]=l;var v=e[s];if(-1===v){var y=this._hullStart;do{if(this._hullTri[y]===s){this._hullTri[y]=t;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(t,v),this._link(o,e[a]),this._link(a,s);var g=f+(o+1)%3;i<$o.length&&($o[i++]=g)}else{if(0===i)break;t=$o[--i]}}else{if(0===i)break;t=$o[--i]}}return a}},{key:"_link",value:function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}},{key:"_addTriangle",value:function(t,n,e,r,i,a){var o=this.trianglesLen;return this._triangles[o]=t,this._triangles[o+1]=n,this._triangles[o+2]=e,this._link(o,r),this._link(o+1,i),this._link(o+2,a),this.trianglesLen+=3,o}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jo,i=n.length,a=new Float64Array(2*i),o=0;o=e&&n[t[u]]>o;)t[u+1]=t[u--];t[u+1]=a}else{var f=e+1,c=r;Zo(t,e+r>>1,f),n[t[e]]>n[t[r]]&&Zo(t,e,r),n[t[f]]>n[t[r]]&&Zo(t,f,r),n[t[e]]>n[t[f]]&&Zo(t,e,f);for(var s=t[f],l=n[s];;){do{f++}while(n[t[f]]l);if(c=c-e?(Qo(t,n,f,r),Qo(t,n,e,c-1)):(Qo(t,n,e,c-1),Qo(t,n,f,r))}}function Zo(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function Ko(t){return t[0]}function Jo(t){return t[1]}var tu=function(){function t(){R(this,t),this._x0=this._y0=this._x1=this._y1=null,this._=""}return I(t,[{key:"moveTo",value:function(t,n){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+n)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}},{key:"lineTo",value:function(t,n){this._+="L".concat(this._x1=+t,",").concat(this._y1=+n)}},{key:"arc",value:function(t,n,e){var r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(r,",").concat(i):(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),e&&(this._+="A".concat(e,",").concat(e,",0,1,1,").concat(t-e,",").concat(n,"A").concat(e,",").concat(e,",0,1,1,").concat(this._x1=r,",").concat(this._y1=i))}},{key:"rect",value:function(t,n,e,r){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+n,"h").concat(+e,"v").concat(+r,"h").concat(-e,"Z")}},{key:"value",value:function(){return this._||null}}]),t}(),nu=function(){function t(){R(this,t),this._=[]}return I(t,[{key:"moveTo",value:function(t,n){this._.push([t,n])}},{key:"closePath",value:function(){this._.push(this._[0].slice())}},{key:"lineTo",value:function(t,n){this._.push([t,n])}},{key:"value",value:function(){return this._.length?this._:null}}]),t}(),eu=function(){function t(n){var e=T(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500],4),r=e[0],i=e[1],a=e[2],o=e[3];if(R(this,t),!((a=+a)>=(r=+r)&&(o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(2*n.points.length),this.vectors=new Float64Array(2*n.points.length),this.xmax=a,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}return I(t,[{key:"update",value:function(){return this.delaunay.update(),this._init(),this}},{key:"_init",value:function(){for(var t,n,e=this.delaunay,r=e.points,i=e.hull,a=e.triangles,o=this.vectors,u=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2),f=0,c=0,s=a.length;f1;)i-=2;for(var a=2;a4)for(var u=0;u0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)this.xmax?2:0)|(nthis.ymax?8:0)}}]),t}(),ru=2*Math.PI,iu=Math.pow;function au(t){return t[0]}function ou(t){return t[1]}function uu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var fu=function(){function t(n){R(this,t),this._delaunator=new Vo(n),this.inedges=new Int32Array(n.length/2),this._hullIndex=new Int32Array(n.length/2),this.points=this._delaunator.coords,this._init()}return I(t,[{key:"update",value:function(){return this._delaunator.update(),this._init(),this}},{key:"_init",value:function(){var t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},function(t,n){return n}).sort(function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]});for(var e=this.collinear[0],r=this.collinear[this.collinear.length-1],i=[n[2*e],n[2*e+1],n[2*r],n[2*r+1]],a=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]),o=0,u=n.length/2;o0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],h[s[0]]=1,2===s.length&&(h[s[1]]=0,this.triangles[1]=s[1],this.triangles[2]=s[1]))}},{key:"voronoi",value:function(t){return new eu(this,t)}},{key:"neighbors",value:U().mark(function t(n){var e,r,i,a,o,u,f,c,s,l,h;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.inedges,r=this.hull,i=this._hullIndex,a=this.halfedges,o=this.triangles,!(u=this.collinear)){t.next=13;break}if(f=u.indexOf(n),t.t0=f>0,!t.t0){t.next=7;break}return t.next=7,u[f-1];case 7:if(t.t1=f2&&void 0!==arguments[2]?arguments[2]:0;if((t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r}},{key:"_step",value:function(t,n,e){var r=this.inedges,i=this.hull,a=this._hullIndex,o=this.halfedges,u=this.triangles,f=this.points;if(-1===r[t]||!f.length)return(t+1)%(f.length>>1);var c=t,s=iu(n-f[2*t],2)+iu(e-f[2*t+1],2),l=r[t],h=l;do{var d=u[h],p=iu(n-f[2*d],2)+iu(e-f[2*d+1],2);if(p1&&void 0!==arguments[1]?arguments[1]:au,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ou,i=arguments.length>3?arguments[3]:void 0;return new t("length"in n?function(t,n,e,r){for(var i=t.length,a=new Float64Array(2*i),o=0;o=a?f=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o9999?"+"+du(n,6):du(n,4))+"-"+du(t.getUTCMonth()+1,2)+"-"+du(t.getUTCDate(),2)+(a?"T"+du(e,2)+":"+du(r,2)+":"+du(i,2)+"."+du(a,3)+"Z":i?"T"+du(e,2)+":"+du(r,2)+":"+du(i,2)+"Z":r||e?"T"+du(e,2)+":"+du(r,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,a=r(t,function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=lu(t);return function(r,i){return n(e(r),i,t)}}(t,n):lu(t)});return a.columns=i||[],a},parseRows:r,format:function(n,e){return null==e&&(e=hu(n)),[e.map(o).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=hu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var vu=pu(","),yu=vu.parse,gu=vu.parseRows,mu=vu.format,bu=vu.formatBody,_u=vu.formatRows,xu=vu.formatRow,wu=vu.formatValue,Mu=pu("\t"),Au=Mu.parse,ku=Mu.parseRows,Tu=Mu.format,Eu=Mu.formatBody,Su=Mu.formatRows,Cu=Mu.formatRow,Nu=Mu.formatValue,Du=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Pu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Ou(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function ju(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Bu(t,n){return fetch(t,n).then(ju)}function zu(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Bu(n,e).then(function(n){return t(n,r)})}}var Ru=zu(yu),Fu=zu(Au);function Iu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Lu(t){return function(n,e){return Bu(n,e).then(function(n){return(new DOMParser).parseFromString(n,t)})}}var Uu=Lu("application/xml"),qu=Lu("text/html"),Hu=Lu("image/svg+xml");function Yu(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,a,o,u,f,c,s,l,h,d=t._root,p={data:r},v=t._x0,y=t._y0,g=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=n>=(a=(v+g)/2))?v=a:g=a,(s=e>=(o=(y+m)/2))?y=o:m=o,i=d,!(d=d[l=s<<1|c]))return i[l]=p,t;if(u=+t._x.call(null,d.data),f=+t._y.call(null,d.data),n===u&&e===f)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=n>=(a=(v+g)/2))?v=a:g=a,(s=e>=(o=(y+m)/2))?y=o:m=o}while((l=s<<1|c)==(h=(f>=o)<<1|u>=a));return i[h]=d,i[l]=p,t}function $u(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Vu(t){return t[0]}function Gu(t){return t[1]}function Wu(t,n,e){var r=new Xu(null==n?Vu:n,null==e?Gu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Xu(t,n,e,r,i,a){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Qu(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Zu=Wu.prototype=Xu.prototype;function Ku(t){return function(){return t}}function Ju(t){return 1e-6*(t()-.5)}function tf(t){return t.x+t.vx}function nf(t){return t.y+t.vy}function ef(t){return t.index}function rf(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}Zu.copy=function(){var t,n,e=new Xu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Qu(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Qu(n));return e},Zu.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Yu(this.cover(n,e),n,e,t)},Zu.addAll=function(t){var n,e,r,i,a=t.length,o=new Array(a),u=new Array(a),f=1/0,c=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(f>s||c>l)return this;for(this.cover(f,c).cover(s,l),e=0;et||t>=i||r>n||n>=a;)switch(u=(nh||(a=f.y0)>d||(o=f.x1)=g)<<1|t>=y)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=f)}else{var m=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),_=m*m+b*b;if(_=(u=(p+y)/2))?p=u:y=u,(s=o>=(f=(v+g)/2))?v=f:g=f,n=d,!(d=d[l=s<<1|c]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Zu.removeAll=function(t){for(var n=0,e=t.length;n1?r[0]+r.slice(2):r,+t.slice(e+1)]}function sf(t){return(t=cf(Math.abs(t)))?t[1]:NaN}var lf,hf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function df(t){if(!(n=hf.exec(t)))throw new Error("invalid format: "+t);var n;return new pf({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function pf(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function vf(t,n){var e=cf(t,n);if(!e)return t+"";var r=e[0],i=e[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")}df.prototype=pf.prototype,pf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var yf={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return vf(100*t,n)},r:vf,s:function(t,n){var e=cf(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(lf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+cf(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function gf(t){return t}var mf,bf=Array.prototype.map,_f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xf(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?gf:(n=bf.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,u=n[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),a.push(t.substring(i-=u,i+u)),!((f+=u+1)>r));)u=n[o=(o+1)%n.length];return a.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?gf:function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(bf.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=df(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,y=t.precision,g=t.trim,m=t.type;"n"===m?(v=!0,m="g"):yf[m]||(void 0===y&&(y=12),g=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?a:/[%p]/.test(m)?f:"",x=yf[m],w=/[defgprs%]/.test(m);function M(t){var i,a,f,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),y),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:c:"-"===l||"("===l?"":l)+h,M=("s"===m?_f[8+lf/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,a=t.length;++i(f=t.charCodeAt(i))||f>57){M=(46===f?o+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var k=h.length+t.length+M.length,T=k>1)+h+t+M+T.slice(k);break;default:t=T+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=df(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(sf(n)/3))),i=Math.pow(10,-r),a=_f[8+r/3];return function(t){return e(i*t)+a}}}}function wf(n){return mf=xf(n),t.format=mf.format,t.formatPrefix=mf.formatPrefix,mf}function Mf(t){return Math.max(0,-sf(Math.abs(t)))}function Af(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sf(n)/3)))-sf(Math.abs(t)))}function kf(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,sf(n)-sf(t))+1}t.format=void 0,t.formatPrefix=void 0,wf({thousands:",",grouping:[3],currency:["$",""]});var Tf=1e-6,Ef=1e-12,Sf=Math.PI,Cf=Sf/2,Nf=Sf/4,Df=2*Sf,Pf=180/Sf,Of=Sf/180,jf=Math.abs,Bf=Math.atan,zf=Math.atan2,Rf=Math.cos,Ff=Math.ceil,If=Math.exp,Lf=Math.hypot,Uf=Math.log,qf=Math.pow,Hf=Math.sin,Yf=Math.sign||function(t){return t>0?1:t<0?-1:0},$f=Math.sqrt,Vf=Math.tan;function Gf(t){return t>1?0:t<-1?Sf:Math.acos(t)}function Wf(t){return t>1?Cf:t<-1?-Cf:Math.asin(t)}function Xf(t){return(t=Hf(t/2))*t}function Qf(){}function Zf(t,n){t&&Jf.hasOwnProperty(t.type)&&Jf[t.type](t,n)}var Kf={Feature:function(t,n){Zf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,a=Rf(n=(n*=Of)/2+Nf),o=Hf(n),u=uc*o,f=oc*a+u*Rf(i),c=u*r*Hf(i);bc.add(zf(c,f)),ac=t,oc=a,uc=o}function Tc(t){return[zf(t[1],t[0]),Wf(t[2])]}function Ec(t){var n=t[0],e=t[1],r=Rf(e);return[r*Rf(n),r*Hf(n),Hf(e)]}function Sc(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Cc(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Nc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Dc(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Pc(t){var n=$f(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Oc,jc,Bc,zc,Rc,Fc,Ic,Lc,Uc,qc,Hc,Yc,$c,Vc,Gc,Wc,Xc={point:Qc,lineStart:Kc,lineEnd:Jc,polygonStart:function(){Xc.point=ts,Xc.lineStart=ns,Xc.lineEnd=es,yc=new ot,xc.polygonStart()},polygonEnd:function(){xc.polygonEnd(),Xc.point=Qc,Xc.lineStart=Kc,Xc.lineEnd=Jc,bc<0?(fc=-(sc=180),cc=-(lc=90)):yc>Tf?lc=90:yc<-1e-6&&(cc=-90),mc[0]=fc,mc[1]=sc},sphere:function(){fc=-(sc=180),cc=-(lc=90)}};function Qc(t,n){gc.push(mc=[fc=t,sc=t]),nlc&&(lc=n)}function Zc(t,n){var e=Ec([t*Of,n*Of]);if(vc){var r=Cc(vc,e),i=Cc([r[1],-r[0],0],r);Pc(i),i=Tc(i);var a,o=t-hc,u=o>0?1:-1,f=i[0]*Pf*u,c=jf(o)>180;c^(u*hclc&&(lc=a):c^(u*hc<(f=(f+360)%360-180)&&flc&&(lc=n)),c?trs(fc,sc)&&(sc=t):rs(t,sc)>rs(fc,sc)&&(fc=t):sc>=fc?(tsc&&(sc=t)):t>hc?rs(fc,t)>rs(fc,sc)&&(sc=t):rs(t,sc)>rs(fc,sc)&&(fc=t)}else gc.push(mc=[fc=t,sc=t]);nlc&&(lc=n),vc=e,hc=t}function Kc(){Xc.point=Zc}function Jc(){mc[0]=fc,mc[1]=sc,Xc.point=Qc,vc=null}function ts(t,n){if(vc){var e=t-hc;yc.add(jf(e)>180?e+(e>0?360:-360):e)}else dc=t,pc=n;xc.point(t,n),Zc(t,n)}function ns(){xc.lineStart()}function es(){ts(dc,pc),xc.lineEnd(),jf(yc)>Tf&&(fc=-(sc=180)),mc[0]=fc,mc[1]=sc,vc=null}function rs(t,n){return(n-=t)<0?n+360:n}function is(t,n){return t[0]-n[0]}function as(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nSf&&(t-=Math.round(t/Df)*Df),[t,n]}function _s(t,n,e){return(t%=Df)?n||e?ms(ws(t),Ms(n,e)):ws(t):n||e?Ms(n,e):bs}function xs(t){return function(n,e){return jf(n+=t)>Sf&&(n-=Math.round(n/Df)*Df),[n,e]}}function ws(t){var n=xs(t);return n.invert=xs(-t),n}function Ms(t,n){var e=Rf(t),r=Hf(t),i=Rf(n),a=Hf(n);function o(t,n){var o=Rf(n),u=Rf(t)*o,f=Hf(t)*o,c=Hf(n),s=c*e+u*r;return[zf(f*i-s*a,u*e-c*r),Wf(s*i+f*a)]}return o.invert=function(t,n){var o=Rf(n),u=Rf(t)*o,f=Hf(t)*o,c=Hf(n),s=c*i-f*a;return[zf(f*i+c*a,u*e+s*r),Wf(s*e-u*r)]},o}function As(t){function n(n){return(n=t(n[0]*Of,n[1]*Of))[0]*=Pf,n[1]*=Pf,n}return t=_s(t[0]*Of,t[1]*Of,t.length>2?t[2]*Of:0),n.invert=function(n){return(n=t.invert(n[0]*Of,n[1]*Of))[0]*=Pf,n[1]*=Pf,n},n}function ks(t,n,e,r,i,a){if(e){var o=Rf(n),u=Hf(n),f=r*e;null==i?(i=n+r*Df,a=n-f/2):(i=Ts(o,i),a=Ts(o,a),(r>0?ia)&&(i+=r*Df));for(var c,s=i;r>0?s>a:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Ss(t,n){return jf(t[0]-n[0])=0;--a)i.point((s=c[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Ds(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,T=k*A,E=T>Sf,S=y*w;if(f.add(zf(S*k*Hf(T),g*M+S*Rf(T))),o+=E?A+k*Df:A,E^p>=e^_>=e){var C=Cc(Ec(d),Ec(b));Pc(C);var N=Cc(a,C);Pc(N);var D=(E^A>=0?-1:1)*Wf(N[2]);(r>D||r===D&&(C[0]||C[1]))&&(u+=E^A>=0?1:-1)}}return(o<-1e-6||o0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&f&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Bs))}return h}}function Bs(t){return t.length>1}function zs(t,n){return((t=t.x)[0]<0?t[1]-Cf-Tf:Cf-t[1])-((n=n.x)[0]<0?n[1]-Cf-Tf:Cf-n[1])}bs.invert=bs;var Rs=js(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(a,o){var u=a>0?Sf:-Sf,f=jf(a-e);jf(f-Sf)0?Cf:-Cf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),n=0):i!==u&&f>=Sf&&(jf(e-i)Tf?Bf((Hf(n)*(a=Rf(r))*Hf(e)-Hf(r)*(i=Rf(n))*Hf(t))/(i*a*o)):(n+r)/2}(e,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=a,r=o),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var i;if(null==t)i=e*Cf,r.point(-Sf,i),r.point(0,i),r.point(Sf,i),r.point(Sf,0),r.point(Sf,-i),r.point(0,-i),r.point(-Sf,-i),r.point(-Sf,0),r.point(-Sf,i);else if(jf(t[0]-n[0])>Tf){var a=t[0]0,i=jf(n)>Tf;function a(t,e){return Rf(t)*Rf(e)>n}function o(t,e,r){var i=[1,0,0],a=Cc(Ec(t),Ec(e)),o=Sc(a,a),u=a[0],f=o-u*u;if(!f)return!r&&t;var c=n*o/f,s=-n*u/f,l=Cc(i,a),h=Dc(i,c);Nc(h,Dc(a,s));var d=l,p=Sc(h,d),v=Sc(d,d),y=p*p-v*(Sc(h,h)-1);if(!(y<0)){var g=$f(y),m=Dc(d,(-p-g)/v);if(Nc(m,h),m=Tc(m),!r)return m;var b,_=t[0],x=e[0],w=t[1],M=e[1];x<_&&(b=_,_=x,x=b);var A=x-_,k=jf(A-Sf)0^m[1]<(jf(m[0]-_)Sf^(_<=m[0]&&m[0]<=x)){var T=Dc(d,(-p+g)/v);return Nc(T,h),[m,Tc(T)]}}}function u(n,e){var i=r?t:Sf-t,a=0;return n<-i?a|=1:n>i&&(a|=2),e<-i?a|=4:e>i&&(a|=8),a}return js(a,function(t){var n,e,f,c,s;return{lineStart:function(){c=f=!1,s=1},point:function(l,h){var d,p=[l,h],v=a(l,h),y=r?v?0:u(l,h):v?u(l+(l<0?Sf:-Sf),h):0;if(!n&&(c=f=v)&&t.lineStart(),v!==f&&(!(d=o(n,p))||Ss(n,d)||Ss(p,d))&&(p[2]=1),v!==f)s=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^v){var g;y&e||!(g=o(p,n,!0))||(s=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1],3)))}!v||n&&Ss(n,p)||t.point(p[0],p[1]),n=p,f=v,e=y},lineEnd:function(){f&&t.lineEnd(),n=null},clean:function(){return s|(c&&f)<<1}}},function(n,r,i,a){ks(a,t,e,i,n,r)},r?[0,-t]:[-Sf,t-Sf])}var Is,Ls,Us,qs,Hs=1e9,Ys=-Hs;function $s(t,n,e,r){function i(i,a){return t<=i&&i<=e&&n<=a&&a<=r}function a(i,a,u,c){var s=0,l=0;if(null==i||(s=o(i,u))!==(l=o(a,u))||f(i,a)<0^u>0)do{c.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==l);else c.point(a[0],a[1])}function o(r,i){return jf(r[0]-t)0?0:3:jf(r[0]-e)0?2:1:jf(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return f(t.x,n.x)}function f(t,n){var e=o(t,1),r=o(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){var f,c,s,l,h,d,p,v,y,g,m,b=o,_=Es(),x={point:w,lineStart:function(){x.point=M,c&&c.push(s=[]),g=!0,y=!1,p=v=NaN},lineEnd:function(){f&&(M(l,h),d&&y&&_.rejoin(),f.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,f=[],c=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=c.length;er&&(h-a)*(r-o)>(d-o)*(t-a)&&++n:d<=r&&(h-a)*(r-o)<(d-o)*(t-a)&&--n;return n}(),e=m&&n,i=(f=Vt(f)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Ns(f,u,n,a,o),o.polygonEnd()),b=o,f=c=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(a,o){var u=i(a,o);if(c&&s.push([a,o]),g)l=a,h=o,d=u,g=!1,u&&(b.lineStart(),b.point(a,o));else if(u&&y)b.point(a,o);else{var f=[p=Math.max(Ys,Math.min(Hs,p)),v=Math.max(Ys,Math.min(Hs,v))],_=[a=Math.max(Ys,Math.min(Hs,a)),o=Math.max(Ys,Math.min(Hs,o))];!function(t,n,e,r,i,a){var o,u=t[0],f=t[1],c=0,s=1,l=n[0]-u,h=n[1]-f;if(o=e-u,l||!(o>0)){if(o/=l,l<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=i-u,l||!(o<0)){if(o/=l,l<0){if(o>s)return;o>c&&(c=o)}else if(l>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=a-f,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=u+c*l,t[1]=f+c*h),s<1&&(n[0]=u+s*l,n[1]=f+s*h),!0}}}}}(f,_,t,n,e,r)?u&&(b.lineStart(),b.point(a,o),m=!1):(y||(b.lineStart(),b.point(f[0],f[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=a,v=o,y=u}return x}}var Vs={sphere:Qf,point:Qf,lineStart:function(){Vs.point=Ws,Vs.lineEnd=Gs},lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf};function Gs(){Vs.point=Vs.lineEnd=Qf}function Ws(t,n){Ls=t*=Of,Us=Hf(n*=Of),qs=Rf(n),Vs.point=Xs}function Xs(t,n){t*=Of;var e=Hf(n*=Of),r=Rf(n),i=jf(t-Ls),a=Rf(i),o=r*Hf(i),u=qs*e-Us*r*a,f=Us*e+qs*r*a;Is.add(zf($f(o*o+u*u),f)),Ls=t,Us=e,qs=r}function Qs(t){return Is=new ot,ec(t,Vs),+Is}var Zs=[null,null],Ks={type:"LineString",coordinates:Zs};function Js(t,n){return Zs[0]=t,Zs[1]=n,Qs(Ks)}var tl={Feature:function(t,n){return el(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Js(t[a],t[a-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))Tf}).map(f)).concat(Wt(Ff(a/d)*d,i,d).filter(function(t){return jf(t%v)>Tf}).map(c))}return g.lines=function(){return m().map(function(t){return{type:"LineString",coordinates:t}})},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(o).slice(1),s(e).reverse().slice(1),l(u).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),u>o&&(t=u,u=o,o=t),g.precision(y)):[[r,u],[e,o]]},g.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],a=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),a>i&&(e=a,a=i,i=e),g.precision(y)):[[n,a],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],g):[p,v]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(y=+h,f=fl(a,i,90),c=cl(n,t,y),s=fl(u,o,90),l=cl(r,e,y),g):y},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}var ll,hl,dl,pl,vl=function(t){return t},yl=new ot,gl=new ot,ml={point:Qf,lineStart:Qf,lineEnd:Qf,polygonStart:function(){ml.lineStart=bl,ml.lineEnd=wl},polygonEnd:function(){ml.lineStart=ml.lineEnd=ml.point=Qf,yl.add(jf(gl)),gl=new ot},result:function(){var t=yl/2;return yl=new ot,t}};function bl(){ml.point=_l}function _l(t,n){ml.point=xl,ll=dl=t,hl=pl=n}function xl(t,n){gl.add(pl*t-dl*n),dl=t,pl=n}function wl(){xl(ll,hl)}var Ml,Al,kl,Tl,El=ml,Sl=1/0,Cl=Sl,Nl=-Sl,Dl=Nl,Pl={point:function(t,n){tNl&&(Nl=t),nDl&&(Dl=n)},lineStart:Qf,lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf,result:function(){var t=[[Sl,Cl],[Nl,Dl]];return Nl=Dl=-(Cl=Sl=1/0),t}},Ol=0,jl=0,Bl=0,zl=0,Rl=0,Fl=0,Il=0,Ll=0,Ul=0,ql={point:Hl,lineStart:Yl,lineEnd:Gl,polygonStart:function(){ql.lineStart=Wl,ql.lineEnd=Xl},polygonEnd:function(){ql.point=Hl,ql.lineStart=Yl,ql.lineEnd=Gl},result:function(){var t=Ul?[Il/Ul,Ll/Ul]:Fl?[zl/Fl,Rl/Fl]:Bl?[Ol/Bl,jl/Bl]:[NaN,NaN];return Ol=jl=Bl=zl=Rl=Fl=Il=Ll=Ul=0,t}};function Hl(t,n){Ol+=t,jl+=n,++Bl}function Yl(){ql.point=$l}function $l(t,n){ql.point=Vl,Hl(kl=t,Tl=n)}function Vl(t,n){var e=t-kl,r=n-Tl,i=$f(e*e+r*r);zl+=i*(kl+t)/2,Rl+=i*(Tl+n)/2,Fl+=i,Hl(kl=t,Tl=n)}function Gl(){ql.point=Hl}function Wl(){ql.point=Ql}function Xl(){Zl(Ml,Al)}function Ql(t,n){ql.point=Zl,Hl(Ml=kl=t,Al=Tl=n)}function Zl(t,n){var e=t-kl,r=n-Tl,i=$f(e*e+r*r);zl+=i*(kl+t)/2,Rl+=i*(Tl+n)/2,Fl+=i,Il+=(i=Tl*t-kl*n)*(kl+t),Ll+=i*(Tl+n),Ul+=3*i,Hl(kl=t,Tl=n)}var Kl=ql;function Jl(t){this._context=t}Jl.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Df)}},result:Qf};var th,nh,eh,rh,ih,ah=new ot,oh={point:Qf,lineStart:function(){oh.point=uh},lineEnd:function(){th&&fh(nh,eh),oh.point=Qf},polygonStart:function(){th=!0},polygonEnd:function(){th=null},result:function(){var t=+ah;return ah=new ot,t}};function uh(t,n){oh.point=fh,nh=rh=t,eh=ih=n}function fh(t,n){rh-=t,ih-=n,ah.add($f(rh*rh+ih*ih)),rh=t,ih=n}var ch,sh,lh,hh,dh=oh,ph=function(){function t(n){R(this,t),this._append=null==n?vh:function(t){var n=Math.floor(t);if(!(n>=0))throw new RangeError("invalid digits: ".concat(t));if(n>15)return vh;if(n!==ch){var e=Math.pow(10,n);ch=n,sh=function(t){var n=1;this._+=t[0];for(var r=t.length;n4*n&&v--){var _=o+h,x=u+d,w=f+p,M=$f(_*_+x*x+w*w),A=Wf(w/=M),k=jf(jf(w)-1)n||jf((g*C+m*N)/b-.5)>.3||o*h+u*d+f*p2?t[2]%360*Of:0,C()):[y*Pf,g*Pf,m*Pf]},E.angle=function(t){return arguments.length?(b=t%360*Of,C()):b*Pf},E.reflectX=function(t){return arguments.length?(_=t?-1:1,C()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,C()):x<0},E.precision=function(t){return arguments.length?(o=Ah(u,T=t*t),N()):$f(T)},E.fitExtent=function(t,n){return bh(E,t,n)},E.fitSize=function(t,n){return _h(E,t,n)},E.fitWidth=function(t,n){return xh(E,t,n)},E.fitHeight=function(t,n){return wh(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&S,C()}}function Ch(t){var n=0,e=Sf/3,r=Sh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Of,e=t[1]*Of):[n*Pf,e*Pf]},i}function Nh(t,n){var e=Hf(t),r=(e+Hf(n))/2;if(jf(r)0?n<-Cf+Tf&&(n=-Cf+Tf):n>Cf-Tf&&(n=Cf-Tf);var e=i/qf(Ih(n),r);return[e*Hf(r*t),i-e*Rf(r*t)]}return a.invert=function(t,n){var e=i-n,a=Yf(r)*$f(t*t+e*e),o=zf(t,jf(e))*Yf(e);return e*r<0&&(o-=Sf*Yf(t)*Yf(e)),[o/r,2*Bf(qf(i/a,1/r))-Cf]},a}function Uh(t,n){return[t,n]}function qh(t,n){var e=Rf(t),r=t===n?Hf(t):(e-Rf(n))/(n-t),i=e/r+t;if(jf(r)=0;)n+=e[r].value;else n=1;t.value=n}function id(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=od)):void 0===n&&(n=ad);for(var e,r,i,a,o,u=new cd(t),f=[u];e=f.pop();)if((i=n(e.data))&&(o=(i=Array.from(i)).length))for(e.children=i,a=o-1;a>=0;--a)f.push(r=i[a]=new cd(i[a])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(fd)}function ad(t){return t.children}function od(t){return Array.isArray(t)?t[1]:null}function ud(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function fd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function cd(t){this.data=t,this.depth=this.height=0,this.parent=null}function sd(t){return null==t?null:ld(t)}function ld(t){if("function"!=typeof t)throw new Error;return t}function hd(){return 0}function dd(t){return function(){return t}}Wh.invert=function(t,n){for(var e,r=n,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=e=(r*(Hh+Yh*i+a*($h+Vh*i))-n)/(Hh+3*Yh*i+a*(7*$h+9*Vh*i)))*r)*i*i,!(jf(e)Tf&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Zh.invert=jh(Wf),Kh.invert=jh(function(t){return 2*Bf(t)}),Jh.invert=function(t,n){return[-n,2*Bf(If(t))-Cf]},cd.prototype=id.prototype=A({constructor:cd,count:function(){return this.eachAfter(rd)},each:function(t,n){var e,r=-1,i=q(this);try{for(i.s();!(e=i.n()).done;){var a=e.value;t.call(n,a,++r,this)}}catch(t){i.e(t)}finally{i.f()}return this},eachAfter:function(t,n){for(var e,r,i,a=this,o=[a],u=[],f=-1;a=o.pop();)if(u.push(a),e=a.children)for(r=0,i=e.length;r=0;--r)a.push(e[r]);return this},find:function(t,n){var e,r=-1,i=q(this);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(t.call(n,a,++r,this))return a}}catch(t){i.e(t)}finally{i.f()}},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return id(this).eachBefore(ud)}},Symbol.iterator,U().mark(function t(){var n,e,r,i,a,o;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=[a=this];case 1:n=o.reverse(),o=[];case 2:if(!(a=n.pop())){t.next=9;break}return t.next=5,a;case 5:if(!(e=a.children)){t.next=7;break}for(r=0,i=e.length;r0&&e*e>r*r+i*i}function _d(t,n){for(var e=0;e1e-6?(E+Math.sqrt(E*E-4*T*S))/(2*T):S/E);return{x:r+w+M*C,y:i+A+k*C,r:C}}function Ad(t,n,e){var r,i,a,o,u=t.x-n.x,f=t.y-n.y,c=u*u+f*f;c?(i=n.r+e.r,i*=i,o=t.r+e.r,i>(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),e.x=t.x-r*u-a*f,e.y=t.y-r*f+a*u):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),e.x=n.x+r*u-a*f,e.y=n.y+r*f+a*u)):(e.x=n.x+e.r,e.y=n.y)}function kd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Td(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,a=(n.y*e.r+e.y*n.r)/r;return i*i+a*a}function Ed(t){this._=t,this.next=null,this.previous=null}function Sd(t,n){if(!(a=(t=function(t){return"object"==$(t)&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,r,i,a,o,u,f,c,s,l,h;if((e=t[0]).x=0,e.y=0,!(a>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(a>2))return e.r+r.r;Ad(r,e,i=t[2]),e=new Ed(e),r=new Ed(r),i=new Ed(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(f=3;f1&&!Ud(t,n););return t.slice(0,n)}function Ud(t,n){if("/"===t[n]){for(var e=0;n>0&&"\\"===t[--n];)++e;if(0==(1&e))return!0}return!1}function qd(t,n){return t.parent===n.parent?1:2}function Hd(t){var n=t.children;return n?n[0]:t.t}function Yd(t){var n=t.children;return n?n[n.length-1]:t.t}function $d(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Vd(t,n,e){return t.a.parent===n.parent?t.a:e}function Gd(t,n){this._=t,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=n}function Wd(t,n,e,r,i){for(var a,o=t.children,u=-1,f=o.length,c=t.value&&(i-e)/t.value;++uh&&(h=u),y=s*s*v,(d=Math.max(h/y,y/l))>p){s-=u;break}p=d}g.push(o={value:s,dice:f1?n:1)},e}(Xd),Kd=function t(n){function e(t,e,r,i,a){if((o=t._squarify)&&o.ratio===n)for(var o,u,f,c,s,l=-1,h=o.length,d=t.value;++l1?n:1)},e}(Xd);function Jd(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function tp(t,n){return t[0]-n[0]||t[1]-n[1]}function np(t){var n,e=t.length,r=[0,1],i=2;for(n=2;n1&&Jd(t[r[i-2]],t[r[i-1]],t[n])<=0;)--i;r[i++]=n}return r.slice(0,i)}var ep=Math.random,rp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(ep),ip=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(ep),ap=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var a;if(null!=r)a=r,r=null;else do{r=2*n()-1,a=2*n()-1,i=r*r+a*a}while(!i||i>1);return t+e*a*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(ep),op=function t(n){var e=ap.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(ep),up=function t(n){function e(t){return(t=+t)<=0?function(){return 0}:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(ep),fp=function t(n){var e=up.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(ep),cp=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(ep),sp=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(ep),lp=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(ep),hp=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?function(){return 1/0}:1===t?function(){return 1}:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(ep),dp=function t(n){var e=ap.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return function(){return 0};if(r=null==r?1:+r,1===t)return function(){return-Math.log1p(-n())*r};var i=(t<1?t+1:t)-1/3,a=1/(3*Math.sqrt(i)),o=t<1?function(){return Math.pow(n(),1/t)}:function(){return 1};return function(){do{do{var t=e(),u=1+a*t}while(u<=0);u*=u*u;var f=1-n()}while(f>=1-.0331*t*t*t*t&&Math.log(f)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*o()*r}}return r.source=t,r}(ep),pp=function t(n){var e=dp.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(ep),vp=function t(n){var e=hp.source(n),r=pp.source(n);function i(t,n){return t=+t,(n=+n)>=1?function(){return t}:n<=0?function(){return 0}:function(){for(var i=0,a=t,o=n;a*o>16&&a*(1-o)>16;){var u=Math.floor((a+1)*o),f=r(u,a-u+1)();f<=o?(i+=u,a-=u,o=(o-f)/(1-f)):(a=u-1,o/=f)}for(var c=o<.5,s=e(c?o:1-o),l=s(),h=0;l<=a;++h)l+=s();return i+(c?h:a-h)}}return i.source=t,i}(ep),yp=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=function(t){return-Math.log(t)}:(t=1/t,i=function(n){return Math.pow(n,t)}),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(ep),gp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(ep),mp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(ep),bp=function t(n){var e=dp.source(n),r=vp.source(n);function i(t){return function(){for(var i=0,a=t;a>16;){var o=Math.floor(.875*a),u=e(o)();if(u>a)return i+r(o-1,a/u)();i+=o,a-=u}for(var f=-Math.log1p(-n()),c=0;f<=a;++c)f-=Math.log1p(-n());return i+c}}return i.source=t,i}(ep),_p=1/4294967296;function xp(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function wp(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}var Mp=Symbol("implicit");function Ap(){var t=new ut,n=[],e=[],r=Mp;function i(i){var a=t.get(i);if(void 0===a){if(r!==Mp)return r;t.set(i,a=n.push(i)-1)}return e[a%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new ut;var r,a=q(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.has(o)||t.set(o,n.push(o)-1)}}catch(t){a.e(t)}finally{a.f()}return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ap(n,e).unknown(r)},xp.apply(i,arguments),i}function kp(){var t,n,e=Ap().unknown(void 0),r=e.domain,i=e.range,a=0,o=1,u=!1,f=0,c=0,s=.5;function l(){var e=r().length,l=on&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(o[0],o[t-1])),r=t>2?Dp:Np,i=a=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(o.map(t),u,f)))(t(c(n)))}return l.invert=function(e){return c(n((a||(a=r(u,o.map(t),$r)))(e)))},l.domain=function(t){return arguments.length?(o=Array.from(t,Tp),s()):o.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),f=Zr,s()},l.clamp=function(t){return arguments.length?(c=!!t||Sp,s()):c!==Sp},l.interpolate=function(t){return arguments.length?(f=t,s()):f},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function jp(){return Op()(Sp,Sp)}function Bp(n,e,r,i){var a,o=Pt(n,e,r);switch((i=df(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(e));return null!=i.precision||isNaN(a=Af(o,u))||(i.precision=a),t.formatPrefix(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(a=kf(o,Math.max(Math.abs(n),Math.abs(e))))||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Mf(o))||(i.precision=a-2*("%"===i.type))}return t.format(i)}function zp(t){var n=t.domain;return t.ticks=function(t){var e=n();return Nt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Bp(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,a=n(),o=0,u=a.length-1,f=a[o],c=a[u],s=10;for(c0;){if((i=Dt(f,c,e))===r)return a[o]=f,a[u]=c,n(a);if(i>0)f=Math.floor(f/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;f=Math.ceil(f*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Rp(t,n){var e,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;h<=d;++h)for(s=1;sf)break;v.push(l)}}else for(;h<=d;++h)for(s=o-1;s>=1;--s)if(!((l=h>0?s/r(-h):s*r(h))f)break;v.push(l)}2*v.length0))return u;do{u.push(o=new Date(+e)),n(e,a),t(e)}while(o=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return tv.setTime(+n),nv.setTime(+r),t(tv),t(nv),Math.floor(e(tv,nv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var rv=ev(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});rv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ev(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):rv:null};var iv=rv.range,av=1e3,ov=6e4,uv=36e5,fv=864e5,cv=6048e5,sv=2592e6,lv=31536e6,hv=ev(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*av)},function(t,n){return(n-t)/av},function(t){return t.getUTCSeconds()}),dv=hv.range,pv=ev(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*av)},function(t,n){t.setTime(+t+n*ov)},function(t,n){return(n-t)/ov},function(t){return t.getMinutes()}),vv=pv.range,yv=ev(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*ov)},function(t,n){return(n-t)/ov},function(t){return t.getUTCMinutes()}),gv=yv.range,mv=ev(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*av-t.getMinutes()*ov)},function(t,n){t.setTime(+t+n*uv)},function(t,n){return(n-t)/uv},function(t){return t.getHours()}),bv=mv.range,_v=ev(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*uv)},function(t,n){return(n-t)/uv},function(t){return t.getUTCHours()}),xv=_v.range,wv=ev(function(t){return t.setHours(0,0,0,0)},function(t,n){return t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ov)/fv},function(t){return t.getDate()-1}),Mv=wv.range,Av=ev(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/fv},function(t){return t.getUTCDate()-1}),kv=Av.range,Tv=ev(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/fv},function(t){return Math.floor(t/fv)}),Ev=Tv.range;function Sv(t){return ev(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ov)/cv})}var Cv=Sv(0),Nv=Sv(1),Dv=Sv(2),Pv=Sv(3),Ov=Sv(4),jv=Sv(5),Bv=Sv(6),zv=Cv.range,Rv=Nv.range,Fv=Dv.range,Iv=Pv.range,Lv=Ov.range,Uv=jv.range,qv=Bv.range;function Hv(t){return ev(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/cv})}var Yv=Hv(0),$v=Hv(1),Vv=Hv(2),Gv=Hv(3),Wv=Hv(4),Xv=Hv(5),Qv=Hv(6),Zv=Yv.range,Kv=$v.range,Jv=Vv.range,ty=Gv.range,ny=Wv.range,ey=Xv.range,ry=Qv.range,iy=ev(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),ay=iy.range,oy=ev(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),uy=oy.range,fy=ev(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});fy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ev(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var cy=fy.range,sy=ev(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});sy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ev(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var ly=sy.range;function hy(t,n,e,r,i,a){var o=[[hv,1,av],[hv,5,5e3],[hv,15,15e3],[hv,30,3e4],[a,1,ov],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,uv],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,fv],[r,2,1728e5],[e,1,cv],[n,1,sv],[n,3,7776e6],[t,1,lv]];function u(n,e,r){var i=Math.abs(e-n)/r,a=w(function(t){return T(t,3)[2]}).right(o,i);if(a===o.length)return t.every(Pt(n/lv,e/lv,r));if(0===a)return rv.every(Math.max(Pt(n,e,r),1));var u=T(o[i/o[a-1][2]=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ig,s:Lg,S:og,u:ug,U:fg,V:sg,w:lg,W:hg,x:null,X:null,y:dg,Y:vg,Z:gg,"%":Fg},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:mg,e:mg,f:Mg,g:jg,G:zg,H:bg,I:_g,j:xg,L:wg,m:Ag,M:kg,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ig,s:Lg,S:Tg,u:Eg,U:Sg,V:Ng,w:Dg,W:Pg,x:null,X:null,y:Og,Y:Bg,Z:Rg,"%":Fg},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:qy,e:qy,f:Wy,g:Fy,G:Ry,H:Yy,I:Yy,j:Hy,L:Gy,m:Uy,M:$y,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:Ly,Q:Qy,s:Zy,S:Vy,u:Oy,U:jy,V:By,w:Py,W:zy,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:Fy,Y:Ry,Z:Iy,"%":Xy};function w(t,n){return function(e){var r,i,a,o=[],u=-1,f=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=_y(xy(a.y,0,1))).getUTCDay(),r=i>4||0===i?$v.ceil(r):$v(r),r=Av.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=by(xy(a.y,0,1))).getDay(),r=i>4||0===i?Nv.ceil(r):Nv(r),r=wv.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?_y(xy(a.y,0,1)).getUTCDay():by(xy(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,_y(a)):by(a)}}function A(t,n,e,r){for(var i,a,o=0,u=n.length,f=e.length;o=f)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(a=x[i in Ay?n.charAt(o++):i])||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var My,Ay={"-":"",_:" ",0:"0"},ky=/^\s*\d+/,Ty=/^%/,Ey=/[\\^$*+?|[\]().{}]/g;function Sy(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),e+r[0].length):-1}function Iy(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ly(t,n,e){var r=ky.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Uy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function qy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Hy(t,n,e){var r=ky.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Yy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function $y(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Vy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Gy(t,n,e){var r=ky.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Wy(t,n,e){var r=ky.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Xy(t,n,e){var r=Ty.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Qy(t,n,e){var r=ky.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Zy(t,n,e){var r=ky.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ky(t,n){return Sy(t.getDate(),n,2)}function Jy(t,n){return Sy(t.getHours(),n,2)}function tg(t,n){return Sy(t.getHours()%12||12,n,2)}function ng(t,n){return Sy(1+wv.count(fy(t),t),n,3)}function eg(t,n){return Sy(t.getMilliseconds(),n,3)}function rg(t,n){return eg(t,n)+"000"}function ig(t,n){return Sy(t.getMonth()+1,n,2)}function ag(t,n){return Sy(t.getMinutes(),n,2)}function og(t,n){return Sy(t.getSeconds(),n,2)}function ug(t){var n=t.getDay();return 0===n?7:n}function fg(t,n){return Sy(Cv.count(fy(t)-1,t),n,2)}function cg(t){var n=t.getDay();return n>=4||0===n?Ov(t):Ov.ceil(t)}function sg(t,n){return t=cg(t),Sy(Ov.count(fy(t),t)+(4===fy(t).getDay()),n,2)}function lg(t){return t.getDay()}function hg(t,n){return Sy(Nv.count(fy(t)-1,t),n,2)}function dg(t,n){return Sy(t.getFullYear()%100,n,2)}function pg(t,n){return Sy((t=cg(t)).getFullYear()%100,n,2)}function vg(t,n){return Sy(t.getFullYear()%1e4,n,4)}function yg(t,n){var e=t.getDay();return Sy((t=e>=4||0===e?Ov(t):Ov.ceil(t)).getFullYear()%1e4,n,4)}function gg(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Sy(n/60|0,"0",2)+Sy(n%60,"0",2)}function mg(t,n){return Sy(t.getUTCDate(),n,2)}function bg(t,n){return Sy(t.getUTCHours(),n,2)}function _g(t,n){return Sy(t.getUTCHours()%12||12,n,2)}function xg(t,n){return Sy(1+Av.count(sy(t),t),n,3)}function wg(t,n){return Sy(t.getUTCMilliseconds(),n,3)}function Mg(t,n){return wg(t,n)+"000"}function Ag(t,n){return Sy(t.getUTCMonth()+1,n,2)}function kg(t,n){return Sy(t.getUTCMinutes(),n,2)}function Tg(t,n){return Sy(t.getUTCSeconds(),n,2)}function Eg(t){var n=t.getUTCDay();return 0===n?7:n}function Sg(t,n){return Sy(Yv.count(sy(t)-1,t),n,2)}function Cg(t){var n=t.getUTCDay();return n>=4||0===n?Wv(t):Wv.ceil(t)}function Ng(t,n){return t=Cg(t),Sy(Wv.count(sy(t),t)+(4===sy(t).getUTCDay()),n,2)}function Dg(t){return t.getUTCDay()}function Pg(t,n){return Sy($v.count(sy(t)-1,t),n,2)}function Og(t,n){return Sy(t.getUTCFullYear()%100,n,2)}function jg(t,n){return Sy((t=Cg(t)).getUTCFullYear()%100,n,2)}function Bg(t,n){return Sy(t.getUTCFullYear()%1e4,n,4)}function zg(t,n){var e=t.getUTCDay();return Sy((t=e>=4||0===e?Wv(t):Wv.ceil(t)).getUTCFullYear()%1e4,n,4)}function Rg(){return"+0000"}function Fg(){return"%"}function Ig(t){return+t}function Lg(t){return Math.floor(+t/1e3)}function Ug(n){return My=wy(n),t.timeFormat=My.format,t.timeParse=My.parse,t.utcFormat=My.utcFormat,t.utcParse=My.utcParse,My}t.timeFormat=void 0,t.timeParse=void 0,t.utcFormat=void 0,t.utcParse=void 0,Ug({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qg="%Y-%m-%dT%H:%M:%S.%LZ",Hg=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(qg),Yg=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse(qg);function $g(t){return new Date(t)}function Vg(t){return t instanceof Date?+t:+new Date(+t)}function Gg(t,n,e,r,i,a,o,u,f,c){var s=jp(),l=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),v=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),m=c("%b %d"),b=c("%B"),_=c("%Y");function x(t){return(f(t)=1?Ob:t<=-1?-Ob:Math.asin(t)}function zb(t){var n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{var r=Math.floor(e);if(!(r>=0))throw new RangeError("invalid digits: ".concat(e));n=r}return t},function(){return new so(n)}}function Rb(t){return t.innerRadius}function Fb(t){return t.outerRadius}function Ib(t){return t.startAngle}function Lb(t){return t.endAngle}function Ub(t){return t&&t.padAngle}function qb(t,n,e,r,i,a,o){var u=t-e,f=n-r,c=(o?a:-a)/Nb(u*u+f*f),s=c*f,l=-c*u,h=t+s,d=n+l,p=e+s,v=r+l,y=(h+p)/2,g=(d+v)/2,m=p-h,b=v-d,_=m*m+b*b,x=i-a,w=h*v-p*d,M=(b<0?-1:1)*Nb(Eb(0,x*x*_-w*w)),A=(w*b-m*M)/_,k=(-w*m-b*M)/_,T=(w*b+m*M)/_,E=(-w*m+b*M)/_,S=A-y,C=k-g,N=T-y,D=E-g;return S*S+C*C>N*N+D*D&&(A=T,k=E),{cx:A,cy:k,x01:-s,y01:-l,x11:A*(i/x-1),y11:k*(i/x-1)}}var Hb=Array.prototype.slice;function Yb(t){return"object"==$(t)&&"length"in t?t:Array.from(t)}function $b(t){this._context=t}function Vb(t){return new $b(t)}function Gb(t){return t[0]}function Wb(t){return t[1]}function Xb(t,n){var e=Mb(!0),r=null,i=Vb,a=null,o=zb(u);function u(u){var f,c,s,l=(u=Yb(u)).length,h=!1;for(null==r&&(a=i(s=o())),f=0;f<=l;++f)!(f=l;--h)u.point(g[h],m[h]);u.lineEnd(),u.areaEnd()}y&&(g[s]=+t(d,s,c),m[s]=+n(d,s,c),u.point(r?+r(d,s,c):g[s],e?+e(d,s,c):m[s]))}if(p)return u=null,p+""||null}function s(){return Xb().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Gb:Mb(+t),n="function"==typeof n?n:Mb(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Wb:Mb(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Mb(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Mb(+t),c):e},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(e)},c.lineX1=function(){return s().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Mb(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),c):a},c}function Zb(t,n){return nt?1:n>=t?0:NaN}function Kb(t){return t}$b.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Jb=n_(Vb);function t_(t){this._curve=t}function n_(t){function n(n){return new t_(t(n))}return n._curve=t,n}function e_(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(n_(t)):n()._curve},t}function r_(){return e_(Xb().curve(Jb))}function i_(){var t=Qb().curve(Jb),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return e_(e())},delete t.lineX0,t.lineEndAngle=function(){return e_(r())},delete t.lineX1,t.lineInnerRadius=function(){return e_(i())},delete t.lineY0,t.lineOuterRadius=function(){return e_(a())},delete t.lineY1,t.curve=function(t){return arguments.length?n(n_(t)):n()._curve},t}function a_(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}t_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var o_=function(){function t(n,e){R(this,t),this._context=n,this._x=e}return I(t,[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}]),t}(),u_=function(){function t(n){R(this,t),this._context=n}return I(t,[{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){}},{key:"point",value:function(t,n){if(t=+t,n=+n,0===this._point)this._point=1;else{var e,r,i=a_(this._x0,this._y0),a=a_(this._x0,this._y0=(this._y0+n)/2),o=a_(t,this._y0),u=a_(t,n);(e=this._context).moveTo.apply(e,k(i)),(r=this._context).bezierCurveTo.apply(r,k(a).concat(k(o),k(u)))}this._x0=t,this._y0=n}}]),t}();function f_(t){return new o_(t,!0)}function c_(t){return new o_(t,!1)}function s_(t){return new u_(t)}function l_(t){return t.source}function h_(t){return t.target}function d_(t){var n=l_,e=h_,r=Gb,i=Wb,a=null,o=null,u=zb(f);function f(){var f,c=Hb.call(arguments),s=n.apply(this,c),l=e.apply(this,c);if(null==a&&(o=t(f=u())),o.lineStart(),c[0]=s,o.point(+r.apply(this,c),+i.apply(this,c)),c[0]=l,o.point(+r.apply(this,c),+i.apply(this,c)),o.lineEnd(),f)return o=null,f+""||null}return f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.x=function(t){return arguments.length?(r="function"==typeof t?t:Mb(+t),f):r},f.y=function(t){return arguments.length?(i="function"==typeof t?t:Mb(+t),f):i},f.context=function(n){return arguments.length?(null==n?a=o=null:o=t(a=n),f):a},f}var p_=Nb(3),v_={draw:function(t,n){var e=.59436*Nb(n+Sb(n/28,.75)),r=e/2,i=r*p_;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},y_={draw:function(t,n){var e=Nb(n/Pb);t.moveTo(e,0),t.arc(0,0,e,0,jb)}},g_={draw:function(t,n){var e=Nb(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},m_=Nb(1/3),b_=2*m_,__={draw:function(t,n){var e=Nb(n/b_),r=e*m_;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},x_={draw:function(t,n){var e=.62625*Nb(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},w_={draw:function(t,n){var e=.87559*Nb(n-Sb(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},M_={draw:function(t,n){var e=Nb(n),r=-e/2;t.rect(r,r,e,e)}},A_={draw:function(t,n){var e=.4431*Nb(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},k_=Cb(Pb/10)/Cb(7*Pb/10),T_=Cb(jb/10)*k_,E_=-Tb(jb/10)*k_,S_={draw:function(t,n){var e=Nb(.8908130915292852*n),r=T_*e,i=E_*e;t.moveTo(0,-e),t.lineTo(r,i);for(var a=1;a<5;++a){var o=jb*a/5,u=Tb(o),f=Cb(o);t.lineTo(f*e,-u*e),t.lineTo(u*r-f*i,f*r+u*i)}t.closePath()}},C_=Nb(3),N_={draw:function(t,n){var e=-Nb(n/(3*C_));t.moveTo(0,2*e),t.lineTo(-C_*e,-e),t.lineTo(C_*e,-e),t.closePath()}},D_=Nb(3),P_={draw:function(t,n){var e=.6824*Nb(n),r=e/2,i=e*D_/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},O_=-.5,j_=Nb(3)/2,B_=1/Nb(12),z_=3*(B_/2+1),R_={draw:function(t,n){var e=Nb(n/z_),r=e/2,i=e*B_,a=r,o=e*B_+e,u=-a,f=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,f),t.lineTo(O_*r-j_*i,j_*r+O_*i),t.lineTo(O_*a-j_*o,j_*a+O_*o),t.lineTo(O_*u-j_*f,j_*u+O_*f),t.lineTo(O_*r+j_*i,O_*i-j_*r),t.lineTo(O_*a+j_*o,O_*o-j_*a),t.lineTo(O_*u+j_*f,O_*f-j_*u),t.closePath()}},F_={draw:function(t,n){var e=.6189*Nb(n-Sb(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},I_=[y_,g_,__,M_,S_,N_,R_],L_=[y_,w_,F_,P_,v_,A_,x_];function U_(){}function q_(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function H_(t){this._context=t}function Y_(t){this._context=t}function $_(t){this._context=t}function V_(t,n){this._basis=new H_(t),this._beta=n}H_.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:q_(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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Y_.prototype={areaStart:U_,areaEnd:U_,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},$_.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},V_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],a=n[0],o=t[e]-i,u=n[e]-a,f=-1;++f<=e;)r=f/e,this._basis.point(this._beta*t[f]+(1-this._beta)*(i+r*o),this._beta*n[f]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var G_=function t(n){function e(t){return 1===n?new H_(t):new V_(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function W_(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function X_(t,n){this._context=t,this._k=(1-n)/6}X_.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:W_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Q_=function t(n){function e(t){return new X_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Z_(t,n){this._context=t,this._k=(1-n)/6}Z_.prototype={areaStart:U_,areaEnd:U_,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var K_=function t(n){function e(t){return new Z_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function J_(t,n){this._context=t,this._k=(1-n)/6}J_.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(t,n){switch(t=+t,n=+n,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:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var tx=function t(n){function e(t){return new J_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function nx(t,n,e){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Db){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>Db){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-n*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function ex(t,n){this._context=t,this._alpha=n}ex.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var rx=function t(n){function e(t){return n?new ex(t,n):new X_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ix(t,n){this._context=t,this._alpha=n}ix.prototype={areaStart:U_,areaEnd:U_,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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ax=function t(n){function e(t){return n?new ix(t,n):new Z_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ox(t,n){this._context=t,this._alpha=n}ox.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ux=function t(n){function e(t){return n?new ox(t,n):new J_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fx(t){this._context=t}function cx(t){return t<0?-1:1}function sx(t,n,e){var r=t._x1-t._x0,i=n-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(cx(a)+cx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function lx(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function hx(t,n,e){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*n,a-u,o-u*e,a,o)}function dx(t){this._context=t}function px(t){this._context=new vx(t)}function vx(t){this._context=t}function yx(t){this._context=t}function gx(t){var n,e,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(o[n]-i[n+1])/a[n];for(a[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,a=1,o=t[n[0]],u=o.length;a=0;)e[n]=n;return e}function xx(t,n){return t[n]}function wx(t){var n=[];return n.key=t,n}function Mx(t){var n=t.map(Ax);return _x(t).sort(function(t,e){return n[t]-n[e]})}function Ax(t){for(var n,e=-1,r=0,i=t.length,a=-1/0;++ea&&(a=n,r=e);return r}function kx(t){var n=t.map(Tx);return _x(t).sort(function(t,e){return n[t]-n[e]})}function Tx(t){for(var n,e=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ex=function(t){return function(){return t}};function Sx(t,n){var e=n.sourceEvent,r=n.target,i=n.transform,a=n.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Cx(t,n,e){this.k=t,this.x=n,this.y=e}Cx.prototype={constructor:Cx,scale:function(t){return 1===t?this:new Cx(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Cx(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Nx=new Cx(1,0,0);function Dx(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Nx;return t.__zoom}function Px(t){t.stopImmediatePropagation()}function Ox(t){t.preventDefault(),t.stopImmediatePropagation()}function jx(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Bx(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function zx(){return this.__zoom||Nx}function Rx(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Fx(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ix(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],a=t.invertY(n[0][1])-e[0][1],o=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}Dx.prototype=Cx.prototype,t.Adder=ot,t.Delaunay=fu,t.FormatSpecifier=pf,t.InternMap=ut,t.InternSet=ft,t.Node=cd,t.Path=so,t.Voronoi=eu,t.ZoomTransform=Cx,t.active=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Wi([[t]],wa,n,+r);return null},t.arc=function(){var t=Rb,n=Fb,e=Mb(0),r=null,i=Ib,a=Lb,o=Ub,u=null,f=zb(c);function c(){var c,s,l=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-Ob,p=a.apply(this,arguments)-Ob,v=Ab(p-d),y=p>d;if(u||(u=c=f()),hDb)if(v>jb-Db)u.moveTo(h*Tb(d),h*Cb(d)),u.arc(0,0,h,d,p,!y),l>Db&&(u.moveTo(l*Tb(p),l*Cb(p)),u.arc(0,0,l,p,d,y));else{var g,m,b=d,_=p,x=d,w=p,M=v,A=v,k=o.apply(this,arguments)/2,T=k>Db&&(r?+r.apply(this,arguments):Nb(l*l+h*h)),E=Sb(Ab(h-l)/2,+e.apply(this,arguments)),S=E,C=E;if(T>Db){var N=Bb(T/l*Cb(k)),D=Bb(T/h*Cb(k));(M-=2*N)>Db?(x+=N*=y?1:-1,w-=N):(M=0,x=w=(d+p)/2),(A-=2*D)>Db?(b+=D*=y?1:-1,_-=D):(A=0,b=_=(d+p)/2)}var P=h*Tb(b),O=h*Cb(b),j=l*Tb(w),B=l*Cb(w);if(E>Db){var z,R=h*Tb(_),F=h*Cb(_),I=l*Tb(x),L=l*Cb(x);if(v1?0:t<-1?Pb:Math.acos(t)}((U*H+q*Y)/(Nb(U*U+q*q)*Nb(H*H+Y*Y)))/2),V=Nb(z[0]*z[0]+z[1]*z[1]);S=Sb(E,(l-V)/($-1)),C=Sb(E,(h-V)/($+1))}else S=C=0}A>Db?C>Db?(g=qb(I,L,P,O,h,C,y),m=qb(R,F,j,B,h,C,y),u.moveTo(g.cx+g.x01,g.cy+g.y01),CDb&&M>Db?S>Db?(g=qb(j,B,R,F,l,-S,y),m=qb(P,O,I,L,l,-S,y),u.lineTo(g.cx+g.x01,g.cy+g.y01),S=0))throw new RangeError("invalid r");var e=t.length;if(!((e=Math.floor(e))>=0))throw new RangeError("invalid length");if(!e||!n)return t;var r=K(n),i=t.slice();return r(t,i,0,e,1),r(i,t,0,e,1),r(t,i,0,e,1),t},t.blur2=G,t.blurImage=W,t.brush=function(){return Wa(Ra)},t.brushSelection=function(t){var n=t.__brush;return n?n.dim.output(n.selection):null},t.brushX=function(){return Wa(Ba)},t.brushY=function(){return Wa(za)},t.buffer=function(t,n){return fetch(t,n).then(Ou)},t.chord=function(){return io(!1,!1)},t.chordDirected=function(){return io(!0,!1)},t.chordTranspose=function(){return io(!1,!0)},t.cluster=function(){var t=td,n=1,e=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(nd,0)/t.length}(e),n.y=1+e.reduce(ed,0)):(n.x=a?o+=t(n,a):0,n.y=0,a=n)});var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),f=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),c=u.x-t(u,f)/2,s=f.x+t(f,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-c)/(s-c)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.color=Ie,t.contourDensity=function(){var t=Po,n=Oo,e=jo,r=960,i=500,a=20,o=2,u=3*a,f=r+2*u>>o,c=i+2*u>>o,s=ko(20);function l(r){var i,s=new Float32Array(f*c),l=Math.pow(2,-o),h=-1,d=q(r);try{for(d.s();!(i=d.n()).done;){var p=i.value,v=(t(p,++h,r)+u)*l,y=(n(p,h,r)+u)*l,g=+e(p,h,r);if(v>=0&&v=0&&y>o,c=i+2*u>>o,h}return h.contours=function(t){var n=l(t),e=Do().size([f,c]),r=Math.pow(2,2*o),i=function(t){t=+t;var i=d(e.contour(n,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:function(){return zt(n)/r}}),i},h.x=function(n){return arguments.length?(t="function"==typeof n?n:ko(+n),h):t},h.y=function(t){return arguments.length?(n="function"==typeof t?t:ko(+t),h):n},h.weight=function(t){return arguments.length?(e="function"==typeof t?t:ko(+t),h):e},h.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,g()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},h.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?ko(Mo.call(t)):ko(t),h):s},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*t*t+1)-1)/2,g()},h},t.contours=Do,t.count=J,t.create=function(t){return ie(mn(t).call(document.documentElement))},t.creator=mn,t.cross=function(){for(var t=arguments.length,n=new Array(t),e=0;e1?n-1:0),r=1;rl}f.mouse("drag",r)}function v(t){ie(t.view).on("mousemove.drag mouseup.drag",null),ve(t.view,e),de(t),f.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,o=t.changedTouches,u=a.call(this,t,n),f=o.length;for(e=0;e1?n-1:0),r=1;r2?e-2:0),i=2;ic+p||as+p||of.index){var v=c-u.x-u.vx,y=s-u.y-u.vy,g=v*v+y*y;gt.r&&(t.r=t[n].r)}function f(){if(n){var r,i,a=n.length;for(e=new Array(a),r=0;r=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Ju(e))*l),0===h&&(p+=(h=Ju(e))*h),p1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,a,o,u,f,c=0,s=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,e),n):c.on(t)}}},t.forceX=function(t){var n,e,r,i=Ku(.1);function a(t){for(var i,a=0,o=n.length;a=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:o).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),u.stream(e),f.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++ers(r[0],r[1])&&(r[1]=i[1]),rs(i[0],r[1])>rs(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=0,r=a[e=a.length-1];n<=e;r=i,++n)i=a[n],(u=rs(r[1],i[0]))>o&&(o=u,fc=i[0],sc=r[1])}return gc=mc=null,fc===1/0||cc===1/0?[[NaN,NaN],[NaN,NaN]]:[[fc,cc],[sc,lc]]},t.geoCentroid=function(t){Oc=jc=Bc=zc=Rc=Fc=Ic=Lc=0,Uc=new ot,qc=new ot,Hc=new ot,ec(t,os);var n=+Uc,e=+qc,r=+Hc,i=Lf(n,e,r);return i=0))throw new RangeError("invalid digits: ".concat(t));i=e}return null===n&&(r=new ph(i)),o},o.projection(t).digits(i).context(n)},t.geoProjection=Eh,t.geoProjectionMutator=Sh,t.geoRotation=As,t.geoStereographic=function(){return Eh(Kh).scale(250).clipAngle(142)},t.geoStereographicRaw=Kh,t.geoStream=ec,t.geoTransform=function(t){return{stream:yh(t)}},t.geoTransverseMercator=function(){var t=Fh(Jh),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=Jh,t.gray=function(t,n){return new hr(t,0,0,null==n?1:n)},t.greatest=qt,t.greatestIndex=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(1===n.length)return Rt(t,n);var r,i,a=-1,o=-1,u=q(t);try{for(u.s();!(i=u.n()).done;){var f=i.value;++o,(a<0?0===n(f,f):n(f,r)>0)&&(r=f,a=o)}}catch(t){u.e(t)}finally{u.f()}return a},t.group=pt,t.groupSort=function(t,n,r){return(2!==n.length?wt(gt(t,n,r),function(t,n){var r=T(t,2),i=r[0],a=r[1],o=T(n,2),u=o[0];return e(a,o[1])||e(i,u)}):wt(pt(t,r),function(t,r){var i=T(t,2),a=i[0],o=i[1],u=T(r,2),f=u[0],c=u[1];return n(o,c)||e(a,f)})).map(function(t){return T(t,1)[0]})},t.groups=vt,t.hcl=mr,t.hierarchy=id,t.histogram=Bt,t.hsl=Ke,t.html=qu,t.image=function(t,n){return new Promise(function(e,r){var i=new Image;for(var a in n)i[a]=n[a];i.onerror=r,i.onload=function(){e(i)},i.src=t})},t.index=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return pb.h=360*t-100,pb.s=1.5-1.5*n,pb.l=.8-.9*n,pb+""},t.interpolateRdBu=_m,t.interpolateRdGy=wm,t.interpolateRdPu=Ym,t.interpolateRdYlBu=Am,t.interpolateRdYlGn=Tm,t.interpolateReds=fb,t.interpolateRgb=Rr,t.interpolateRgbBasis=Ir,t.interpolateRgbBasisClosed=Lr,t.interpolateRound=Zr,t.interpolateSinebow=function(t){var n;return t=(.5-t)*Math.PI,vb.r=255*(n=Math.sin(t))*n,vb.g=255*(n=Math.sin(t+yb))*n,vb.b=255*(n=Math.sin(t+gb))*n,vb+""},t.interpolateSpectral=Sm,t.interpolateString=Xr,t.interpolateTransformCss=ri,t.interpolateTransformSvg=ii,t.interpolateTurbo=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"},t.interpolateViridis=bb,t.interpolateWarm=hb,t.interpolateYlGn=Wm,t.interpolateYlGnBu=Vm,t.interpolateYlOrBr=Qm,t.interpolateYlOrRd=Km,t.interpolateZoom=oi,t.interrupt=qi,t.intersection=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:e,i=!1;if(1===r.length){var a,o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value,c=r(f);(i?e(c,a)<0:0===e(c,c))&&(n=f,a=c,i=!0)}}catch(t){u.e(t)}finally{u.f()}}else{var s,l=q(t);try{for(l.s();!(s=l.n()).done;){var h=s.value;(i?r(h,n)<0:0===r(h,h))&&(n=h,i=!0)}}catch(t){l.e(t)}finally{l.f()}}return n},t.leastIndex=Xt,t.line=Xb,t.lineRadial=r_,t.link=d_,t.linkHorizontal=function(){return d_(f_)},t.linkRadial=function(){var t=d_(s_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return d_(c_)},t.local=oe,t.map=function(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,function(e,r){return n(e,r,t)})},t.matcher=An,t.max=zt,t.maxIndex=Rt,t.mean=function(t,n){var e=0,r=0;if(void 0===n){var i,a=q(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;null!=o&&(o=+o)>=o&&(++e,r+=o)}}catch(t){a.e(t)}finally{a.f()}}else{var u,f=-1,c=q(t);try{for(c.s();!(u=c.n()).done;){var s=u.value;null!=(s=n(s,++f,t))&&(s=+s)>=s&&(++e,r+=s)}}catch(t){c.e(t)}finally{c.f()}}if(e)return r/e},t.median=function(t,n){return Ht(t,.5,n)},t.medianIndex=function(t,n){return $t(t,.5,n)},t.merge=Vt,t.min=Ft,t.minIndex=It,t.mode=function(t,n){var e=new ut;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&a>=a&&e.set(a,(e.get(a)||0)+1)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&c>=c&&e.set(c,(e.get(c)||0)+1)}}catch(t){f.e(t)}finally{f.f()}}var s,l,h=0,d=q(e);try{for(d.s();!(l=d.n()).done;){var p=T(l.value,2),v=p[0],y=p[1];y>h&&(h=y,s=v)}}catch(t){d.e(t)}finally{d.f()}return s},t.namespace=gn,t.namespaces=yn,t.nice=Ot,t.now=Ei,t.pack=function(){var t=null,n=1,e=1,r=hd;function i(i){var a=vd();return i.x=n/2,i.y=e/2,t?i.eachBefore(Nd(t)).eachAfter(Dd(r,.5,a)).eachBefore(Pd(1)):i.eachBefore(Nd(Cd)).eachAfter(Dd(hd,1,a)).eachAfter(Dd(r,i.r/Math.min(n,e),a)).eachBefore(Pd(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=sd(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:dd(+t),i):r},i},t.packEnclose=function(t){return yd(t,vd())},t.packSiblings=function(t){return Sd(t,vd()),t},t.pairs=function(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt,i=[],a=!1,o=q(t);try{for(o.s();!(e=o.n()).done;){var u=e.value;a&&i.push(r(n,u)),n=u,a=!0}}catch(t){o.e(t)}finally{o.f()}return i},t.partition=function(){var t=1,n=1,e=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/a,i.eachBefore(function(t,n){return function(r){r.children&&jd(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,a=r.y0,o=r.x1-e,u=r.y1-e;o0&&void 0!==arguments[0]?arguments[0]:3;return new so(+t)},t.permute=xt,t.pie=function(){var t=Kb,n=Zb,e=null,r=Mb(0),i=Mb(jb),a=Mb(0);function o(o){var u,f,c,s,l,h=(o=Yb(o)).length,d=0,p=new Array(h),v=new Array(h),y=+r.apply(this,arguments),g=Math.min(jb,Math.max(-jb,i.apply(this,arguments)-y)),m=Math.min(Math.abs(g)/h,a.apply(this,arguments)),b=m*(g<0?-1:1);for(u=0;u0&&(d+=l);for(null!=n?p.sort(function(t,e){return n(v[t],v[e])}):null!=e&&p.sort(function(t,n){return e(o[t],o[n])}),u=0,c=d?(g-h*b)/d:0;u0?l*c:0)+b,v[f]={data:o[f],index:u,value:l,startAngle:y,endAngle:s,padAngle:m};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Mb(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Mb(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Mb(+t),o):a},o},t.piecewise=yi,t.pointRadial=a_,t.pointer=ce,t.pointers=function(t,n){return t.target&&(t=fe(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,function(t){return ce(t,n)})},t.polygonArea=function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++eu!=c>u&&o<(f-e)*(u-r)/(c-r)+e&&(s=!s),f=e,c=r;return s},t.polygonHull=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)c.push(t[r[a[n]][2]]);for(n=+u;n0&&void 0!==arguments[0]?arguments[0]:Math.random(),n=0|(0<=t&&t<1?t/_p:Math.abs(t));return function(){return _p*((n=1664525*n+1013904223|0)>>>0)}},t.randomLogNormal=op,t.randomLogistic=mp,t.randomNormal=ap,t.randomPareto=sp,t.randomPoisson=bp,t.randomUniform=rp,t.randomWeibull=yp,t.range=Wt,t.rank=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");var r=Array.from(t),i=new Float64Array(r.length);2!==n.length&&(r=r.map(n),n=e);var a,o,u=function(t,e){return n(r[t],r[e])};return Uint32Array.from(r,function(t,n){return n}).sort(n===e?function(t,n){return At(r[t],r[n])}:Mt(u)).forEach(function(t,n){var e=u(t,void 0===a?t:a);e>=0?((void 0===a||e>0)&&(a=t,o=n),i[t]=o):i[t]=NaN}),i},t.reduce=function(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");var r,i,a=t[Symbol.iterator](),o=-1;if(arguments.length<3){var u;if(r=(u=a.next()).done,e=u.value,r)return;++o}for(;r=(f=a.next()).done,i=f.value,!r;){var f;e=n(e,i,++o,t)}return e},t.reverse=function(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()},t.rgb=He,t.ribbon=function(){return wo()},t.ribbonArrow=function(){return wo(xo)},t.rollup=gt,t.rollups=mt,t.scaleBand=kp,t.scaleDiverging=function t(){var n=zp(Zg()(Sp));return n.copy=function(){return Xg(n,t())},wp.apply(n,arguments)},t.scaleDivergingLog=function t(){var n=Yp(Zg()).domain([.1,1,10]);return n.copy=function(){return Xg(n,t()).base(n.base())},wp.apply(n,arguments)},t.scaleDivergingPow=Kg,t.scaleDivergingSqrt=function(){return Kg.apply(null,arguments).exponent(.5)},t.scaleDivergingSymlog=function t(){var n=Gp(Zg());return n.copy=function(){return Xg(n,t()).constant(n.constant())},wp.apply(n,arguments)},t.scaleIdentity=function t(n){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=Array.from(t,Tp),r):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(n).unknown(e)},n=arguments.length?Array.from(n,Tp):[0,1],zp(r)},t.scaleImplicit=Mp,t.scaleLinear=function t(){var n=jp();return n.copy=function(){return Pp(n,t())},xp.apply(n,arguments),zp(n)},t.scaleLog=function t(){var n=Yp(Op()).domain([1,10]);return n.copy=function(){return Pp(n,t()).base(n.base())},xp.apply(n,arguments),n},t.scaleOrdinal=Ap,t.scalePoint=function(){return function t(n){var e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return t(e())},n}(kp.apply(null,arguments).paddingInner(1))},t.scalePow=Kp,t.scaleQuantile=function t(){var n,r=[],i=[],a=[];function o(){var t=0,n=Math.max(1,i.length);for(a=new Array(n-1);++t0?a[n-1]:r[0],n=i?[a[i-1],r]:[a[n-1],a[n]]},u.unknown=function(t){return arguments.length?(n=t,u):u},u.thresholds=function(){return a.slice()},u.copy=function(){return t().domain([e,r]).range(o).unknown(n)},xp.apply(zp(u),arguments)},t.scaleRadial=function t(){var n,e=jp(),r=[0,1],i=!1;function a(t){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(t));return isNaN(r)?n:i?Math.round(r):r}return a.invert=function(t){return e.invert(Jp(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain()},a.range=function(t){return arguments.length?(e.range((r=Array.from(t,Tp)).map(Jp)),a):r.slice()},a.rangeRound=function(t){return a.range(t).round(!0)},a.round=function(t){return arguments.length?(i=!!t,a):i},a.clamp=function(t){return arguments.length?(e.clamp(t),a):e.clamp()},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return t(e.domain(),r).round(i).clamp(e.clamp()).unknown(n)},xp.apply(a,arguments),zp(a)},t.scaleSequential=function t(){var n=zp(Wg()(Sp));return n.copy=function(){return Xg(n,t())},wp.apply(n,arguments)},t.scaleSequentialLog=function t(){var n=Yp(Wg()).domain([1,10]);return n.copy=function(){return Xg(n,t()).base(n.base())},wp.apply(n,arguments)},t.scaleSequentialPow=Qg,t.scaleSequentialQuantile=function t(){var n=[],r=Sp;function i(t){if(null!=t&&!isNaN(t=+t))return r((V(n,t,1)-1)/(n.length-1))}return i.domain=function(t){if(!arguments.length)return n.slice();n=[];var r,a=q(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;null==o||isNaN(o=+o)||n.push(o)}}catch(t){a.e(t)}finally{a.f()}return n.sort(e),i},i.interpolator=function(t){return arguments.length?(r=t,i):r},i.range=function(){return n.map(function(t,e){return r(e/(n.length-1))})},i.quantiles=function(t){return Array.from({length:t+1},function(e,r){return Ht(n,r/t)})},i.copy=function(){return t(r).domain(n)},wp.apply(i,arguments)},t.scaleSequentialSqrt=function(){return Qg.apply(null,arguments).exponent(.5)},t.scaleSequentialSymlog=function t(){var n=Gp(Wg());return n.copy=function(){return Xg(n,t()).constant(n.constant())},wp.apply(n,arguments)},t.scaleSqrt=function(){return Kp.apply(null,arguments).exponent(.5)},t.scaleSymlog=function t(){var n=Gp(Op());return n.copy=function(){return Pp(n,t()).constant(n.constant())},xp.apply(n,arguments)},t.scaleThreshold=function t(){var n,e=[.5],r=[0,1],i=1;function a(t){return null!=t&&t<=t?r[V(e,t,0,i)]:n}return a.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,r.length-1),a):e.slice()},a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(e.length,r.length-1),a):r.slice()},a.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return t().domain(e).range(r).unknown(n)},xp.apply(a,arguments)},t.scaleTime=function(){return xp.apply(Gg(gy,my,fy,iy,Cv,wv,mv,pv,hv,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},t.scaleUtc=function(){return xp.apply(Gg(py,vy,sy,oy,Yv,Av,_v,yv,hv,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},t.scan=function(t,n){var e=Xt(t,n);return e<0?void 0:e},t.schemeAccent=nm,t.schemeBlues=Jm,t.schemeBrBG=lm,t.schemeBuGn=Cm,t.schemeBuPu=Dm,t.schemeCategory10=tm,t.schemeDark2=em,t.schemeGnBu=Om,t.schemeGreens=nb,t.schemeGreys=rb,t.schemeOrRd=Bm,t.schemeOranges=cb,t.schemePRGn=dm,t.schemePaired=rm,t.schemePastel1=im,t.schemePastel2=am,t.schemePiYG=vm,t.schemePuBu=Im,t.schemePuBuGn=Rm,t.schemePuOr=gm,t.schemePuRd=Um,t.schemePurples=ab,t.schemeRdBu=bm,t.schemeRdGy=xm,t.schemeRdPu=Hm,t.schemeRdYlBu=Mm,t.schemeRdYlGn=km,t.schemeReds=ub,t.schemeSet1=om,t.schemeSet2=um,t.schemeSet3=fm,t.schemeSpectral=Em,t.schemeTableau10=cm,t.schemeYlGn=Gm,t.schemeYlGnBu=$m,t.schemeYlOrBr=Xm,t.schemeYlOrRd=Zm,t.select=ie,t.selectAll=function(t){return"string"==typeof t?new ee([document.querySelectorAll(t)],[document.documentElement]):new ee([xn(t)],ne)},t.selection=re,t.selector=_n,t.selectorAll=Mn,t.shuffle=Qt,t.shuffler=Zt,t.some=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");var e,r=-1,i=q(t);try{for(i.s();!(e=i.n()).done;){if(n(e.value,++r,t))return!0}}catch(t){i.e(t)}finally{i.f()}return!1},t.sort=wt,t.stack=function(){var t=Mb([]),n=_x,e=bx,r=xx;function i(i){var a,o,u,f=Array.from(t.apply(this,arguments),wx),c=f.length,s=-1,l=q(i);try{for(l.s();!(u=l.n()).done;){var h=u.value;for(a=0,++s;a0)for(var e,r,i,a,o,u,f=0,c=t[n[0]].length;f0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},t.stackOffsetExpand=function(t,n){if((r=t.length)>0){for(var e,r,i,a=0,o=t[0].length;a0){for(var e,r=0,i=t[n[0]],a=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,a=0,o=1;o=0&&(c=h[w]).data===Rd;--w)c.data=null}if(u.parent=Bd,u.eachBefore(function(t){t.depth=t.parent.depth+1,--i}).eachBefore(fd),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(n=sd(t),r):n},r.parentId=function(t){return arguments.length?(e=sd(t),r):e},r.path=function(n){return arguments.length?(t=sd(n),r):t},r},t.style=Fn,t.subset=function(t,n){return nn(n,t)},t.sum=function(t,n){var e=0;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;(a=+a)&&(e+=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;(c=+n(c,++u,t))&&(e+=c)}}catch(t){f.e(t)}finally{f.f()}}return e},t.superset=nn,t.svg=Hu,t.symbol=function(t,n){var e=null,r=zb(i);function i(){var i;if(e||(e=i=r()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return t="function"==typeof t?t:Mb(t||y_),n="function"==typeof n?n:Mb(void 0===n?64:+n),i.type=function(n){return arguments.length?(t="function"==typeof n?n:Mb(n),i):t},i.size=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),i):n},i.context=function(t){return arguments.length?(e=null==t?null:t,i):e},i},t.symbolAsterisk=v_,t.symbolCircle=y_,t.symbolCross=g_,t.symbolDiamond=__,t.symbolDiamond2=x_,t.symbolPlus=w_,t.symbolSquare=M_,t.symbolSquare2=A_,t.symbolStar=S_,t.symbolTimes=F_,t.symbolTriangle=N_,t.symbolTriangle2=P_,t.symbolWye=R_,t.symbolX=F_,t.symbols=I_,t.symbolsFill=I_,t.symbolsStroke=L_,t.text=Bu,t.thresholdFreedmanDiaconis=function(t,n,e){return Math.ceil((e-n)/(2*(Ht(t,.75)-Ht(t,.25))*Math.pow(J(t),-1/3)))},t.thresholdScott=function(t,n,e){return Math.ceil((e-n)*Math.cbrt(J(t))/(3.49*it(t)))},t.thresholdSturges=jt,t.tickFormat=Bp,t.tickIncrement=Dt,t.tickStep=Pt,t.ticks=Nt,t.timeDay=wv,t.timeDays=Mv,t.timeFormatDefaultLocale=Ug,t.timeFormatLocale=wy,t.timeFriday=jv,t.timeFridays=Uv,t.timeHour=mv,t.timeHours=bv,t.timeInterval=ev,t.timeMillisecond=rv,t.timeMilliseconds=iv,t.timeMinute=pv,t.timeMinutes=vv,t.timeMonday=Nv,t.timeMondays=Rv,t.timeMonth=iy,t.timeMonths=ay,t.timeSaturday=Bv,t.timeSaturdays=qv,t.timeSecond=hv,t.timeSeconds=dv,t.timeSunday=Cv,t.timeSundays=zv,t.timeThursday=Ov,t.timeThursdays=Lv,t.timeTickInterval=my,t.timeTicks=gy,t.timeTuesday=Dv,t.timeTuesdays=Fv,t.timeWednesday=Pv,t.timeWednesdays=Iv,t.timeWeek=Cv,t.timeWeeks=zv,t.timeYear=fy,t.timeYears=cy,t.timeout=Bi,t.timer=Ni,t.timerFlush=Di,t.transition=Xi,t.transpose=Kt,t.tree=function(){var t=qd,n=1,e=1,r=null;function i(i){var f=function(t){for(var n,e,r,i,a,o=new Gd(t,0),u=[o];n=u.pop();)if(r=n._.children)for(n.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(e=n.children[i]=new Gd(r[i],i)),e.parent=n;return(o.parent=new Gd(null,0)).children=[o],o}(i);if(f.eachAfter(a),f.parent.m=-f.z,f.eachBefore(o),r)i.eachBefore(u);else{var c=i,s=i,l=i;i.eachBefore(function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)});var h=c===s?1:t(c,s)/2,d=h-c.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*v})}return i}function a(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)(n=i[a]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var a=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-a):n.z=a}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,a=n,o=n,u=e,f=a.parent.children[0],c=a.m,s=o.m,l=u.m,h=f.m;u=Yd(u),a=Hd(a),u&&a;)f=Hd(f),(o=Yd(o)).a=n,(i=u.z+l-a.z-c+t(u._,a._))>0&&($d(Vd(u,n,r),n,i),c+=i,s+=i),l+=u.m,c+=a.m,h+=f.m,s+=o.m;u&&!Yd(o)&&(o.t=u,o.m+=l-s),a&&!Hd(f)&&(f.t=a,f.m+=c-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.treemap=function(){var t=Zd,n=!1,e=1,r=1,i=[0],a=hd,o=hd,u=hd,f=hd,c=hd;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Od),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=u[n];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=f)}for(var l=c[n],h=r/2+l,d=n+1,p=e-1;d>>1;c[v]f-a){var m=r?(i*g+o*y)/r:o;t(n,d,y,i,a,m,f),t(d,e,g,m,a,o,f)}else{var b=r?(a*g+f*y)/r:f;t(n,d,y,i,a,o,b),t(d,e,g,i,b,o,f)}}(0,f,t.value,n,e,r,i)},t.treemapDice=jd,t.treemapResquarify=Kd,t.treemapSlice=Wd,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?Wd:jd)(t,n,e,r,i)},t.treemapSquarify=Zd,t.tsv=Fu,t.tsvFormat=Tu,t.tsvFormatBody=Eu,t.tsvFormatRow=Cu,t.tsvFormatRows=Su,t.tsvFormatValue=Nu,t.tsvParse=Au,t.tsvParseRows=ku,t.union=function(){for(var t=new ft,n=arguments.length,e=new Array(n),r=0;r1?n-1:0),i=1;i1?n-1:0),o=1;op}f.event(t).zoom("mouse",a(m(f.that.__zoom,f.mouse[0]=ce(t,u),f.mouse[1]),f.extent,c))},!0).on("mouseup.zoom",function(t){s.on("mousemove.zoom mouseup.zoom",null),ve(t.view,f.moved),Ox(t),f.event(t).end()},!0),l=ce(t,u),h=t.clientX,d=t.clientY;pe(t.view),Px(t),f.mouse=[l,this.__zoom.invert(l)],qi(this),f.start()}}function k(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o0?ie(this).transition().duration(s).call(_,d,f,t):ie(this).call(y.transform,d,f,t)}}function T(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o1?n-1:0),r=1;r1?r-1:0),a=1;a= 1e9) return vec4(0);\n return view * vec4(xy, 0, 1);\n }\n\n #pragma lines: attribute vec3 color;\n #pragma lines: varying vec3 color = getColor(color);\n vec3 getColor (vec3 color) { return color; }\n\n #pragma lines: width = getWidth();\n uniform float width, pixelRatio;\n float getWidth() {\n return width * pixelRatio;\n }",frag:"\n precision highp float;\n varying vec3 color;\n void main () {\n gl_FragColor = vec4(color, 1);\n }",uniforms:{width:t.prop("width")},blend:{enable:!0,func:{srcRGB:"src alpha",srcAlpha:1,dstRGB:"one minus src alpha",dstAlpha:1},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1}})}},{"regl-gpu-lines":21}],12:[function(t,n,e){"use strict";var r=t("./hex-rgb-to-float.js"),i=t("regl-gpu-lines");n.exports=function(t){return i(t,{vert:"\n precision highp float;\n uniform mat4 view, inverseView;\n \n #pragma lines: attribute vec2 xy;\n #pragma lines: position = computePosition(xy);\n vec4 computePosition(vec2 xy) {\n if (xy.x >= 1e9) return vec4(0);\n return view * vec4(xy, 0, 1);\n }\n\n #pragma lines: width = getWidth();\n uniform float width, pixelRatio;\n float getWidth() {\n return width * pixelRatio;\n }",frag:"\n precision highp float;\n uniform vec4 color;\n void main () {\n gl_FragColor = color;\n }",uniforms:{color:function(t,n){return function(t){return 4===t.length?t:t.concat(1)}(n.color?"string"==typeof n.color?r(n.color):n.color:[0,0,0])},width:t.prop("width")},blend:{enable:!0,func:{srcRGB:"src alpha",srcAlpha:1,dstRGB:"one minus src alpha",dstAlpha:1},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1}})}},{"./hex-rgb-to-float.js":14,"regl-gpu-lines":21}],13:[function(t,n,e){"use strict";n.exports=function(t){return t({vert:"\n precision mediump float;\n attribute vec2 position;\n uniform vec2 aspect;\n uniform mat4 view;\n uniform float size;\n void main () {\n gl_Position = view * vec4(position, 0, 1);\n gl_PointSize = size;\n }\n ",frag:"\n precision mediump float;\n uniform vec3 color;\n void main () {\n if (dot(gl_PointCoord - 0.5, gl_PointCoord - 0.5) > 0.25) discard;\n gl_FragColor = vec4(color, 1);\n }\n ",depth:{enable:!1},attributes:{position:t.prop("positions")},uniforms:{aspect:function(t){return[1,t.framebufferWidth/t.framebufferHeight]},size:function(t,n){return n.size*t.pixelRatio},color:t.prop("color")},primitive:"points",count:t.prop("positionsCount")})}},{}],14:[function(t,n,e){"use strict";n.exports=function(t){var n;return(n=t.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/))?[parseInt(n[1],16)/255,parseInt(n[2],16)/255,parseInt(n[3],16)/255]:(n=t.match(/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/))?[parseInt(n[1],16)/15,parseInt(n[2],16)/15,parseInt(n[3],16)/15]:[0,0,0]}},{}],15:[function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function a(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,r=new Array(n);e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw a}}}}(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=l(a);r.push(o,o,e)}}catch(t){i.e(t)}finally{i.f()}return r}([g,g,g,m,b,m])),F();var I=h(p,o,s,function(){C.attr("width",window.innerWidth).attr("height",window.innerHeight),F(),r()});I(),window.addEventListener("resize",I);var L=n.frame(function(){try{if(!e)return;e=!1,A({},function(){k(o,s,function(t){var n=t.view3;T({view3:n,width:1}),E([a(a({},B),{},{width:1.5,color:y}),a(a({},P),{},{width:3,color:y}),a(a({},O),{},{width:3,color:m}),a(a({},j),{},{width:1.5,color:y})]),S([a(a({},z),{},{width:3})]),E([a(a({},D),{},{width:3,color:y})])})})}catch(t){console.error(t),L.cancel(),L=null}})})})},{"./color":6,"./configure-linear-scale":7,"./configure-viewport":8,"./d3.min.js":9,"./draw-background":10,"./draw-lines":12,"./draw-lines-with-color":11,"./draw-points":13,"./hex-rgb-to-float.js":14,"./makebuffer":16,"./resize":23,"fail-nicely":1,regl:22}],16:[function(t,n,e){"use strict";n.exports=function(t,n,e){return n=n||{},e.positions&&(n.positions=(n.positions||t.buffer)(e.positions)),e.nextPositions&&(n.nextPositions=(n.nextPositions||t.buffer)(e.nextPositions)),e.directions&&(n.directions=(n.directions||t.buffer)(e.directions)),e.angles&&(n.angles=(n.angles||t.buffer)(e.angles)),e.cells&&(n.cells=(n.cells||t.elements)(e.cells)),e.cells&&(n.cellCount=3*e.cells.length),e.positions&&(n.positionsCount=e.positions.length),n}},{}],17:[function(t,n,e){"use strict";n.exports=function(t,n,e){var r=n.domain(),i=e.domain(),a=2/(r[1]-r[0]),o=2/(i[1]-i[0]);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=o,t[5]=0,t[6]=-1-a*r[0],t[7]=-1-o*i[0],t[8]=1,t}},{}],18:[function(t,n,e){"use strict";n.exports=function(t,n){t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=n[4],t[6]=0,t[7]=n[5],t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[6],t[13]=n[7],t[14]=0,t[15]=n[8]}},{}],19:[function(t,n,e){n.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],20:[function(t,n,e){n.exports=function(t){"string"==typeof t&&(t=[t]);for(var n=[].slice.call(arguments,1),e=[],r=0;rt.trim()).filter(t=>!!t),a=(t,n)=>`${r}(${i.map(e=>(n||"")+e+t).join(",")})`;return{type:"property",property:t,returnType:e,name:r,inputs:i,generate:a}}if(n=t.match(u)){const t="extrapolate"===n[1],e=n[2],r=n[3],i=n[4],a=n[5].split(",").map(t=>t.trim()).filter(t=>!!t),o=(n,e,o)=>{const u=t?n:`clamp(${n},0.0,1.0)`;return`${r}=${i}(${a.map(t=>`mix(${t+e},${t+o},${u})`).join(",")});`};return{type:"varying",returnType:e,name:r,getter:i,inputs:a,generate:o}}if(n=t.match(f))return{type:"postproject",name:n[1]};throw new Error(`Unrecognized lines pragma:"${t}"`)}function l(t){let n;const e=new Map,i=new Map;for(const a of t)"attribute"===a.type?(e.set(a.name,a),a.vertexUsage=r.NONE,a.endpointUsage=r.NONE):"varying"===a.type?i.set(a.name,a):"postproject"===a.type&&(n=a.name);let a,o,u;for(const n of t)if("property"===n.type){switch(n.property){case"width":if(a)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);a=n;break;case"position":if(o)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);o=n;break;case"orientation":if(u)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);u=n;break;default:throw new Error(`Invalid pragma property "${n.property}"`)}for(const t of n.inputs)if(!e.has(t))throw new Error(`Missing attribute ${t} of property ${n.property}`)}for(const n of t)if(n.inputs)for(const t of n.inputs){const i=e.get(t);"property"!==n.type&&"varying"!==n.type||("position"===n.property?(i.vertexUsage|=r.EXTENDED,i.endpointUsage|=r.EXTENDED):"orientation"===n.property?i.endpointUsage|=r.PER_INSTANCE:(i.endpointUsage|=r.REGULAR,i.vertexUsage|=r.REGULAR))}return{varyings:i,attrs:e,width:a,position:o,orientation:u,postproject:n}}const h=[];h[5120]=1,h[5122]=2,h[5124]=4,h[5121]=1,h[5123]=2,h[5125]=4,h[5126]=4;const d=h,p={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126};function v(t,n){return Object.prototype.hasOwnProperty.call(t,n)}const y=[];y[1]="float",y[2]="vec2",y[3]="vec3",y[4]="vec4";const g=e,m=y,b=t,_=function(t,e,r,i,a,o,u,f,c,s,l,h){const d=e?f:u,p=["B","C","D"];e||p.unshift("A");const v={},y={},g=c.concat(d.attrs);if(i){y.vao=t.prop("vao");for(let t=0;t[t.capRes2,Math.max(t.capRes2,t.joinRes2)]:t=>[Math.max(t.capRes2,t.joinRes2),Math.max(t.capRes2,t.joinRes2)]:e?t=>[t.capRes2,t.joinRes2]:t=>[t.joinRes2,t.joinRes2];return t({vert:`${a.glsl}const float CAP_START=${n.CAP_START}.0;const float CAP_END=${n.CAP_END}.0;${d.glsl}attribute float index;${h?"attribute float debugInstanceID;":""}uniform bool _isRound;uniform vec2 _vertCnt2,_capJoinRes2;uniform vec2 _resolution,_capScale;uniform float _miterLimit;${a.orientation||!e?"":"uniform float _orientation;"}varying vec3 lineCoord;${h?"varying vec2 triStripCoord;":""}${h?"varying float instanceID;":""}${h?"varying float vertexIndex;":""}bool isnan(float val){return(val<0.0||0.0`vec4 p${t}=${a.position.generate(t)};`).join("\n")}gl_Position=pB;bool aInvalid=${e?"false":"invalid(pA)"};bool bInvalid=invalid(pB);bool cInvalid=invalid(pC);bool dInvalid=invalid(pD);vec2 v=_vertCnt2+3.0;float N=dot(v,vec2(1));bool mirror=index>=v.x;${e?"if(dInvalid && mirror)return;":""}float pw=mirror?pC.w:pB.w;${p.map(t=>`p${t}=vec4(vec3(p${t}.xy*_resolution,p${t}.z)/p${t}.w,1);`).join("\n")}${e?"vec4 pA=pC;":""}if(bInvalid||cInvalid||max(abs(pB.z),abs(pC.z))>1.0)return;if(mirror){vec4 vTmp=pC; pC=pB; pB=vTmp;vTmp=pD; pD=pA; pA=vTmp;bool bTmp=dInvalid; dInvalid=aInvalid; aInvalid=bTmp;}${e?"bool isCap=!mirror;":(r?"":"const ")+"bool isCap=false"};if(aInvalid){ ${r?"pA=pC; isCap=true;":"pA=2.0*pB-pC;"} }if(dInvalid){ ${r?"pD=pB;":"pD=2.0*pC-pB;"} }bool roundOrCap=_isRound||isCap;float width=mirror?${a.width.generate("C")}:${a.width.generate("B")};vec2 tBC=pC.xy-pB.xy;float lBC=length(tBC);tBC/=lBC;vec2 nBC=vec2(-tBC.y,tBC.x);vec2 tAB=pB.xy-pA.xy;float lAB=length(tAB);if(lAB>0.0)tAB/=lAB;vec2 nAB=vec2(-tAB.y,tAB.x);vec2 tCD=pD.xy-pC.xy;float lCD=length(tCD);if(lCD>0.0)tCD/=lCD;vec2 nCD=vec2(-tCD.y,tCD.x);float cosB=clamp(dot(tAB,tBC),-1.0,1.0);const float tol=1e-4;float mirrorSign=mirror?-1.0:1.0;float dirB=-dot(tBC,nAB);float dirC=dot(tBC,nCD);bool bCollinear=abs(dirB)-0.9999?(tAB.x*tBC.y-tAB.y*tBC.x)/(1.0+cosB):0.0;xy=vec2(min(abs(m),min(lBC,lAB)/width),-1);lineCoord.y=-lineCoord.y;} else {float m2=dot(miter,miter);float lm=sqrt(m2);yBasis=miter/lm;xBasis=dirB*vec2(yBasis.y,-yBasis.x);bool isBevel=1.0>_miterLimit*m2;if(mod(i,2.0)==0.0){if(roundOrCap||i !=0.0){float theta=-0.5*(acos(cosB)*(clamp(i,0.0,res)/res)-pi)*(isCap?2.0:1.0);xy=vec2(cos(theta),sin(theta));if(isCap){if(xy.y>0.001)xy*=_capScale;lineCoord.xy=xy.yx*lineCoord.y;}} else {yBasis=bIsHairpin?vec2(0):miter;xy.y=isBevel?1.0:1.0/m2;}} else {lineCoord.y=0.0;if(isBevel && !roundOrCap){xy.y=-1.0+sqrt((1.0+cosB)*0.5);}}}${e?`float _orientation=${a.orientation?a.orientation.generate(""):"mod(_orientation,2.0)"};`:""};${e?"if(_orientation==CAP_END)lineCoord.xy=-lineCoord.xy;":""}vec2 dP=mat2(xBasis,yBasis)*xy;float dx=dot(dP,tBC)*mirrorSign;float useC=(mirror?1.0:0.0)+dx*(width/lBC);lineCoord.z=useC<0.0||useC>1.0?1.0:0.0;${[...a.varyings.values()].map(t=>t.generate("useC","B","C")).join("\n")}gl_Position=pB;gl_Position.xy+=width*dP;gl_Position.xy/=_resolution;gl_Position*=pw;${a.postproject?`gl_Position=${a.postproject}(gl_Position);`:""}}`,frag:o,attributes:v,uniforms:{...l,_vertCnt2:(t,n)=>m(n),_capJoinRes2:(t,n)=>[n.capRes2,n.joinRes2],_miterLimit:(t,n)=>n.miterLimit*n.miterLimit,_orientation:t.prop("orientation"),_capScale:t.prop("capScale"),_isRound:(t,n)=>"round"===n.join,_resolution:(t,n)=>n.viewportSize||[t.viewportWidth,t.viewportHeight]},primitive:"triangle strip",instances:e?(t,e)=>e.splitCaps?e.orientation===n.CAP_START?Math.ceil(e.count/2):Math.floor(e.count/2):e.count:(t,n)=>n.count-3,count:(t,n)=>{const e=m(n);return 6+(e[0]+e[1])},...s,...y})},x=function(t){const n=[],e=t.split("\n");for(let t=0;t{const o=e?t.endpointUsage:t.vertexUsage;if(!o)return;const u=[];function f(t,r){const i=n+r;if(u.push(i),e){const e=o&g.PER_INSTANCE?1:3;a.push({name:i,spec:{buffer:(t,e)=>e.buffers[n].buffer,offset:(e,r)=>r.buffers[n].offset+r.buffers[n].stride*((r.orientation!==b.CAP_START&&r.splitCaps?3:0)+t),stride:(t,r)=>r.buffers[n].stride*e*(r.splitCaps?2:1),divisor:(t,e)=>e.buffers[n].divisor}})}else a.push({name:i,spec:{buffer:(t,e)=>e.buffers[n].buffer,offset:(e,r)=>r.buffers[n].offset+r.buffers[n].stride*t,stride:(t,e)=>e.buffers[n].stride,divisor:(t,e)=>e.buffers[n].divisor}})}if(o&g.PER_INSTANCE&&f(0,""),o&g.REGULAR||o&g.EXTENDED)for(let t=0;t{i.push(`varying ${t.returnType} ${n};`)}),{glsl:i.join("\n"),attrs:a}},A=function(t,n,e){return function(r){if(!r)return e;if(-1===n.indexOf(r))throw new Error(`Invalid ${t} type. Valid options are:${n.join(",")}.`);return r}},k=t;var T=O;O.CAP_START=k.CAP_START,O.CAP_END=k.CAP_END;const E=new Set(["attributes","elements"]),S=["round","bevel","miter"],C=["round","square","none"],N=[1,1],D=[2,2/Math.sqrt(3)];function P(t,n,e){return(t?1:0)+(n?2:0)+(e?4:0)}function O(t,n={}){const{vert:e=null,frag:r=null,debug:i=!1,reorder:a=!1}=n;t._gpuLinesCache||(t._gpuLinesCache={});const o=t._gpuLinesCache,u={...n},f=n.uniforms||{};for(const t of["vert","frag","debug","reorder","uniforms"])delete u[t];if(Object.keys(u).forEach(t=>{if(E.has(t))throw new Error(`Invalid parameter '${t}'. Parameters ${[...E].map(t=>`'${t}'`).join(",")} may not be forwarded to regl.`)}),!e)throw new Error("Missing vertex shader,`vert`");if(!r)throw new Error("Missing fragment shader,`frag`");const c=x(e),s=M(c,t,!1),l=M(c,t,!0),h=[];i&&(o.debugInstanceIDBuffer||(o.debugInstanceIDBuffer=t.buffer(new Uint16Array([...Array(16384).keys()]))),h.push({name:"debugInstanceID",spec:{buffer:o.debugInstanceIDBuffer,divisor:1}})),o.indexBuffer||(o.indexBuffer=t.buffer(new Uint8Array([...Array(134).keys()]))),h.push({name:"index",spec:{buffer:o.indexBuffer,divisor:0}});const d=A("join",S,"miter"),p=A("cap",C,"square"),v=new Map;function y(n){return v.has(n)||v.set(n,_(t,1&n,2&n,4&n,c,r,s,l,h,u,f,i)),v.get(n)}const g=[];function m(...t){g.push.apply(g,t)}function b(){a&&g.sort(function(t,n){return t.featureMask-n.featureMask});let t=0;const n=[];for(;t>>=n))<<3,(n|=e=(15<(t>>>=e))<<2)|(e=(3<(t>>>=e))<<1)|t>>>e>>1}function f(t){t:{for(var n=16;268435456>=n;n*=16)if(t<=n){t=n;break t}t=0}return 0<(n=G[u(t)>>2]).length?n.pop():new ArrayBuffer(t)}function c(t){G[u(t.byteLength)>>2].push(t)}function s(t,n,e,r,i,a){for(var o=0;o(i=f)&&(i=r.buffer.byteLength,5123===l?i>>=1:5125===l&&(i>>=2)),r.vertCount=i,i=u,0>u&&(i=4,1===(u=r.buffer.dimension)&&(i=0),2===u&&(i=1),3===u&&(i=4)),r.primType=i}function u(t){r.elementsCount--,delete f[t.id],t.buffer.destroy(),t.buffer=null}var f={},c=0,s={uint8:5121,uint16:5123};n.oes_element_index_uint&&(s.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var l=[];return{create:function(t,n){function f(t){if(t)if("number"==typeof t)c(t),l.primType=4,l.vertCount=0|t,l.type=5121;else{var n=null,e=35044,r=-1,i=-1,u=0,h=0;Array.isArray(t)||$(t)||a(t)?n=t:("data"in t&&(n=t.data),"usage"in t&&(e=K[t.usage]),"primitive"in t&&(r=et[t.primitive]),"count"in t&&(i=0|t.count),"type"in t&&(h=s[t.type]),"length"in t?u=0|t.length:(u=i,5123===h||5122===h?u*=2:5125!==h&&5124!==h||(u*=4))),o(l,n,e,r,i,u,h)}else c(),l.primType=4,l.vertCount=0,l.type=5121;return f}var c=e.create(null,34963,!0),l=new i(c._buffer);return r.elementsCount++,f(t),f._reglType="elements",f._elements=l,f.subdata=function(t,n){return c.subdata(t,n),f},f.destroy=function(){u(l)},f},createStream:function(t){var n=l.pop();return n||(n=new i(e.create(null,34963,!0,!1)._buffer)),o(n,t,35040,-1,-1,0,0),n},destroyStream:function(t){l.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){V(f).forEach(u)}}}function y(t){for(var n=W.allocType(5123,t.length),e=0;e>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;n[e]=-24>i?r:-14>i?r+(a+1024>>-14-i):15>=i,e.height>>=i,d(e,r[i]),t.mipmask|=1<n;++n)t.images[n]=null;return t}function N(t){for(var n=t.images,e=0;en){for(var e=0;e=--this.refCount&&R(this)}}),u.profile&&(o.getTotalTextureSize=function(){var t=0;return Object.keys(ht).forEach(function(n){t+=ht[n].stats.size}),t}),{create2D:function(n,e){function r(t,n){var e=i.texInfo;D.call(e);var a=C();return"number"==typeof t?T(a,0|t,"number"==typeof n?0|n:0|t):t?(P(e,t),E(a,t)):T(a,1,1),e.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,r.width=a.width,r.height=a.height,B(i),S(a,3553),O(e,3553),z(),N(a),u.profile&&(i.stats.size=M(i.internalformat,i.type,a.width,a.height,e.genMipmaps,!1)),r.format=tt[i.internalformat],r.type=nt[i.type],r.mag=et[e.magFilter],r.min=rt[e.minFilter],r.wrapS=it[e.wrapS],r.wrapT=it[e.wrapT],r}var i=new j(3553);return ht[i.id]=i,o.textureCount++,r(n,e),r.subimage=function(t,n,e,a){n|=0,e|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,d(o,t),o.width=o.width||(i.width>>a)-n,o.height=o.height||(i.height>>a)-e,B(i),p(o,3553,n,e,a),z(),A(o),r},r.resize=function(n,e){var a=0|n,o=0|e||a;if(a===i.width&&o===i.height)return r;r.width=i.width=a,r.height=i.height=o,B(i);for(var f=0;i.mipmask>>f;++f)t.texImage2D(3553,f,i.format,a>>f,o>>f,0,i.format,i.type,null);return z(),u.profile&&(i.stats.size=M(i.internalformat,i.type,a,o,!1,!1)),r},r._reglType="texture2d",r._texture=i,u.profile&&(r.stats=i.stats),r.destroy=function(){i.decRef()},r},createCube:function(n,e,r,i,a,f){function l(t,n,e,r,i,a){var o,f=h.texInfo;for(D.call(f),o=0;6>o;++o)y[o]=C();if("number"!=typeof t&&t){if("object"==typeof t)if(n)E(y[0],t),E(y[1],n),E(y[2],e),E(y[3],r),E(y[4],i),E(y[5],a);else if(P(f,t),s(h,t),"faces"in t)for(t=t.faces,o=0;6>o;++o)c(y[o],h),E(y[o],t[o]);else for(o=0;6>o;++o)E(y[o],t)}else for(t=0|t||1,o=0;6>o;++o)T(y[o],t,t);for(c(h,y[0]),h.mipmask=f.genMipmaps?(y[0].width<<1)-1:y[0].mipmask,h.internalformat=y[0].internalformat,l.width=y[0].width,l.height=y[0].height,B(h),o=0;6>o;++o)S(y[o],34069+o);for(O(f,34067),z(),u.profile&&(h.stats.size=M(h.internalformat,h.type,l.width,l.height,f.genMipmaps,!0)),l.format=tt[h.internalformat],l.type=nt[h.type],l.mag=et[f.magFilter],l.min=rt[f.minFilter],l.wrapS=it[f.wrapS],l.wrapT=it[f.wrapT],o=0;6>o;++o)N(y[o]);return l}var h=new j(34067);ht[h.id]=h,o.cubeCount++;var y=Array(6);return l(n,e,r,i,a,f),l.subimage=function(t,n,e,r,i){e|=0,r|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,d(a,n),a.width=a.width||(h.width>>i)-e,a.height=a.height||(h.height>>i)-r,B(h),p(a,34069+t,e,r,i),z(),A(a),l},l.resize=function(n){if((n|=0)!==h.width){l.width=h.width=n,l.height=h.height=n,B(h);for(var e=0;6>e;++e)for(var r=0;h.mipmask>>r;++r)t.texImage2D(34069+e,r,h.format,n>>r,n>>r,0,h.format,h.type,null);return z(),u.profile&&(h.stats.size=M(h.internalformat,h.type,l.width,l.height,!1,!0)),l}},l._reglType="textureCube",l._texture=h,u.profile&&(l.stats=h.stats),l.destroy=function(){h.decRef()},l},clear:function(){for(var n=0;ne;++e)if(0!=(n.mipmask&1<>e,n.height>>e,0,n.internalformat,n.type,null);else for(var r=0;6>r;++r)t.texImage2D(34069+r,e,n.internalformat,n.width>>e,n.height>>e,0,n.internalformat,n.type,null);O(n.texInfo,n.target)})}}}function k(t,n,e,r,i,a){function o(t,n,e){this.target=t,this.texture=n,this.renderbuffer=e;var r=t=0;n?(t=n.width,r=n.height):e&&(t=e.width,r=e.height),this.width=t,this.height=r}function u(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function f(t,n,e){t&&(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(n,e){e&&(e.texture?t.framebufferTexture2D(36160,n,e.target,e.texture._texture.texture,0):t.framebufferRenderbuffer(36160,n,36161,e.renderbuffer._renderbuffer.renderbuffer))}function s(t){var n=3553,e=null,r=null,i=t;return"object"==typeof t&&(i=t.data,"target"in t&&(n=0|t.target)),"texture2d"===(t=i._reglType)?e=i:"textureCube"===t?e=i:"renderbuffer"===t&&(r=i,n=36161),new o(n,e,r)}function l(t,n,e,a,u){return e?((t=r.create2D({width:t,height:n,format:a,type:u}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:n,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&&(t.texture||t.renderbuffer)}function d(t,n,e){t&&(t.texture?t.texture.resize(n,e):t.renderbuffer&&t.renderbuffer.resize(n,e))}function p(){this.id=M++,A[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function v(t){t.colorAttachments.forEach(u),u(t.depthAttachment),u(t.stencilAttachment),u(t.depthStencilAttachment)}function y(n){t.deleteFramebuffer(n.framebuffer),n.framebuffer=null,a.framebufferCount--,delete A[n.id]}function g(n){var r;t.bindFramebuffer(36160,n.framebuffer);var i=n.colorAttachments;for(r=0;ri;++i){for(c=0;ct;++t)e[t].resize(r);return n.width=n.height=r,n},_reglType:"framebufferCube",destroy:function(){e.forEach(function(t){t.destroy()})}})},clear:function(){V(A).forEach(y)},restore:function(){V(A).forEach(function(n){n.framebuffer=t.createFramebuffer(),g(n)})}})}function T(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function E(t,n,e,r){function i(t,n,e,r){this.name=t,this.id=n,this.location=e,this.info=r}function a(t,n){for(var e=0;et&&(t=n.stats.uniformsCount)}),t},e.getMaxAttributesCount=function(){var t=0;return h.forEach(function(n){n.stats.attributesCount>t&&(t=n.stats.attributesCount)}),t}),{clear:function(){var n=t.deleteShader.bind(t);V(c).forEach(n),c={},V(s).forEach(n),s={},h.forEach(function(n){t.deleteProgram(n.program)}),h.length=0,l={},e.shaderCount=0},program:function(t,n,r){var i=l[n];i||(i=l[n]={});var a=i[t];return a||(a=new u(n,t),e.shaderCount++,f(a),i[t]=a,h.push(a)),a},restore:function(){c={},s={};for(var t=0;t="+n+"?"+i+".constant["+n+"]:0;"}).join(""),"}}else{","if(",o,"(",i,".buffer)){",s,"=",u,".createStream(",34962,",",i,".buffer);","}else{",s,"=",u,".getBuffer(",i,".buffer);","}",l,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",s,".dtype;",f.normalized,"=!!",i,".normalized;"),r("size"),r("offset"),r("stride"),r("divisor"),e("}}"),e.exit("if(",f.isStream,"){",u,".destroyStream(",s,");","}"),f})}),o}function k(t,n,e,r,i){var a=x(t),u=function(t,n,e){function r(t){if(t in i){var e=i[t];t=!0;var r,o,u=0|e.x,f=0|e.y;return"width"in e?r=0|e.width:t=!1,"height"in e?o=0|e.height:t=!1,new j(!t&&n&&n.thisDep,!t&&n&&n.contextDep,!t&&n&&n.propDep,function(t,n){var i=t.shared.context,a=r;"width"in e||(a=n.def(i,".","framebufferWidth","-",u));var c=o;return"height"in e||(c=n.def(i,".","framebufferHeight","-",f)),[u,f,a,c]})}if(t in a){var c=a[t];return t=R(c,function(t,n){var e=t.invoke(n,c),r=t.shared.context,i=n.def(e,".x|0"),a=n.def(e,".y|0");return[i,a,n.def('"width" in ',e,"?",e,".width|0:","(",r,".","framebufferWidth","-",i,")"),e=n.def('"height" in ',e,"?",e,".height|0:","(",r,".","framebufferHeight","-",a,")")]}),n&&(t.thisDep=t.thisDep||n.thisDep,t.contextDep=t.contextDep||n.contextDep,t.propDep=t.propDep||n.propDep),t}return n?new j(n.thisDep,n.contextDep,n.propDep,function(t,n){var e=t.shared.context;return[0,0,n.def(e,".","framebufferWidth"),n.def(e,".","framebufferHeight")]}):null}var i=t.static,a=t.dynamic;if(t=r("viewport")){var o=t;t=new j(t.thisDep,t.contextDep,t.propDep,function(t,n){var e=o.append(t,n),r=t.shared.context;return n.set(r,".viewportWidth",e[2]),n.set(r,".viewportHeight",e[3]),e})}return{viewport:t,scissor_box:r("scissor.box")}}(t,a),f=M(t),c=function(t,n){var e=t.static,r=t.dynamic,i={};return rt.forEach(function(t){function n(n,o){if(t in e){var u=n(e[t]);i[a]=z(function(){return u})}else if(t in r){var f=r[t];i[a]=R(f,function(t,n){return o(t,n,t.invoke(n,f))})}}var a=y(t);switch(t){case"cull.enable":case"blend.enable":case"dither":case"stencil.enable":case"depth.enable":case"scissor.enable":case"polygonOffset.enable":case"sample.alpha":case"sample.enable":case"depth.mask":return n(function(t){return t},function(t,n,e){return e});case"depth.func":return n(function(t){return mt[t]},function(t,n,e){return n.def(t.constants.compareFuncs,"[",e,"]")});case"depth.range":return n(function(t){return t},function(t,n,e){return[n.def("+",e,"[0]"),n=n.def("+",e,"[1]")]});case"blend.func":return n(function(t){return[gt["srcRGB"in t?t.srcRGB:t.src],gt["dstRGB"in t?t.dstRGB:t.dst],gt["srcAlpha"in t?t.srcAlpha:t.src],gt["dstAlpha"in t?t.dstAlpha:t.dst]]},function(t,n,e){function r(t,r){return n.def('"',t,r,'" in ',e,"?",e,".",t,r,":",e,".",t)}t=t.constants.blendFuncs;var i=r("src","RGB"),a=r("dst","RGB"),o=(i=n.def(t,"[",i,"]"),n.def(t,"[",r("src","Alpha"),"]"));return[i,a=n.def(t,"[",a,"]"),o,t=n.def(t,"[",r("dst","Alpha"),"]")]});case"blend.equation":return n(function(t){return"string"==typeof t?[Q[t],Q[t]]:"object"==typeof t?[Q[t.rgb],Q[t.alpha]]:void 0},function(t,n,e){var r=t.constants.blendEquations,i=n.def(),a=n.def();return(t=t.cond("typeof ",e,'==="string"')).then(i,"=",a,"=",r,"[",e,"];"),t.else(i,"=",r,"[",e,".rgb];",a,"=",r,"[",e,".alpha];"),n(t),[i,a]});case"blend.color":return n(function(t){return o(4,function(n){return+t[n]})},function(t,n,e){return o(4,function(t){return n.def("+",e,"[",t,"]")})});case"stencil.mask":return n(function(t){return 0|t},function(t,n,e){return n.def(e,"|0")});case"stencil.func":return n(function(t){return[mt[t.cmp||"keep"],t.ref||0,"mask"in t?t.mask:-1]},function(t,n,e){return[t=n.def('"cmp" in ',e,"?",t.constants.compareFuncs,"[",e,".cmp]",":",7680),n.def(e,".ref|0"),n=n.def('"mask" in ',e,"?",e,".mask|0:-1")]});case"stencil.opFront":case"stencil.opBack":return n(function(n){return["stencil.opBack"===t?1029:1028,bt[n.fail||"keep"],bt[n.zfail||"keep"],bt[n.zpass||"keep"]]},function(n,e,r){function i(t){return e.def('"',t,'" in ',r,"?",a,"[",r,".",t,"]:",7680)}var a=n.constants.stencilOps;return["stencil.opBack"===t?1029:1028,i("fail"),i("zfail"),i("zpass")]});case"polygonOffset.offset":return n(function(t){return[0|t.factor,0|t.units]},function(t,n,e){return[n.def(e,".factor|0"),n=n.def(e,".units|0")]});case"cull.face":return n(function(t){var n=0;return"front"===t?n=1028:"back"===t&&(n=1029),n},function(t,n,e){return n.def(e,'==="front"?',1028,":",1029)});case"lineWidth":return n(function(t){return t},function(t,n,e){return e});case"frontFace":return n(function(t){return _t[t]},function(t,n,e){return n.def(e+'==="cw"?2304:2305')});case"colorMask":return n(function(t){return t.map(function(t){return!!t})},function(t,n,e){return o(4,function(t){return"!!"+e+"["+t+"]"})});case"sample.coverage":return n(function(t){return["value"in t?t.value:1,!!t.invert]},function(t,n,e){return[n.def('"value" in ',e,"?+",e,".value:1"),n=n.def("!!",e,".invert")]})}}),i}(t),s=w(t),l=u.viewport;return l&&(c.viewport=l),(u=u[l=y("scissor.box")])&&(c[l]=u),(a={framebuffer:a,draw:f,shader:s,state:c,dirty:u=0>1)",u],");")}function n(){e(f,".drawArraysInstancedANGLE(",[p,v,y,u],");")}d?m?t():(e("if(",d,"){"),t(),e("}else{"),n(),e("}")):n()}function o(){function t(){e(s+".drawElements("+[p,y,g,v+"<<(("+g+"-5121)>>1)"]+");")}function n(){e(s+".drawArrays("+[p,v,y]+");")}d?m?t():(e("if(",d,"){"),t(),e("}else{"),n(),e("}")):n()}var u,f,c=t.shared,s=c.gl,l=c.draw,h=r.draw,d=function(){var i=h.elements,a=n;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(a=e),i=i.append(t,a)):i=a.def(l,".","elements"),i&&a("if("+i+")"+s+".bindBuffer(34963,"+i+".buffer.buffer);"),i}(),p=i("primitive"),v=i("offset"),y=function(){var i=h.count,a=n;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(a=e),i=i.append(t,a)):i=a.def(l,".","count"),i}();if("number"==typeof y){if(0===y)return}else e("if(",y,"){"),e.exit("}");K&&(u=i("instances"),f=t.instancing);var g=d+".type",m=h.elements&&B(h.elements);K&&("number"!=typeof u||0<=u)?"string"==typeof u?(e("if(",u,">0){"),a(),e("}else if(",u,"<0){"),o(),e("}")):a():o()}function H(t,n,e,r,i){return i=(n=_()).proc("body",i),K&&(n.instancing=i.def(n.shared.extensions,".angle_instanced_arrays")),t(n,i,e,r),n.compile().body}function Y(t,n,e,r){N(t,n),I(t,n,e,r.attributes,function(){return!0}),L(t,n,e,r.uniforms,function(){return!0}),U(t,n,n,e)}function $(t,n,e,r){function i(){return!0}t.batchId="a1",N(t,n),I(t,n,e,r.attributes,i),L(t,n,e,r.uniforms,i),U(t,n,n,e)}function V(t,n,e,r){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}N(t,n);var o=e.contextDep,u=n.def(),f=n.def();t.shared.props=f,t.batchId=u;var c=t.scope(),s=t.scope();n(c.entry,"for(",u,"=0;",u,"<","a1",";++",u,"){",f,"=","a0","[",u,"];",s,"}",c.exit),e.needsContext&&T(t,s,e.context),e.needsFramebuffer&&E(t,s,e.framebuffer),C(t,s,e.state,i),e.profile&&i(e.profile)&&F(t,s,e,!1,!0),r?(I(t,c,e,r.attributes,a),I(t,s,e,r.attributes,i),L(t,c,e,r.uniforms,a),L(t,s,e,r.uniforms,i),U(t,c,s,e)):(n=t.global.def("{}"),r=e.shader.progVar.append(t,s),f=s.def(r,".id"),c=s.def(n,"[",f,"]"),s(t.shared.gl,".useProgram(",r,".program);","if(!",c,"){",c,"=",n,"[",f,"]=",t.link(function(n){return H($,t,e,n,2)}),"(",r,");}",c,".call(this,a0[",u,"],",u,");"))}function G(t,e){function r(n){var r=e.shader[n];r&&i.set(a.shader,"."+n,r.append(t,i))}var i=t.proc("scope",3);t.batchId="a2";var a=t.shared,o=a.current;T(t,i,e.context),e.framebuffer&&e.framebuffer.append(t,i),O(Object.keys(e.state)).forEach(function(n){var r=e.state[n].append(t,i);g(r)?r.forEach(function(e,r){i.set(t.next[n],"["+r+"]",e)}):i.set(a.next,"."+n,r)}),F(t,i,e,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(n){var r=e.draw[n];r&&i.set(a.draw,"."+n,""+r.append(t,i))}),Object.keys(e.uniforms).forEach(function(r){i.set(a.uniforms,"["+n.id(r)+"]",e.uniforms[r].append(t,i))}),Object.keys(e.attributes).forEach(function(n){var r=e.attributes[n].append(t,i),a=t.scopeAttrib(n);Object.keys(new X).forEach(function(t){i.set(a,"."+t,r[t])})}),r("vert"),r("frag"),0=--this.refCount&&o(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(s).forEach(function(n){t+=s[n].stats.size}),t}),{create:function(n,e){function o(n,e){var r=0,a=0,s=32854;if("object"==typeof n&&n?("shape"in n?(r=0|(a=n.shape)[0],a=0|a[1]):("radius"in n&&(r=a=0|n.radius),"width"in n&&(r=0|n.width),"height"in n&&(a=0|n.height)),"format"in n&&(s=u[n.format])):"number"==typeof n?(r=0|n,a="number"==typeof e?0|e:r):n||(r=a=1),r!==c.width||a!==c.height||s!==c.format)return o.width=c.width=r,o.height=c.height=a,c.format=s,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,s,r,a),i.profile&&(c.stats.size=lt[c.format]*c.width*c.height),o.format=f[c.format],o}var c=new a(t.createRenderbuffer());return s[c.id]=c,r.renderbufferCount++,o(n,e),o.resize=function(n,e){var r=0|n,a=0|e||r;return r===c.width&&a===c.height?o:(o.width=c.width=r,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,r,a),i.profile&&(c.stats.size=lt[c.format]*c.width*c.height),o)},o._reglType="renderbuffer",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){V(s).forEach(o)},restore:function(){V(s).forEach(function(n){n.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,n.renderbuffer),t.renderbufferStorage(36161,n.format,n.width,n.height)}),t.bindRenderbuffer(36161,null)}}},dt=[];dt[6408]=4;var pt=[];pt[5121]=1,pt[5126]=4,pt[36193]=2;var vt=["x","y","z","w"],yt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},mt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},_t={cw:2304,ccw:2305},xt=new j(!1,!1,!1,function(){});return function(t){function n(){if(0===W.length)w&&w.update(),K=null;else{K=H.next(n),l();for(var t=W.length-1;0<=t;--t){var e=W[t];e&&e(D,null,0)}y.flush(),w&&w.update()}}function e(){!K&&0=W.length&&r()}}}}function s(){var t=V.viewport,n=V.scissor_box;t[0]=t[1]=n[0]=n[1]=0,D.viewportWidth=D.framebufferWidth=D.drawingBufferWidth=t[2]=n[2]=y.drawingBufferWidth,D.viewportHeight=D.framebufferHeight=D.drawingBufferHeight=t[3]=n[3]=y.drawingBufferHeight}function l(){D.tick+=1,D.time=d(),s(),$.procs.poll()}function h(){s(),$.procs.refresh(),w&&w.update()}function d(){return(Y()-M)/1e3}if(!(t=i(t)))return null;var y=t.gl,g=y.getContextAttributes();y.isContextLost();var m=function(t,n){function e(n){var e;n=n.toLowerCase();try{e=r[n]=t.getExtension(n)}catch(t){}return!!e}for(var r={},i=0;in;++n)J(L({framebuffer:t.framebuffer.faces[n]},t),f);else J(t,f);else f(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:u({}),buffer:function(t){return O.create(t,34962,!1,!1)},elements:function(t){return j.create(t,!1)},texture:z.create2D,cube:z.createCube,renderbuffer:R.create,framebuffer:U.create,framebufferCube:U.createCube,attributes:g,frame:c,on:function(t,n){var e;switch(t){case"frame":return c(n);case"lost":e=X;break;case"restore":e=Q;break;case"destroy":e=Z}return e.push(n),{cancel:function(){for(var t=0;t1&&r--,a=6*r<1?n+6*(e-n)*r:2*r<1?e:3*r<2?n+(e-n)*(2/3-r)*6:n,i[c]=a;return i}},{}],3:[function(t,n,e){n.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},{}],4:[function(t,n,e){n.exports=function(t,n){var e=n[0],r=n[1],i=n[2],a=n[3],o=n[4],u=n[5],f=n[6],c=n[7],s=n[8],l=s*o-u*c,h=-s*a+u*f,d=c*a-o*f,p=e*l+r*h+i*d;return p?(p=1/p,t[0]=l*p,t[1]=(-s*r+i*c)*p,t[2]=(u*r-i*o)*p,t[3]=h*p,t[4]=(s*e-i*f)*p,t[5]=(-u*e+i*a)*p,t[6]=d*p,t[7]=(-c*e+r*f)*p,t[8]=(o*e-r*a)*p,t):null}},{}],5:[function(t,n,e){!function(){function t(){var t=[].slice.call(arguments),n=null;function e(t){if(null==t);else if("string"==typeof t)n?n.appendChild(document.createTextNode(t)):t.split(/([\.#]?[a-zA-Z0-9_-]+)/).forEach(function(t){var e=t.substring(1,t.length);t&&(n?"."===t[0]?n.classList.add(e):"#"===t[0]&&n.setAttribute("id",e):n=document.createElement(t))});else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(document.createTextNode(t.toString()));else if(Array.isArray(t))t.forEach(e);else if(t instanceof HTMLElement)n.appendChild(t);else if("object"==typeof t)for(var r in t)if("function"==typeof t[r])n.addEventListener(r,t[r]);else if("style"===r)for(var i in t[r])n.style.setProperty(i,t[r][i]);else n.setAttribute(r,t[r])}for(;t.length;)e(t.shift());return n}"object"==typeof n?n.exports=t:this.h=t}()},{}],6:[function(t,n,e){"use strict";var r=t("float-hsl2rgb");n.exports=function(t,n,e){return r([(t+.65)/n,.7,void 0===e?.65:e])}},{"float-hsl2rgb":2}],7:[function(t,n,e){"use strict";var r=t("gl-mat3/create"),i=t("gl-mat4/create"),a=t("./mat4-from-mat3"),o=t("gl-mat3/invert"),u=t("./mat3-from-linear-scales");n.exports=function(t){var n={view3:r(),inverseView3:r(),view:i(),inverseView:i()},e=t({context:{view3:t.prop("view3"),inverseView3:t.prop("inverseView3"),view:t.prop("view"),inverseView:t.prop("inverseView")},uniforms:{view3:t.prop("view3"),inverseView3:t.prop("inverseView3"),view:t.prop("view"),inverseView:t.prop("inverseView")}});return function(t,r,i){u(n.view3,t,r),o(n.inverseView3,n.view3),a(n.view,n.view3),a(n.inverseView,n.inverseView3),e(n,i)}}},{"./mat3-from-linear-scales":17,"./mat4-from-mat3":18,"gl-mat3/create":3,"gl-mat3/invert":4,"gl-mat4/create":19}],8:[function(t,n,e){"use strict";var r=t("gl-mat3/create"),i={t:0,r:0,b:0,l:0};n.exports=function(t){r();var n=t({scissor:{enable:!0,box:{x:function(t,n){return t.pixelRatio*n.margin.l},y:function(t,n){return t.pixelRatio*n.margin.b},width:function(t,n){return t.framebufferWidth-t.pixelRatio*(n.margin.r+n.margin.l)},height:function(t,n){return t.framebufferHeight-t.pixelRatio*(n.margin.t+n.margin.b)}}},viewport:{x:function(t,n){return t.pixelRatio*n.margin.l},y:function(t,n){return t.pixelRatio*n.margin.b},width:function(t,n){return t.framebufferWidth-t.pixelRatio*(n.margin.r+n.margin.l)},height:function(t,n){return t.framebufferHeight-t.pixelRatio*(n.margin.t+n.margin.b)}},uniforms:{viewportResolution:function(t,n){return[t.viewportWidth,t.viewportHeight]},framebufferResolution:function(t){return[t.framebufferWidth,t.framebufferHeight]},inverseViewportResolution:function(t,n){return[1/t.viewportWidth,1/t.viewportHeight]},inverseFramebufferResolution:function(t){return[1/t.framebufferWidth,1/t.framebufferHeight]},pixelRatio:t.context("pixelRatio")}});return function(t,e){var r=Object.assign({},i);t&&t.margin&&Object.assign(r,t.margin),n({margin:r},e)}}},{"gl-mat3/create":3}],9:[function(t,n,e){"use strict";var r,i,a,o,u,f,c,s,l,h,d,p,v,y,g,m,b,_,x,w;function M(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function A(t,n,e){return(n=L(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function k(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||H(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,a,o,u=[],f=!0,c=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;f=!1}else for(;!(f=(r=a.call(e)).done)&&(u.push(r.value),u.length!==n);f=!0);}catch(t){c=!0,i=t}finally{try{if(!f&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}(t,n)||H(t,n)||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 E(){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=z(t)););return t}(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:e):i.value}}).apply(this,arguments)}function S(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&B(t,n)}function C(t){var n=j();return function(){var e,r=z(t);if(n){var i=z(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return N(this,e)}}function N(t,n){if(n&&("object"===$(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return D(t)}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){var n="function"==typeof Map?new Map:void 0;return(P=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,z(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B(r,t)})(t)}function O(t,n,e){return(O=j()?Reflect.construct.bind():function(t,n,e){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(t,r));return e&&B(i,e.prototype),i}).apply(null,arguments)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function B(t,n){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function F(t,n){for(var e=0;e=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=e.call(a,"catchLoc"),f=e.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),l}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;A(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:T(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function q(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=H(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw a}}}}function H(t,n){if(t){if("string"==typeof t)return Y(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Y(t,n):void 0}}function Y(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);en?1:t>=n?0:NaN}function x(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function w(t){var n,r,i;function a(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;r(t[o],e)<0?i=o+1:a=o}while(i2&&void 0!==arguments[2]?arguments[2]:0,r=a(t,n,e,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return r>e&&i(t[r-1],n)>-i(t[r],n)?r-1:r},right:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;r(t[o],e)<=0?i=o+1:a=o}while(i=a,!n.t0){n.next=10;break}return n.next=10,a;case 10:n.next=4;break;case 12:n.next=17;break;case 14:n.prev=14,n.t1=n.catch(2),r.e(n.t1);case 17:return n.prev=17,r.f(),n.finish(17);case 20:n.next=42;break;case 22:o=-1,u=q(t),n.prev=24,u.s();case 26:if((f=u.n()).done){n.next=34;break}if(c=f.value,n.t2=null!=(c=e(c,++o,t))&&(c=+c)>=c,!n.t2){n.next=32;break}return n.next=32,c;case 32:n.next=26;break;case 34:n.next=39;break;case 36:n.prev=36,n.t3=n.catch(24),u.e(n.t3);case 39:return n.prev=39,u.f(),n.finish(39);case 42:case"end":return n.stop()}},n,null,[[2,14,17,20],[24,36,39,42]])}var F=w(e),L=F.right,H=F.left,Y=w(j).center,V=L,G=X(K),W=X(function(t){var n=K(t);return function(t,e,r,i,a){n(t,e,0+(r<<=2),0+(i<<=2),a<<=2),n(t,e,r+1,i+1,a),n(t,e,r+2,i+2,a),n(t,e,r+3,i+3,a)}});function X(t){return function(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");var i=n.data,a=n.width,o=n.height;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(void 0!==o?o:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!e&&!r)return n;var u=e&&t(e),f=r&&t(r),c=i.slice();return u&&f?(Q(u,c,i,a,o),Q(u,i,c,a,o),Q(u,c,i,a,o),Z(f,i,c,a,o),Z(f,c,i,a,o),Z(f,i,c,a,o)):u?(Q(u,i,c,a,o),Q(u,c,i,a,o),Q(u,i,c,a,o)):f&&(Z(f,i,c,a,o),Z(f,c,i,a,o),Z(f,i,c,a,o)),n}}function Q(t,n,e,r,i){for(var a=0,o=r*i;a=i){for(var u=t*r[i],f=o*t,c=i,s=i+f;c=a){for(var f=n*i[a],c=u*n,s=c+u,l=a,h=a+c;l=a&&++e}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(c=+c)>=c&&++e}}catch(t){f.e(t)}finally{f.f()}}return e}function tt(t){return 0|t.length}function nt(t){return!(t>0)}function et(t){return"object"!=$(t)||"length"in t?t:Array.from(t)}function rt(t,n){var e,r=0,i=0,a=0;if(void 0===n){var o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value;null!=f&&(f=+f)>=f&&(a+=(e=f-i)*(f-(i+=e/++r)))}}catch(t){u.e(t)}finally{u.f()}}else{var c,s=-1,l=q(t);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=(h=n(h,++s,t))&&(h=+h)>=h&&(a+=(e=h-i)*(h-(i+=e/++r)))}}catch(t){l.e(t)}finally{l.f()}}if(r>1)return a/(r-1)}function it(t,n){var e=rt(t,n);return e?Math.sqrt(e):e}function at(t,n){var e,r;if(void 0===n){var i,a=q(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;null!=o&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r=s&&(e=r=s):(e>s&&(e=s),r0){for(a=r[--i];i>0&&(t=a,!(e=(n=r[--i])-((a=t+n)-t))););i>0&&(e<0&&r[i-1]<0||e>0&&r[i-1]>0)&&((n=2*e)==(t=a+n)-a&&(a=t))}return a}}]),t}(),ut=function(t){S(e,P(Map));var n=C(e);function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;if(R(this,e),r=n.call(this),Object.defineProperties(D(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=T(a.value,2),f=u[0],c=u[1];r.set(f,c)}}catch(t){o.e(t)}finally{o.f()}}return N(r)}return I(e,[{key:"get",value:function(t){return E(z(e.prototype),"get",this).call(this,ct(this,t))}},{key:"has",value:function(t){return E(z(e.prototype),"has",this).call(this,ct(this,t))}},{key:"set",value:function(t,n){return E(z(e.prototype),"set",this).call(this,st(this,t),n)}},{key:"delete",value:function(t){return E(z(e.prototype),"delete",this).call(this,lt(this,t))}}]),e}(),ft=function(t){S(e,P(Set));var n=C(e);function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;if(R(this,e),r=n.call(this),Object.defineProperties(D(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;r.add(u)}}catch(t){o.e(t)}finally{o.f()}}return N(r)}return I(e,[{key:"has",value:function(t){return E(z(e.prototype),"has",this).call(this,ct(this,t))}},{key:"add",value:function(t){return E(z(e.prototype),"add",this).call(this,st(this,t))}},{key:"delete",value:function(t){return E(z(e.prototype),"delete",this).call(this,lt(this,t))}}]),e}();function ct(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)?e.get(r):n}function st(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function lt(t,n){var e=t._intern,r=(0,t._key)(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ht(t){return null!==t&&"object"==$(t)?t.valueOf():t}function dt(t){return t}function pt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r2?e-2:0),i=2;i2?e-2:0),i=2;i=r.length)return e(i);var o,u=new ut,f=r[a++],c=-1,s=q(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,h=f(l,++c,i),d=u.get(h);d?d.push(l):u.set(h,[l])}}catch(t){s.e(t)}finally{s.f()}var p,v=q(u);try{for(v.s();!(p=v.n()).done;){var y=T(p.value,2),g=y[0],m=y[1];u.set(g,t(m,a))}}catch(t){v.e(t)}finally{v.f()}return n(u)}(t,0)}function xt(t,n){return Array.from(n,function(n){return t[n]})}function wt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1){var a=Uint32Array.from(t,function(t,n){return n});return e.length>1?(e=e.map(function(n){return t.map(n)}),a.sort(function(t,n){var r,i=q(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=At(a[t],a[n]);if(o)return o}}catch(t){i.e(t)}finally{i.f()}})):(i=t.map(i),a.sort(function(t,n){return At(i[t],i[n])})),xt(t,a)}return t.sort(Mt(i))}function Mt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if(t===e)return At;if("function"!=typeof t)throw new TypeError("compare is not a function");return function(n,e){var r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function At(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(tn?1:0)}var kt=Array.prototype.slice;function Tt(t){return function(){return t}}var Et=Math.sqrt(50),St=Math.sqrt(10),Ct=Math.sqrt(2);function Nt(t,n,e){var r,i,a,o,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n0){var f=Math.round(t/o),c=Math.round(n/o);for(f*on&&--c,a=new Array(i=c-f+1);++un&&--l,a=new Array(i=l-s+1);++u=0?(a>=Et?10:a>=St?5:a>=Ct?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Et?10:a>=St?5:a>=Ct?2:1)}function Pt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Et?i*=10:a>=St?i*=5:a>=Ct&&(i*=2),n0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function jt(t){return Math.ceil(Math.log(J(t))/Math.LN2)+1}function Bt(){var t=dt,n=at,e=jt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,o,u=r.length,f=new Array(u);for(i=0;i=l)if(p>=l&&n===at){var y=Dt(s,l,v);isFinite(y)&&(y>0?l=(Math.floor(l/y)+1)*y:y<0&&(l=(Math.ceil(l*-y)+1)/-y))}else h.pop()}for(var g=h.length,m=0,b=g;h[m]<=s;)++m;for(;h[b-1]>l;)--b;(m||b0?h[i-1]:s,_.x1=i0)for(i=0;i=a)&&(e=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(e=c)&&(e=c)}}catch(t){f.e(t)}finally{f.f()}}return e}function Rt(t,n){var e,r=-1,i=-1;if(void 0===n){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;++i,null!=u&&(e=u)&&(e=u,r=i)}}catch(t){o.e(t)}finally{o.f()}}else{var f,c=q(t);try{for(c.s();!(f=c.n()).done;){var s=f.value;null!=(s=n(s,++i,t))&&(e=s)&&(e=s,r=i)}}catch(t){c.e(t)}finally{c.f()}}return r}function Ft(t,n){var e;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(e>a||void 0===e&&a>=a)&&(e=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&(e>c||void 0===e&&c>=c)&&(e=c)}}catch(t){f.e(t)}finally{f.f()}}return e}function It(t,n){var e,r=-1,i=-1;if(void 0===n){var a,o=q(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;++i,null!=u&&(e>u||void 0===e&&u>=u)&&(e=u,r=i)}}catch(t){o.e(t)}finally{o.f()}}else{var f,c=q(t);try{for(c.s();!(f=c.n()).done;){var s=f.value;null!=(s=n(s,++i,t))&&(e>s||void 0===e&&s>=s)&&(e=s,r=i)}}catch(t){c.e(t)}finally{c.f()}}return r}function Lt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),e=Math.floor(Math.max(0,e)),r=Math.floor(Math.min(t.length-1,r)),!(e<=n&&n<=r))return t;for(i=void 0===i?At:Mt(i);r>e;){if(r-e>600){var a=r-e+1,o=n-e+1,u=Math.log(a),f=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*f*(a-f)/a)*(o-a/2<0?-1:1);Lt(t,n,Math.max(e,Math.floor(n-o*f/a+c)),Math.min(r,Math.floor(n+(a-o)*f/a+c)),i)}var s=t[n],l=e,h=r;for(Ut(t,e,n),i(t[r],s)>0&&Ut(t,e,r);l0;)--h}0===i(t[e],s)?Ut(t,e,h):Ut(t,++h,r),h<=n&&(e=h+1),n<=h&&(r=h-1)}return t}function Ut(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function qt(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=!1;if(1===r.length){var a,o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value,c=r(f);(i?e(c,a)>0:0===e(c,c))&&(n=f,a=c,i=!0)}}catch(t){u.e(t)}finally{u.f()}}else{var s,l=q(t);try{for(l.s();!(s=l.n()).done;){var h=s.value;(i?r(h,n)>0:0===r(h,h))&&(n=h,i=!0)}}catch(t){l.e(t)}finally{l.f()}}return n}function Ht(t,n,e){if((r=(t=Float64Array.from(B(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return Ft(t);if(n>=1)return zt(t);var r,i=(r-1)*n,a=Math.floor(i),o=zt(Lt(t,a).subarray(0,a+1));return o+(Ft(t.subarray(a+1))-o)*(i-a)}}function Yt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;if((r=t.length)&&!isNaN(n=+n)){if(n<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),o=+e(t[a],a,t);return o+(+e(t[a+1],a+1,t)-o)*(i-a)}}function $t(t,n,e){if((r=(t=Float64Array.from(B(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return It(t);if(n>=1)return Rt(t);var r,i=Math.floor((r-1)*n);return qt(Lt(Uint32Array.from(t,function(t,n){return n}),i,0,r-1,function(n,e){return At(t[n],t[e])}).subarray(0,i+1),function(n){return t[n]})}}function Vt(t){return Array.from(U().mark(function t(n){var e,r,i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=q(n),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=8;break}return i=r.value,t.delegateYield(i,"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),e.e(t.t1);case 13:return t.prev=13,e.f(),t.finish(13);case 16:case"end":return t.stop()}},t,null,[[1,10,13,16]])})(t))}function Gt(t,n){return[t,n]}function Wt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),a=new Array(i);++r1&&void 0!==arguments[1]?arguments[1]:e;if(1===n.length)return It(t,n);var r,i,a=-1,o=-1,u=q(t);try{for(u.s();!(i=u.n()).done;){var f=i.value;++o,(a<0?0===n(f,f):n(f,r)<0)&&(r=f,a=o)}}catch(t){u.e(t)}finally{u.f()}return a}var Qt=Zt(Math.random);function Zt(t){return function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length)-(e=+e);r;){var i=t()*r--|0,a=n[r+e];n[r+e]=n[i+e],n[i+e]=a}return n}}function Kt(t){if(!(i=t.length))return[];for(var n=-1,e=Ft(t,Jt),r=new Array(e);++n1?0:.5,c=1===t||4===t?-1:1,s=4===t||2===t?"x":"y",l=1===t||3===t?on:un;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):rn:i,v=Math.max(a,0)+u,y=n.range(),g=+y[0]+f,m=+y[y.length-1]+f,b=(n.bandwidth?function(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}:function(t){return function(n){return+t(n)}})(n.copy(),f),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,n).order(),M=w.exit(),A=w.enter().append("g").attr("class","tick"),k=w.select("line"),T=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),k=k.merge(A.append("line").attr("stroke","currentColor").attr(s+"2",c*a)),T=T.merge(A.append("text").attr("fill","currentColor").attr(s,c*v).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),k=k.transition(h),T=T.transition(h),M=M.transition(h).attr("opacity",an).attr("transform",function(t){return isFinite(t=b(t))?l(t+f):this.getAttribute("transform")}),A.attr("opacity",an).attr("transform",function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+f)})),M.remove(),x.attr("d",4===t||2===t?o?"M"+c*o+","+g+"H"+f+"V"+m+"H"+c*o:"M"+f+","+g+"V"+m:o?"M"+g+","+c*o+"V"+f+"H"+m+"V"+c*o:"M"+g+","+f+"H"+m),w.attr("opacity",1).attr("transform",function(t){return l(b(t)+f)}),k.attr(s+"2",c*a),T.attr(s,c*v).text(p),_.filter(fn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(f=+t,h):f},h}var sn={value:function(){}};function ln(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),a=0;a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),yn.hasOwnProperty(n)?{space:yn[n],local:t}:t}function mn(t){var n=gn(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vn&&n.documentElement.namespaceURI===vn?n.createElement(t):n.createElementNS(e,t)}})(n)}function bn(){}function _n(t){return null==t?bn:function(){return this.querySelector(t)}}function xn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function wn(){return[]}function Mn(t){return null==t?wn:function(){return this.querySelectorAll(t)}}function An(t){return function(){return this.matches(t)}}function kn(t){return function(n){return n.matches(t)}}var Tn=Array.prototype.find;function En(){return this.firstElementChild}var Sn=Array.prototype.filter;function Cn(){return Array.from(this.children)}function Nn(t){return new Array(t.length)}function Dn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Pn(t,n,e,r,i,a){for(var o,u=0,f=n.length,c=a.length;un?1:t>=n?0:NaN}function Rn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fn(t,n){return t.style.getPropertyValue(n)||Rn(t).getComputedStyle(t,null).getPropertyValue(n)}function In(t){return t.trim().split(/^|\s+/)}function Ln(t){return t.classList||new Un(t)}function Un(t){this._node=t,this._names=In(t.getAttribute("class")||"")}function qn(t,n){for(var e=Ln(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ne=[null];function ee(t,n){this._groups=t,this._parents=n}function re(){return new ee([[document.documentElement]],ne)}function ie(t){return"string"==typeof t?new ee([[document.querySelector(t)]],[document.documentElement]):new ee([[t]],ne)}ee.prototype=re.prototype=A({constructor:ee,select:function(t){"function"!=typeof t&&(t=_n(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=_&&(_=b+1);!(m=y[_])&&++_=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=zn);for(var e=this._groups,r=e.length,i=new Array(r),a=0;a1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):Fn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=In(t+"");if(arguments.length<2){for(var r=Ln(this.node()),i=-1,a=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),o=a.length;if(!(arguments.length<2)){for(u=n?Jn:Kn,r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Ue(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Ue(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ne.exec(t))?new Ye(n[1],n[2],n[3],1):(n=De.exec(t))?new Ye(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Pe.exec(t))?Ue(n[1],n[2],n[3],n[4]):(n=Oe.exec(t))?Ue(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=je.exec(t))?Qe(n[1],n[2]/100,n[3]/100,1):(n=Be.exec(t))?Qe(n[1],n[2]/100,n[3]/100,n[4]):ze.hasOwnProperty(t)?Le(ze[t]):"transparent"===t?new Ye(NaN,NaN,NaN,0):null}function Le(t){return new Ye(t>>16&255,t>>8&255,255&t,1)}function Ue(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ye(t,n,e,r)}function qe(t){return t instanceof Ae||(t=Ie(t)),t?new Ye((t=t.rgb()).r,t.g,t.b,t.opacity):new Ye}function He(t,n,e,r){return 1===arguments.length?qe(t):new Ye(t,n,e,null==r?1:r)}function Ye(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function $e(){return"#".concat(Xe(this.r)).concat(Xe(this.g)).concat(Xe(this.b))}function Ve(){var t=Ge(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(We(this.r),", ").concat(We(this.g),", ").concat(We(this.b)).concat(1===t?")":", ".concat(t,")"))}function Ge(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function We(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xe(t){return((t=We(t))<16?"0":"")+t.toString(16)}function Qe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Je(t,n,e,r)}function Ze(t){if(t instanceof Je)return new Je(t.h,t.s,t.l,t.opacity);if(t instanceof Ae||(t=Ie(t)),!t)return new Je;if(t instanceof Je)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,f=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(e0&&f<1?0:o,new Je(o,u,f,t.opacity)}function Ke(t,n,e,r){return 1===arguments.length?Ze(t):new Je(t,n,e,null==r?1:r)}function Je(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function tr(t){return(t=(t||0)%360)<0?t+360:t}function nr(t){return Math.max(0,Math.min(1,t||0))}function er(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}we(Ae,Ie,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Re,formatHex:Re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:Fe,toString:Fe}),we(Ye,He,Me(Ae,{brighter:function(t){return t=null==t?ke:Math.pow(ke,t),new Ye(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ye(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new Ye(We(this.r),We(this.g),We(this.b),Ge(this.opacity))},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:$e,formatHex:$e,formatHex8:function(){return"#".concat(Xe(this.r)).concat(Xe(this.g)).concat(Xe(this.b)).concat(Xe(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Ve,toString:Ve})),we(Je,Ke,Me(Ae,{brighter:function(t){return t=null==t?ke:Math.pow(ke,t),new Je(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Je(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ye(er(t>=240?t-240:t+120,i,r),er(t,i,r),er(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new Je(tr(this.h),nr(this.s),nr(this.l),Ge(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 t=Ge(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(tr(this.h),", ").concat(100*nr(this.s),"%, ").concat(100*nr(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var rr=Math.PI/180,ir=180/Math.PI,ar=.96422,or=.82521,ur=4/29,fr=6/29,cr=3*fr*fr;function sr(t){if(t instanceof hr)return new hr(t.l,t.a,t.b,t.opacity);if(t instanceof br)return _r(t);t instanceof Ye||(t=qe(t));var n,e,r=yr(t.r),i=yr(t.g),a=yr(t.b),o=dr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?n=e=o:(n=dr((.4360747*r+.3850649*i+.1430804*a)/ar),e=dr((.0139322*r+.0971045*i+.7141733*a)/or)),new hr(116*o-16,500*(n-o),200*(o-e),t.opacity)}function lr(t,n,e,r){return 1===arguments.length?sr(t):new hr(t,n,e,null==r?1:r)}function hr(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function dr(t){return t>.008856451679035631?Math.pow(t,1/3):t/cr+ur}function pr(t){return t>fr?t*t*t:cr*(t-ur)}function vr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function yr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gr(t){if(t instanceof br)return new br(t.h,t.c,t.l,t.opacity);if(t instanceof hr||(t=sr(t)),0===t.a&&0===t.b)return new br(NaN,0=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||e<-180?e-360*Math.round(e/360):e):Or(isNaN(t)?n:t)}function zr(t,n){var e=n-t;return e?jr(t,e):Or(isNaN(t)?n:t)}var Rr=function t(n){var e=function(t){return 1==(t=+t)?zr:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Or(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=He(t)).r,(n=He(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=zr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function Fr(t){return function(n){var e,r,i=n.length,a=new Array(i),o=new Array(i),u=new Array(i);for(e=0;ea&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,f.push({i:o,x:$r(e,r)})),a=Wr.lastIndex;return a180?n+=360:n-t>180&&(t+=360),f.push({i:e.push(i(e)+"rotate(",null,r)-2,x:$r(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(a.rotate,o.rotate,u),function(t,n,e,a){t!==n?f.push({i:e.push(i(e)+"skewX(",null,r)-2,x:$r(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(a.skewX,o.skewX,u),function(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:$r(t,e)},{i:u-2,x:$r(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,f),a=o=null,function(t){for(var n,e=-1,r=f.length;++e=0&&n._call.call(void 0,t),n=n._next;--bi}function Pi(){Mi=(wi=ki.now())+Ai,bi=_i=0;try{Di()}finally{bi=0,function(){for(var t,n,e=gi,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:gi=n);mi=t,ji(r)}(),Mi=0}}function Oi(){var t=ki.now(),n=t-wi;n>1e3&&(Ai-=n,wi=t)}function ji(t){bi||(_i&&(_i=clearTimeout(_i)),t-Mi>24?(t<1/0&&(_i=setTimeout(Pi,t-ki.now()-Ai)),xi&&(xi=clearInterval(xi))):(xi||(wi=ki.now(),xi=setInterval(Oi,1e3)),bi=1,Ti(Pi)))}function Bi(t,n,e){var r=new Ci;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}Ci.prototype=Ni.prototype={constructor:Ci,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ei():+e)+(null==n?0:+n),this._next||mi===this||(mi?mi._next=this:gi=this,mi=this),this._call=t,this._time=e,ji()},stop:function(){this._call&&(this._call=null,this._time=1/0,ji())}};var zi=ln("start","end","cancel","interrupt"),Ri=[];function Fi(t,n,e,r,i,a){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function a(f){var c,s,l,h;if(1!==e.state)return u();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Bi(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function Li(t,n){var e=Ui(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ui(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function qi(t,n){var e,r,i,a=t.__transition,o=!0;if(a){for(i in n=null==n?null:n+"",a)(e=a[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete a[i]):o=!1;o&&delete t.__transition}}function Hi(t,n,e){var r=t._id;return t.each(function(){var t=Li(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Ui(t,r).value[n]}}function Yi(t,n){var e;return("number"==typeof n?$r:n instanceof Ie?Rr:(e=Ie(n))?(n=e,Rr):Xr)(t,n)}var $i=re.prototype.constructor;function Vi(t){return function(){this.style.removeProperty(t)}}var Gi=0;function Wi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Xi(t){return re().transition(t)}function Qi(){return++Gi}var Zi=re.prototype;function Ki(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Ji(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Wi.prototype=Xi.prototype=A({constructor:Wi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=_n(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o=0&&(t=t.slice(0,n)),!t||"start"===t})?Ii:Li;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(n,e),o.on=i}}(e,t,n))},attr:function(t,n){var e=gn(t),r="transform"===e?ii:Yi;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,a;return function(){var o,u,f=e(this);if(null!=f)return(o=this.getAttributeNS(t.space,t.local))===(u=f+"")?null:o===r&&u===i?a:(i=u,a=n(r=o,f));this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,a;return function(){var o,u,f=e(this);if(null!=f)return(o=this.getAttribute(t))===(u=f+"")?null:o===r&&u===i?a:(i=u,a=n(r=o,f));this.removeAttribute(t)}})(e,r,Hi(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=n(r=o,e)}}:function(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=n(r=o,e)}})(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=gn(t);return this.tween(e,(r.local?function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}:function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ri:Yi;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var a=Fn(this,t),o=(this.style.removeProperty(t),Fn(this,t));return a===o?null:a===e&&o===r?i:i=n(e=a,r=o)}}(t,r)).on("end.style."+t,Vi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,a;return function(){var o=Fn(this,t),u=e(this),f=u+"";return null==u&&(this.style.removeProperty(t),f=u=Fn(this,t)),o===f?null:o===r&&f===i?a:(i=f,a=n(r=o,u))}}(t,r,Hi(this,"style."+t,n))).each(function(t,n){var e,r,i,a,o="style."+n,u="end."+o;return function(){var f=Li(this,t),c=f.on,s=null==f.value[o]?a||(a=Vi(n)):void 0;c===e&&i===s||(r=(e=c).copy()).on(u,i=s),f.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,a=e+"";return function(){var o=Fn(this,t);return o===a?null:o===r?i:i=n(r=o,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function a(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,a,e)),r}return a._value=n,a}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Hi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Ui(this.node(),e).tween,a=0,o=i.length;a1&&L(e)}else i=k[0][0],u=k[0][1],l=k[1][0],d=k[1][1];o=i,f=u,h=l,p=d;var z=ie(m).attr("pointer-events","none"),R=z.selectAll(".overlay").attr("cursor",Fa[b]);if(e.touches)j.moved=I,j.ended=U;else{var F=ie(e.view).on("mousemove.brush",I,!0).on("mouseup.brush",U,!0);a&&F.on("keydown.brush",function(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===Sa&&(x&&(l=h-N*x,i=o+N*x),w&&(d=p-D*w,u=f+D*w),_=Ca,L(t));break;case 32:_!==Sa&&_!==Ca||(x<0?l=h-N:x>0&&(i=o-N),w<0?d=p-D:w>0&&(u=f-D),_=Ea,R.attr("cursor",Fa.selection),L(t));break;default:return}ka(t)},!0).on("keyup.brush",function(t){switch(t.keyCode){case 16:P&&(y=g=P=!1,L(t));break;case 18:_===Ca&&(x<0?l=h:x>0&&(i=o),w<0?d=p:w>0&&(u=f),_=Sa,L(t));break;case 32:_===Ea&&(t.altKey?(x&&(l=h-N*x,i=o+N*x),w&&(d=p-D*w,u=f+D*w),_=Ca):(x<0?l=h:x>0&&(i=o),w<0?d=p:w>0&&(u=f),_=Sa),R.attr("cursor",Fa[b]),L(t));break;default:return}ka(t)},!0),pe(e.view)}c.call(m),j.start(e,_.name)}function I(t){var n,e=q(t.changedTouches||[t]);try{for(e.s();!(n=e.n()).done;){var r,i=n.value,a=q(O);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.identifier===i.identifier&&(o.cur=ce(i,m))}}catch(t){a.e(t)}finally{a.f()}}}catch(t){e.e(t)}finally{e.f()}if(P&&!y&&!g&&1===O.length){var u=O[0];Na(u.cur[0]-u[0])>Na(u.cur[1]-u[1])?g=!0:y=!0}var f,c=q(O);try{for(c.s();!(f=c.n()).done;){var s=f.value;s.cur&&(s[0]=s.cur[0],s[1]=s.cur[1])}}catch(t){c.e(t)}finally{c.f()}v=!0,ka(t),L(t)}function L(t){var n,e=O[0],r=e.point0;switch(N=e[0]-r[0],D=e[1]-r[1],_){case Ea:case Ta:x&&(N=Da(T-i,Pa(S-l,N)),o=i+N,h=l+N),w&&(D=Da(E-u,Pa(C-d,D)),f=u+D,p=d+D);break;case Sa:O[1]?(x&&(o=Da(T,Pa(S,O[0][0])),h=Da(T,Pa(S,O[1][0])),x=1),w&&(f=Da(E,Pa(C,O[0][1])),p=Da(E,Pa(C,O[1][1])),w=1)):(x<0?(N=Da(T-i,Pa(S-i,N)),o=i+N,h=l):x>0&&(N=Da(T-l,Pa(S-l,N)),o=i,h=l+N),w<0?(D=Da(E-u,Pa(C-u,D)),f=u+D,p=d):w>0&&(D=Da(E-d,Pa(C-d,D)),f=u,p=d+D));break;case Ca:x&&(o=Da(T,Pa(S,i-N*x)),h=Da(T,Pa(S,l+N*x))),w&&(f=Da(E,Pa(C,u-D*w)),p=Da(E,Pa(C,d+D*w)))}h=0))throw new Error("invalid digits: ".concat(t));if(n>15)return co;var e=Math.pow(10,n);return function(t){this._+=t[0];for(var n=1,r=t.length;nuo)if(Math.abs(p*u-h*d)>uo&&i){var y=e-a,g=r-o,m=u*u+h*h,b=y*y+g*g,_=Math.sqrt(m),x=Math.sqrt(v),w=i*Math.tan((ao-Math.acos((m+v-b)/(2*_*x)))/2),A=w/x,k=w/_;Math.abs(A-1)>uo&&this._append(c||(c=M(["L",",",""])),t+A*d,n+A*p),this._append(s||(s=M(["A",",",",0,0,",",",",",""])),i,i,+(p*y>d*g),this._x1=t+k*u,this._y1=n+k*h)}else this._append(l||(l=M(["L",",",""])),this._x1=t,this._y1=n)}},{key:"arc",value:function(t,n,e,r,i,a){if(t=+t,n=+n,a=!!a,(e=+e)<0)throw new Error("negative radius: ".concat(e));var o=e*Math.cos(r),u=e*Math.sin(r),f=t+o,c=n+u,s=1^a,l=a?r-i:i-r;null===this._x1?this._append(h||(h=M(["M",",",""])),f,c):(Math.abs(this._x1-f)>uo||Math.abs(this._y1-c)>uo)&&this._append(d||(d=M(["L",",",""])),f,c),e&&(l<0&&(l=l%oo+oo),l>fo?this._append(p||(p=M(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),e,e,s,t-o,n-u,e,e,s,this._x1=f,this._y1=c):l>uo&&this._append(v||(v=M(["A",",",",0,",",",",",",",""])),e,e,+(l>=ao),s,this._x1=t+e*Math.cos(i),this._y1=n+e*Math.sin(i)))}},{key:"rect",value:function(t,n,e,r){this._append(y||(y=M(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+n,e=+e,+r,-e)}},{key:"toString",value:function(){return this._}}]),t}();function lo(){return new so}lo.prototype=so.prototype;var ho=Array.prototype.slice;function po(t){return function(){return t}}function vo(t){return t.source}function yo(t){return t.target}function go(t){return t.radius}function mo(t){return t.startAngle}function bo(t){return t.endAngle}function _o(){return 0}function xo(){return 10}function wo(t){var n=vo,e=yo,r=go,i=go,a=mo,o=bo,u=_o,f=null;function c(){var c,s=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=ho.call(arguments),p=+r.apply(this,(d[0]=s,d)),v=a.apply(this,d)-Ja,y=o.apply(this,d)-Ja,g=+i.apply(this,(d[0]=l,d)),m=a.apply(this,d)-Ja,b=o.apply(this,d)-Ja;if(f||(f=c=lo()),h>eo&&(Xa(y-v)>2*h+eo?y>v?(v+=h,y-=h):(v-=h,y+=h):v=y=(v+y)/2,Xa(b-m)>2*h+eo?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),f.moveTo(p*Qa(v),p*Za(v)),f.arc(0,0,p,v,y),v!==m||y!==b)if(t){var _=g-+t.apply(this,arguments),x=(m+b)/2;f.quadraticCurveTo(0,0,_*Qa(m),_*Za(m)),f.lineTo(g*Qa(x),g*Za(x)),f.lineTo(_*Qa(b),_*Za(b))}else f.quadraticCurveTo(0,0,g*Qa(m),g*Za(m)),f.arc(0,0,g,m,b);if(f.quadraticCurveTo(0,0,p*Qa(v),p*Za(v)),f.closePath(),c)return f=null,c+""||null}return t&&(c.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:po(+n),c):t}),c.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:po(+t),c):r},c.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:po(+t),c):r},c.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:po(+t),c):i},c.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:po(+t),c):a},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:po(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:po(+t),c):u},c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(e=t,c):e},c.context=function(t){return arguments.length?(f=null==t?null:t,c):f},c}var Mo=Array.prototype.slice;function Ao(t,n){return t-n}var ko=function(t){return function(){return t}};function To(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-c)*(r-s)/(d-s)+c&&(i=-i)}return i}function So(t,n,e){var r,i,a,o;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],a=e[r],o=n[r],i<=a&&a<=o||o<=a&&a<=i)}function Co(){}var No=[[],[[[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 Do(){var t=1,n=1,e=jt,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ao);else{var r=at(t),i=Pt(r[0],r[1],n);n=Nt(Math.floor(r[0]/i)*i,Math.floor(r[1]/i-1)*i,n)}return n.map(function(n){return a(t,n)})}function a(e,i){var a=[],u=[];return function(e,r,i){var a,u,f,c,s,l,h=new Array,d=new Array;for(a=u=-1,c=e[0]>=r,No[c<<1].forEach(p);++a=r,No[f|c<<1].forEach(p);for(No[c<<0].forEach(p);++u=r,s=e[u*t]>=r,No[c<<1|s<<2].forEach(p);++a=r,l=s,s=e[u*t+a+1]>=r,No[f|c<<1|s<<2|l<<3].forEach(p);No[c|s<<3].forEach(p)}for(a=-1,s=e[u*t]>=r,No[s<<2].forEach(p);++a=r,No[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+a,t[0][1]+u],f=[t[1][0]+a,t[1][1]+u],c=o(r),s=o(f);(n=d[c])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(f),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(f),d[n.end=s]=n):(n=h[s])?(e=d[c])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(f),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=c]=n):h[c]=d[s]={start:c,end:s,ring:[r,f]}}No[s<<3].forEach(p)}(e,i,function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?a.push([t]):u.push(t)}),u.forEach(function(t){for(var n,e=0,r=a.length;e0&&o0&&u=0&&a>=0))throw new Error("invalid size");return t=r,n=a,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?ko(Mo.call(t)):ko(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Co,i):r===u},i}function Po(t){return t[0]}function Oo(t){return t[1]}function jo(){return 1}var Bo=134217729;function zo(t,n,e,r,i){var a,o,u,f,c=n[0],s=r[0],l=0,h=0;s>c==s>-c?(a=c,c=n[++l]):(a=s,s=r[++h]);var d=0;if(lc==s>-c?(u=a-((o=c+a)-c),c=n[++l]):(u=a-((o=s+a)-s),s=r[++h]),a=o,0!==u&&(i[d++]=u);lc==s>-c?(u=a-((o=a+c)-(f=o-a))+(c-f),c=n[++l]):(u=a-((o=a+s)-(f=o-a))+(s-f),s=r[++h]),a=o,0!==u&&(i[d++]=u);for(;l0!=u>0)return f;var c=Math.abs(o+u);return Math.abs(f)>=3.3306690738754716e-16*c?f:-function(t,n,e,r,i,a,o){var u,f,c,s,l,h,d,p,v,y,g,m,b,_,x,w,M,A,k=t-i,T=e-i,E=n-a,S=r-a;l=(x=(p=k-(d=(h=Bo*k)-(h-k)))*(y=S-(v=(h=Bo*S)-(h-S)))-((_=k*S)-d*v-p*v-d*y))-(g=x-(M=(p=E-(d=(h=Bo*E)-(h-E)))*(y=T-(v=(h=Bo*T)-(h-T)))-((w=E*T)-d*v-p*v-d*y))),Fo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),Fo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,Fo[2]=m-(A-l)+(g-l),Fo[3]=A;var C=function(t,n){for(var e=n[0],r=1;r<4;r++)e+=n[r];return e}(0,Fo),N=2.2204460492503146e-16*o;if(C>=N||-C>=N)return C;if(u=t-(k+(l=t-k))+(l-i),c=e-(T+(l=e-T))+(l-i),f=n-(E+(l=n-E))+(l-a),s=r-(S+(l=r-S))+(l-a),0===u&&0===f&&0===c&&0===s)return C;if(N=1.1093356479670487e-31*o+3.3306690738754706e-16*Math.abs(C),(C+=k*s+S*u-(E*c+T*f))>=N||-C>=N)return C;l=(x=(p=u-(d=(h=Bo*u)-(h-u)))*(y=S-(v=(h=Bo*S)-(h-S)))-((_=u*S)-d*v-p*v-d*y))-(g=x-(M=(p=f-(d=(h=Bo*f)-(h-f)))*(y=T-(v=(h=Bo*T)-(h-T)))-((w=f*T)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var D=zo(4,Fo,4,qo,Io);l=(x=(p=k-(d=(h=Bo*k)-(h-k)))*(y=s-(v=(h=Bo*s)-(h-s)))-((_=k*s)-d*v-p*v-d*y))-(g=x-(M=(p=E-(d=(h=Bo*E)-(h-E)))*(y=c-(v=(h=Bo*c)-(h-c)))-((w=E*c)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var P=zo(D,Io,4,qo,Lo);l=(x=(p=u-(d=(h=Bo*u)-(h-u)))*(y=s-(v=(h=Bo*s)-(h-s)))-((_=u*s)-d*v-p*v-d*y))-(g=x-(M=(p=f-(d=(h=Bo*f)-(h-f)))*(y=c-(v=(h=Bo*c)-(h-c)))-((w=f*c)-d*v-p*v-d*y))),qo[0]=x-(g+l)+(l-M),l=(b=_-((m=_+g)-(l=m-_))+(g-l))-(g=b-w),qo[1]=b-(g+l)+(l-w),l=(A=m+g)-m,qo[2]=m-(A-l)+(g-l),qo[3]=A;var O=zo(P,Lo,4,qo,Uo);return Uo[O-1]}(t,n,e,r,i,a,c)}var Yo=Math.pow(2,-52),$o=new Uint32Array(512),Vo=function(){function t(n){R(this,t);var e=n.length>>1;if(e>0&&"number"!=typeof n[0])throw new Error("Expected coords to contain numbers.");this.coords=n;var r=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}return I(t,[{key:"update",value:function(){for(var t=this.coords,n=this._hullPrev,e=this._hullNext,r=this._hullTri,i=this._hullHash,a=t.length>>1,o=1/0,u=1/0,f=-1/0,c=-1/0,s=0;sf&&(f=l),h>c&&(c=h),this._ids[s]=s}for(var d,p,v,y=(o+f)/2,g=(u+c)/2,m=1/0,b=0;b0&&(p=M,m=A)}for(var k=t[2*p],T=t[2*p+1],E=1/0,S=0;Sz&&(O[j++]=R,z=this._dists[R])}return this.hull=O.subarray(0,j),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Ho(x,w,k,T,N,D)<0){var F=p,I=k,L=T;p=v,k=N,T=D,v=F,N=I,D=L}var U=function(t,n,e,r,i,a){var o=k-x,u=T-w,f=N-x,c=D-w,s=o*o+u*u,l=f*f+c*c,h=.5/(o*c-u*f);return{x:x+(c*s-u*l)*h,y:w+(o*l-f*s)*h}}();this._cx=U.x,this._cy=U.y;for(var q=0;q0&&Math.abs(W-Y)<=Yo&&Math.abs(X-$)<=Yo)&&(Y=W,$=X,G!==d&&G!==p&&G!==v)){for(var Q=0,Z=0,K=this._hashKey(W,X);Z=0;)if((tt=J)===Q){tt=-1;break}if(-1!==tt){var nt=this._addTriangle(tt,G,e[tt],-1,-1,r[tt]);r[G]=this._legalize(nt+2),r[tt]=nt,H++;for(var et=e[tt];J=e[et],Ho(W,X,t[2*et],t[2*et+1],t[2*J],t[2*J+1])<0;)nt=this._addTriangle(et,G,J,r[G],-1,r[et]),r[G]=this._legalize(nt+2),e[et]=et,H--,et=J;if(tt===Q)for(;Ho(W,X,t[2*(J=n[tt])],t[2*J+1],t[2*tt],t[2*tt+1])<0;)nt=this._addTriangle(J,G,tt,-1,r[tt],r[J]),this._legalize(nt+2),r[J]=nt,e[tt]=tt,H--,tt=J;this._hullStart=n[G]=tt,e[tt]=n[et]=G,e[G]=et,i[this._hashKey(W,X)]=G,i[this._hashKey(t[2*tt],t[2*tt+1])]=tt}}}this.hull=new Uint32Array(H);for(var rt=0,it=this._hullStart;rt0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}},{key:"_legalize",value:function(t){for(var n=this._triangles,e=this._halfedges,r=this.coords,i=0,a=0;;){var o=e[t],u=t-t%3;if(a=u+(t+2)%3,-1!==o){var f=o-o%3,c=u+(t+1)%3,s=f+(o+2)%3,l=n[a],h=n[t],d=n[c],p=n[s];if(Wo(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[o]=l;var v=e[s];if(-1===v){var y=this._hullStart;do{if(this._hullTri[y]===s){this._hullTri[y]=t;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(t,v),this._link(o,e[a]),this._link(a,s);var g=f+(o+1)%3;i<$o.length&&($o[i++]=g)}else{if(0===i)break;t=$o[--i]}}else{if(0===i)break;t=$o[--i]}}return a}},{key:"_link",value:function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}},{key:"_addTriangle",value:function(t,n,e,r,i,a){var o=this.trianglesLen;return this._triangles[o]=t,this._triangles[o+1]=n,this._triangles[o+2]=e,this._link(o,r),this._link(o+1,i),this._link(o+2,a),this.trianglesLen+=3,o}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jo,i=n.length,a=new Float64Array(2*i),o=0;o=e&&n[t[u]]>o;)t[u+1]=t[u--];t[u+1]=a}else{var f=e+1,c=r;Zo(t,e+r>>1,f),n[t[e]]>n[t[r]]&&Zo(t,e,r),n[t[f]]>n[t[r]]&&Zo(t,f,r),n[t[e]]>n[t[f]]&&Zo(t,e,f);for(var s=t[f],l=n[s];;){do{f++}while(n[t[f]]l);if(c=c-e?(Qo(t,n,f,r),Qo(t,n,e,c-1)):(Qo(t,n,e,c-1),Qo(t,n,f,r))}}function Zo(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function Ko(t){return t[0]}function Jo(t){return t[1]}var tu=function(){function t(){R(this,t),this._x0=this._y0=this._x1=this._y1=null,this._=""}return I(t,[{key:"moveTo",value:function(t,n){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+n)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}},{key:"lineTo",value:function(t,n){this._+="L".concat(this._x1=+t,",").concat(this._y1=+n)}},{key:"arc",value:function(t,n,e){var r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(r,",").concat(i):(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),e&&(this._+="A".concat(e,",").concat(e,",0,1,1,").concat(t-e,",").concat(n,"A").concat(e,",").concat(e,",0,1,1,").concat(this._x1=r,",").concat(this._y1=i))}},{key:"rect",value:function(t,n,e,r){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+n,"h").concat(+e,"v").concat(+r,"h").concat(-e,"Z")}},{key:"value",value:function(){return this._||null}}]),t}(),nu=function(){function t(){R(this,t),this._=[]}return I(t,[{key:"moveTo",value:function(t,n){this._.push([t,n])}},{key:"closePath",value:function(){this._.push(this._[0].slice())}},{key:"lineTo",value:function(t,n){this._.push([t,n])}},{key:"value",value:function(){return this._.length?this._:null}}]),t}(),eu=function(){function t(n){var e=T(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500],4),r=e[0],i=e[1],a=e[2],o=e[3];if(R(this,t),!((a=+a)>=(r=+r)&&(o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(2*n.points.length),this.vectors=new Float64Array(2*n.points.length),this.xmax=a,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}return I(t,[{key:"update",value:function(){return this.delaunay.update(),this._init(),this}},{key:"_init",value:function(){for(var t,n,e=this.delaunay,r=e.points,i=e.hull,a=e.triangles,o=this.vectors,u=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2),f=0,c=0,s=a.length;f1;)i-=2;for(var a=2;a4)for(var u=0;u0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)this.xmax?2:0)|(nthis.ymax?8:0)}}]),t}(),ru=2*Math.PI,iu=Math.pow;function au(t){return t[0]}function ou(t){return t[1]}function uu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var fu=function(){function t(n){R(this,t),this._delaunator=new Vo(n),this.inedges=new Int32Array(n.length/2),this._hullIndex=new Int32Array(n.length/2),this.points=this._delaunator.coords,this._init()}return I(t,[{key:"update",value:function(){return this._delaunator.update(),this._init(),this}},{key:"_init",value:function(){var t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},function(t,n){return n}).sort(function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]});for(var e=this.collinear[0],r=this.collinear[this.collinear.length-1],i=[n[2*e],n[2*e+1],n[2*r],n[2*r+1]],a=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]),o=0,u=n.length/2;o0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],h[s[0]]=1,2===s.length&&(h[s[1]]=0,this.triangles[1]=s[1],this.triangles[2]=s[1]))}},{key:"voronoi",value:function(t){return new eu(this,t)}},{key:"neighbors",value:U().mark(function t(n){var e,r,i,a,o,u,f,c,s,l,h;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.inedges,r=this.hull,i=this._hullIndex,a=this.halfedges,o=this.triangles,!(u=this.collinear)){t.next=13;break}if(f=u.indexOf(n),t.t0=f>0,!t.t0){t.next=7;break}return t.next=7,u[f-1];case 7:if(t.t1=f2&&void 0!==arguments[2]?arguments[2]:0;if((t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r}},{key:"_step",value:function(t,n,e){var r=this.inedges,i=this.hull,a=this._hullIndex,o=this.halfedges,u=this.triangles,f=this.points;if(-1===r[t]||!f.length)return(t+1)%(f.length>>1);var c=t,s=iu(n-f[2*t],2)+iu(e-f[2*t+1],2),l=r[t],h=l;do{var d=u[h],p=iu(n-f[2*d],2)+iu(e-f[2*d+1],2);if(p1&&void 0!==arguments[1]?arguments[1]:au,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ou,i=arguments.length>3?arguments[3]:void 0;return new t("length"in n?function(t,n,e,r){for(var i=t.length,a=new Float64Array(2*i),o=0;o=a?f=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o9999?"+"+du(n,6):du(n,4))+"-"+du(t.getUTCMonth()+1,2)+"-"+du(t.getUTCDate(),2)+(a?"T"+du(e,2)+":"+du(r,2)+":"+du(i,2)+"."+du(a,3)+"Z":i?"T"+du(e,2)+":"+du(r,2)+":"+du(i,2)+"Z":r||e?"T"+du(e,2)+":"+du(r,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,a=r(t,function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=lu(t);return function(r,i){return n(e(r),i,t)}}(t,n):lu(t)});return a.columns=i||[],a},parseRows:r,format:function(n,e){return null==e&&(e=hu(n)),[e.map(o).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=hu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var vu=pu(","),yu=vu.parse,gu=vu.parseRows,mu=vu.format,bu=vu.formatBody,_u=vu.formatRows,xu=vu.formatRow,wu=vu.formatValue,Mu=pu("\t"),Au=Mu.parse,ku=Mu.parseRows,Tu=Mu.format,Eu=Mu.formatBody,Su=Mu.formatRows,Cu=Mu.formatRow,Nu=Mu.formatValue,Du=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Pu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Ou(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function ju(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Bu(t,n){return fetch(t,n).then(ju)}function zu(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Bu(n,e).then(function(n){return t(n,r)})}}var Ru=zu(yu),Fu=zu(Au);function Iu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Lu(t){return function(n,e){return Bu(n,e).then(function(n){return(new DOMParser).parseFromString(n,t)})}}var Uu=Lu("application/xml"),qu=Lu("text/html"),Hu=Lu("image/svg+xml");function Yu(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,a,o,u,f,c,s,l,h,d=t._root,p={data:r},v=t._x0,y=t._y0,g=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=n>=(a=(v+g)/2))?v=a:g=a,(s=e>=(o=(y+m)/2))?y=o:m=o,i=d,!(d=d[l=s<<1|c]))return i[l]=p,t;if(u=+t._x.call(null,d.data),f=+t._y.call(null,d.data),n===u&&e===f)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=n>=(a=(v+g)/2))?v=a:g=a,(s=e>=(o=(y+m)/2))?y=o:m=o}while((l=s<<1|c)==(h=(f>=o)<<1|u>=a));return i[h]=d,i[l]=p,t}function $u(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Vu(t){return t[0]}function Gu(t){return t[1]}function Wu(t,n,e){var r=new Xu(null==n?Vu:n,null==e?Gu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Xu(t,n,e,r,i,a){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Qu(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Zu=Wu.prototype=Xu.prototype;function Ku(t){return function(){return t}}function Ju(t){return 1e-6*(t()-.5)}function tf(t){return t.x+t.vx}function nf(t){return t.y+t.vy}function ef(t){return t.index}function rf(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}Zu.copy=function(){var t,n,e=new Xu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Qu(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Qu(n));return e},Zu.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Yu(this.cover(n,e),n,e,t)},Zu.addAll=function(t){var n,e,r,i,a=t.length,o=new Array(a),u=new Array(a),f=1/0,c=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(f>s||c>l)return this;for(this.cover(f,c).cover(s,l),e=0;et||t>=i||r>n||n>=a;)switch(u=(nh||(a=f.y0)>d||(o=f.x1)=g)<<1|t>=y)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=f)}else{var m=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),_=m*m+b*b;if(_=(u=(p+y)/2))?p=u:y=u,(s=o>=(f=(v+g)/2))?v=f:g=f,n=d,!(d=d[l=s<<1|c]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Zu.removeAll=function(t){for(var n=0,e=t.length;n1?r[0]+r.slice(2):r,+t.slice(e+1)]}function sf(t){return(t=cf(Math.abs(t)))?t[1]:NaN}var lf,hf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function df(t){if(!(n=hf.exec(t)))throw new Error("invalid format: "+t);var n;return new pf({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function pf(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function vf(t,n){var e=cf(t,n);if(!e)return t+"";var r=e[0],i=e[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")}df.prototype=pf.prototype,pf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var yf={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return vf(100*t,n)},r:vf,s:function(t,n){var e=cf(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(lf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+cf(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function gf(t){return t}var mf,bf=Array.prototype.map,_f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xf(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?gf:(n=bf.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,u=n[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),a.push(t.substring(i-=u,i+u)),!((f+=u+1)>r));)u=n[o=(o+1)%n.length];return a.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?gf:function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(bf.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=df(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,y=t.precision,g=t.trim,m=t.type;"n"===m?(v=!0,m="g"):yf[m]||(void 0===y&&(y=12),g=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?a:/[%p]/.test(m)?f:"",x=yf[m],w=/[defgprs%]/.test(m);function M(t){var i,a,f,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),y),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:c:"-"===l||"("===l?"":l)+h,M=("s"===m?_f[8+lf/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,a=t.length;++i(f=t.charCodeAt(i))||f>57){M=(46===f?o+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var k=h.length+t.length+M.length,T=k>1)+h+t+M+T.slice(k);break;default:t=T+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=df(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(sf(n)/3))),i=Math.pow(10,-r),a=_f[8+r/3];return function(t){return e(i*t)+a}}}}function wf(n){return mf=xf(n),t.format=mf.format,t.formatPrefix=mf.formatPrefix,mf}function Mf(t){return Math.max(0,-sf(Math.abs(t)))}function Af(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sf(n)/3)))-sf(Math.abs(t)))}function kf(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,sf(n)-sf(t))+1}t.format=void 0,t.formatPrefix=void 0,wf({thousands:",",grouping:[3],currency:["$",""]});var Tf=1e-6,Ef=1e-12,Sf=Math.PI,Cf=Sf/2,Nf=Sf/4,Df=2*Sf,Pf=180/Sf,Of=Sf/180,jf=Math.abs,Bf=Math.atan,zf=Math.atan2,Rf=Math.cos,Ff=Math.ceil,If=Math.exp,Lf=Math.hypot,Uf=Math.log,qf=Math.pow,Hf=Math.sin,Yf=Math.sign||function(t){return t>0?1:t<0?-1:0},$f=Math.sqrt,Vf=Math.tan;function Gf(t){return t>1?0:t<-1?Sf:Math.acos(t)}function Wf(t){return t>1?Cf:t<-1?-Cf:Math.asin(t)}function Xf(t){return(t=Hf(t/2))*t}function Qf(){}function Zf(t,n){t&&Jf.hasOwnProperty(t.type)&&Jf[t.type](t,n)}var Kf={Feature:function(t,n){Zf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,a=Rf(n=(n*=Of)/2+Nf),o=Hf(n),u=uc*o,f=oc*a+u*Rf(i),c=u*r*Hf(i);bc.add(zf(c,f)),ac=t,oc=a,uc=o}function Tc(t){return[zf(t[1],t[0]),Wf(t[2])]}function Ec(t){var n=t[0],e=t[1],r=Rf(e);return[r*Rf(n),r*Hf(n),Hf(e)]}function Sc(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Cc(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Nc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Dc(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Pc(t){var n=$f(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Oc,jc,Bc,zc,Rc,Fc,Ic,Lc,Uc,qc,Hc,Yc,$c,Vc,Gc,Wc,Xc={point:Qc,lineStart:Kc,lineEnd:Jc,polygonStart:function(){Xc.point=ts,Xc.lineStart=ns,Xc.lineEnd=es,yc=new ot,xc.polygonStart()},polygonEnd:function(){xc.polygonEnd(),Xc.point=Qc,Xc.lineStart=Kc,Xc.lineEnd=Jc,bc<0?(fc=-(sc=180),cc=-(lc=90)):yc>Tf?lc=90:yc<-1e-6&&(cc=-90),mc[0]=fc,mc[1]=sc},sphere:function(){fc=-(sc=180),cc=-(lc=90)}};function Qc(t,n){gc.push(mc=[fc=t,sc=t]),nlc&&(lc=n)}function Zc(t,n){var e=Ec([t*Of,n*Of]);if(vc){var r=Cc(vc,e),i=Cc([r[1],-r[0],0],r);Pc(i),i=Tc(i);var a,o=t-hc,u=o>0?1:-1,f=i[0]*Pf*u,c=jf(o)>180;c^(u*hclc&&(lc=a):c^(u*hc<(f=(f+360)%360-180)&&flc&&(lc=n)),c?trs(fc,sc)&&(sc=t):rs(t,sc)>rs(fc,sc)&&(fc=t):sc>=fc?(tsc&&(sc=t)):t>hc?rs(fc,t)>rs(fc,sc)&&(sc=t):rs(t,sc)>rs(fc,sc)&&(fc=t)}else gc.push(mc=[fc=t,sc=t]);nlc&&(lc=n),vc=e,hc=t}function Kc(){Xc.point=Zc}function Jc(){mc[0]=fc,mc[1]=sc,Xc.point=Qc,vc=null}function ts(t,n){if(vc){var e=t-hc;yc.add(jf(e)>180?e+(e>0?360:-360):e)}else dc=t,pc=n;xc.point(t,n),Zc(t,n)}function ns(){xc.lineStart()}function es(){ts(dc,pc),xc.lineEnd(),jf(yc)>Tf&&(fc=-(sc=180)),mc[0]=fc,mc[1]=sc,vc=null}function rs(t,n){return(n-=t)<0?n+360:n}function is(t,n){return t[0]-n[0]}function as(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nSf&&(t-=Math.round(t/Df)*Df),[t,n]}function _s(t,n,e){return(t%=Df)?n||e?ms(ws(t),Ms(n,e)):ws(t):n||e?Ms(n,e):bs}function xs(t){return function(n,e){return jf(n+=t)>Sf&&(n-=Math.round(n/Df)*Df),[n,e]}}function ws(t){var n=xs(t);return n.invert=xs(-t),n}function Ms(t,n){var e=Rf(t),r=Hf(t),i=Rf(n),a=Hf(n);function o(t,n){var o=Rf(n),u=Rf(t)*o,f=Hf(t)*o,c=Hf(n),s=c*e+u*r;return[zf(f*i-s*a,u*e-c*r),Wf(s*i+f*a)]}return o.invert=function(t,n){var o=Rf(n),u=Rf(t)*o,f=Hf(t)*o,c=Hf(n),s=c*i-f*a;return[zf(f*i+c*a,u*e+s*r),Wf(s*e-u*r)]},o}function As(t){function n(n){return(n=t(n[0]*Of,n[1]*Of))[0]*=Pf,n[1]*=Pf,n}return t=_s(t[0]*Of,t[1]*Of,t.length>2?t[2]*Of:0),n.invert=function(n){return(n=t.invert(n[0]*Of,n[1]*Of))[0]*=Pf,n[1]*=Pf,n},n}function ks(t,n,e,r,i,a){if(e){var o=Rf(n),u=Hf(n),f=r*e;null==i?(i=n+r*Df,a=n-f/2):(i=Ts(o,i),a=Ts(o,a),(r>0?ia)&&(i+=r*Df));for(var c,s=i;r>0?s>a:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Ss(t,n){return jf(t[0]-n[0])=0;--a)i.point((s=c[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Ds(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,T=k*A,E=T>Sf,S=y*w;if(f.add(zf(S*k*Hf(T),g*M+S*Rf(T))),o+=E?A+k*Df:A,E^p>=e^_>=e){var C=Cc(Ec(d),Ec(b));Pc(C);var N=Cc(a,C);Pc(N);var D=(E^A>=0?-1:1)*Wf(N[2]);(r>D||r===D&&(C[0]||C[1]))&&(u+=E^A>=0?1:-1)}}return(o<-1e-6||o0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&f&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Bs))}return h}}function Bs(t){return t.length>1}function zs(t,n){return((t=t.x)[0]<0?t[1]-Cf-Tf:Cf-t[1])-((n=n.x)[0]<0?n[1]-Cf-Tf:Cf-n[1])}bs.invert=bs;var Rs=js(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(a,o){var u=a>0?Sf:-Sf,f=jf(a-e);jf(f-Sf)0?Cf:-Cf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),n=0):i!==u&&f>=Sf&&(jf(e-i)Tf?Bf((Hf(n)*(a=Rf(r))*Hf(e)-Hf(r)*(i=Rf(n))*Hf(t))/(i*a*o)):(n+r)/2}(e,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=a,r=o),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var i;if(null==t)i=e*Cf,r.point(-Sf,i),r.point(0,i),r.point(Sf,i),r.point(Sf,0),r.point(Sf,-i),r.point(0,-i),r.point(-Sf,-i),r.point(-Sf,0),r.point(-Sf,i);else if(jf(t[0]-n[0])>Tf){var a=t[0]0,i=jf(n)>Tf;function a(t,e){return Rf(t)*Rf(e)>n}function o(t,e,r){var i=[1,0,0],a=Cc(Ec(t),Ec(e)),o=Sc(a,a),u=a[0],f=o-u*u;if(!f)return!r&&t;var c=n*o/f,s=-n*u/f,l=Cc(i,a),h=Dc(i,c);Nc(h,Dc(a,s));var d=l,p=Sc(h,d),v=Sc(d,d),y=p*p-v*(Sc(h,h)-1);if(!(y<0)){var g=$f(y),m=Dc(d,(-p-g)/v);if(Nc(m,h),m=Tc(m),!r)return m;var b,_=t[0],x=e[0],w=t[1],M=e[1];x<_&&(b=_,_=x,x=b);var A=x-_,k=jf(A-Sf)0^m[1]<(jf(m[0]-_)Sf^(_<=m[0]&&m[0]<=x)){var T=Dc(d,(-p+g)/v);return Nc(T,h),[m,Tc(T)]}}}function u(n,e){var i=r?t:Sf-t,a=0;return n<-i?a|=1:n>i&&(a|=2),e<-i?a|=4:e>i&&(a|=8),a}return js(a,function(t){var n,e,f,c,s;return{lineStart:function(){c=f=!1,s=1},point:function(l,h){var d,p=[l,h],v=a(l,h),y=r?v?0:u(l,h):v?u(l+(l<0?Sf:-Sf),h):0;if(!n&&(c=f=v)&&t.lineStart(),v!==f&&(!(d=o(n,p))||Ss(n,d)||Ss(p,d))&&(p[2]=1),v!==f)s=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^v){var g;y&e||!(g=o(p,n,!0))||(s=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1],3)))}!v||n&&Ss(n,p)||t.point(p[0],p[1]),n=p,f=v,e=y},lineEnd:function(){f&&t.lineEnd(),n=null},clean:function(){return s|(c&&f)<<1}}},function(n,r,i,a){ks(a,t,e,i,n,r)},r?[0,-t]:[-Sf,t-Sf])}var Is,Ls,Us,qs,Hs=1e9,Ys=-Hs;function $s(t,n,e,r){function i(i,a){return t<=i&&i<=e&&n<=a&&a<=r}function a(i,a,u,c){var s=0,l=0;if(null==i||(s=o(i,u))!==(l=o(a,u))||f(i,a)<0^u>0)do{c.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==l);else c.point(a[0],a[1])}function o(r,i){return jf(r[0]-t)0?0:3:jf(r[0]-e)0?2:1:jf(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return f(t.x,n.x)}function f(t,n){var e=o(t,1),r=o(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){var f,c,s,l,h,d,p,v,y,g,m,b=o,_=Es(),x={point:w,lineStart:function(){x.point=M,c&&c.push(s=[]),g=!0,y=!1,p=v=NaN},lineEnd:function(){f&&(M(l,h),d&&y&&_.rejoin(),f.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,f=[],c=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=c.length;er&&(h-a)*(r-o)>(d-o)*(t-a)&&++n:d<=r&&(h-a)*(r-o)<(d-o)*(t-a)&&--n;return n}(),e=m&&n,i=(f=Vt(f)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Ns(f,u,n,a,o),o.polygonEnd()),b=o,f=c=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(a,o){var u=i(a,o);if(c&&s.push([a,o]),g)l=a,h=o,d=u,g=!1,u&&(b.lineStart(),b.point(a,o));else if(u&&y)b.point(a,o);else{var f=[p=Math.max(Ys,Math.min(Hs,p)),v=Math.max(Ys,Math.min(Hs,v))],_=[a=Math.max(Ys,Math.min(Hs,a)),o=Math.max(Ys,Math.min(Hs,o))];!function(t,n,e,r,i,a){var o,u=t[0],f=t[1],c=0,s=1,l=n[0]-u,h=n[1]-f;if(o=e-u,l||!(o>0)){if(o/=l,l<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=i-u,l||!(o<0)){if(o/=l,l<0){if(o>s)return;o>c&&(c=o)}else if(l>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=a-f,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=u+c*l,t[1]=f+c*h),s<1&&(n[0]=u+s*l,n[1]=f+s*h),!0}}}}}(f,_,t,n,e,r)?u&&(b.lineStart(),b.point(a,o),m=!1):(y||(b.lineStart(),b.point(f[0],f[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=a,v=o,y=u}return x}}var Vs={sphere:Qf,point:Qf,lineStart:function(){Vs.point=Ws,Vs.lineEnd=Gs},lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf};function Gs(){Vs.point=Vs.lineEnd=Qf}function Ws(t,n){Ls=t*=Of,Us=Hf(n*=Of),qs=Rf(n),Vs.point=Xs}function Xs(t,n){t*=Of;var e=Hf(n*=Of),r=Rf(n),i=jf(t-Ls),a=Rf(i),o=r*Hf(i),u=qs*e-Us*r*a,f=Us*e+qs*r*a;Is.add(zf($f(o*o+u*u),f)),Ls=t,Us=e,qs=r}function Qs(t){return Is=new ot,ec(t,Vs),+Is}var Zs=[null,null],Ks={type:"LineString",coordinates:Zs};function Js(t,n){return Zs[0]=t,Zs[1]=n,Qs(Ks)}var tl={Feature:function(t,n){return el(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Js(t[a],t[a-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))Tf}).map(f)).concat(Wt(Ff(a/d)*d,i,d).filter(function(t){return jf(t%v)>Tf}).map(c))}return g.lines=function(){return m().map(function(t){return{type:"LineString",coordinates:t}})},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(o).slice(1),s(e).reverse().slice(1),l(u).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),u>o&&(t=u,u=o,o=t),g.precision(y)):[[r,u],[e,o]]},g.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],a=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),a>i&&(e=a,a=i,i=e),g.precision(y)):[[n,a],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],g):[p,v]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(y=+h,f=fl(a,i,90),c=cl(n,t,y),s=fl(u,o,90),l=cl(r,e,y),g):y},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}var ll,hl,dl,pl,vl=function(t){return t},yl=new ot,gl=new ot,ml={point:Qf,lineStart:Qf,lineEnd:Qf,polygonStart:function(){ml.lineStart=bl,ml.lineEnd=wl},polygonEnd:function(){ml.lineStart=ml.lineEnd=ml.point=Qf,yl.add(jf(gl)),gl=new ot},result:function(){var t=yl/2;return yl=new ot,t}};function bl(){ml.point=_l}function _l(t,n){ml.point=xl,ll=dl=t,hl=pl=n}function xl(t,n){gl.add(pl*t-dl*n),dl=t,pl=n}function wl(){xl(ll,hl)}var Ml,Al,kl,Tl,El=ml,Sl=1/0,Cl=Sl,Nl=-Sl,Dl=Nl,Pl={point:function(t,n){tNl&&(Nl=t),nDl&&(Dl=n)},lineStart:Qf,lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf,result:function(){var t=[[Sl,Cl],[Nl,Dl]];return Nl=Dl=-(Cl=Sl=1/0),t}},Ol=0,jl=0,Bl=0,zl=0,Rl=0,Fl=0,Il=0,Ll=0,Ul=0,ql={point:Hl,lineStart:Yl,lineEnd:Gl,polygonStart:function(){ql.lineStart=Wl,ql.lineEnd=Xl},polygonEnd:function(){ql.point=Hl,ql.lineStart=Yl,ql.lineEnd=Gl},result:function(){var t=Ul?[Il/Ul,Ll/Ul]:Fl?[zl/Fl,Rl/Fl]:Bl?[Ol/Bl,jl/Bl]:[NaN,NaN];return Ol=jl=Bl=zl=Rl=Fl=Il=Ll=Ul=0,t}};function Hl(t,n){Ol+=t,jl+=n,++Bl}function Yl(){ql.point=$l}function $l(t,n){ql.point=Vl,Hl(kl=t,Tl=n)}function Vl(t,n){var e=t-kl,r=n-Tl,i=$f(e*e+r*r);zl+=i*(kl+t)/2,Rl+=i*(Tl+n)/2,Fl+=i,Hl(kl=t,Tl=n)}function Gl(){ql.point=Hl}function Wl(){ql.point=Ql}function Xl(){Zl(Ml,Al)}function Ql(t,n){ql.point=Zl,Hl(Ml=kl=t,Al=Tl=n)}function Zl(t,n){var e=t-kl,r=n-Tl,i=$f(e*e+r*r);zl+=i*(kl+t)/2,Rl+=i*(Tl+n)/2,Fl+=i,Il+=(i=Tl*t-kl*n)*(kl+t),Ll+=i*(Tl+n),Ul+=3*i,Hl(kl=t,Tl=n)}var Kl=ql;function Jl(t){this._context=t}Jl.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Df)}},result:Qf};var th,nh,eh,rh,ih,ah=new ot,oh={point:Qf,lineStart:function(){oh.point=uh},lineEnd:function(){th&&fh(nh,eh),oh.point=Qf},polygonStart:function(){th=!0},polygonEnd:function(){th=null},result:function(){var t=+ah;return ah=new ot,t}};function uh(t,n){oh.point=fh,nh=rh=t,eh=ih=n}function fh(t,n){rh-=t,ih-=n,ah.add($f(rh*rh+ih*ih)),rh=t,ih=n}var ch,sh,lh,hh,dh=oh,ph=function(){function t(n){R(this,t),this._append=null==n?vh:function(t){var n=Math.floor(t);if(!(n>=0))throw new RangeError("invalid digits: ".concat(t));if(n>15)return vh;if(n!==ch){var e=Math.pow(10,n);ch=n,sh=function(t){var n=1;this._+=t[0];for(var r=t.length;n4*n&&v--){var _=o+h,x=u+d,w=f+p,M=$f(_*_+x*x+w*w),A=Wf(w/=M),k=jf(jf(w)-1)n||jf((g*C+m*N)/b-.5)>.3||o*h+u*d+f*p2?t[2]%360*Of:0,C()):[y*Pf,g*Pf,m*Pf]},E.angle=function(t){return arguments.length?(b=t%360*Of,C()):b*Pf},E.reflectX=function(t){return arguments.length?(_=t?-1:1,C()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,C()):x<0},E.precision=function(t){return arguments.length?(o=Ah(u,T=t*t),N()):$f(T)},E.fitExtent=function(t,n){return bh(E,t,n)},E.fitSize=function(t,n){return _h(E,t,n)},E.fitWidth=function(t,n){return xh(E,t,n)},E.fitHeight=function(t,n){return wh(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&S,C()}}function Ch(t){var n=0,e=Sf/3,r=Sh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Of,e=t[1]*Of):[n*Pf,e*Pf]},i}function Nh(t,n){var e=Hf(t),r=(e+Hf(n))/2;if(jf(r)0?n<-Cf+Tf&&(n=-Cf+Tf):n>Cf-Tf&&(n=Cf-Tf);var e=i/qf(Ih(n),r);return[e*Hf(r*t),i-e*Rf(r*t)]}return a.invert=function(t,n){var e=i-n,a=Yf(r)*$f(t*t+e*e),o=zf(t,jf(e))*Yf(e);return e*r<0&&(o-=Sf*Yf(t)*Yf(e)),[o/r,2*Bf(qf(i/a,1/r))-Cf]},a}function Uh(t,n){return[t,n]}function qh(t,n){var e=Rf(t),r=t===n?Hf(t):(e-Rf(n))/(n-t),i=e/r+t;if(jf(r)=0;)n+=e[r].value;else n=1;t.value=n}function id(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=od)):void 0===n&&(n=ad);for(var e,r,i,a,o,u=new cd(t),f=[u];e=f.pop();)if((i=n(e.data))&&(o=(i=Array.from(i)).length))for(e.children=i,a=o-1;a>=0;--a)f.push(r=i[a]=new cd(i[a])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(fd)}function ad(t){return t.children}function od(t){return Array.isArray(t)?t[1]:null}function ud(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function fd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function cd(t){this.data=t,this.depth=this.height=0,this.parent=null}function sd(t){return null==t?null:ld(t)}function ld(t){if("function"!=typeof t)throw new Error;return t}function hd(){return 0}function dd(t){return function(){return t}}Wh.invert=function(t,n){for(var e,r=n,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=e=(r*(Hh+Yh*i+a*($h+Vh*i))-n)/(Hh+3*Yh*i+a*(7*$h+9*Vh*i)))*r)*i*i,!(jf(e)Tf&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Zh.invert=jh(Wf),Kh.invert=jh(function(t){return 2*Bf(t)}),Jh.invert=function(t,n){return[-n,2*Bf(If(t))-Cf]},cd.prototype=id.prototype=A({constructor:cd,count:function(){return this.eachAfter(rd)},each:function(t,n){var e,r=-1,i=q(this);try{for(i.s();!(e=i.n()).done;){var a=e.value;t.call(n,a,++r,this)}}catch(t){i.e(t)}finally{i.f()}return this},eachAfter:function(t,n){for(var e,r,i,a=this,o=[a],u=[],f=-1;a=o.pop();)if(u.push(a),e=a.children)for(r=0,i=e.length;r=0;--r)a.push(e[r]);return this},find:function(t,n){var e,r=-1,i=q(this);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(t.call(n,a,++r,this))return a}}catch(t){i.e(t)}finally{i.f()}},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return id(this).eachBefore(ud)}},Symbol.iterator,U().mark(function t(){var n,e,r,i,a,o;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=[a=this];case 1:n=o.reverse(),o=[];case 2:if(!(a=n.pop())){t.next=9;break}return t.next=5,a;case 5:if(!(e=a.children)){t.next=7;break}for(r=0,i=e.length;r0&&e*e>r*r+i*i}function _d(t,n){for(var e=0;e1e-6?(E+Math.sqrt(E*E-4*T*S))/(2*T):S/E);return{x:r+w+M*C,y:i+A+k*C,r:C}}function Ad(t,n,e){var r,i,a,o,u=t.x-n.x,f=t.y-n.y,c=u*u+f*f;c?(i=n.r+e.r,i*=i,o=t.r+e.r,i>(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),e.x=t.x-r*u-a*f,e.y=t.y-r*f+a*u):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),e.x=n.x+r*u-a*f,e.y=n.y+r*f+a*u)):(e.x=n.x+e.r,e.y=n.y)}function kd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Td(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,a=(n.y*e.r+e.y*n.r)/r;return i*i+a*a}function Ed(t){this._=t,this.next=null,this.previous=null}function Sd(t,n){if(!(a=(t=function(t){return"object"==$(t)&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,r,i,a,o,u,f,c,s,l,h;if((e=t[0]).x=0,e.y=0,!(a>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(a>2))return e.r+r.r;Ad(r,e,i=t[2]),e=new Ed(e),r=new Ed(r),i=new Ed(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(f=3;f1&&!Ud(t,n););return t.slice(0,n)}function Ud(t,n){if("/"===t[n]){for(var e=0;n>0&&"\\"===t[--n];)++e;if(0==(1&e))return!0}return!1}function qd(t,n){return t.parent===n.parent?1:2}function Hd(t){var n=t.children;return n?n[0]:t.t}function Yd(t){var n=t.children;return n?n[n.length-1]:t.t}function $d(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Vd(t,n,e){return t.a.parent===n.parent?t.a:e}function Gd(t,n){this._=t,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=n}function Wd(t,n,e,r,i){for(var a,o=t.children,u=-1,f=o.length,c=t.value&&(i-e)/t.value;++uh&&(h=u),y=s*s*v,(d=Math.max(h/y,y/l))>p){s-=u;break}p=d}g.push(o={value:s,dice:f1?n:1)},e}(Xd),Kd=function t(n){function e(t,e,r,i,a){if((o=t._squarify)&&o.ratio===n)for(var o,u,f,c,s,l=-1,h=o.length,d=t.value;++l1?n:1)},e}(Xd);function Jd(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function tp(t,n){return t[0]-n[0]||t[1]-n[1]}function np(t){var n,e=t.length,r=[0,1],i=2;for(n=2;n1&&Jd(t[r[i-2]],t[r[i-1]],t[n])<=0;)--i;r[i++]=n}return r.slice(0,i)}var ep=Math.random,rp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(ep),ip=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(ep),ap=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var a;if(null!=r)a=r,r=null;else do{r=2*n()-1,a=2*n()-1,i=r*r+a*a}while(!i||i>1);return t+e*a*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(ep),op=function t(n){var e=ap.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(ep),up=function t(n){function e(t){return(t=+t)<=0?function(){return 0}:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(ep),fp=function t(n){var e=up.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(ep),cp=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(ep),sp=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(ep),lp=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(ep),hp=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?function(){return 1/0}:1===t?function(){return 1}:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(ep),dp=function t(n){var e=ap.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return function(){return 0};if(r=null==r?1:+r,1===t)return function(){return-Math.log1p(-n())*r};var i=(t<1?t+1:t)-1/3,a=1/(3*Math.sqrt(i)),o=t<1?function(){return Math.pow(n(),1/t)}:function(){return 1};return function(){do{do{var t=e(),u=1+a*t}while(u<=0);u*=u*u;var f=1-n()}while(f>=1-.0331*t*t*t*t&&Math.log(f)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*o()*r}}return r.source=t,r}(ep),pp=function t(n){var e=dp.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(ep),vp=function t(n){var e=hp.source(n),r=pp.source(n);function i(t,n){return t=+t,(n=+n)>=1?function(){return t}:n<=0?function(){return 0}:function(){for(var i=0,a=t,o=n;a*o>16&&a*(1-o)>16;){var u=Math.floor((a+1)*o),f=r(u,a-u+1)();f<=o?(i+=u,a-=u,o=(o-f)/(1-f)):(a=u-1,o/=f)}for(var c=o<.5,s=e(c?o:1-o),l=s(),h=0;l<=a;++h)l+=s();return i+(c?h:a-h)}}return i.source=t,i}(ep),yp=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=function(t){return-Math.log(t)}:(t=1/t,i=function(n){return Math.pow(n,t)}),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(ep),gp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(ep),mp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(ep),bp=function t(n){var e=dp.source(n),r=vp.source(n);function i(t){return function(){for(var i=0,a=t;a>16;){var o=Math.floor(.875*a),u=e(o)();if(u>a)return i+r(o-1,a/u)();i+=o,a-=u}for(var f=-Math.log1p(-n()),c=0;f<=a;++c)f-=Math.log1p(-n());return i+c}}return i.source=t,i}(ep),_p=1/4294967296;function xp(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function wp(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}var Mp=Symbol("implicit");function Ap(){var t=new ut,n=[],e=[],r=Mp;function i(i){var a=t.get(i);if(void 0===a){if(r!==Mp)return r;t.set(i,a=n.push(i)-1)}return e[a%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new ut;var r,a=q(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.has(o)||t.set(o,n.push(o)-1)}}catch(t){a.e(t)}finally{a.f()}return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ap(n,e).unknown(r)},xp.apply(i,arguments),i}function kp(){var t,n,e=Ap().unknown(void 0),r=e.domain,i=e.range,a=0,o=1,u=!1,f=0,c=0,s=.5;function l(){var e=r().length,l=on&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(o[0],o[t-1])),r=t>2?Dp:Np,i=a=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(o.map(t),u,f)))(t(c(n)))}return l.invert=function(e){return c(n((a||(a=r(u,o.map(t),$r)))(e)))},l.domain=function(t){return arguments.length?(o=Array.from(t,Tp),s()):o.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),f=Zr,s()},l.clamp=function(t){return arguments.length?(c=!!t||Sp,s()):c!==Sp},l.interpolate=function(t){return arguments.length?(f=t,s()):f},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function jp(){return Op()(Sp,Sp)}function Bp(n,e,r,i){var a,o=Pt(n,e,r);switch((i=df(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(e));return null!=i.precision||isNaN(a=Af(o,u))||(i.precision=a),t.formatPrefix(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(a=kf(o,Math.max(Math.abs(n),Math.abs(e))))||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=Mf(o))||(i.precision=a-2*("%"===i.type))}return t.format(i)}function zp(t){var n=t.domain;return t.ticks=function(t){var e=n();return Nt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Bp(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,a=n(),o=0,u=a.length-1,f=a[o],c=a[u],s=10;for(c0;){if((i=Dt(f,c,e))===r)return a[o]=f,a[u]=c,n(a);if(i>0)f=Math.floor(f/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;f=Math.ceil(f*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Rp(t,n){var e,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;h<=d;++h)for(s=1;sf)break;v.push(l)}}else for(;h<=d;++h)for(s=o-1;s>=1;--s)if(!((l=h>0?s/r(-h):s*r(h))f)break;v.push(l)}2*v.length0))return u;do{u.push(o=new Date(+e)),n(e,a),t(e)}while(o=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return tv.setTime(+n),nv.setTime(+r),t(tv),t(nv),Math.floor(e(tv,nv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var rv=ev(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});rv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ev(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):rv:null};var iv=rv.range,av=1e3,ov=6e4,uv=36e5,fv=864e5,cv=6048e5,sv=2592e6,lv=31536e6,hv=ev(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*av)},function(t,n){return(n-t)/av},function(t){return t.getUTCSeconds()}),dv=hv.range,pv=ev(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*av)},function(t,n){t.setTime(+t+n*ov)},function(t,n){return(n-t)/ov},function(t){return t.getMinutes()}),vv=pv.range,yv=ev(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*ov)},function(t,n){return(n-t)/ov},function(t){return t.getUTCMinutes()}),gv=yv.range,mv=ev(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*av-t.getMinutes()*ov)},function(t,n){t.setTime(+t+n*uv)},function(t,n){return(n-t)/uv},function(t){return t.getHours()}),bv=mv.range,_v=ev(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*uv)},function(t,n){return(n-t)/uv},function(t){return t.getUTCHours()}),xv=_v.range,wv=ev(function(t){return t.setHours(0,0,0,0)},function(t,n){return t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ov)/fv},function(t){return t.getDate()-1}),Mv=wv.range,Av=ev(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/fv},function(t){return t.getUTCDate()-1}),kv=Av.range,Tv=ev(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/fv},function(t){return Math.floor(t/fv)}),Ev=Tv.range;function Sv(t){return ev(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ov)/cv})}var Cv=Sv(0),Nv=Sv(1),Dv=Sv(2),Pv=Sv(3),Ov=Sv(4),jv=Sv(5),Bv=Sv(6),zv=Cv.range,Rv=Nv.range,Fv=Dv.range,Iv=Pv.range,Lv=Ov.range,Uv=jv.range,qv=Bv.range;function Hv(t){return ev(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/cv})}var Yv=Hv(0),$v=Hv(1),Vv=Hv(2),Gv=Hv(3),Wv=Hv(4),Xv=Hv(5),Qv=Hv(6),Zv=Yv.range,Kv=$v.range,Jv=Vv.range,ty=Gv.range,ny=Wv.range,ey=Xv.range,ry=Qv.range,iy=ev(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),ay=iy.range,oy=ev(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),uy=oy.range,fy=ev(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});fy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ev(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var cy=fy.range,sy=ev(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});sy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ev(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var ly=sy.range;function hy(t,n,e,r,i,a){var o=[[hv,1,av],[hv,5,5e3],[hv,15,15e3],[hv,30,3e4],[a,1,ov],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,uv],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,fv],[r,2,1728e5],[e,1,cv],[n,1,sv],[n,3,7776e6],[t,1,lv]];function u(n,e,r){var i=Math.abs(e-n)/r,a=w(function(t){return T(t,3)[2]}).right(o,i);if(a===o.length)return t.every(Pt(n/lv,e/lv,r));if(0===a)return rv.every(Math.max(Pt(n,e,r),1));var u=T(o[i/o[a-1][2]=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ig,s:Lg,S:og,u:ug,U:fg,V:sg,w:lg,W:hg,x:null,X:null,y:dg,Y:vg,Z:gg,"%":Fg},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:mg,e:mg,f:Mg,g:jg,G:zg,H:bg,I:_g,j:xg,L:wg,m:Ag,M:kg,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ig,s:Lg,S:Tg,u:Eg,U:Sg,V:Ng,w:Dg,W:Pg,x:null,X:null,y:Og,Y:Bg,Z:Rg,"%":Fg},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:qy,e:qy,f:Wy,g:Fy,G:Ry,H:Yy,I:Yy,j:Hy,L:Gy,m:Uy,M:$y,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:Ly,Q:Qy,s:Zy,S:Vy,u:Oy,U:jy,V:By,w:Py,W:zy,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:Fy,Y:Ry,Z:Iy,"%":Xy};function w(t,n){return function(e){var r,i,a,o=[],u=-1,f=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=_y(xy(a.y,0,1))).getUTCDay(),r=i>4||0===i?$v.ceil(r):$v(r),r=Av.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=by(xy(a.y,0,1))).getDay(),r=i>4||0===i?Nv.ceil(r):Nv(r),r=wv.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?_y(xy(a.y,0,1)).getUTCDay():by(xy(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,_y(a)):by(a)}}function A(t,n,e,r){for(var i,a,o=0,u=n.length,f=e.length;o=f)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(a=x[i in Ay?n.charAt(o++):i])||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var My,Ay={"-":"",_:" ",0:"0"},ky=/^\s*\d+/,Ty=/^%/,Ey=/[\\^$*+?|[\]().{}]/g;function Sy(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),e+r[0].length):-1}function Iy(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ly(t,n,e){var r=ky.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Uy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function qy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Hy(t,n,e){var r=ky.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Yy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function $y(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Vy(t,n,e){var r=ky.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Gy(t,n,e){var r=ky.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Wy(t,n,e){var r=ky.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Xy(t,n,e){var r=Ty.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Qy(t,n,e){var r=ky.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Zy(t,n,e){var r=ky.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ky(t,n){return Sy(t.getDate(),n,2)}function Jy(t,n){return Sy(t.getHours(),n,2)}function tg(t,n){return Sy(t.getHours()%12||12,n,2)}function ng(t,n){return Sy(1+wv.count(fy(t),t),n,3)}function eg(t,n){return Sy(t.getMilliseconds(),n,3)}function rg(t,n){return eg(t,n)+"000"}function ig(t,n){return Sy(t.getMonth()+1,n,2)}function ag(t,n){return Sy(t.getMinutes(),n,2)}function og(t,n){return Sy(t.getSeconds(),n,2)}function ug(t){var n=t.getDay();return 0===n?7:n}function fg(t,n){return Sy(Cv.count(fy(t)-1,t),n,2)}function cg(t){var n=t.getDay();return n>=4||0===n?Ov(t):Ov.ceil(t)}function sg(t,n){return t=cg(t),Sy(Ov.count(fy(t),t)+(4===fy(t).getDay()),n,2)}function lg(t){return t.getDay()}function hg(t,n){return Sy(Nv.count(fy(t)-1,t),n,2)}function dg(t,n){return Sy(t.getFullYear()%100,n,2)}function pg(t,n){return Sy((t=cg(t)).getFullYear()%100,n,2)}function vg(t,n){return Sy(t.getFullYear()%1e4,n,4)}function yg(t,n){var e=t.getDay();return Sy((t=e>=4||0===e?Ov(t):Ov.ceil(t)).getFullYear()%1e4,n,4)}function gg(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Sy(n/60|0,"0",2)+Sy(n%60,"0",2)}function mg(t,n){return Sy(t.getUTCDate(),n,2)}function bg(t,n){return Sy(t.getUTCHours(),n,2)}function _g(t,n){return Sy(t.getUTCHours()%12||12,n,2)}function xg(t,n){return Sy(1+Av.count(sy(t),t),n,3)}function wg(t,n){return Sy(t.getUTCMilliseconds(),n,3)}function Mg(t,n){return wg(t,n)+"000"}function Ag(t,n){return Sy(t.getUTCMonth()+1,n,2)}function kg(t,n){return Sy(t.getUTCMinutes(),n,2)}function Tg(t,n){return Sy(t.getUTCSeconds(),n,2)}function Eg(t){var n=t.getUTCDay();return 0===n?7:n}function Sg(t,n){return Sy(Yv.count(sy(t)-1,t),n,2)}function Cg(t){var n=t.getUTCDay();return n>=4||0===n?Wv(t):Wv.ceil(t)}function Ng(t,n){return t=Cg(t),Sy(Wv.count(sy(t),t)+(4===sy(t).getUTCDay()),n,2)}function Dg(t){return t.getUTCDay()}function Pg(t,n){return Sy($v.count(sy(t)-1,t),n,2)}function Og(t,n){return Sy(t.getUTCFullYear()%100,n,2)}function jg(t,n){return Sy((t=Cg(t)).getUTCFullYear()%100,n,2)}function Bg(t,n){return Sy(t.getUTCFullYear()%1e4,n,4)}function zg(t,n){var e=t.getUTCDay();return Sy((t=e>=4||0===e?Wv(t):Wv.ceil(t)).getUTCFullYear()%1e4,n,4)}function Rg(){return"+0000"}function Fg(){return"%"}function Ig(t){return+t}function Lg(t){return Math.floor(+t/1e3)}function Ug(n){return My=wy(n),t.timeFormat=My.format,t.timeParse=My.parse,t.utcFormat=My.utcFormat,t.utcParse=My.utcParse,My}t.timeFormat=void 0,t.timeParse=void 0,t.utcFormat=void 0,t.utcParse=void 0,Ug({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qg="%Y-%m-%dT%H:%M:%S.%LZ",Hg=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(qg),Yg=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse(qg);function $g(t){return new Date(t)}function Vg(t){return t instanceof Date?+t:+new Date(+t)}function Gg(t,n,e,r,i,a,o,u,f,c){var s=jp(),l=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),v=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),m=c("%b %d"),b=c("%B"),_=c("%Y");function x(t){return(f(t)=1?Ob:t<=-1?-Ob:Math.asin(t)}function zb(t){var n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{var r=Math.floor(e);if(!(r>=0))throw new RangeError("invalid digits: ".concat(e));n=r}return t},function(){return new so(n)}}function Rb(t){return t.innerRadius}function Fb(t){return t.outerRadius}function Ib(t){return t.startAngle}function Lb(t){return t.endAngle}function Ub(t){return t&&t.padAngle}function qb(t,n,e,r,i,a,o){var u=t-e,f=n-r,c=(o?a:-a)/Nb(u*u+f*f),s=c*f,l=-c*u,h=t+s,d=n+l,p=e+s,v=r+l,y=(h+p)/2,g=(d+v)/2,m=p-h,b=v-d,_=m*m+b*b,x=i-a,w=h*v-p*d,M=(b<0?-1:1)*Nb(Eb(0,x*x*_-w*w)),A=(w*b-m*M)/_,k=(-w*m-b*M)/_,T=(w*b+m*M)/_,E=(-w*m+b*M)/_,S=A-y,C=k-g,N=T-y,D=E-g;return S*S+C*C>N*N+D*D&&(A=T,k=E),{cx:A,cy:k,x01:-s,y01:-l,x11:A*(i/x-1),y11:k*(i/x-1)}}var Hb=Array.prototype.slice;function Yb(t){return"object"==$(t)&&"length"in t?t:Array.from(t)}function $b(t){this._context=t}function Vb(t){return new $b(t)}function Gb(t){return t[0]}function Wb(t){return t[1]}function Xb(t,n){var e=Mb(!0),r=null,i=Vb,a=null,o=zb(u);function u(u){var f,c,s,l=(u=Yb(u)).length,h=!1;for(null==r&&(a=i(s=o())),f=0;f<=l;++f)!(f=l;--h)u.point(g[h],m[h]);u.lineEnd(),u.areaEnd()}y&&(g[s]=+t(d,s,c),m[s]=+n(d,s,c),u.point(r?+r(d,s,c):g[s],e?+e(d,s,c):m[s]))}if(p)return u=null,p+""||null}function s(){return Xb().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Gb:Mb(+t),n="function"==typeof n?n:Mb(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Wb:Mb(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Mb(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Mb(+t),c):e},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(e)},c.lineX1=function(){return s().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Mb(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),c):a},c}function Zb(t,n){return nt?1:n>=t?0:NaN}function Kb(t){return t}$b.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Jb=n_(Vb);function t_(t){this._curve=t}function n_(t){function n(n){return new t_(t(n))}return n._curve=t,n}function e_(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(n_(t)):n()._curve},t}function r_(){return e_(Xb().curve(Jb))}function i_(){var t=Qb().curve(Jb),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return e_(e())},delete t.lineX0,t.lineEndAngle=function(){return e_(r())},delete t.lineX1,t.lineInnerRadius=function(){return e_(i())},delete t.lineY0,t.lineOuterRadius=function(){return e_(a())},delete t.lineY1,t.curve=function(t){return arguments.length?n(n_(t)):n()._curve},t}function a_(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}t_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var o_=function(){function t(n,e){R(this,t),this._context=n,this._x=e}return I(t,[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}]),t}(),u_=function(){function t(n){R(this,t),this._context=n}return I(t,[{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){}},{key:"point",value:function(t,n){if(t=+t,n=+n,0===this._point)this._point=1;else{var e,r,i=a_(this._x0,this._y0),a=a_(this._x0,this._y0=(this._y0+n)/2),o=a_(t,this._y0),u=a_(t,n);(e=this._context).moveTo.apply(e,k(i)),(r=this._context).bezierCurveTo.apply(r,k(a).concat(k(o),k(u)))}this._x0=t,this._y0=n}}]),t}();function f_(t){return new o_(t,!0)}function c_(t){return new o_(t,!1)}function s_(t){return new u_(t)}function l_(t){return t.source}function h_(t){return t.target}function d_(t){var n=l_,e=h_,r=Gb,i=Wb,a=null,o=null,u=zb(f);function f(){var f,c=Hb.call(arguments),s=n.apply(this,c),l=e.apply(this,c);if(null==a&&(o=t(f=u())),o.lineStart(),c[0]=s,o.point(+r.apply(this,c),+i.apply(this,c)),c[0]=l,o.point(+r.apply(this,c),+i.apply(this,c)),o.lineEnd(),f)return o=null,f+""||null}return f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.x=function(t){return arguments.length?(r="function"==typeof t?t:Mb(+t),f):r},f.y=function(t){return arguments.length?(i="function"==typeof t?t:Mb(+t),f):i},f.context=function(n){return arguments.length?(null==n?a=o=null:o=t(a=n),f):a},f}var p_=Nb(3),v_={draw:function(t,n){var e=.59436*Nb(n+Sb(n/28,.75)),r=e/2,i=r*p_;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},y_={draw:function(t,n){var e=Nb(n/Pb);t.moveTo(e,0),t.arc(0,0,e,0,jb)}},g_={draw:function(t,n){var e=Nb(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},m_=Nb(1/3),b_=2*m_,__={draw:function(t,n){var e=Nb(n/b_),r=e*m_;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},x_={draw:function(t,n){var e=.62625*Nb(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},w_={draw:function(t,n){var e=.87559*Nb(n-Sb(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},M_={draw:function(t,n){var e=Nb(n),r=-e/2;t.rect(r,r,e,e)}},A_={draw:function(t,n){var e=.4431*Nb(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},k_=Cb(Pb/10)/Cb(7*Pb/10),T_=Cb(jb/10)*k_,E_=-Tb(jb/10)*k_,S_={draw:function(t,n){var e=Nb(.8908130915292852*n),r=T_*e,i=E_*e;t.moveTo(0,-e),t.lineTo(r,i);for(var a=1;a<5;++a){var o=jb*a/5,u=Tb(o),f=Cb(o);t.lineTo(f*e,-u*e),t.lineTo(u*r-f*i,f*r+u*i)}t.closePath()}},C_=Nb(3),N_={draw:function(t,n){var e=-Nb(n/(3*C_));t.moveTo(0,2*e),t.lineTo(-C_*e,-e),t.lineTo(C_*e,-e),t.closePath()}},D_=Nb(3),P_={draw:function(t,n){var e=.6824*Nb(n),r=e/2,i=e*D_/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},O_=-.5,j_=Nb(3)/2,B_=1/Nb(12),z_=3*(B_/2+1),R_={draw:function(t,n){var e=Nb(n/z_),r=e/2,i=e*B_,a=r,o=e*B_+e,u=-a,f=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,f),t.lineTo(O_*r-j_*i,j_*r+O_*i),t.lineTo(O_*a-j_*o,j_*a+O_*o),t.lineTo(O_*u-j_*f,j_*u+O_*f),t.lineTo(O_*r+j_*i,O_*i-j_*r),t.lineTo(O_*a+j_*o,O_*o-j_*a),t.lineTo(O_*u+j_*f,O_*f-j_*u),t.closePath()}},F_={draw:function(t,n){var e=.6189*Nb(n-Sb(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},I_=[y_,g_,__,M_,S_,N_,R_],L_=[y_,w_,F_,P_,v_,A_,x_];function U_(){}function q_(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function H_(t){this._context=t}function Y_(t){this._context=t}function $_(t){this._context=t}function V_(t,n){this._basis=new H_(t),this._beta=n}H_.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:q_(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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Y_.prototype={areaStart:U_,areaEnd:U_,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},$_.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:q_(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},V_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],a=n[0],o=t[e]-i,u=n[e]-a,f=-1;++f<=e;)r=f/e,this._basis.point(this._beta*t[f]+(1-this._beta)*(i+r*o),this._beta*n[f]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var G_=function t(n){function e(t){return 1===n?new H_(t):new V_(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function W_(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function X_(t,n){this._context=t,this._k=(1-n)/6}X_.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:W_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Q_=function t(n){function e(t){return new X_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Z_(t,n){this._context=t,this._k=(1-n)/6}Z_.prototype={areaStart:U_,areaEnd:U_,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var K_=function t(n){function e(t){return new Z_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function J_(t,n){this._context=t,this._k=(1-n)/6}J_.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(t,n){switch(t=+t,n=+n,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:W_(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var tx=function t(n){function e(t){return new J_(t,n)}return e.tension=function(n){return t(+n)},e}(0);function nx(t,n,e){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Db){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>Db){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-n*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function ex(t,n){this._context=t,this._alpha=n}ex.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var rx=function t(n){function e(t){return n?new ex(t,n):new X_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ix(t,n){this._context=t,this._alpha=n}ix.prototype={areaStart:U_,areaEnd:U_,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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ax=function t(n){function e(t){return n?new ix(t,n):new Z_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ox(t,n){this._context=t,this._alpha=n}ox.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:nx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ux=function t(n){function e(t){return n?new ox(t,n):new J_(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fx(t){this._context=t}function cx(t){return t<0?-1:1}function sx(t,n,e){var r=t._x1-t._x0,i=n-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(cx(a)+cx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function lx(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function hx(t,n,e){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*n,a-u,o-u*e,a,o)}function dx(t){this._context=t}function px(t){this._context=new vx(t)}function vx(t){this._context=t}function yx(t){this._context=t}function gx(t){var n,e,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(o[n]-i[n+1])/a[n];for(a[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,a=1,o=t[n[0]],u=o.length;a=0;)e[n]=n;return e}function xx(t,n){return t[n]}function wx(t){var n=[];return n.key=t,n}function Mx(t){var n=t.map(Ax);return _x(t).sort(function(t,e){return n[t]-n[e]})}function Ax(t){for(var n,e=-1,r=0,i=t.length,a=-1/0;++ea&&(a=n,r=e);return r}function kx(t){var n=t.map(Tx);return _x(t).sort(function(t,e){return n[t]-n[e]})}function Tx(t){for(var n,e=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ex=function(t){return function(){return t}};function Sx(t,n){var e=n.sourceEvent,r=n.target,i=n.transform,a=n.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Cx(t,n,e){this.k=t,this.x=n,this.y=e}Cx.prototype={constructor:Cx,scale:function(t){return 1===t?this:new Cx(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Cx(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Nx=new Cx(1,0,0);function Dx(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Nx;return t.__zoom}function Px(t){t.stopImmediatePropagation()}function Ox(t){t.preventDefault(),t.stopImmediatePropagation()}function jx(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Bx(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function zx(){return this.__zoom||Nx}function Rx(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Fx(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ix(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],a=t.invertY(n[0][1])-e[0][1],o=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}Dx.prototype=Cx.prototype,t.Adder=ot,t.Delaunay=fu,t.FormatSpecifier=pf,t.InternMap=ut,t.InternSet=ft,t.Node=cd,t.Path=so,t.Voronoi=eu,t.ZoomTransform=Cx,t.active=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Wi([[t]],wa,n,+r);return null},t.arc=function(){var t=Rb,n=Fb,e=Mb(0),r=null,i=Ib,a=Lb,o=Ub,u=null,f=zb(c);function c(){var c,s,l=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-Ob,p=a.apply(this,arguments)-Ob,v=Ab(p-d),y=p>d;if(u||(u=c=f()),hDb)if(v>jb-Db)u.moveTo(h*Tb(d),h*Cb(d)),u.arc(0,0,h,d,p,!y),l>Db&&(u.moveTo(l*Tb(p),l*Cb(p)),u.arc(0,0,l,p,d,y));else{var g,m,b=d,_=p,x=d,w=p,M=v,A=v,k=o.apply(this,arguments)/2,T=k>Db&&(r?+r.apply(this,arguments):Nb(l*l+h*h)),E=Sb(Ab(h-l)/2,+e.apply(this,arguments)),S=E,C=E;if(T>Db){var N=Bb(T/l*Cb(k)),D=Bb(T/h*Cb(k));(M-=2*N)>Db?(x+=N*=y?1:-1,w-=N):(M=0,x=w=(d+p)/2),(A-=2*D)>Db?(b+=D*=y?1:-1,_-=D):(A=0,b=_=(d+p)/2)}var P=h*Tb(b),O=h*Cb(b),j=l*Tb(w),B=l*Cb(w);if(E>Db){var z,R=h*Tb(_),F=h*Cb(_),I=l*Tb(x),L=l*Cb(x);if(v1?0:t<-1?Pb:Math.acos(t)}((U*H+q*Y)/(Nb(U*U+q*q)*Nb(H*H+Y*Y)))/2),V=Nb(z[0]*z[0]+z[1]*z[1]);S=Sb(E,(l-V)/($-1)),C=Sb(E,(h-V)/($+1))}else S=C=0}A>Db?C>Db?(g=qb(I,L,P,O,h,C,y),m=qb(R,F,j,B,h,C,y),u.moveTo(g.cx+g.x01,g.cy+g.y01),CDb&&M>Db?S>Db?(g=qb(j,B,R,F,l,-S,y),m=qb(P,O,I,L,l,-S,y),u.lineTo(g.cx+g.x01,g.cy+g.y01),S=0))throw new RangeError("invalid r");var e=t.length;if(!((e=Math.floor(e))>=0))throw new RangeError("invalid length");if(!e||!n)return t;var r=K(n),i=t.slice();return r(t,i,0,e,1),r(i,t,0,e,1),r(t,i,0,e,1),t},t.blur2=G,t.blurImage=W,t.brush=function(){return Wa(Ra)},t.brushSelection=function(t){var n=t.__brush;return n?n.dim.output(n.selection):null},t.brushX=function(){return Wa(Ba)},t.brushY=function(){return Wa(za)},t.buffer=function(t,n){return fetch(t,n).then(Ou)},t.chord=function(){return io(!1,!1)},t.chordDirected=function(){return io(!0,!1)},t.chordTranspose=function(){return io(!1,!0)},t.cluster=function(){var t=td,n=1,e=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(nd,0)/t.length}(e),n.y=1+e.reduce(ed,0)):(n.x=a?o+=t(n,a):0,n.y=0,a=n)});var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),f=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),c=u.x-t(u,f)/2,s=f.x+t(f,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-c)/(s-c)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.color=Ie,t.contourDensity=function(){var t=Po,n=Oo,e=jo,r=960,i=500,a=20,o=2,u=3*a,f=r+2*u>>o,c=i+2*u>>o,s=ko(20);function l(r){var i,s=new Float32Array(f*c),l=Math.pow(2,-o),h=-1,d=q(r);try{for(d.s();!(i=d.n()).done;){var p=i.value,v=(t(p,++h,r)+u)*l,y=(n(p,h,r)+u)*l,g=+e(p,h,r);if(v>=0&&v=0&&y>o,c=i+2*u>>o,h}return h.contours=function(t){var n=l(t),e=Do().size([f,c]),r=Math.pow(2,2*o),i=function(t){t=+t;var i=d(e.contour(n,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:function(){return zt(n)/r}}),i},h.x=function(n){return arguments.length?(t="function"==typeof n?n:ko(+n),h):t},h.y=function(t){return arguments.length?(n="function"==typeof t?t:ko(+t),h):n},h.weight=function(t){return arguments.length?(e="function"==typeof t?t:ko(+t),h):e},h.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,g()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},h.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?ko(Mo.call(t)):ko(t),h):s},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*t*t+1)-1)/2,g()},h},t.contours=Do,t.count=J,t.create=function(t){return ie(mn(t).call(document.documentElement))},t.creator=mn,t.cross=function(){for(var t=arguments.length,n=new Array(t),e=0;e1?n-1:0),r=1;rl}f.mouse("drag",r)}function v(t){ie(t.view).on("mousemove.drag mouseup.drag",null),ve(t.view,e),de(t),f.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,o=t.changedTouches,u=a.call(this,t,n),f=o.length;for(e=0;e1?n-1:0),r=1;r2?e-2:0),i=2;ic+p||as+p||of.index){var v=c-u.x-u.vx,y=s-u.y-u.vy,g=v*v+y*y;gt.r&&(t.r=t[n].r)}function f(){if(n){var r,i,a=n.length;for(e=new Array(a),r=0;r=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Ju(e))*l),0===h&&(p+=(h=Ju(e))*h),p1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,a,o,u,f,c=0,s=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,e),n):c.on(t)}}},t.forceX=function(t){var n,e,r,i=Ku(.1);function a(t){for(var i,a=0,o=n.length;a=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:o).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),u.stream(e),f.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++ers(r[0],r[1])&&(r[1]=i[1]),rs(i[0],r[1])>rs(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=0,r=a[e=a.length-1];n<=e;r=i,++n)i=a[n],(u=rs(r[1],i[0]))>o&&(o=u,fc=i[0],sc=r[1])}return gc=mc=null,fc===1/0||cc===1/0?[[NaN,NaN],[NaN,NaN]]:[[fc,cc],[sc,lc]]},t.geoCentroid=function(t){Oc=jc=Bc=zc=Rc=Fc=Ic=Lc=0,Uc=new ot,qc=new ot,Hc=new ot,ec(t,os);var n=+Uc,e=+qc,r=+Hc,i=Lf(n,e,r);return i=0))throw new RangeError("invalid digits: ".concat(t));i=e}return null===n&&(r=new ph(i)),o},o.projection(t).digits(i).context(n)},t.geoProjection=Eh,t.geoProjectionMutator=Sh,t.geoRotation=As,t.geoStereographic=function(){return Eh(Kh).scale(250).clipAngle(142)},t.geoStereographicRaw=Kh,t.geoStream=ec,t.geoTransform=function(t){return{stream:yh(t)}},t.geoTransverseMercator=function(){var t=Fh(Jh),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=Jh,t.gray=function(t,n){return new hr(t,0,0,null==n?1:n)},t.greatest=qt,t.greatestIndex=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(1===n.length)return Rt(t,n);var r,i,a=-1,o=-1,u=q(t);try{for(u.s();!(i=u.n()).done;){var f=i.value;++o,(a<0?0===n(f,f):n(f,r)>0)&&(r=f,a=o)}}catch(t){u.e(t)}finally{u.f()}return a},t.group=pt,t.groupSort=function(t,n,r){return(2!==n.length?wt(gt(t,n,r),function(t,n){var r=T(t,2),i=r[0],a=r[1],o=T(n,2),u=o[0];return e(a,o[1])||e(i,u)}):wt(pt(t,r),function(t,r){var i=T(t,2),a=i[0],o=i[1],u=T(r,2),f=u[0],c=u[1];return n(o,c)||e(a,f)})).map(function(t){return T(t,1)[0]})},t.groups=vt,t.hcl=mr,t.hierarchy=id,t.histogram=Bt,t.hsl=Ke,t.html=qu,t.image=function(t,n){return new Promise(function(e,r){var i=new Image;for(var a in n)i[a]=n[a];i.onerror=r,i.onload=function(){e(i)},i.src=t})},t.index=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return pb.h=360*t-100,pb.s=1.5-1.5*n,pb.l=.8-.9*n,pb+""},t.interpolateRdBu=_m,t.interpolateRdGy=wm,t.interpolateRdPu=Ym,t.interpolateRdYlBu=Am,t.interpolateRdYlGn=Tm,t.interpolateReds=fb,t.interpolateRgb=Rr,t.interpolateRgbBasis=Ir,t.interpolateRgbBasisClosed=Lr,t.interpolateRound=Zr,t.interpolateSinebow=function(t){var n;return t=(.5-t)*Math.PI,vb.r=255*(n=Math.sin(t))*n,vb.g=255*(n=Math.sin(t+yb))*n,vb.b=255*(n=Math.sin(t+gb))*n,vb+""},t.interpolateSpectral=Sm,t.interpolateString=Xr,t.interpolateTransformCss=ri,t.interpolateTransformSvg=ii,t.interpolateTurbo=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"},t.interpolateViridis=bb,t.interpolateWarm=hb,t.interpolateYlGn=Wm,t.interpolateYlGnBu=Vm,t.interpolateYlOrBr=Qm,t.interpolateYlOrRd=Km,t.interpolateZoom=oi,t.interrupt=qi,t.intersection=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:e,i=!1;if(1===r.length){var a,o,u=q(t);try{for(u.s();!(o=u.n()).done;){var f=o.value,c=r(f);(i?e(c,a)<0:0===e(c,c))&&(n=f,a=c,i=!0)}}catch(t){u.e(t)}finally{u.f()}}else{var s,l=q(t);try{for(l.s();!(s=l.n()).done;){var h=s.value;(i?r(h,n)<0:0===r(h,h))&&(n=h,i=!0)}}catch(t){l.e(t)}finally{l.f()}}return n},t.leastIndex=Xt,t.line=Xb,t.lineRadial=r_,t.link=d_,t.linkHorizontal=function(){return d_(f_)},t.linkRadial=function(){var t=d_(s_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return d_(c_)},t.local=oe,t.map=function(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,function(e,r){return n(e,r,t)})},t.matcher=An,t.max=zt,t.maxIndex=Rt,t.mean=function(t,n){var e=0,r=0;if(void 0===n){var i,a=q(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;null!=o&&(o=+o)>=o&&(++e,r+=o)}}catch(t){a.e(t)}finally{a.f()}}else{var u,f=-1,c=q(t);try{for(c.s();!(u=c.n()).done;){var s=u.value;null!=(s=n(s,++f,t))&&(s=+s)>=s&&(++e,r+=s)}}catch(t){c.e(t)}finally{c.f()}}if(e)return r/e},t.median=function(t,n){return Ht(t,.5,n)},t.medianIndex=function(t,n){return $t(t,.5,n)},t.merge=Vt,t.min=Ft,t.minIndex=It,t.mode=function(t,n){var e=new ut;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&a>=a&&e.set(a,(e.get(a)||0)+1)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;null!=(c=n(c,++u,t))&&c>=c&&e.set(c,(e.get(c)||0)+1)}}catch(t){f.e(t)}finally{f.f()}}var s,l,h=0,d=q(e);try{for(d.s();!(l=d.n()).done;){var p=T(l.value,2),v=p[0],y=p[1];y>h&&(h=y,s=v)}}catch(t){d.e(t)}finally{d.f()}return s},t.namespace=gn,t.namespaces=yn,t.nice=Ot,t.now=Ei,t.pack=function(){var t=null,n=1,e=1,r=hd;function i(i){var a=vd();return i.x=n/2,i.y=e/2,t?i.eachBefore(Nd(t)).eachAfter(Dd(r,.5,a)).eachBefore(Pd(1)):i.eachBefore(Nd(Cd)).eachAfter(Dd(hd,1,a)).eachAfter(Dd(r,i.r/Math.min(n,e),a)).eachBefore(Pd(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=sd(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:dd(+t),i):r},i},t.packEnclose=function(t){return yd(t,vd())},t.packSiblings=function(t){return Sd(t,vd()),t},t.pairs=function(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt,i=[],a=!1,o=q(t);try{for(o.s();!(e=o.n()).done;){var u=e.value;a&&i.push(r(n,u)),n=u,a=!0}}catch(t){o.e(t)}finally{o.f()}return i},t.partition=function(){var t=1,n=1,e=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/a,i.eachBefore(function(t,n){return function(r){r.children&&jd(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,a=r.y0,o=r.x1-e,u=r.y1-e;o0&&void 0!==arguments[0]?arguments[0]:3;return new so(+t)},t.permute=xt,t.pie=function(){var t=Kb,n=Zb,e=null,r=Mb(0),i=Mb(jb),a=Mb(0);function o(o){var u,f,c,s,l,h=(o=Yb(o)).length,d=0,p=new Array(h),v=new Array(h),y=+r.apply(this,arguments),g=Math.min(jb,Math.max(-jb,i.apply(this,arguments)-y)),m=Math.min(Math.abs(g)/h,a.apply(this,arguments)),b=m*(g<0?-1:1);for(u=0;u0&&(d+=l);for(null!=n?p.sort(function(t,e){return n(v[t],v[e])}):null!=e&&p.sort(function(t,n){return e(o[t],o[n])}),u=0,c=d?(g-h*b)/d:0;u0?l*c:0)+b,v[f]={data:o[f],index:u,value:l,startAngle:y,endAngle:s,padAngle:m};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:Mb(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Mb(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Mb(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Mb(+t),o):a},o},t.piecewise=yi,t.pointRadial=a_,t.pointer=ce,t.pointers=function(t,n){return t.target&&(t=fe(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,function(t){return ce(t,n)})},t.polygonArea=function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++eu!=c>u&&o<(f-e)*(u-r)/(c-r)+e&&(s=!s),f=e,c=r;return s},t.polygonHull=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)c.push(t[r[a[n]][2]]);for(n=+u;n0&&void 0!==arguments[0]?arguments[0]:Math.random(),n=0|(0<=t&&t<1?t/_p:Math.abs(t));return function(){return _p*((n=1664525*n+1013904223|0)>>>0)}},t.randomLogNormal=op,t.randomLogistic=mp,t.randomNormal=ap,t.randomPareto=sp,t.randomPoisson=bp,t.randomUniform=rp,t.randomWeibull=yp,t.range=Wt,t.rank=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");var r=Array.from(t),i=new Float64Array(r.length);2!==n.length&&(r=r.map(n),n=e);var a,o,u=function(t,e){return n(r[t],r[e])};return Uint32Array.from(r,function(t,n){return n}).sort(n===e?function(t,n){return At(r[t],r[n])}:Mt(u)).forEach(function(t,n){var e=u(t,void 0===a?t:a);e>=0?((void 0===a||e>0)&&(a=t,o=n),i[t]=o):i[t]=NaN}),i},t.reduce=function(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");var r,i,a=t[Symbol.iterator](),o=-1;if(arguments.length<3){var u;if(r=(u=a.next()).done,e=u.value,r)return;++o}for(;r=(f=a.next()).done,i=f.value,!r;){var f;e=n(e,i,++o,t)}return e},t.reverse=function(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()},t.rgb=He,t.ribbon=function(){return wo()},t.ribbonArrow=function(){return wo(xo)},t.rollup=gt,t.rollups=mt,t.scaleBand=kp,t.scaleDiverging=function t(){var n=zp(Zg()(Sp));return n.copy=function(){return Xg(n,t())},wp.apply(n,arguments)},t.scaleDivergingLog=function t(){var n=Yp(Zg()).domain([.1,1,10]);return n.copy=function(){return Xg(n,t()).base(n.base())},wp.apply(n,arguments)},t.scaleDivergingPow=Kg,t.scaleDivergingSqrt=function(){return Kg.apply(null,arguments).exponent(.5)},t.scaleDivergingSymlog=function t(){var n=Gp(Zg());return n.copy=function(){return Xg(n,t()).constant(n.constant())},wp.apply(n,arguments)},t.scaleIdentity=function t(n){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=Array.from(t,Tp),r):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(n).unknown(e)},n=arguments.length?Array.from(n,Tp):[0,1],zp(r)},t.scaleImplicit=Mp,t.scaleLinear=function t(){var n=jp();return n.copy=function(){return Pp(n,t())},xp.apply(n,arguments),zp(n)},t.scaleLog=function t(){var n=Yp(Op()).domain([1,10]);return n.copy=function(){return Pp(n,t()).base(n.base())},xp.apply(n,arguments),n},t.scaleOrdinal=Ap,t.scalePoint=function(){return function t(n){var e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return t(e())},n}(kp.apply(null,arguments).paddingInner(1))},t.scalePow=Kp,t.scaleQuantile=function t(){var n,r=[],i=[],a=[];function o(){var t=0,n=Math.max(1,i.length);for(a=new Array(n-1);++t0?a[n-1]:r[0],n=i?[a[i-1],r]:[a[n-1],a[n]]},u.unknown=function(t){return arguments.length?(n=t,u):u},u.thresholds=function(){return a.slice()},u.copy=function(){return t().domain([e,r]).range(o).unknown(n)},xp.apply(zp(u),arguments)},t.scaleRadial=function t(){var n,e=jp(),r=[0,1],i=!1;function a(t){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(t));return isNaN(r)?n:i?Math.round(r):r}return a.invert=function(t){return e.invert(Jp(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain()},a.range=function(t){return arguments.length?(e.range((r=Array.from(t,Tp)).map(Jp)),a):r.slice()},a.rangeRound=function(t){return a.range(t).round(!0)},a.round=function(t){return arguments.length?(i=!!t,a):i},a.clamp=function(t){return arguments.length?(e.clamp(t),a):e.clamp()},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return t(e.domain(),r).round(i).clamp(e.clamp()).unknown(n)},xp.apply(a,arguments),zp(a)},t.scaleSequential=function t(){var n=zp(Wg()(Sp));return n.copy=function(){return Xg(n,t())},wp.apply(n,arguments)},t.scaleSequentialLog=function t(){var n=Yp(Wg()).domain([1,10]);return n.copy=function(){return Xg(n,t()).base(n.base())},wp.apply(n,arguments)},t.scaleSequentialPow=Qg,t.scaleSequentialQuantile=function t(){var n=[],r=Sp;function i(t){if(null!=t&&!isNaN(t=+t))return r((V(n,t,1)-1)/(n.length-1))}return i.domain=function(t){if(!arguments.length)return n.slice();n=[];var r,a=q(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;null==o||isNaN(o=+o)||n.push(o)}}catch(t){a.e(t)}finally{a.f()}return n.sort(e),i},i.interpolator=function(t){return arguments.length?(r=t,i):r},i.range=function(){return n.map(function(t,e){return r(e/(n.length-1))})},i.quantiles=function(t){return Array.from({length:t+1},function(e,r){return Ht(n,r/t)})},i.copy=function(){return t(r).domain(n)},wp.apply(i,arguments)},t.scaleSequentialSqrt=function(){return Qg.apply(null,arguments).exponent(.5)},t.scaleSequentialSymlog=function t(){var n=Gp(Wg());return n.copy=function(){return Xg(n,t()).constant(n.constant())},wp.apply(n,arguments)},t.scaleSqrt=function(){return Kp.apply(null,arguments).exponent(.5)},t.scaleSymlog=function t(){var n=Gp(Op());return n.copy=function(){return Pp(n,t()).constant(n.constant())},xp.apply(n,arguments)},t.scaleThreshold=function t(){var n,e=[.5],r=[0,1],i=1;function a(t){return null!=t&&t<=t?r[V(e,t,0,i)]:n}return a.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,r.length-1),a):e.slice()},a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(e.length,r.length-1),a):r.slice()},a.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return t().domain(e).range(r).unknown(n)},xp.apply(a,arguments)},t.scaleTime=function(){return xp.apply(Gg(gy,my,fy,iy,Cv,wv,mv,pv,hv,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},t.scaleUtc=function(){return xp.apply(Gg(py,vy,sy,oy,Yv,Av,_v,yv,hv,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},t.scan=function(t,n){var e=Xt(t,n);return e<0?void 0:e},t.schemeAccent=nm,t.schemeBlues=Jm,t.schemeBrBG=lm,t.schemeBuGn=Cm,t.schemeBuPu=Dm,t.schemeCategory10=tm,t.schemeDark2=em,t.schemeGnBu=Om,t.schemeGreens=nb,t.schemeGreys=rb,t.schemeOrRd=Bm,t.schemeOranges=cb,t.schemePRGn=dm,t.schemePaired=rm,t.schemePastel1=im,t.schemePastel2=am,t.schemePiYG=vm,t.schemePuBu=Im,t.schemePuBuGn=Rm,t.schemePuOr=gm,t.schemePuRd=Um,t.schemePurples=ab,t.schemeRdBu=bm,t.schemeRdGy=xm,t.schemeRdPu=Hm,t.schemeRdYlBu=Mm,t.schemeRdYlGn=km,t.schemeReds=ub,t.schemeSet1=om,t.schemeSet2=um,t.schemeSet3=fm,t.schemeSpectral=Em,t.schemeTableau10=cm,t.schemeYlGn=Gm,t.schemeYlGnBu=$m,t.schemeYlOrBr=Xm,t.schemeYlOrRd=Zm,t.select=ie,t.selectAll=function(t){return"string"==typeof t?new ee([document.querySelectorAll(t)],[document.documentElement]):new ee([xn(t)],ne)},t.selection=re,t.selector=_n,t.selectorAll=Mn,t.shuffle=Qt,t.shuffler=Zt,t.some=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");var e,r=-1,i=q(t);try{for(i.s();!(e=i.n()).done;){if(n(e.value,++r,t))return!0}}catch(t){i.e(t)}finally{i.f()}return!1},t.sort=wt,t.stack=function(){var t=Mb([]),n=_x,e=bx,r=xx;function i(i){var a,o,u,f=Array.from(t.apply(this,arguments),wx),c=f.length,s=-1,l=q(i);try{for(l.s();!(u=l.n()).done;){var h=u.value;for(a=0,++s;a0)for(var e,r,i,a,o,u,f=0,c=t[n[0]].length;f0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},t.stackOffsetExpand=function(t,n){if((r=t.length)>0){for(var e,r,i,a=0,o=t[0].length;a0){for(var e,r=0,i=t[n[0]],a=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,a=0,o=1;o=0&&(c=h[w]).data===Rd;--w)c.data=null}if(u.parent=Bd,u.eachBefore(function(t){t.depth=t.parent.depth+1,--i}).eachBefore(fd),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(n=sd(t),r):n},r.parentId=function(t){return arguments.length?(e=sd(t),r):e},r.path=function(n){return arguments.length?(t=sd(n),r):t},r},t.style=Fn,t.subset=function(t,n){return nn(n,t)},t.sum=function(t,n){var e=0;if(void 0===n){var r,i=q(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;(a=+a)&&(e+=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=-1,f=q(t);try{for(f.s();!(o=f.n()).done;){var c=o.value;(c=+n(c,++u,t))&&(e+=c)}}catch(t){f.e(t)}finally{f.f()}}return e},t.superset=nn,t.svg=Hu,t.symbol=function(t,n){var e=null,r=zb(i);function i(){var i;if(e||(e=i=r()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return t="function"==typeof t?t:Mb(t||y_),n="function"==typeof n?n:Mb(void 0===n?64:+n),i.type=function(n){return arguments.length?(t="function"==typeof n?n:Mb(n),i):t},i.size=function(t){return arguments.length?(n="function"==typeof t?t:Mb(+t),i):n},i.context=function(t){return arguments.length?(e=null==t?null:t,i):e},i},t.symbolAsterisk=v_,t.symbolCircle=y_,t.symbolCross=g_,t.symbolDiamond=__,t.symbolDiamond2=x_,t.symbolPlus=w_,t.symbolSquare=M_,t.symbolSquare2=A_,t.symbolStar=S_,t.symbolTimes=F_,t.symbolTriangle=N_,t.symbolTriangle2=P_,t.symbolWye=R_,t.symbolX=F_,t.symbols=I_,t.symbolsFill=I_,t.symbolsStroke=L_,t.text=Bu,t.thresholdFreedmanDiaconis=function(t,n,e){return Math.ceil((e-n)/(2*(Ht(t,.75)-Ht(t,.25))*Math.pow(J(t),-1/3)))},t.thresholdScott=function(t,n,e){return Math.ceil((e-n)*Math.cbrt(J(t))/(3.49*it(t)))},t.thresholdSturges=jt,t.tickFormat=Bp,t.tickIncrement=Dt,t.tickStep=Pt,t.ticks=Nt,t.timeDay=wv,t.timeDays=Mv,t.timeFormatDefaultLocale=Ug,t.timeFormatLocale=wy,t.timeFriday=jv,t.timeFridays=Uv,t.timeHour=mv,t.timeHours=bv,t.timeInterval=ev,t.timeMillisecond=rv,t.timeMilliseconds=iv,t.timeMinute=pv,t.timeMinutes=vv,t.timeMonday=Nv,t.timeMondays=Rv,t.timeMonth=iy,t.timeMonths=ay,t.timeSaturday=Bv,t.timeSaturdays=qv,t.timeSecond=hv,t.timeSeconds=dv,t.timeSunday=Cv,t.timeSundays=zv,t.timeThursday=Ov,t.timeThursdays=Lv,t.timeTickInterval=my,t.timeTicks=gy,t.timeTuesday=Dv,t.timeTuesdays=Fv,t.timeWednesday=Pv,t.timeWednesdays=Iv,t.timeWeek=Cv,t.timeWeeks=zv,t.timeYear=fy,t.timeYears=cy,t.timeout=Bi,t.timer=Ni,t.timerFlush=Di,t.transition=Xi,t.transpose=Kt,t.tree=function(){var t=qd,n=1,e=1,r=null;function i(i){var f=function(t){for(var n,e,r,i,a,o=new Gd(t,0),u=[o];n=u.pop();)if(r=n._.children)for(n.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(e=n.children[i]=new Gd(r[i],i)),e.parent=n;return(o.parent=new Gd(null,0)).children=[o],o}(i);if(f.eachAfter(a),f.parent.m=-f.z,f.eachBefore(o),r)i.eachBefore(u);else{var c=i,s=i,l=i;i.eachBefore(function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)});var h=c===s?1:t(c,s)/2,d=h-c.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*v})}return i}function a(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)(n=i[a]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var a=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-a):n.z=a}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,a=n,o=n,u=e,f=a.parent.children[0],c=a.m,s=o.m,l=u.m,h=f.m;u=Yd(u),a=Hd(a),u&&a;)f=Hd(f),(o=Yd(o)).a=n,(i=u.z+l-a.z-c+t(u._,a._))>0&&($d(Vd(u,n,r),n,i),c+=i,s+=i),l+=u.m,c+=a.m,h+=f.m,s+=o.m;u&&!Yd(o)&&(o.t=u,o.m+=l-s),a&&!Hd(f)&&(f.t=a,f.m+=c-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.treemap=function(){var t=Zd,n=!1,e=1,r=1,i=[0],a=hd,o=hd,u=hd,f=hd,c=hd;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Od),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=u[n];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=f)}for(var l=c[n],h=r/2+l,d=n+1,p=e-1;d>>1;c[v]f-a){var m=r?(i*g+o*y)/r:o;t(n,d,y,i,a,m,f),t(d,e,g,m,a,o,f)}else{var b=r?(a*g+f*y)/r:f;t(n,d,y,i,a,o,b),t(d,e,g,i,b,o,f)}}(0,f,t.value,n,e,r,i)},t.treemapDice=jd,t.treemapResquarify=Kd,t.treemapSlice=Wd,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?Wd:jd)(t,n,e,r,i)},t.treemapSquarify=Zd,t.tsv=Fu,t.tsvFormat=Tu,t.tsvFormatBody=Eu,t.tsvFormatRow=Cu,t.tsvFormatRows=Su,t.tsvFormatValue=Nu,t.tsvParse=Au,t.tsvParseRows=ku,t.union=function(){for(var t=new ft,n=arguments.length,e=new Array(n),r=0;r1?n-1:0),i=1;i1?n-1:0),o=1;op}f.event(t).zoom("mouse",a(m(f.that.__zoom,f.mouse[0]=ce(t,u),f.mouse[1]),f.extent,c))},!0).on("mouseup.zoom",function(t){s.on("mousemove.zoom mouseup.zoom",null),ve(t.view,f.moved),Ox(t),f.event(t).end()},!0),l=ce(t,u),h=t.clientX,d=t.clientY;pe(t.view),Px(t),f.mouse=[l,this.__zoom.invert(l)],qi(this),f.start()}}function k(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o0?ie(this).transition().duration(s).call(_,d,f,t):ie(this).call(y.transform,d,f,t)}}function T(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o1?n-1:0),r=1;r1?r-1:0),a=1;a= 1e9) return vec4(0);\n return view * vec4(xy, 0, 1);\n }\n\n #pragma lines: attribute vec3 color;\n #pragma lines: varying vec3 color = getColor(color);\n vec3 getColor (vec3 color) { return color; }\n\n #pragma lines: width = getWidth();\n uniform float width, pixelRatio;\n float getWidth() {\n return width * pixelRatio;\n }",frag:"\n precision highp float;\n varying vec3 color;\n void main () {\n gl_FragColor = vec4(color, 1);\n }",uniforms:{width:t.prop("width")},blend:{enable:!0,func:{srcRGB:"src alpha",srcAlpha:1,dstRGB:"one minus src alpha",dstAlpha:1},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1}})}},{"regl-gpu-lines":21}],12:[function(t,n,e){"use strict";var r=t("./hex-rgb-to-float.js"),i=t("regl-gpu-lines");n.exports=function(t){return i(t,{vert:"\n precision highp float;\n uniform mat4 view, inverseView;\n \n #pragma lines: attribute vec2 xy;\n #pragma lines: position = computePosition(xy);\n vec4 computePosition(vec2 xy) {\n if (xy.x >= 1e9) return vec4(0);\n return view * vec4(xy, 0, 1);\n }\n\n #pragma lines: width = getWidth();\n uniform float width, pixelRatio;\n float getWidth() {\n return width * pixelRatio;\n }",frag:"\n precision highp float;\n uniform vec4 color;\n void main () {\n gl_FragColor = color;\n }",uniforms:{color:function(t,n){return function(t){return 4===t.length?t:t.concat(1)}(n.color?"string"==typeof n.color?r(n.color):n.color:[0,0,0])},width:t.prop("width")},blend:{enable:!0,func:{srcRGB:"src alpha",srcAlpha:1,dstRGB:"one minus src alpha",dstAlpha:1},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1}})}},{"./hex-rgb-to-float.js":14,"regl-gpu-lines":21}],13:[function(t,n,e){"use strict";n.exports=function(t){return t({vert:"\n precision mediump float;\n attribute vec2 position;\n uniform vec2 aspect;\n uniform mat4 view;\n uniform float size;\n void main () {\n gl_Position = view * vec4(position, 0, 1);\n gl_PointSize = size;\n }\n ",frag:"\n precision mediump float;\n uniform vec3 color;\n void main () {\n if (dot(gl_PointCoord - 0.5, gl_PointCoord - 0.5) > 0.25) discard;\n gl_FragColor = vec4(color, 1);\n }\n ",depth:{enable:!1},attributes:{position:t.prop("positions")},uniforms:{aspect:function(t){return[1,t.framebufferWidth/t.framebufferHeight]},size:function(t,n){return n.size*t.pixelRatio},color:t.prop("color")},primitive:"points",count:t.prop("positionsCount")})}},{}],14:[function(t,n,e){"use strict";n.exports=function(t){var n;return(n=t.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/))?[parseInt(n[1],16)/255,parseInt(n[2],16)/255,parseInt(n[3],16)/255]:(n=t.match(/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/))?[parseInt(n[1],16)/15,parseInt(n[2],16)/15,parseInt(n[3],16)/15]:[0,0,0]}},{}],15:[function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function a(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,r=new Array(n);e0&&void 0!==arguments[0])||arguments[0],n=R(_.center),e=w(_),i=u(e,3),c=i[0],l=i[1],h=i[2],p=_.center,M=_.scale;P.vertexAttributes.xy.subdata(f(Array(P.vertexCount).keys()).map(function(t){var n=o.invert((t-1)/(P.vertexCount-3)*window.innerWidth);return[n,R(n)]}).flat());var A=x(_,D.vertexCount).flat();D.vertexAttributes.xy.subdata(A),O.vertexAttributes.xy.subdata(x(a(a({},_),{},{radius:_.radius/2}),O.vertexCount).flat()),j.vertexAttributes.xy.subdata(x(_,j.vertexCount).flat());var k=o.domain(),T=u(k,2),E=T[0],S=T[1];B.vertexAttributes.xy.subdata([E-1,0,E,0,S,0,S+1,0]);var C=[1e10,1e10];z.vertexAttributes.xy.subdata([].concat(C,[A[0],0,A[0],A[1]],C,[A[2],0,A[2],A[3]],C,[A[4],0,A[4],A[5]],C,f([-.5,0,.5].map(function(t){return[_.center+t*_.radius,s.invert(_.yOffset),_.center+t*_.radius,R(_.center+t*_.radius)].concat(C)}).flat())));var I={x:_.center,y:s.invert(_.yOffset),color:b,type:"center"},L=w(_).map(function(t){return{x:t,y:0,type:"root",color:g}}),U=[{x:_.center-_.radius/2,y:R(_.center-_.radius/2),color:m,type:"extremum"},{x:_.center+_.radius/2,y:R(_.center+_.radius/2),color:m,type:"extremum"}],q={x:p,y:R(p),color:b,type:"inflection"},H=[{x:A[0],y:A[1],color:y,type:"tri"},{x:A[2],y:A[3],color:y,type:"tri"},{x:A[4],y:A[5],color:y,type:"tri"}],Y=[].concat(f(L),[I],H,U,[q]),$=N.selectAll("circle").data(Y).join(function(t){return t.append("circle").attr("cx",function(t){var n=t.x;return o(n)}).attr("cy",function(t){var n=t.y;return s(n)}).attr("cursor","move").attr("stroke-width",3).attr("stroke",function(t){var n=t.color;return n}).attr("fill",v).attr("r",6)},function(t){return t.attr("cx",function(t){var n=t.x;return o(n)}).attr("cy",function(t){var n=t.y;return s(n)})},function(t){return t.remove()});t&&$.call(d.drag().on("start",function(t){t.sourceEvent.stopPropagation()}).on("drag",function(t,e){t.sourceEvent.stopPropagation(),t.sourceEvent.preventDefault();var i=t.sourceEvent.touches?t.sourceEvent.touches[0]:t.sourceEvent,a=o.invert(i.clientX),f=s.invert(i.clientY);switch(e.type){case"root":e.x=a,Object.assign(_,function(t){var n=u(t,3),e=n[0],r=n[1],i=n[2],a=-(e+r+i)/1,o=(r*i+e*i+e*r)/1,f=-e*r*i/1,c=Math.min(0,(3*o-Math.pow(a,2))/9),s=(9*a*o-27*f-2*Math.pow(a,3))/54,l=(Math.min(0,Math.pow(c,3)+Math.pow(s,2)),Math.acos(Math.max(-.99999,Math.min(.99999,s/Math.pow(-c,1.5)))));return{center:-a/3,radius:2*Math.sqrt(-c),alpha:l/3}}(L.map(function(t){var n=t.x;return n})));break;case"extremum":var d=e,p=U[0]===e?U[1]:U[0];d.x=a,d.y=f;var v=.5*(d.y-p.y),y=.5*(d.x-p.x),g=.5*(d.x+p.x),m=.5*(d.y+p.y),b=-v/(2*Math.pow(y,3)),x=1.5*v/y,w=m,A=0/b,k=x/b,T=w/b,E=Math.min(0,(3*k-Math.pow(A,2))/9),S=(9*A*k-27*T-2*Math.pow(A,3))/54,C=(Math.min(0,Math.pow(E,3)+Math.pow(S,2)),Math.acos(Math.max(-.99999,Math.min(.99999,S/Math.pow(-E,1.5)))));_.center=g,_.radius=2*Math.sqrt(-E),_.alpha=C/3,_.scale=b;break;case"inflection":var N=(f-n)/M,D=-(c+l+h),P=l*h+c*h+c*l,O=-c*l*h+N,j=D/1,B=P/1,z=O/1,R=Math.min(0,(3*B-Math.pow(j,2))/9),I=(9*j*B-27*z-2*Math.pow(j,3))/54,q=(Math.min(0,Math.pow(R,3)+Math.pow(I,2)),Math.acos(Math.max(-.99999,Math.min(.99999,I/Math.pow(-R,1.5)))));_.center=a,_.radius=2*Math.sqrt(-R),_.alpha=q/3;break;case"tri":var H=f-s.invert(_.yOffset),Y=a-_.center;_.alpha=Math.atan2(H,Y);break;case"center":_.center=a,_.yOffset=s(f)}F(!1),r()}).on("end",function(){F(),r()}))}z.vertexAttributes.color=n.buffer(function(t){var n,e=[0,0,0],r=[e],i=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=c(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw a}}}}(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=l(a);r.push(o,o,e)}}catch(t){i.e(t)}finally{i.f()}return r}([g,g,g,m,b,m])),F();var I=h(p,o,s,function(){C.attr("width",window.innerWidth).attr("height",window.innerHeight),F(),r()});I(),window.addEventListener("resize",I);var L=n.frame(function(){try{if(!e)return;e=!1,A({},function(){k(o,s,function(t){var n=t.view3;T({view3:n,width:1}),E([a(a({},B),{},{width:1.5,color:y}),a(a({},P),{},{width:3,color:y}),a(a({},O),{},{width:3,color:m}),a(a({},j),{},{width:1.5,color:y})]),S([a(a({},z),{},{width:3})]),E([a(a({},D),{},{width:3,color:y})])})})}catch(t){console.error(t),L.cancel(),L=null}})})});var v=document.createElement("div");v.innerHTML='\nA reproduction of a diagram by Freya Holmér showing the relation between cubic polynomials and an equilateral triangle.\n',document.body.appendChild(v),v.style.cssText="\nposition: absolute;\nbottom: 0;\nleft: 0;\npadding: 5px;\npointer-events: none;\nbackground-color: rgb(237 247 255/50%);\nwidth: 450px;\nmax-width: 100%;\nfont-family: sans-serif;\nline-height: 1.4;\n"},{"./color":6,"./configure-linear-scale":7,"./configure-viewport":8,"./d3.min.js":9,"./draw-background":10,"./draw-lines":12,"./draw-lines-with-color":11,"./draw-points":13,"./hex-rgb-to-float.js":14,"./makebuffer":16,"./resize":23,"fail-nicely":1,regl:22}],16:[function(t,n,e){"use strict";n.exports=function(t,n,e){return n=n||{},e.positions&&(n.positions=(n.positions||t.buffer)(e.positions)),e.nextPositions&&(n.nextPositions=(n.nextPositions||t.buffer)(e.nextPositions)),e.directions&&(n.directions=(n.directions||t.buffer)(e.directions)),e.angles&&(n.angles=(n.angles||t.buffer)(e.angles)),e.cells&&(n.cells=(n.cells||t.elements)(e.cells)),e.cells&&(n.cellCount=3*e.cells.length),e.positions&&(n.positionsCount=e.positions.length),n}},{}],17:[function(t,n,e){"use strict";n.exports=function(t,n,e){var r=n.domain(),i=e.domain(),a=2/(r[1]-r[0]),o=2/(i[1]-i[0]);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=o,t[5]=0,t[6]=-1-a*r[0],t[7]=-1-o*i[0],t[8]=1,t}},{}],18:[function(t,n,e){"use strict";n.exports=function(t,n){t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=n[4],t[6]=0,t[7]=n[5],t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[6],t[13]=n[7],t[14]=0,t[15]=n[8]}},{}],19:[function(t,n,e){n.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],20:[function(t,n,e){n.exports=function(t){"string"==typeof t&&(t=[t]);for(var n=[].slice.call(arguments,1),e=[],r=0;rt.trim()).filter(t=>!!t),a=(t,n)=>`${r}(${i.map(e=>(n||"")+e+t).join(",")})`;return{type:"property",property:t,returnType:e,name:r,inputs:i,generate:a}}if(n=t.match(u)){const t="extrapolate"===n[1],e=n[2],r=n[3],i=n[4],a=n[5].split(",").map(t=>t.trim()).filter(t=>!!t),o=(n,e,o)=>{const u=t?n:`clamp(${n},0.0,1.0)`;return`${r}=${i}(${a.map(t=>`mix(${t+e},${t+o},${u})`).join(",")});`};return{type:"varying",returnType:e,name:r,getter:i,inputs:a,generate:o}}if(n=t.match(f))return{type:"postproject",name:n[1]};throw new Error(`Unrecognized lines pragma:"${t}"`)}function l(t){let n;const e=new Map,i=new Map;for(const a of t)"attribute"===a.type?(e.set(a.name,a),a.vertexUsage=r.NONE,a.endpointUsage=r.NONE):"varying"===a.type?i.set(a.name,a):"postproject"===a.type&&(n=a.name);let a,o,u;for(const n of t)if("property"===n.type){switch(n.property){case"width":if(a)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);a=n;break;case"position":if(o)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);o=n;break;case"orientation":if(u)throw new Error(`Unexpected duplicate pragma for property "${n.property}"`);u=n;break;default:throw new Error(`Invalid pragma property "${n.property}"`)}for(const t of n.inputs)if(!e.has(t))throw new Error(`Missing attribute ${t} of property ${n.property}`)}for(const n of t)if(n.inputs)for(const t of n.inputs){const i=e.get(t);"property"!==n.type&&"varying"!==n.type||("position"===n.property?(i.vertexUsage|=r.EXTENDED,i.endpointUsage|=r.EXTENDED):"orientation"===n.property?i.endpointUsage|=r.PER_INSTANCE:(i.endpointUsage|=r.REGULAR,i.vertexUsage|=r.REGULAR))}return{varyings:i,attrs:e,width:a,position:o,orientation:u,postproject:n}}const h=[];h[5120]=1,h[5122]=2,h[5124]=4,h[5121]=1,h[5123]=2,h[5125]=4,h[5126]=4;const d=h,p={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126};function v(t,n){return Object.prototype.hasOwnProperty.call(t,n)}const y=[];y[1]="float",y[2]="vec2",y[3]="vec3",y[4]="vec4";const g=e,m=y,b=t,_=function(t,e,r,i,a,o,u,f,c,s,l,h){const d=e?f:u,p=["B","C","D"];e||p.unshift("A");const v={},y={},g=c.concat(d.attrs);if(i){y.vao=t.prop("vao");for(let t=0;t[t.capRes2,Math.max(t.capRes2,t.joinRes2)]:t=>[Math.max(t.capRes2,t.joinRes2),Math.max(t.capRes2,t.joinRes2)]:e?t=>[t.capRes2,t.joinRes2]:t=>[t.joinRes2,t.joinRes2];return t({vert:`${a.glsl}const float CAP_START=${n.CAP_START}.0;const float CAP_END=${n.CAP_END}.0;${d.glsl}attribute float index;${h?"attribute float debugInstanceID;":""}uniform bool _isRound;uniform vec2 _vertCnt2,_capJoinRes2;uniform vec2 _resolution,_capScale;uniform float _miterLimit;${a.orientation||!e?"":"uniform float _orientation;"}varying vec3 lineCoord;${h?"varying vec2 triStripCoord;":""}${h?"varying float instanceID;":""}${h?"varying float vertexIndex;":""}bool isnan(float val){return(val<0.0||0.0`vec4 p${t}=${a.position.generate(t)};`).join("\n")}gl_Position=pB;bool aInvalid=${e?"false":"invalid(pA)"};bool bInvalid=invalid(pB);bool cInvalid=invalid(pC);bool dInvalid=invalid(pD);vec2 v=_vertCnt2+3.0;float N=dot(v,vec2(1));bool mirror=index>=v.x;${e?"if(dInvalid && mirror)return;":""}float pw=mirror?pC.w:pB.w;${p.map(t=>`p${t}=vec4(vec3(p${t}.xy*_resolution,p${t}.z)/p${t}.w,1);`).join("\n")}${e?"vec4 pA=pC;":""}if(bInvalid||cInvalid||max(abs(pB.z),abs(pC.z))>1.0)return;if(mirror){vec4 vTmp=pC; pC=pB; pB=vTmp;vTmp=pD; pD=pA; pA=vTmp;bool bTmp=dInvalid; dInvalid=aInvalid; aInvalid=bTmp;}${e?"bool isCap=!mirror;":(r?"":"const ")+"bool isCap=false"};if(aInvalid){ ${r?"pA=pC; isCap=true;":"pA=2.0*pB-pC;"} }if(dInvalid){ ${r?"pD=pB;":"pD=2.0*pC-pB;"} }bool roundOrCap=_isRound||isCap;float width=mirror?${a.width.generate("C")}:${a.width.generate("B")};vec2 tBC=pC.xy-pB.xy;float lBC=length(tBC);tBC/=lBC;vec2 nBC=vec2(-tBC.y,tBC.x);vec2 tAB=pB.xy-pA.xy;float lAB=length(tAB);if(lAB>0.0)tAB/=lAB;vec2 nAB=vec2(-tAB.y,tAB.x);vec2 tCD=pD.xy-pC.xy;float lCD=length(tCD);if(lCD>0.0)tCD/=lCD;vec2 nCD=vec2(-tCD.y,tCD.x);float cosB=clamp(dot(tAB,tBC),-1.0,1.0);const float tol=1e-4;float mirrorSign=mirror?-1.0:1.0;float dirB=-dot(tBC,nAB);float dirC=dot(tBC,nCD);bool bCollinear=abs(dirB)-0.9999?(tAB.x*tBC.y-tAB.y*tBC.x)/(1.0+cosB):0.0;xy=vec2(min(abs(m),min(lBC,lAB)/width),-1);lineCoord.y=-lineCoord.y;} else {float m2=dot(miter,miter);float lm=sqrt(m2);yBasis=miter/lm;xBasis=dirB*vec2(yBasis.y,-yBasis.x);bool isBevel=1.0>_miterLimit*m2;if(mod(i,2.0)==0.0){if(roundOrCap||i !=0.0){float theta=-0.5*(acos(cosB)*(clamp(i,0.0,res)/res)-pi)*(isCap?2.0:1.0);xy=vec2(cos(theta),sin(theta));if(isCap){if(xy.y>0.001)xy*=_capScale;lineCoord.xy=xy.yx*lineCoord.y;}} else {yBasis=bIsHairpin?vec2(0):miter;xy.y=isBevel?1.0:1.0/m2;}} else {lineCoord.y=0.0;if(isBevel && !roundOrCap){xy.y=-1.0+sqrt((1.0+cosB)*0.5);}}}${e?`float _orientation=${a.orientation?a.orientation.generate(""):"mod(_orientation,2.0)"};`:""};${e?"if(_orientation==CAP_END)lineCoord.xy=-lineCoord.xy;":""}vec2 dP=mat2(xBasis,yBasis)*xy;float dx=dot(dP,tBC)*mirrorSign;float useC=(mirror?1.0:0.0)+dx*(width/lBC);lineCoord.z=useC<0.0||useC>1.0?1.0:0.0;${[...a.varyings.values()].map(t=>t.generate("useC","B","C")).join("\n")}gl_Position=pB;gl_Position.xy+=width*dP;gl_Position.xy/=_resolution;gl_Position*=pw;${a.postproject?`gl_Position=${a.postproject}(gl_Position);`:""}}`,frag:o,attributes:v,uniforms:{...l,_vertCnt2:(t,n)=>m(n),_capJoinRes2:(t,n)=>[n.capRes2,n.joinRes2],_miterLimit:(t,n)=>n.miterLimit*n.miterLimit,_orientation:t.prop("orientation"),_capScale:t.prop("capScale"),_isRound:(t,n)=>"round"===n.join,_resolution:(t,n)=>n.viewportSize||[t.viewportWidth,t.viewportHeight]},primitive:"triangle strip",instances:e?(t,e)=>e.splitCaps?e.orientation===n.CAP_START?Math.ceil(e.count/2):Math.floor(e.count/2):e.count:(t,n)=>n.count-3,count:(t,n)=>{const e=m(n);return 6+(e[0]+e[1])},...s,...y})},x=function(t){const n=[],e=t.split("\n");for(let t=0;t{const o=e?t.endpointUsage:t.vertexUsage;if(!o)return;const u=[];function f(t,r){const i=n+r;if(u.push(i),e){const e=o&g.PER_INSTANCE?1:3;a.push({name:i,spec:{buffer:(t,e)=>e.buffers[n].buffer,offset:(e,r)=>r.buffers[n].offset+r.buffers[n].stride*((r.orientation!==b.CAP_START&&r.splitCaps?3:0)+t),stride:(t,r)=>r.buffers[n].stride*e*(r.splitCaps?2:1),divisor:(t,e)=>e.buffers[n].divisor}})}else a.push({name:i,spec:{buffer:(t,e)=>e.buffers[n].buffer,offset:(e,r)=>r.buffers[n].offset+r.buffers[n].stride*t,stride:(t,e)=>e.buffers[n].stride,divisor:(t,e)=>e.buffers[n].divisor}})}if(o&g.PER_INSTANCE&&f(0,""),o&g.REGULAR||o&g.EXTENDED)for(let t=0;t{i.push(`varying ${t.returnType} ${n};`)}),{glsl:i.join("\n"),attrs:a}},A=function(t,n,e){return function(r){if(!r)return e;if(-1===n.indexOf(r))throw new Error(`Invalid ${t} type. Valid options are:${n.join(",")}.`);return r}},k=t;var T=O;O.CAP_START=k.CAP_START,O.CAP_END=k.CAP_END;const E=new Set(["attributes","elements"]),S=["round","bevel","miter"],C=["round","square","none"],N=[1,1],D=[2,2/Math.sqrt(3)];function P(t,n,e){return(t?1:0)+(n?2:0)+(e?4:0)}function O(t,n={}){const{vert:e=null,frag:r=null,debug:i=!1,reorder:a=!1}=n;t._gpuLinesCache||(t._gpuLinesCache={});const o=t._gpuLinesCache,u={...n},f=n.uniforms||{};for(const t of["vert","frag","debug","reorder","uniforms"])delete u[t];if(Object.keys(u).forEach(t=>{if(E.has(t))throw new Error(`Invalid parameter '${t}'. Parameters ${[...E].map(t=>`'${t}'`).join(",")} may not be forwarded to regl.`)}),!e)throw new Error("Missing vertex shader,`vert`");if(!r)throw new Error("Missing fragment shader,`frag`");const c=x(e),s=M(c,t,!1),l=M(c,t,!0),h=[];i&&(o.debugInstanceIDBuffer||(o.debugInstanceIDBuffer=t.buffer(new Uint16Array([...Array(16384).keys()]))),h.push({name:"debugInstanceID",spec:{buffer:o.debugInstanceIDBuffer,divisor:1}})),o.indexBuffer||(o.indexBuffer=t.buffer(new Uint8Array([...Array(134).keys()]))),h.push({name:"index",spec:{buffer:o.indexBuffer,divisor:0}});const d=A("join",S,"miter"),p=A("cap",C,"square"),v=new Map;function y(n){return v.has(n)||v.set(n,_(t,1&n,2&n,4&n,c,r,s,l,h,u,f,i)),v.get(n)}const g=[];function m(...t){g.push.apply(g,t)}function b(){a&&g.sort(function(t,n){return t.featureMask-n.featureMask});let t=0;const n=[];for(;t>>=n))<<3,(n|=e=(15<(t>>>=e))<<2)|(e=(3<(t>>>=e))<<1)|t>>>e>>1}function f(t){t:{for(var n=16;268435456>=n;n*=16)if(t<=n){t=n;break t}t=0}return 0<(n=G[u(t)>>2]).length?n.pop():new ArrayBuffer(t)}function c(t){G[u(t.byteLength)>>2].push(t)}function s(t,n,e,r,i,a){for(var o=0;o(i=f)&&(i=r.buffer.byteLength,5123===l?i>>=1:5125===l&&(i>>=2)),r.vertCount=i,i=u,0>u&&(i=4,1===(u=r.buffer.dimension)&&(i=0),2===u&&(i=1),3===u&&(i=4)),r.primType=i}function u(t){r.elementsCount--,delete f[t.id],t.buffer.destroy(),t.buffer=null}var f={},c=0,s={uint8:5121,uint16:5123};n.oes_element_index_uint&&(s.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var l=[];return{create:function(t,n){function f(t){if(t)if("number"==typeof t)c(t),l.primType=4,l.vertCount=0|t,l.type=5121;else{var n=null,e=35044,r=-1,i=-1,u=0,h=0;Array.isArray(t)||$(t)||a(t)?n=t:("data"in t&&(n=t.data),"usage"in t&&(e=K[t.usage]),"primitive"in t&&(r=et[t.primitive]),"count"in t&&(i=0|t.count),"type"in t&&(h=s[t.type]),"length"in t?u=0|t.length:(u=i,5123===h||5122===h?u*=2:5125!==h&&5124!==h||(u*=4))),o(l,n,e,r,i,u,h)}else c(),l.primType=4,l.vertCount=0,l.type=5121;return f}var c=e.create(null,34963,!0),l=new i(c._buffer);return r.elementsCount++,f(t),f._reglType="elements",f._elements=l,f.subdata=function(t,n){return c.subdata(t,n),f},f.destroy=function(){u(l)},f},createStream:function(t){var n=l.pop();return n||(n=new i(e.create(null,34963,!0,!1)._buffer)),o(n,t,35040,-1,-1,0,0),n},destroyStream:function(t){l.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){V(f).forEach(u)}}}function y(t){for(var n=W.allocType(5123,t.length),e=0;e>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;n[e]=-24>i?r:-14>i?r+(a+1024>>-14-i):15>=i,e.height>>=i,d(e,r[i]),t.mipmask|=1<n;++n)t.images[n]=null;return t}function N(t){for(var n=t.images,e=0;en){for(var e=0;e=--this.refCount&&R(this)}}),u.profile&&(o.getTotalTextureSize=function(){var t=0;return Object.keys(ht).forEach(function(n){t+=ht[n].stats.size}),t}),{create2D:function(n,e){function r(t,n){var e=i.texInfo;D.call(e);var a=C();return"number"==typeof t?T(a,0|t,"number"==typeof n?0|n:0|t):t?(P(e,t),E(a,t)):T(a,1,1),e.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,r.width=a.width,r.height=a.height,B(i),S(a,3553),O(e,3553),z(),N(a),u.profile&&(i.stats.size=M(i.internalformat,i.type,a.width,a.height,e.genMipmaps,!1)),r.format=tt[i.internalformat],r.type=nt[i.type],r.mag=et[e.magFilter],r.min=rt[e.minFilter],r.wrapS=it[e.wrapS],r.wrapT=it[e.wrapT],r}var i=new j(3553);return ht[i.id]=i,o.textureCount++,r(n,e),r.subimage=function(t,n,e,a){n|=0,e|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,d(o,t),o.width=o.width||(i.width>>a)-n,o.height=o.height||(i.height>>a)-e,B(i),p(o,3553,n,e,a),z(),A(o),r},r.resize=function(n,e){var a=0|n,o=0|e||a;if(a===i.width&&o===i.height)return r;r.width=i.width=a,r.height=i.height=o,B(i);for(var f=0;i.mipmask>>f;++f)t.texImage2D(3553,f,i.format,a>>f,o>>f,0,i.format,i.type,null);return z(),u.profile&&(i.stats.size=M(i.internalformat,i.type,a,o,!1,!1)),r},r._reglType="texture2d",r._texture=i,u.profile&&(r.stats=i.stats),r.destroy=function(){i.decRef()},r},createCube:function(n,e,r,i,a,f){function l(t,n,e,r,i,a){var o,f=h.texInfo;for(D.call(f),o=0;6>o;++o)y[o]=C();if("number"!=typeof t&&t){if("object"==typeof t)if(n)E(y[0],t),E(y[1],n),E(y[2],e),E(y[3],r),E(y[4],i),E(y[5],a);else if(P(f,t),s(h,t),"faces"in t)for(t=t.faces,o=0;6>o;++o)c(y[o],h),E(y[o],t[o]);else for(o=0;6>o;++o)E(y[o],t)}else for(t=0|t||1,o=0;6>o;++o)T(y[o],t,t);for(c(h,y[0]),h.mipmask=f.genMipmaps?(y[0].width<<1)-1:y[0].mipmask,h.internalformat=y[0].internalformat,l.width=y[0].width,l.height=y[0].height,B(h),o=0;6>o;++o)S(y[o],34069+o);for(O(f,34067),z(),u.profile&&(h.stats.size=M(h.internalformat,h.type,l.width,l.height,f.genMipmaps,!0)),l.format=tt[h.internalformat],l.type=nt[h.type],l.mag=et[f.magFilter],l.min=rt[f.minFilter],l.wrapS=it[f.wrapS],l.wrapT=it[f.wrapT],o=0;6>o;++o)N(y[o]);return l}var h=new j(34067);ht[h.id]=h,o.cubeCount++;var y=Array(6);return l(n,e,r,i,a,f),l.subimage=function(t,n,e,r,i){e|=0,r|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,d(a,n),a.width=a.width||(h.width>>i)-e,a.height=a.height||(h.height>>i)-r,B(h),p(a,34069+t,e,r,i),z(),A(a),l},l.resize=function(n){if((n|=0)!==h.width){l.width=h.width=n,l.height=h.height=n,B(h);for(var e=0;6>e;++e)for(var r=0;h.mipmask>>r;++r)t.texImage2D(34069+e,r,h.format,n>>r,n>>r,0,h.format,h.type,null);return z(),u.profile&&(h.stats.size=M(h.internalformat,h.type,l.width,l.height,!1,!0)),l}},l._reglType="textureCube",l._texture=h,u.profile&&(l.stats=h.stats),l.destroy=function(){h.decRef()},l},clear:function(){for(var n=0;ne;++e)if(0!=(n.mipmask&1<>e,n.height>>e,0,n.internalformat,n.type,null);else for(var r=0;6>r;++r)t.texImage2D(34069+r,e,n.internalformat,n.width>>e,n.height>>e,0,n.internalformat,n.type,null);O(n.texInfo,n.target)})}}}function k(t,n,e,r,i,a){function o(t,n,e){this.target=t,this.texture=n,this.renderbuffer=e;var r=t=0;n?(t=n.width,r=n.height):e&&(t=e.width,r=e.height),this.width=t,this.height=r}function u(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function f(t,n,e){t&&(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(n,e){e&&(e.texture?t.framebufferTexture2D(36160,n,e.target,e.texture._texture.texture,0):t.framebufferRenderbuffer(36160,n,36161,e.renderbuffer._renderbuffer.renderbuffer))}function s(t){var n=3553,e=null,r=null,i=t;return"object"==typeof t&&(i=t.data,"target"in t&&(n=0|t.target)),"texture2d"===(t=i._reglType)?e=i:"textureCube"===t?e=i:"renderbuffer"===t&&(r=i,n=36161),new o(n,e,r)}function l(t,n,e,a,u){return e?((t=r.create2D({width:t,height:n,format:a,type:u}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:n,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&&(t.texture||t.renderbuffer)}function d(t,n,e){t&&(t.texture?t.texture.resize(n,e):t.renderbuffer&&t.renderbuffer.resize(n,e))}function p(){this.id=M++,A[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function v(t){t.colorAttachments.forEach(u),u(t.depthAttachment),u(t.stencilAttachment),u(t.depthStencilAttachment)}function y(n){t.deleteFramebuffer(n.framebuffer),n.framebuffer=null,a.framebufferCount--,delete A[n.id]}function g(n){var r;t.bindFramebuffer(36160,n.framebuffer);var i=n.colorAttachments;for(r=0;ri;++i){for(c=0;ct;++t)e[t].resize(r);return n.width=n.height=r,n},_reglType:"framebufferCube",destroy:function(){e.forEach(function(t){t.destroy()})}})},clear:function(){V(A).forEach(y)},restore:function(){V(A).forEach(function(n){n.framebuffer=t.createFramebuffer(),g(n)})}})}function T(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function E(t,n,e,r){function i(t,n,e,r){this.name=t,this.id=n,this.location=e,this.info=r}function a(t,n){for(var e=0;et&&(t=n.stats.uniformsCount)}),t},e.getMaxAttributesCount=function(){var t=0;return h.forEach(function(n){n.stats.attributesCount>t&&(t=n.stats.attributesCount)}),t}),{clear:function(){var n=t.deleteShader.bind(t);V(c).forEach(n),c={},V(s).forEach(n),s={},h.forEach(function(n){t.deleteProgram(n.program)}),h.length=0,l={},e.shaderCount=0},program:function(t,n,r){var i=l[n];i||(i=l[n]={});var a=i[t];return a||(a=new u(n,t),e.shaderCount++,f(a),i[t]=a,h.push(a)),a},restore:function(){c={},s={};for(var t=0;t="+n+"?"+i+".constant["+n+"]:0;"}).join(""),"}}else{","if(",o,"(",i,".buffer)){",s,"=",u,".createStream(",34962,",",i,".buffer);","}else{",s,"=",u,".getBuffer(",i,".buffer);","}",l,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",s,".dtype;",f.normalized,"=!!",i,".normalized;"),r("size"),r("offset"),r("stride"),r("divisor"),e("}}"),e.exit("if(",f.isStream,"){",u,".destroyStream(",s,");","}"),f})}),o}function k(t,n,e,r,i){var a=x(t),u=function(t,n,e){function r(t){if(t in i){var e=i[t];t=!0;var r,o,u=0|e.x,f=0|e.y;return"width"in e?r=0|e.width:t=!1,"height"in e?o=0|e.height:t=!1,new j(!t&&n&&n.thisDep,!t&&n&&n.contextDep,!t&&n&&n.propDep,function(t,n){var i=t.shared.context,a=r;"width"in e||(a=n.def(i,".","framebufferWidth","-",u));var c=o;return"height"in e||(c=n.def(i,".","framebufferHeight","-",f)),[u,f,a,c]})}if(t in a){var c=a[t];return t=R(c,function(t,n){var e=t.invoke(n,c),r=t.shared.context,i=n.def(e,".x|0"),a=n.def(e,".y|0");return[i,a,n.def('"width" in ',e,"?",e,".width|0:","(",r,".","framebufferWidth","-",i,")"),e=n.def('"height" in ',e,"?",e,".height|0:","(",r,".","framebufferHeight","-",a,")")]}),n&&(t.thisDep=t.thisDep||n.thisDep,t.contextDep=t.contextDep||n.contextDep,t.propDep=t.propDep||n.propDep),t}return n?new j(n.thisDep,n.contextDep,n.propDep,function(t,n){var e=t.shared.context;return[0,0,n.def(e,".","framebufferWidth"),n.def(e,".","framebufferHeight")]}):null}var i=t.static,a=t.dynamic;if(t=r("viewport")){var o=t;t=new j(t.thisDep,t.contextDep,t.propDep,function(t,n){var e=o.append(t,n),r=t.shared.context;return n.set(r,".viewportWidth",e[2]),n.set(r,".viewportHeight",e[3]),e})}return{viewport:t,scissor_box:r("scissor.box")}}(t,a),f=M(t),c=function(t,n){var e=t.static,r=t.dynamic,i={};return rt.forEach(function(t){function n(n,o){if(t in e){var u=n(e[t]);i[a]=z(function(){return u})}else if(t in r){var f=r[t];i[a]=R(f,function(t,n){return o(t,n,t.invoke(n,f))})}}var a=y(t);switch(t){case"cull.enable":case"blend.enable":case"dither":case"stencil.enable":case"depth.enable":case"scissor.enable":case"polygonOffset.enable":case"sample.alpha":case"sample.enable":case"depth.mask":return n(function(t){return t},function(t,n,e){return e});case"depth.func":return n(function(t){return mt[t]},function(t,n,e){return n.def(t.constants.compareFuncs,"[",e,"]")});case"depth.range":return n(function(t){return t},function(t,n,e){return[n.def("+",e,"[0]"),n=n.def("+",e,"[1]")]});case"blend.func":return n(function(t){return[gt["srcRGB"in t?t.srcRGB:t.src],gt["dstRGB"in t?t.dstRGB:t.dst],gt["srcAlpha"in t?t.srcAlpha:t.src],gt["dstAlpha"in t?t.dstAlpha:t.dst]]},function(t,n,e){function r(t,r){return n.def('"',t,r,'" in ',e,"?",e,".",t,r,":",e,".",t)}t=t.constants.blendFuncs;var i=r("src","RGB"),a=r("dst","RGB"),o=(i=n.def(t,"[",i,"]"),n.def(t,"[",r("src","Alpha"),"]"));return[i,a=n.def(t,"[",a,"]"),o,t=n.def(t,"[",r("dst","Alpha"),"]")]});case"blend.equation":return n(function(t){return"string"==typeof t?[Q[t],Q[t]]:"object"==typeof t?[Q[t.rgb],Q[t.alpha]]:void 0},function(t,n,e){var r=t.constants.blendEquations,i=n.def(),a=n.def();return(t=t.cond("typeof ",e,'==="string"')).then(i,"=",a,"=",r,"[",e,"];"),t.else(i,"=",r,"[",e,".rgb];",a,"=",r,"[",e,".alpha];"),n(t),[i,a]});case"blend.color":return n(function(t){return o(4,function(n){return+t[n]})},function(t,n,e){return o(4,function(t){return n.def("+",e,"[",t,"]")})});case"stencil.mask":return n(function(t){return 0|t},function(t,n,e){return n.def(e,"|0")});case"stencil.func":return n(function(t){return[mt[t.cmp||"keep"],t.ref||0,"mask"in t?t.mask:-1]},function(t,n,e){return[t=n.def('"cmp" in ',e,"?",t.constants.compareFuncs,"[",e,".cmp]",":",7680),n.def(e,".ref|0"),n=n.def('"mask" in ',e,"?",e,".mask|0:-1")]});case"stencil.opFront":case"stencil.opBack":return n(function(n){return["stencil.opBack"===t?1029:1028,bt[n.fail||"keep"],bt[n.zfail||"keep"],bt[n.zpass||"keep"]]},function(n,e,r){function i(t){return e.def('"',t,'" in ',r,"?",a,"[",r,".",t,"]:",7680)}var a=n.constants.stencilOps;return["stencil.opBack"===t?1029:1028,i("fail"),i("zfail"),i("zpass")]});case"polygonOffset.offset":return n(function(t){return[0|t.factor,0|t.units]},function(t,n,e){return[n.def(e,".factor|0"),n=n.def(e,".units|0")]});case"cull.face":return n(function(t){var n=0;return"front"===t?n=1028:"back"===t&&(n=1029),n},function(t,n,e){return n.def(e,'==="front"?',1028,":",1029)});case"lineWidth":return n(function(t){return t},function(t,n,e){return e});case"frontFace":return n(function(t){return _t[t]},function(t,n,e){return n.def(e+'==="cw"?2304:2305')});case"colorMask":return n(function(t){return t.map(function(t){return!!t})},function(t,n,e){return o(4,function(t){return"!!"+e+"["+t+"]"})});case"sample.coverage":return n(function(t){return["value"in t?t.value:1,!!t.invert]},function(t,n,e){return[n.def('"value" in ',e,"?+",e,".value:1"),n=n.def("!!",e,".invert")]})}}),i}(t),s=w(t),l=u.viewport;return l&&(c.viewport=l),(u=u[l=y("scissor.box")])&&(c[l]=u),(a={framebuffer:a,draw:f,shader:s,state:c,dirty:u=0>1)",u],");")}function n(){e(f,".drawArraysInstancedANGLE(",[p,v,y,u],");")}d?m?t():(e("if(",d,"){"),t(),e("}else{"),n(),e("}")):n()}function o(){function t(){e(s+".drawElements("+[p,y,g,v+"<<(("+g+"-5121)>>1)"]+");")}function n(){e(s+".drawArrays("+[p,v,y]+");")}d?m?t():(e("if(",d,"){"),t(),e("}else{"),n(),e("}")):n()}var u,f,c=t.shared,s=c.gl,l=c.draw,h=r.draw,d=function(){var i=h.elements,a=n;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(a=e),i=i.append(t,a)):i=a.def(l,".","elements"),i&&a("if("+i+")"+s+".bindBuffer(34963,"+i+".buffer.buffer);"),i}(),p=i("primitive"),v=i("offset"),y=function(){var i=h.count,a=n;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(a=e),i=i.append(t,a)):i=a.def(l,".","count"),i}();if("number"==typeof y){if(0===y)return}else e("if(",y,"){"),e.exit("}");K&&(u=i("instances"),f=t.instancing);var g=d+".type",m=h.elements&&B(h.elements);K&&("number"!=typeof u||0<=u)?"string"==typeof u?(e("if(",u,">0){"),a(),e("}else if(",u,"<0){"),o(),e("}")):a():o()}function H(t,n,e,r,i){return i=(n=_()).proc("body",i),K&&(n.instancing=i.def(n.shared.extensions,".angle_instanced_arrays")),t(n,i,e,r),n.compile().body}function Y(t,n,e,r){N(t,n),I(t,n,e,r.attributes,function(){return!0}),L(t,n,e,r.uniforms,function(){return!0}),U(t,n,n,e)}function $(t,n,e,r){function i(){return!0}t.batchId="a1",N(t,n),I(t,n,e,r.attributes,i),L(t,n,e,r.uniforms,i),U(t,n,n,e)}function V(t,n,e,r){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}N(t,n);var o=e.contextDep,u=n.def(),f=n.def();t.shared.props=f,t.batchId=u;var c=t.scope(),s=t.scope();n(c.entry,"for(",u,"=0;",u,"<","a1",";++",u,"){",f,"=","a0","[",u,"];",s,"}",c.exit),e.needsContext&&T(t,s,e.context),e.needsFramebuffer&&E(t,s,e.framebuffer),C(t,s,e.state,i),e.profile&&i(e.profile)&&F(t,s,e,!1,!0),r?(I(t,c,e,r.attributes,a),I(t,s,e,r.attributes,i),L(t,c,e,r.uniforms,a),L(t,s,e,r.uniforms,i),U(t,c,s,e)):(n=t.global.def("{}"),r=e.shader.progVar.append(t,s),f=s.def(r,".id"),c=s.def(n,"[",f,"]"),s(t.shared.gl,".useProgram(",r,".program);","if(!",c,"){",c,"=",n,"[",f,"]=",t.link(function(n){return H($,t,e,n,2)}),"(",r,");}",c,".call(this,a0[",u,"],",u,");"))}function G(t,e){function r(n){var r=e.shader[n];r&&i.set(a.shader,"."+n,r.append(t,i))}var i=t.proc("scope",3);t.batchId="a2";var a=t.shared,o=a.current;T(t,i,e.context),e.framebuffer&&e.framebuffer.append(t,i),O(Object.keys(e.state)).forEach(function(n){var r=e.state[n].append(t,i);g(r)?r.forEach(function(e,r){i.set(t.next[n],"["+r+"]",e)}):i.set(a.next,"."+n,r)}),F(t,i,e,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(n){var r=e.draw[n];r&&i.set(a.draw,"."+n,""+r.append(t,i))}),Object.keys(e.uniforms).forEach(function(r){i.set(a.uniforms,"["+n.id(r)+"]",e.uniforms[r].append(t,i))}),Object.keys(e.attributes).forEach(function(n){var r=e.attributes[n].append(t,i),a=t.scopeAttrib(n);Object.keys(new X).forEach(function(t){i.set(a,"."+t,r[t])})}),r("vert"),r("frag"),0=--this.refCount&&o(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(s).forEach(function(n){t+=s[n].stats.size}),t}),{create:function(n,e){function o(n,e){var r=0,a=0,s=32854;if("object"==typeof n&&n?("shape"in n?(r=0|(a=n.shape)[0],a=0|a[1]):("radius"in n&&(r=a=0|n.radius),"width"in n&&(r=0|n.width),"height"in n&&(a=0|n.height)),"format"in n&&(s=u[n.format])):"number"==typeof n?(r=0|n,a="number"==typeof e?0|e:r):n||(r=a=1),r!==c.width||a!==c.height||s!==c.format)return o.width=c.width=r,o.height=c.height=a,c.format=s,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,s,r,a),i.profile&&(c.stats.size=lt[c.format]*c.width*c.height),o.format=f[c.format],o}var c=new a(t.createRenderbuffer());return s[c.id]=c,r.renderbufferCount++,o(n,e),o.resize=function(n,e){var r=0|n,a=0|e||r;return r===c.width&&a===c.height?o:(o.width=c.width=r,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,r,a),i.profile&&(c.stats.size=lt[c.format]*c.width*c.height),o)},o._reglType="renderbuffer",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){V(s).forEach(o)},restore:function(){V(s).forEach(function(n){n.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,n.renderbuffer),t.renderbufferStorage(36161,n.format,n.width,n.height)}),t.bindRenderbuffer(36161,null)}}},dt=[];dt[6408]=4;var pt=[];pt[5121]=1,pt[5126]=4,pt[36193]=2;var vt=["x","y","z","w"],yt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},mt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},_t={cw:2304,ccw:2305},xt=new j(!1,!1,!1,function(){});return function(t){function n(){if(0===W.length)w&&w.update(),K=null;else{K=H.next(n),l();for(var t=W.length-1;0<=t;--t){var e=W[t];e&&e(D,null,0)}y.flush(),w&&w.update()}}function e(){!K&&0=W.length&&r()}}}}function s(){var t=V.viewport,n=V.scissor_box;t[0]=t[1]=n[0]=n[1]=0,D.viewportWidth=D.framebufferWidth=D.drawingBufferWidth=t[2]=n[2]=y.drawingBufferWidth,D.viewportHeight=D.framebufferHeight=D.drawingBufferHeight=t[3]=n[3]=y.drawingBufferHeight}function l(){D.tick+=1,D.time=d(),s(),$.procs.poll()}function h(){s(),$.procs.refresh(),w&&w.update()}function d(){return(Y()-M)/1e3}if(!(t=i(t)))return null;var y=t.gl,g=y.getContextAttributes();y.isContextLost();var m=function(t,n){function e(n){var e;n=n.toLowerCase();try{e=r[n]=t.getExtension(n)}catch(t){}return!!e}for(var r={},i=0;in;++n)J(L({framebuffer:t.framebuffer.faces[n]},t),f);else J(t,f);else f(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:u({}),buffer:function(t){return O.create(t,34962,!1,!1)},elements:function(t){return j.create(t,!1)},texture:z.create2D,cube:z.createCube,renderbuffer:R.create,framebuffer:U.create,framebufferCube:U.createCube,attributes:g,frame:c,on:function(t,n){var e;switch(t){case"frame":return c(n);case"lost":e=X;break;case"restore":e=Q;break;case"destroy":e=Z}return e.push(n),{cancel:function(){for(var t=0;tCubic Polynomial ↔︎ Equilateral Triangle +Cubic Roots ↔︎ Equilateral Triangle - + - + \ No newline at end of file diff --git a/nav.bundle.js b/nav.bundle.js index 35dd6ed..ee26fba 100644 --- a/nav.bundle.js +++ b/nav.bundle.js @@ -3,7 +3,7 @@ var h = require('h'); var css = require('insert-css'); var path = require('path'); -var demoList = JSON.parse("[{\"id\":\"polynomial-roots\",\"path\":\"../polynomial-roots/\",\"title\":\"Cubic Polynomial ↔︎ Equilateral Triangle\",\"order\":3300,\"description\":\"An interactive reproduction of a diagram by Freya Holmér\",\"thumbnailPath\":\"static/polynomial-roots-thumbnail.jpg\"},{\"id\":\"calabi-yau\",\"path\":\"../calabi-yau/\",\"title\":\"Calabi-Yau Manifolds\",\"order\":3200,\"description\":\"A simple plot of Calabi-Yau manifolds; nothing more, nothing less\",\"thumbnailPath\":\"static/calabi-yau-thumbnail.jpg\"},{\"id\":\"lawsons-klein-bottle\",\"path\":\"../lawsons-klein-bottle/\",\"title\":\"Lawson's Klein Bottle\",\"order\":3200,\"description\":\"3D sterographic projection of a 4D Klein bottle\",\"thumbnailPath\":\"static/lawsons-klein-bottle-thumbnail.jpg\"},{\"id\":\"boys-surface\",\"path\":\"../boys-surface/\",\"title\":\"Boy's Surface\",\"order\":3100,\"description\":\"An immersion of the real projective plane in 3D space\",\"thumbnailPath\":\"static/boys-surface-thumbnail.jpg\"},{\"id\":\"clifford-torus\",\"path\":\"../clifford-torus/\",\"title\":\"Clifford Torus\",\"order\":3000,\"description\":\"3D sterographic projection of a 4D Clifford torus\",\"thumbnailPath\":\"static/clifford-torus-thumbnail.jpg\"},{\"id\":\"webcam-kmeans\",\"path\":\"../webcam-kmeans/\",\"title\":\"K-Means\",\"order\":2900,\"description\":\"Live k-means on a video feed with Lloyd's algorithm\",\"thumbnailPath\":\"static/webcam-kmeans-thumbnail.jpg\"},{\"id\":\"moire\",\"path\":\"../moire/\",\"title\":\"Moiré\",\"order\":2800,\"description\":\"Just moiré\",\"thumbnailPath\":\"static/moire-thumbnail.jpg\"},{\"id\":\"ikeda\",\"path\":\"../ikeda/\",\"title\":\"Ikeda Map\",\"order\":2700,\"description\":\"A discrete chaotic attractor\",\"thumbnailPath\":\"static/ikeda-thumbnail.jpg\"},{\"id\":\"hertzsprung-russell\",\"path\":\"../hertzsprung-russell/\",\"title\":\"Hertzsprung-Russell Diagram\",\"order\":2600,\"description\":\"Star magnitudes and temperatures\",\"thumbnailPath\":\"static/hertzsprung-russell-thumbnail.jpg\"},{\"id\":\"mandelbrot\",\"path\":\"../mandelbrot/\",\"title\":\"Mandelbrot\",\"order\":2500,\"description\":\"Drawing the first iterations of the Mandelbrot set as a complex function\",\"thumbnailPath\":\"static/mandelbrot-thumbnail.jpg\"},{\"id\":\"pulsar\",\"path\":\"../pulsar/\",\"title\":\"Pulsar\",\"order\":2400,\"description\":\"Signals and noise (no physical significance)\",\"thumbnailPath\":\"static/pulsar-thumbnail.png\"},{\"id\":\"multiscale-turing-patterns\",\"path\":\"../multiscale-turing-patterns/\",\"title\":\"Multiscale Turing Patterns\",\"order\":2300,\"description\":\"Multiscale turing patterns, as described by Jonathan McCabe\",\"thumbnailPath\":\"static/multiscale-turing-patterns-thumbnail.jpg\"},{\"id\":\"magnet\",\"path\":\"../magnet/\",\"title\":\"Magnet\",\"order\":2200,\"description\":\"Just a magnetic field\",\"thumbnailPath\":\"static/magnet-thumbnail.jpg\"},{\"id\":\"potential-flow\",\"path\":\"../potential-flow/\",\"title\":\"Potential Flow\",\"order\":2100,\"description\":\"Procedural (almost) potential flow with curl noise\",\"thumbnailPath\":\"static/potential-flow-thumbnail.jpg\"},{\"id\":\"ueda-attractor\",\"path\":\"../ueda-attractor/\",\"title\":\"Ueda Attractor\",\"order\":2000,\"description\":\"Ueda's chaotic nonlinear oscillator\",\"thumbnailPath\":\"static/ueda-attractor-thumbnail.jpg\"},{\"id\":\"path-integral-diffraction\",\"path\":\"../path-integral-diffraction/\",\"title\":\"Single-slit diffraction\",\"order\":1900,\"description\":\"Diffraction of a 1D wavefunction through a slit using Feynman's path integral approach\",\"thumbnailPath\":\"static/path-integral-diffraction-thumbnail.jpg\"},{\"id\":\"fibonacci-sphere\",\"path\":\"../fibonacci-sphere/\",\"title\":\"Fibonacci Sphere\",\"order\":1800,\"description\":\"From Martin Roberts' article about evenly distributed points on a sphere\",\"thumbnailPath\":\"static/fibonacci-sphere-thumbnail.jpg\"},{\"id\":\"gray-scott-reaction-diffusion\",\"path\":\"../gray-scott-reaction-diffusion/\",\"title\":\"Gray Scott Reaction Diffusion\",\"order\":1700,\"description\":\"Reacting species diffusing at different rates\",\"thumbnailPath\":\"static/gray-scott-reaction-diffusion-thumbnail.jpg\"},{\"id\":\"rule-30\",\"path\":\"../rule-30/\",\"title\":\"Rule 30\",\"order\":1600,\"description\":\"Stephen Wolfram's 1D cellular automata\",\"thumbnailPath\":\"static/rule-30-thumbnail.png\"},{\"id\":\"line-integral-convolution\",\"path\":\"../line-integral-convolution/\",\"title\":\"Line Integral Convolution\",\"order\":1500,\"description\":\"Visualizing vector fields with Line Integral Convolution (LIC)\",\"thumbnailPath\":\"static/line-integral-convolution-thumbnail.jpg\"},{\"id\":\"iterative-closest-point\",\"path\":\"../iterative-closest-point/\",\"title\":\"Rigid Point Cloud Alignment\",\"order\":1400,\"description\":\"Aligning point clouds with the Iterative Closest Point method\",\"thumbnailPath\":\"static/iterative-closest-point-thumbnail.png\"},{\"id\":\"spherical-harmonics\",\"path\":\"../spherical-harmonics/\",\"title\":\"Spherical Harmonics\",\"order\":1300,\"description\":\"Just a plot of the first few spherical harmonics\",\"thumbnailPath\":\"static/spherical-harmonics-thumbnail.jpg\"},{\"id\":\"domain-coloring-with-scaling\",\"path\":\"../domain-coloring-with-scaling/\",\"title\":\"Domain Coloring with Contour Scaling\",\"order\":1200,\"description\":\"Using OES_standard_derivatives to scale contours to the local gradient of a function\",\"thumbnailPath\":\"static/domain-coloring-with-scaling-thumbnail.jpg\"},{\"id\":\"flamms-paraboloid\",\"path\":\"../flamms-paraboloid/\",\"title\":\"Flamm's Paraboloid\",\"order\":1100,\"description\":\"Scroll to build Flamm's Paraboloid\",\"thumbnailPath\":\"static/flamms-paraboloid-thumbnail.jpg\"},{\"id\":\"continuum-gravity\",\"path\":\"../continuum-gravity/\",\"title\":\"Continuum Gravity\",\"order\":1000,\"description\":\"One million particles interacting gravitationally via a Poisson equation solved on a 2D grid\",\"thumbnailPath\":\"static/continuum-gravity-thumbnail.jpg\"},{\"id\":\"kuramoto-sivashinsky\",\"path\":\"../kuramoto-sivashinsky/\",\"title\":\"Kuramoto-Sivashinsky\",\"order\":900,\"description\":\"Integrating the 2D Kuramoto-Sivashinsky Equation, ∂u/∂t + ∇⁴u + ∇²u + ½ |∇u|² = 0\",\"thumbnailPath\":\"static/kuramoto-sivashinsky-thumbnail.jpg\"},{\"id\":\"karman-trefftz-airfoil\",\"path\":\"../karman-trefftz-airfoil/\",\"title\":\"Karman-Trefftz Airfoil\",\"order\":700,\"description\":\"Flow over an airfoil, computed with the Karman-Trefftz conformal map and visualized on the GPU\",\"thumbnailPath\":\"static/karman-trefftz-airfoil-thumbnail.jpg\"},{\"id\":\"periodic-three-body-orbits\",\"path\":\"../periodic-three-body-orbits/\",\"title\":\"Periodic Three-Body Orbits\",\"order\":600,\"description\":\"Periodic solutions of three bodies interacting via Newtonian gravity\",\"thumbnailPath\":\"static/periodic-three-body-orbits-thumbnail.jpg\"},{\"id\":\"hydrodynamic-instabilities\",\"path\":\"../hydrodynamic-instabilities/\",\"title\":\"Hydrodynamic Instabilities\",\"order\":500,\"description\":\"The Kelvin-Helmholtz and Rayleigh-Taylor hydrodynamic instabilities\",\"thumbnailPath\":\"static/hydrodynamic-instabilities-thumbnail.jpg\"},{\"id\":\"strange-attractors\",\"path\":\"../strange-attractors/\",\"title\":\"Strange Attractors\",\"order\":450,\"description\":\"Strange attractors on the GPU\",\"thumbnailPath\":\"static/strange-attractors-thumbnail.jpg\"},{\"id\":\"schwarzschild-spacetime\",\"path\":\"../schwarzschild-spacetime/\",\"title\":\"Schwarzschild Trajectories\",\"order\":350,\"description\":\"Integrating particle geodesics in Schwarzschild spacetime (a black hole).\",\"thumbnailPath\":\"static/schwarzschild-spacetime-thumbnail.jpg\"},{\"id\":\"random-polynomial-roots\",\"path\":\"../random-polynomial-roots/\",\"title\":\"Polynomial Roots\",\"order\":300,\"description\":\"Roots of a polynomial with random coefficients, plotted in the complex plane\",\"thumbnailPath\":\"static/random-polynomial-roots-thumbnail.jpg\"},{\"id\":\"umbilic-torus\",\"path\":\"../umbilic-torus/\",\"title\":\"Umbilic Torus\",\"order\":300,\"description\":\"Umbilic Torus\",\"thumbnailPath\":\"static/umbilic-torus-thumbnail.jpg\"},{\"id\":\"lamb-wave-dispersion\",\"path\":\"../lamb-wave-dispersion/\",\"title\":\"Lamb Wave Dispersion Relation\",\"order\":220,\"description\":\"Plotting the the complex dispersion relation for elastodynamic plate waves; zeros represent valid modes\",\"thumbnailPath\":\"static/lamb-wave-dispersion-thumbnail.jpg\"},{\"id\":\"fluid-simulation\",\"path\":\"../fluid-simulation/\",\"title\":\"Fluid Simluation\",\"order\":210,\"description\":\"Classic semi-Lagrangian fluid simulation from Visual Simulation of Smoke\",\"thumbnailPath\":\"static/fluid-simulation-thumbnail.jpg\"},{\"id\":\"erosion\",\"path\":\"../erosion/\",\"title\":\"Erosion\",\"order\":100,\"description\":\"An ad-hoc particle-based terrain erosion algorithm, computed on the GPU\",\"thumbnailPath\":\"static/erosion-thumbnail.jpg\"},{\"id\":\"centripetal-b-splines\",\"path\":\"../centripetal-b-splines/\",\"title\":\"Centripetal B-Splines\",\"order\":80,\"description\":\"Experimenting with centripetal parameterization for B-splines\",\"thumbnailPath\":\"static/centripetal-b-splines-thumbnail.png\"},{\"id\":\"smooth-life\",\"path\":\"../smooth-life/\",\"title\":\"Smooth Life\",\"order\":80,\"description\":\"Conway's Game of Life, generalized to a continuum and solved on the GPU\",\"thumbnailPath\":\"static/smooth-life-thumbnail.jpg\"},{\"id\":\"logistic-map\",\"path\":\"../logistic-map/\",\"title\":\"Logistic Map\",\"order\":20,\"description\":\"The chaotic logistic map, computed and displayed on the GPU\",\"thumbnailPath\":\"static/logistic-map-thumbnail.jpg\"},{\"id\":\"nose-hoover-attractor\",\"path\":\"../nose-hoover-attractor/\",\"title\":\"Nosé-Hoover Attractor\",\"order\":8,\"description\":\"Plotting a strange attractor with 2D rectangles\",\"thumbnailPath\":\"static/nose-hoover-attractor-thumbnail.jpg\"},{\"id\":\"vortex-sdf\",\"path\":\"../vortex-sdf/\",\"title\":\"Vortex\",\"order\":7,\"description\":\"A vortex, rendered as a single signed distance function\",\"thumbnailPath\":\"static/vortex-sdf-thumbnail.jpg\"},{\"id\":\"k-means\",\"path\":\"../k-means/\",\"title\":\"K-means clustering\",\"order\":5,\"description\":\"WIP refactoring of the kmpp npm module\",\"thumbnailPath\":\"static/k-means-thumbnail.jpg\"},{\"id\":\"double-pendulum\",\"path\":\"../double-pendulum/\",\"title\":\"Double Pendulum\",\"order\":3,\"description\":\"Accumulating long-term patterns in a chaotic double-pendulum\",\"thumbnailPath\":\"static/double-pendulum-thumbnail.jpg\"}]"); +var demoList = JSON.parse("[{\"id\":\"cubic-roots\",\"path\":\"../cubic-roots/\",\"title\":\"Cubic Roots ↔︎ Equilateral Triangle\",\"order\":3300,\"description\":\"An interactive reproduction of a diagram by Freya Holmér\",\"thumbnailPath\":\"static/cubic-roots-thumbnail.jpg\"},{\"id\":\"calabi-yau\",\"path\":\"../calabi-yau/\",\"title\":\"Calabi-Yau Manifolds\",\"order\":3200,\"description\":\"A simple plot of Calabi-Yau manifolds; nothing more, nothing less\",\"thumbnailPath\":\"static/calabi-yau-thumbnail.jpg\"},{\"id\":\"lawsons-klein-bottle\",\"path\":\"../lawsons-klein-bottle/\",\"title\":\"Lawson's Klein Bottle\",\"order\":3200,\"description\":\"3D sterographic projection of a 4D Klein bottle\",\"thumbnailPath\":\"static/lawsons-klein-bottle-thumbnail.jpg\"},{\"id\":\"boys-surface\",\"path\":\"../boys-surface/\",\"title\":\"Boy's Surface\",\"order\":3100,\"description\":\"An immersion of the real projective plane in 3D space\",\"thumbnailPath\":\"static/boys-surface-thumbnail.jpg\"},{\"id\":\"clifford-torus\",\"path\":\"../clifford-torus/\",\"title\":\"Clifford Torus\",\"order\":3000,\"description\":\"3D sterographic projection of a 4D Clifford torus\",\"thumbnailPath\":\"static/clifford-torus-thumbnail.jpg\"},{\"id\":\"webcam-kmeans\",\"path\":\"../webcam-kmeans/\",\"title\":\"K-Means\",\"order\":2900,\"description\":\"Live k-means on a video feed with Lloyd's algorithm\",\"thumbnailPath\":\"static/webcam-kmeans-thumbnail.jpg\"},{\"id\":\"moire\",\"path\":\"../moire/\",\"title\":\"Moiré\",\"order\":2800,\"description\":\"Just moiré\",\"thumbnailPath\":\"static/moire-thumbnail.jpg\"},{\"id\":\"ikeda\",\"path\":\"../ikeda/\",\"title\":\"Ikeda Map\",\"order\":2700,\"description\":\"A discrete chaotic attractor\",\"thumbnailPath\":\"static/ikeda-thumbnail.jpg\"},{\"id\":\"hertzsprung-russell\",\"path\":\"../hertzsprung-russell/\",\"title\":\"Hertzsprung-Russell Diagram\",\"order\":2600,\"description\":\"Star magnitudes and temperatures\",\"thumbnailPath\":\"static/hertzsprung-russell-thumbnail.jpg\"},{\"id\":\"mandelbrot\",\"path\":\"../mandelbrot/\",\"title\":\"Mandelbrot\",\"order\":2500,\"description\":\"Drawing the first iterations of the Mandelbrot set as a complex function\",\"thumbnailPath\":\"static/mandelbrot-thumbnail.jpg\"},{\"id\":\"pulsar\",\"path\":\"../pulsar/\",\"title\":\"Pulsar\",\"order\":2400,\"description\":\"Signals and noise (no physical significance)\",\"thumbnailPath\":\"static/pulsar-thumbnail.png\"},{\"id\":\"multiscale-turing-patterns\",\"path\":\"../multiscale-turing-patterns/\",\"title\":\"Multiscale Turing Patterns\",\"order\":2300,\"description\":\"Multiscale turing patterns, as described by Jonathan McCabe\",\"thumbnailPath\":\"static/multiscale-turing-patterns-thumbnail.jpg\"},{\"id\":\"magnet\",\"path\":\"../magnet/\",\"title\":\"Magnet\",\"order\":2200,\"description\":\"Just a magnetic field\",\"thumbnailPath\":\"static/magnet-thumbnail.jpg\"},{\"id\":\"potential-flow\",\"path\":\"../potential-flow/\",\"title\":\"Potential Flow\",\"order\":2100,\"description\":\"Procedural (almost) potential flow with curl noise\",\"thumbnailPath\":\"static/potential-flow-thumbnail.jpg\"},{\"id\":\"ueda-attractor\",\"path\":\"../ueda-attractor/\",\"title\":\"Ueda Attractor\",\"order\":2000,\"description\":\"Ueda's chaotic nonlinear oscillator\",\"thumbnailPath\":\"static/ueda-attractor-thumbnail.jpg\"},{\"id\":\"path-integral-diffraction\",\"path\":\"../path-integral-diffraction/\",\"title\":\"Single-slit diffraction\",\"order\":1900,\"description\":\"Diffraction of a 1D wavefunction through a slit using Feynman's path integral approach\",\"thumbnailPath\":\"static/path-integral-diffraction-thumbnail.jpg\"},{\"id\":\"fibonacci-sphere\",\"path\":\"../fibonacci-sphere/\",\"title\":\"Fibonacci Sphere\",\"order\":1800,\"description\":\"From Martin Roberts' article about evenly distributed points on a sphere\",\"thumbnailPath\":\"static/fibonacci-sphere-thumbnail.jpg\"},{\"id\":\"gray-scott-reaction-diffusion\",\"path\":\"../gray-scott-reaction-diffusion/\",\"title\":\"Gray Scott Reaction Diffusion\",\"order\":1700,\"description\":\"Reacting species diffusing at different rates\",\"thumbnailPath\":\"static/gray-scott-reaction-diffusion-thumbnail.jpg\"},{\"id\":\"rule-30\",\"path\":\"../rule-30/\",\"title\":\"Rule 30\",\"order\":1600,\"description\":\"Stephen Wolfram's 1D cellular automata\",\"thumbnailPath\":\"static/rule-30-thumbnail.png\"},{\"id\":\"line-integral-convolution\",\"path\":\"../line-integral-convolution/\",\"title\":\"Line Integral Convolution\",\"order\":1500,\"description\":\"Visualizing vector fields with Line Integral Convolution (LIC)\",\"thumbnailPath\":\"static/line-integral-convolution-thumbnail.jpg\"},{\"id\":\"iterative-closest-point\",\"path\":\"../iterative-closest-point/\",\"title\":\"Rigid Point Cloud Alignment\",\"order\":1400,\"description\":\"Aligning point clouds with the Iterative Closest Point method\",\"thumbnailPath\":\"static/iterative-closest-point-thumbnail.png\"},{\"id\":\"spherical-harmonics\",\"path\":\"../spherical-harmonics/\",\"title\":\"Spherical Harmonics\",\"order\":1300,\"description\":\"Just a plot of the first few spherical harmonics\",\"thumbnailPath\":\"static/spherical-harmonics-thumbnail.jpg\"},{\"id\":\"domain-coloring-with-scaling\",\"path\":\"../domain-coloring-with-scaling/\",\"title\":\"Domain Coloring with Contour Scaling\",\"order\":1200,\"description\":\"Using OES_standard_derivatives to scale contours to the local gradient of a function\",\"thumbnailPath\":\"static/domain-coloring-with-scaling-thumbnail.jpg\"},{\"id\":\"flamms-paraboloid\",\"path\":\"../flamms-paraboloid/\",\"title\":\"Flamm's Paraboloid\",\"order\":1100,\"description\":\"Scroll to build Flamm's Paraboloid\",\"thumbnailPath\":\"static/flamms-paraboloid-thumbnail.jpg\"},{\"id\":\"continuum-gravity\",\"path\":\"../continuum-gravity/\",\"title\":\"Continuum Gravity\",\"order\":1000,\"description\":\"One million particles interacting gravitationally via a Poisson equation solved on a 2D grid\",\"thumbnailPath\":\"static/continuum-gravity-thumbnail.jpg\"},{\"id\":\"kuramoto-sivashinsky\",\"path\":\"../kuramoto-sivashinsky/\",\"title\":\"Kuramoto-Sivashinsky\",\"order\":900,\"description\":\"Integrating the 2D Kuramoto-Sivashinsky Equation, ∂u/∂t + ∇⁴u + ∇²u + ½ |∇u|² = 0\",\"thumbnailPath\":\"static/kuramoto-sivashinsky-thumbnail.jpg\"},{\"id\":\"karman-trefftz-airfoil\",\"path\":\"../karman-trefftz-airfoil/\",\"title\":\"Karman-Trefftz Airfoil\",\"order\":700,\"description\":\"Flow over an airfoil, computed with the Karman-Trefftz conformal map and visualized on the GPU\",\"thumbnailPath\":\"static/karman-trefftz-airfoil-thumbnail.jpg\"},{\"id\":\"periodic-three-body-orbits\",\"path\":\"../periodic-three-body-orbits/\",\"title\":\"Periodic Three-Body Orbits\",\"order\":600,\"description\":\"Periodic solutions of three bodies interacting via Newtonian gravity\",\"thumbnailPath\":\"static/periodic-three-body-orbits-thumbnail.jpg\"},{\"id\":\"hydrodynamic-instabilities\",\"path\":\"../hydrodynamic-instabilities/\",\"title\":\"Hydrodynamic Instabilities\",\"order\":500,\"description\":\"The Kelvin-Helmholtz and Rayleigh-Taylor hydrodynamic instabilities\",\"thumbnailPath\":\"static/hydrodynamic-instabilities-thumbnail.jpg\"},{\"id\":\"strange-attractors\",\"path\":\"../strange-attractors/\",\"title\":\"Strange Attractors\",\"order\":450,\"description\":\"Strange attractors on the GPU\",\"thumbnailPath\":\"static/strange-attractors-thumbnail.jpg\"},{\"id\":\"schwarzschild-spacetime\",\"path\":\"../schwarzschild-spacetime/\",\"title\":\"Schwarzschild Trajectories\",\"order\":350,\"description\":\"Integrating particle geodesics in Schwarzschild spacetime (a black hole).\",\"thumbnailPath\":\"static/schwarzschild-spacetime-thumbnail.jpg\"},{\"id\":\"random-polynomial-roots\",\"path\":\"../random-polynomial-roots/\",\"title\":\"Polynomial Roots\",\"order\":300,\"description\":\"Roots of a polynomial with random coefficients, plotted in the complex plane\",\"thumbnailPath\":\"static/random-polynomial-roots-thumbnail.jpg\"},{\"id\":\"umbilic-torus\",\"path\":\"../umbilic-torus/\",\"title\":\"Umbilic Torus\",\"order\":300,\"description\":\"Umbilic Torus\",\"thumbnailPath\":\"static/umbilic-torus-thumbnail.jpg\"},{\"id\":\"lamb-wave-dispersion\",\"path\":\"../lamb-wave-dispersion/\",\"title\":\"Lamb Wave Dispersion Relation\",\"order\":220,\"description\":\"Plotting the the complex dispersion relation for elastodynamic plate waves; zeros represent valid modes\",\"thumbnailPath\":\"static/lamb-wave-dispersion-thumbnail.jpg\"},{\"id\":\"fluid-simulation\",\"path\":\"../fluid-simulation/\",\"title\":\"Fluid Simluation\",\"order\":210,\"description\":\"Classic semi-Lagrangian fluid simulation from Visual Simulation of Smoke\",\"thumbnailPath\":\"static/fluid-simulation-thumbnail.jpg\"},{\"id\":\"erosion\",\"path\":\"../erosion/\",\"title\":\"Erosion\",\"order\":100,\"description\":\"An ad-hoc particle-based terrain erosion algorithm, computed on the GPU\",\"thumbnailPath\":\"static/erosion-thumbnail.jpg\"},{\"id\":\"centripetal-b-splines\",\"path\":\"../centripetal-b-splines/\",\"title\":\"Centripetal B-Splines\",\"order\":80,\"description\":\"Experimenting with centripetal parameterization for B-splines\",\"thumbnailPath\":\"static/centripetal-b-splines-thumbnail.png\"},{\"id\":\"smooth-life\",\"path\":\"../smooth-life/\",\"title\":\"Smooth Life\",\"order\":80,\"description\":\"Conway's Game of Life, generalized to a continuum and solved on the GPU\",\"thumbnailPath\":\"static/smooth-life-thumbnail.jpg\"},{\"id\":\"logistic-map\",\"path\":\"../logistic-map/\",\"title\":\"Logistic Map\",\"order\":20,\"description\":\"The chaotic logistic map, computed and displayed on the GPU\",\"thumbnailPath\":\"static/logistic-map-thumbnail.jpg\"},{\"id\":\"nose-hoover-attractor\",\"path\":\"../nose-hoover-attractor/\",\"title\":\"Nosé-Hoover Attractor\",\"order\":8,\"description\":\"Plotting a strange attractor with 2D rectangles\",\"thumbnailPath\":\"static/nose-hoover-attractor-thumbnail.jpg\"},{\"id\":\"vortex-sdf\",\"path\":\"../vortex-sdf/\",\"title\":\"Vortex\",\"order\":7,\"description\":\"A vortex, rendered as a single signed distance function\",\"thumbnailPath\":\"static/vortex-sdf-thumbnail.jpg\"},{\"id\":\"k-means\",\"path\":\"../k-means/\",\"title\":\"K-means clustering\",\"order\":5,\"description\":\"WIP refactoring of the kmpp npm module\",\"thumbnailPath\":\"static/k-means-thumbnail.jpg\"},{\"id\":\"double-pendulum\",\"path\":\"../double-pendulum/\",\"title\":\"Double Pendulum\",\"order\":3,\"description\":\"Accumulating long-term patterns in a chaotic double-pendulum\",\"thumbnailPath\":\"static/double-pendulum-thumbnail.jpg\"}]"); var demoIndex = {}; demoList.forEach(function (demo) { demoIndex[demo.id] = demo; diff --git a/sketches/index.js b/sketches/index.js index 4927460..77312d3 100644 --- a/sketches/index.js +++ b/sketches/index.js @@ -1,40 +1,40 @@ -(()=>{var cW=Object.create;var WS=Object.defineProperty;var pW=Object.getOwnPropertyDescriptor;var dW=Object.getOwnPropertyNames;var hW=Object.getPrototypeOf,mW=Object.prototype.hasOwnProperty;var db=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var vW=(r,t)=>()=>(r&&(t=r(r=0)),t);var se=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),n3=(r,t)=>{for(var n in t)WS(r,n,{get:t[n],enumerable:!0})},yW=(r,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dW(t))!mW.call(r,i)&&i!==n&&WS(r,i,{get:()=>t[i],enumerable:!(o=pW(t,i))||o.enumerable});return r};var cn=(r,t,n)=>(n=r!=null?cW(hW(r)):{},yW(t||!r||!r.__esModule?WS(n,"default",{value:r,enumerable:!0}):n,r));var o3=se(hb=>{"use strict";R();hb.byteLength=bW;hb.toByteArray=xW;hb.fromByteArray=_W;var ys=[],tu=[],gW=typeof Uint8Array<"u"?Uint8Array:Array,YS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(qc=0,i3=YS.length;qc0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function bW(r){var t=a3(r),n=t[0],o=t[1];return(n+o)*3/4-o}function EW(r,t,n){return(t+n)*3/4-n}function xW(r){var t,n=a3(r),o=n[0],i=n[1],s=new gW(EW(r,o,i)),f=0,d=i>0?o-4:o,h;for(h=0;h>16&255,s[f++]=t>>8&255,s[f++]=t&255;return i===2&&(t=tu[r.charCodeAt(h)]<<2|tu[r.charCodeAt(h+1)]>>4,s[f++]=t&255),i===1&&(t=tu[r.charCodeAt(h)]<<10|tu[r.charCodeAt(h+1)]<<4|tu[r.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=t&255),s}function AW(r){return ys[r>>18&63]+ys[r>>12&63]+ys[r>>6&63]+ys[r&63]}function wW(r,t,n){for(var o,i=[],s=t;sd?d:f+s));return o===1?(t=r[n-1],i.push(ys[t>>2]+ys[t<<4&63]+"==")):o===2&&(t=(r[n-2]<<8)+r[n-1],i.push(ys[t>>10]+ys[t>>4&63]+ys[t<<2&63]+"=")),i.join("")}});var u3=se(QS=>{R();QS.read=function(r,t,n,o,i){var s,f,d=i*8-o-1,h=(1<>1,E=-7,A=n?i-1:0,S=n?-1:1,b=r[t+A];for(A+=S,s=b&(1<<-E)-1,b>>=-E,E+=d;E>0;s=s*256+r[t+A],A+=S,E-=8);for(f=s&(1<<-E)-1,s>>=-E,E+=o;E>0;f=f*256+r[t+A],A+=S,E-=8);if(s===0)s=1-v;else{if(s===h)return f?NaN:(b?-1:1)*(1/0);f=f+Math.pow(2,o),s=s-v}return(b?-1:1)*f*Math.pow(2,s-o)};QS.write=function(r,t,n,o,i,s){var f,d,h,v=s*8-i-1,E=(1<>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:s-1,F=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,f=E):(f=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+A>=1?t+=S/h:t+=S*Math.pow(2,1-A),t*h>=2&&(f++,h/=2),f+A>=E?(d=0,f=E):f+A>=1?(d=(t*h-1)*Math.pow(2,i),f=f+A):(d=t*Math.pow(2,A-1)*Math.pow(2,i),f=0));i>=8;r[n+b]=d&255,b+=F,d/=256,i-=8);for(f=f<0;r[n+b]=f&255,b+=F,f/=256,v-=8);r[n+b-F]|=I*128}});var E3=se(Bd=>{"use strict";R();var XS=o3(),Nd=u3(),s3=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Bd.Buffer=it;Bd.SlowBuffer=kW;Bd.INSPECT_MAX_BYTES=50;var mb=2147483647;Bd.kMaxLength=mb;it.TYPED_ARRAY_SUPPORT=SW();!it.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function SW(){try{var r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(it.prototype,"parent",{enumerable:!0,get:function(){if(!!it.isBuffer(this))return this.buffer}});Object.defineProperty(it.prototype,"offset",{enumerable:!0,get:function(){if(!!it.isBuffer(this))return this.byteOffset}});function ul(r){if(r>mb)throw new RangeError('The value "'+r+'" is invalid for option "size"');var t=new Uint8Array(r);return Object.setPrototypeOf(t,it.prototype),t}function it(r,t,n){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eC(r)}return c3(r,t,n)}it.poolSize=8192;function c3(r,t,n){if(typeof r=="string")return TW(r,t);if(ArrayBuffer.isView(r))return RW(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(gs(r,ArrayBuffer)||r&&gs(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gs(r,SharedArrayBuffer)||r&&gs(r.buffer,SharedArrayBuffer)))return JS(r,t,n);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=r.valueOf&&r.valueOf();if(o!=null&&o!==r)return it.from(o,t,n);var i=OW(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return it.from(r[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 r)}it.from=function(r,t,n){return c3(r,t,n)};Object.setPrototypeOf(it.prototype,Uint8Array.prototype);Object.setPrototypeOf(it,Uint8Array);function p3(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function CW(r,t,n){return p3(r),r<=0?ul(r):t!==void 0?typeof n=="string"?ul(r).fill(t,n):ul(r).fill(t):ul(r)}it.alloc=function(r,t,n){return CW(r,t,n)};function eC(r){return p3(r),ul(r<0?0:tC(r)|0)}it.allocUnsafe=function(r){return eC(r)};it.allocUnsafeSlow=function(r){return eC(r)};function TW(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!it.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=d3(r,t)|0,o=ul(n),i=o.write(r,t);return i!==n&&(o=o.slice(0,i)),o}function KS(r){for(var t=r.length<0?0:tC(r.length)|0,n=ul(t),o=0;o=mb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+mb.toString(16)+" bytes");return r|0}function kW(r){return+r!=r&&(r=0),it.alloc(+r)}it.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==it.prototype};it.compare=function(t,n){if(gs(t,Uint8Array)&&(t=it.from(t,t.offset,t.byteLength)),gs(n,Uint8Array)&&(n=it.from(n,n.offset,n.byteLength)),!it.isBuffer(t)||!it.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;for(var o=t.length,i=n.length,s=0,f=Math.min(o,i);si.length?it.from(f).copy(i,s):Uint8Array.prototype.set.call(i,f,s);else if(it.isBuffer(f))f.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=f.length}return i};function d3(r,t){if(it.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||gs(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var n=r.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ZS(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return b3(r).length;default:if(i)return o?-1:ZS(r).length;t=(""+t).toLowerCase(),i=!0}}it.byteLength=d3;function DW(r,t,n){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return UW(this,t,n);case"utf8":case"utf-8":return m3(this,t,n);case"ascii":return MW(this,t,n);case"latin1":case"binary":return jW(this,t,n);case"base64":return BW(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return VW(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}it.prototype._isBuffer=!0;function Gc(r,t,n){var o=r[t];r[t]=r[n],r[n]=o}it.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;nn&&(t+=" ... "),""};s3&&(it.prototype[s3]=it.prototype.inspect);it.prototype.compare=function(t,n,o,i,s){if(gs(t,Uint8Array)&&(t=it.from(t,t.offset,t.byteLength)),!it.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),n<0||o>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=o)return 0;if(i>=s)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,i>>>=0,s>>>=0,this===t)return 0;for(var f=s-i,d=o-n,h=Math.min(f,d),v=this.slice(i,s),E=t.slice(n,o),A=0;A2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,rC(n)&&(n=i?0:r.length-1),n<0&&(n=r.length+n),n>=r.length){if(i)return-1;n=r.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t=="string"&&(t=it.from(t,o)),it.isBuffer(t))return t.length===0?-1:l3(r,t,n,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,n):Uint8Array.prototype.lastIndexOf.call(r,t,n):l3(r,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function l3(r,t,n,o,i){var s=1,f=r.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(r.length<2||t.length<2)return-1;s=2,f/=2,d/=2,n/=2}function h(b,F){return s===1?b[F]:b.readUInt16BE(F*s)}var v;if(i){var E=-1;for(v=n;vf&&(n=f-d),v=n;v>=0;v--){for(var A=!0,S=0;Si&&(o=i)):o=i;var s=t.length;o>s/2&&(o=s/2);for(var f=0;f>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((o===void 0||o>s)&&(o=s),t.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return FW(this,t,n,o);case"utf8":case"utf-8":return PW(this,t,n,o);case"ascii":case"latin1":case"binary":return IW(this,t,n,o);case"base64":return LW(this,t,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return NW(this,t,n,o);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}};it.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function BW(r,t,n){return t===0&&n===r.length?XS.fromByteArray(r):XS.fromByteArray(r.slice(t,n))}function m3(r,t,n){n=Math.min(r.length,n);for(var o=[],i=t;i239?4:s>223?3:s>191?2:1;if(i+d<=n){var h,v,E,A;switch(d){case 1:s<128&&(f=s);break;case 2:h=r[i+1],(h&192)===128&&(A=(s&31)<<6|h&63,A>127&&(f=A));break;case 3:h=r[i+1],v=r[i+2],(h&192)===128&&(v&192)===128&&(A=(s&15)<<12|(h&63)<<6|v&63,A>2047&&(A<55296||A>57343)&&(f=A));break;case 4:h=r[i+1],v=r[i+2],E=r[i+3],(h&192)===128&&(v&192)===128&&(E&192)===128&&(A=(s&15)<<18|(h&63)<<12|(v&63)<<6|E&63,A>65535&&A<1114112&&(f=A))}}f===null?(f=65533,d=1):f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f),i+=d}return $W(o)}var f3=4096;function $W(r){var t=r.length;if(t<=f3)return String.fromCharCode.apply(String,r);for(var n="",o=0;oo)&&(n=o);for(var i="",s=t;so&&(t=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),nn)throw new RangeError("Trying to access beyond buffer length")}it.prototype.readUintLE=it.prototype.readUIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t],s=1,f=0;++f>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t+--n],s=1;n>0&&(s*=256);)i+=this[t+--n]*s;return i};it.prototype.readUint8=it.prototype.readUInt8=function(t,n){return t=t>>>0,n||pa(t,1,this.length),this[t]};it.prototype.readUint16LE=it.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||pa(t,2,this.length),this[t]|this[t+1]<<8};it.prototype.readUint16BE=it.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||pa(t,2,this.length),this[t]<<8|this[t+1]};it.prototype.readUint32LE=it.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};it.prototype.readUint32BE=it.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};it.prototype.readIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t],s=1,f=0;++f=s&&(i-=Math.pow(2,8*n)),i};it.prototype.readIntBE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=n,s=1,f=this[t+--i];i>0&&(s*=256);)f+=this[t+--i]*s;return s*=128,f>=s&&(f-=Math.pow(2,8*n)),f};it.prototype.readInt8=function(t,n){return t=t>>>0,n||pa(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};it.prototype.readInt16LE=function(t,n){t=t>>>0,n||pa(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};it.prototype.readInt16BE=function(t,n){t=t>>>0,n||pa(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};it.prototype.readInt32LE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};it.prototype.readInt32BE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};it.prototype.readFloatLE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),Nd.read(this,t,!0,23,4)};it.prototype.readFloatBE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),Nd.read(this,t,!1,23,4)};it.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||pa(t,8,this.length),Nd.read(this,t,!0,52,8)};it.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||pa(t,8,this.length),Nd.read(this,t,!1,52,8)};function so(r,t,n,o,i,s){if(!it.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}it.prototype.writeUintLE=it.prototype.writeUIntLE=function(t,n,o,i){if(t=+t,n=n>>>0,o=o>>>0,!i){var s=Math.pow(2,8*o)-1;so(this,t,n,o,s,0)}var f=1,d=0;for(this[n]=t&255;++d>>0,o=o>>>0,!i){var s=Math.pow(2,8*o)-1;so(this,t,n,o,s,0)}var f=o-1,d=1;for(this[n+f]=t&255;--f>=0&&(d*=256);)this[n+f]=t/d&255;return n+o};it.prototype.writeUint8=it.prototype.writeUInt8=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,1,255,0),this[n]=t&255,n+1};it.prototype.writeUint16LE=it.prototype.writeUInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};it.prototype.writeUint16BE=it.prototype.writeUInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};it.prototype.writeUint32LE=it.prototype.writeUInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};it.prototype.writeUint32BE=it.prototype.writeUInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};it.prototype.writeIntLE=function(t,n,o,i){if(t=+t,n=n>>>0,!i){var s=Math.pow(2,8*o-1);so(this,t,n,o,s-1,-s)}var f=0,d=1,h=0;for(this[n]=t&255;++f>0)-h&255;return n+o};it.prototype.writeIntBE=function(t,n,o,i){if(t=+t,n=n>>>0,!i){var s=Math.pow(2,8*o-1);so(this,t,n,o,s-1,-s)}var f=o-1,d=1,h=0;for(this[n+f]=t&255;--f>=0&&(d*=256);)t<0&&h===0&&this[n+f+1]!==0&&(h=1),this[n+f]=(t/d>>0)-h&255;return n+o};it.prototype.writeInt8=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};it.prototype.writeInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};it.prototype.writeInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};it.prototype.writeInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};it.prototype.writeInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function v3(r,t,n,o,i,s){if(n+o>r.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function y3(r,t,n,o,i){return t=+t,n=n>>>0,i||v3(r,t,n,4,34028234663852886e22,-34028234663852886e22),Nd.write(r,t,n,o,23,4),n+4}it.prototype.writeFloatLE=function(t,n,o){return y3(this,t,n,!0,o)};it.prototype.writeFloatBE=function(t,n,o){return y3(this,t,n,!1,o)};function g3(r,t,n,o,i){return t=+t,n=n>>>0,i||v3(r,t,n,8,17976931348623157e292,-17976931348623157e292),Nd.write(r,t,n,o,52,8),n+8}it.prototype.writeDoubleLE=function(t,n,o){return g3(this,t,n,!0,o)};it.prototype.writeDoubleBE=function(t,n,o){return g3(this,t,n,!1,o)};it.prototype.copy=function(t,n,o,i){if(!it.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var f;if(typeof t=="number")for(f=n;f55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(f+1===o){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function qW(r){for(var t=[],n=0;n>8,i=n%256,s.push(i),s.push(o);return s}function b3(r){return XS.toByteArray(HW(r))}function vb(r,t,n,o){for(var i=0;i=t.length||i>=r.length);++i)t[i+n]=r[i];return i}function gs(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function rC(r){return r!==r}var WW=function(){for(var r="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var o=n*16,i=0;i<16;++i)t[o+i]=r[n]+r[i];return t}()});var S3=se((ple,_3)=>{R();var qi=_3.exports={},bs,Es;function nC(){throw new Error("setTimeout has not been defined")}function iC(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?bs=setTimeout:bs=nC}catch{bs=nC}try{typeof clearTimeout=="function"?Es=clearTimeout:Es=iC}catch{Es=iC}})();function x3(r){if(bs===setTimeout)return setTimeout(r,0);if((bs===nC||!bs)&&setTimeout)return bs=setTimeout,setTimeout(r,0);try{return bs(r,0)}catch{try{return bs.call(null,r,0)}catch{return bs.call(this,r,0)}}}function YW(r){if(Es===clearTimeout)return clearTimeout(r);if((Es===iC||!Es)&&clearTimeout)return Es=clearTimeout,clearTimeout(r);try{return Es(r)}catch{try{return Es.call(null,r)}catch{return Es.call(this,r)}}}var sl=[],$d=!1,Wc,yb=-1;function QW(){!$d||!Wc||($d=!1,Wc.length?sl=Wc.concat(sl):yb=-1,sl.length&&A3())}function A3(){if(!$d){var r=x3(QW);$d=!0;for(var t=sl.length;t;){for(Wc=sl,sl=[];++yb1)for(var n=1;n{Z=cn(E3()),W=cn(S3()),XW=function(r){function t(){var o=this||self;return delete r.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),global=XW});var Md=se((hle,T3)=>{"use strict";R();var C3=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,JW=Object.prototype.propertyIsEnumerable;function ZW(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function eY(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}T3.exports=eY()?Object.assign:function(r,t){for(var n,o=ZW(r),i,s=1;s{"use strict";R();var oC=Md(),jd=60103,k3=60106;hn.Fragment=60107;hn.StrictMode=60108;hn.Profiler=60114;var D3=60109,F3=60110,P3=60112;hn.Suspense=60113;var I3=60115,L3=60116;typeof Symbol=="function"&&Symbol.for&&(ru=Symbol.for,jd=ru("react.element"),k3=ru("react.portal"),hn.Fragment=ru("react.fragment"),hn.StrictMode=ru("react.strict_mode"),hn.Profiler=ru("react.profiler"),D3=ru("react.provider"),F3=ru("react.context"),P3=ru("react.forward_ref"),hn.Suspense=ru("react.suspense"),I3=ru("react.memo"),L3=ru("react.lazy"));var ru,R3=typeof Symbol=="function"&&Symbol.iterator;function tY(r){return r===null||typeof r!="object"?null:(r=R3&&r[R3]||r["@@iterator"],typeof r=="function"?r:null)}function Mv(r){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+r,n=1;n{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=Md(),t="17.0.2",n=60103,o=60106;Br.Fragment=60107,Br.StrictMode=60108,Br.Profiler=60114;var i=60109,s=60110,f=60112;Br.Suspense=60113;var d=60120,h=60115,v=60116,E=60121,A=60122,S=60117,b=60119,F=60128,I=60129,w=60130,T=60131;if(typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;n=O("react.element"),o=O("react.portal"),Br.Fragment=O("react.fragment"),Br.StrictMode=O("react.strict_mode"),Br.Profiler=O("react.profiler"),i=O("react.provider"),s=O("react.context"),f=O("react.forward_ref"),Br.Suspense=O("react.suspense"),d=O("react.suspense_list"),h=O("react.memo"),v=O("react.lazy"),E=O("react.block"),A=O("react.server.block"),S=O("react.fundamental"),b=O("react.scope"),F=O("react.opaque.id"),I=O("react.debug_trace_mode"),w=O("react.offscreen"),T=O("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function H(N){if(N===null||typeof N!="object")return null;var ve=k&&N[k]||N[x];return typeof ve=="function"?ve:null}var oe={current:null},xe={transition:0},Re={current:null},ce={},Ie=null;function ut(N){Ie=N}ce.setExtraStackFrame=function(N){Ie=N},ce.getCurrentStack=null,ce.getStackAddendum=function(){var N="";Ie&&(N+=Ie);var ve=ce.getCurrentStack;return ve&&(N+=ve()||""),N};var le={current:!1},V={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:xe,ReactCurrentOwner:Re,IsSomeRendererActing:le,assign:r};V.ReactDebugCurrentFrame=ce;function $(N){{for(var ve=arguments.length,Me=new Array(ve>1?ve-1:0),at=1;at1?ve-1:0),at=1;at1){for(var kn=Array(On),Qn=0;Qn1){for(var ra=Array(Qn),na=0;na is not supported and will be removed in a future major release. Did you mean to render instead?")),Me.Provider},set:function(rr){Me.Provider=rr}},_currentValue:{get:function(){return Me._currentValue},set:function(rr){Me._currentValue=rr}},_currentValue2:{get:function(){return Me._currentValue2},set:function(rr){Me._currentValue2=rr}},_threadCount:{get:function(){return Me._threadCount},set:function(rr){Me._threadCount=rr}},Consumer:{get:function(){return at||(at=!0,ne("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),Me.Consumer}},displayName:{get:function(){return Me.displayName},set:function(rr){hr||($("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",rr),hr=!0)}}}),Me.Consumer=fr}return Me._currentRenderer=null,Me._currentRenderer2=null,Me}var Va=-1,va=0,Zi=1,No=2;function Mn(N){if(N._status===Va){var ve=N._result,Me=ve(),at=N;at._status=va,at._result=Me,Me.then(function(Nt){if(N._status===va){var hr=Nt.default;hr===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s +(()=>{var pW=Object.create;var WS=Object.defineProperty;var dW=Object.getOwnPropertyDescriptor;var hW=Object.getOwnPropertyNames;var mW=Object.getPrototypeOf,vW=Object.prototype.hasOwnProperty;var pb=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var yW=(r,t)=>()=>(r&&(t=r(r=0)),t);var se=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),t3=(r,t)=>{for(var n in t)WS(r,n,{get:t[n],enumerable:!0})},gW=(r,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hW(t))!vW.call(r,i)&&i!==n&&WS(r,i,{get:()=>t[i],enumerable:!(o=dW(t,i))||o.enumerable});return r};var Gn=(r,t,n)=>(n=r!=null?pW(mW(r)):{},gW(t||!r||!r.__esModule?WS(n,"default",{value:r,enumerable:!0}):n,r));var i3=se(db=>{"use strict";R();db.byteLength=EW;db.toByteArray=AW;db.fromByteArray=SW;var ys=[],tu=[],bW=typeof Uint8Array<"u"?Uint8Array:Array,YS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(qc=0,r3=YS.length;qc0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function EW(r){var t=n3(r),n=t[0],o=t[1];return(n+o)*3/4-o}function xW(r,t,n){return(t+n)*3/4-n}function AW(r){var t,n=n3(r),o=n[0],i=n[1],s=new bW(xW(r,o,i)),f=0,d=i>0?o-4:o,h;for(h=0;h>16&255,s[f++]=t>>8&255,s[f++]=t&255;return i===2&&(t=tu[r.charCodeAt(h)]<<2|tu[r.charCodeAt(h+1)]>>4,s[f++]=t&255),i===1&&(t=tu[r.charCodeAt(h)]<<10|tu[r.charCodeAt(h+1)]<<4|tu[r.charCodeAt(h+2)]>>2,s[f++]=t>>8&255,s[f++]=t&255),s}function wW(r){return ys[r>>18&63]+ys[r>>12&63]+ys[r>>6&63]+ys[r&63]}function _W(r,t,n){for(var o,i=[],s=t;sd?d:f+s));return o===1?(t=r[n-1],i.push(ys[t>>2]+ys[t<<4&63]+"==")):o===2&&(t=(r[n-2]<<8)+r[n-1],i.push(ys[t>>10]+ys[t>>4&63]+ys[t<<2&63]+"=")),i.join("")}});var a3=se(QS=>{R();QS.read=function(r,t,n,o,i){var s,f,d=i*8-o-1,h=(1<>1,E=-7,A=n?i-1:0,S=n?-1:1,b=r[t+A];for(A+=S,s=b&(1<<-E)-1,b>>=-E,E+=d;E>0;s=s*256+r[t+A],A+=S,E-=8);for(f=s&(1<<-E)-1,s>>=-E,E+=o;E>0;f=f*256+r[t+A],A+=S,E-=8);if(s===0)s=1-v;else{if(s===h)return f?NaN:(b?-1:1)*(1/0);f=f+Math.pow(2,o),s=s-v}return(b?-1:1)*f*Math.pow(2,s-o)};QS.write=function(r,t,n,o,i,s){var f,d,h,v=s*8-i-1,E=(1<>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:s-1,F=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,f=E):(f=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+A>=1?t+=S/h:t+=S*Math.pow(2,1-A),t*h>=2&&(f++,h/=2),f+A>=E?(d=0,f=E):f+A>=1?(d=(t*h-1)*Math.pow(2,i),f=f+A):(d=t*Math.pow(2,A-1)*Math.pow(2,i),f=0));i>=8;r[n+b]=d&255,b+=F,d/=256,i-=8);for(f=f<0;r[n+b]=f&255,b+=F,f/=256,v-=8);r[n+b-F]|=I*128}});var g3=se(Bd=>{"use strict";R();var XS=i3(),Nd=a3(),o3=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Bd.Buffer=it;Bd.SlowBuffer=DW;Bd.INSPECT_MAX_BYTES=50;var hb=2147483647;Bd.kMaxLength=hb;it.TYPED_ARRAY_SUPPORT=CW();!it.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function CW(){try{var r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(it.prototype,"parent",{enumerable:!0,get:function(){if(!!it.isBuffer(this))return this.buffer}});Object.defineProperty(it.prototype,"offset",{enumerable:!0,get:function(){if(!!it.isBuffer(this))return this.byteOffset}});function ul(r){if(r>hb)throw new RangeError('The value "'+r+'" is invalid for option "size"');var t=new Uint8Array(r);return Object.setPrototypeOf(t,it.prototype),t}function it(r,t,n){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eC(r)}return l3(r,t,n)}it.poolSize=8192;function l3(r,t,n){if(typeof r=="string")return RW(r,t);if(ArrayBuffer.isView(r))return OW(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(gs(r,ArrayBuffer)||r&&gs(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gs(r,SharedArrayBuffer)||r&&gs(r.buffer,SharedArrayBuffer)))return JS(r,t,n);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=r.valueOf&&r.valueOf();if(o!=null&&o!==r)return it.from(o,t,n);var i=kW(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return it.from(r[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 r)}it.from=function(r,t,n){return l3(r,t,n)};Object.setPrototypeOf(it.prototype,Uint8Array.prototype);Object.setPrototypeOf(it,Uint8Array);function f3(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function TW(r,t,n){return f3(r),r<=0?ul(r):t!==void 0?typeof n=="string"?ul(r).fill(t,n):ul(r).fill(t):ul(r)}it.alloc=function(r,t,n){return TW(r,t,n)};function eC(r){return f3(r),ul(r<0?0:tC(r)|0)}it.allocUnsafe=function(r){return eC(r)};it.allocUnsafeSlow=function(r){return eC(r)};function RW(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!it.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=c3(r,t)|0,o=ul(n),i=o.write(r,t);return i!==n&&(o=o.slice(0,i)),o}function KS(r){for(var t=r.length<0?0:tC(r.length)|0,n=ul(t),o=0;o=hb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hb.toString(16)+" bytes");return r|0}function DW(r){return+r!=r&&(r=0),it.alloc(+r)}it.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==it.prototype};it.compare=function(t,n){if(gs(t,Uint8Array)&&(t=it.from(t,t.offset,t.byteLength)),gs(n,Uint8Array)&&(n=it.from(n,n.offset,n.byteLength)),!it.isBuffer(t)||!it.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;for(var o=t.length,i=n.length,s=0,f=Math.min(o,i);si.length?it.from(f).copy(i,s):Uint8Array.prototype.set.call(i,f,s);else if(it.isBuffer(f))f.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=f.length}return i};function c3(r,t){if(it.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||gs(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var n=r.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ZS(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return y3(r).length;default:if(i)return o?-1:ZS(r).length;t=(""+t).toLowerCase(),i=!0}}it.byteLength=c3;function FW(r,t,n){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return VW(this,t,n);case"utf8":case"utf-8":return d3(this,t,n);case"ascii":return jW(this,t,n);case"latin1":case"binary":return UW(this,t,n);case"base64":return $W(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zW(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}it.prototype._isBuffer=!0;function Gc(r,t,n){var o=r[t];r[t]=r[n],r[n]=o}it.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;nn&&(t+=" ... "),""};o3&&(it.prototype[o3]=it.prototype.inspect);it.prototype.compare=function(t,n,o,i,s){if(gs(t,Uint8Array)&&(t=it.from(t,t.offset,t.byteLength)),!it.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),n<0||o>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=o)return 0;if(i>=s)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,i>>>=0,s>>>=0,this===t)return 0;for(var f=s-i,d=o-n,h=Math.min(f,d),v=this.slice(i,s),E=t.slice(n,o),A=0;A2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,rC(n)&&(n=i?0:r.length-1),n<0&&(n=r.length+n),n>=r.length){if(i)return-1;n=r.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t=="string"&&(t=it.from(t,o)),it.isBuffer(t))return t.length===0?-1:u3(r,t,n,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,n):Uint8Array.prototype.lastIndexOf.call(r,t,n):u3(r,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function u3(r,t,n,o,i){var s=1,f=r.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(r.length<2||t.length<2)return-1;s=2,f/=2,d/=2,n/=2}function h(b,F){return s===1?b[F]:b.readUInt16BE(F*s)}var v;if(i){var E=-1;for(v=n;vf&&(n=f-d),v=n;v>=0;v--){for(var A=!0,S=0;Si&&(o=i)):o=i;var s=t.length;o>s/2&&(o=s/2);for(var f=0;f>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((o===void 0||o>s)&&(o=s),t.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return PW(this,t,n,o);case"utf8":case"utf-8":return IW(this,t,n,o);case"ascii":case"latin1":case"binary":return LW(this,t,n,o);case"base64":return NW(this,t,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BW(this,t,n,o);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}};it.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $W(r,t,n){return t===0&&n===r.length?XS.fromByteArray(r):XS.fromByteArray(r.slice(t,n))}function d3(r,t,n){n=Math.min(r.length,n);for(var o=[],i=t;i239?4:s>223?3:s>191?2:1;if(i+d<=n){var h,v,E,A;switch(d){case 1:s<128&&(f=s);break;case 2:h=r[i+1],(h&192)===128&&(A=(s&31)<<6|h&63,A>127&&(f=A));break;case 3:h=r[i+1],v=r[i+2],(h&192)===128&&(v&192)===128&&(A=(s&15)<<12|(h&63)<<6|v&63,A>2047&&(A<55296||A>57343)&&(f=A));break;case 4:h=r[i+1],v=r[i+2],E=r[i+3],(h&192)===128&&(v&192)===128&&(E&192)===128&&(A=(s&15)<<18|(h&63)<<12|(v&63)<<6|E&63,A>65535&&A<1114112&&(f=A))}}f===null?(f=65533,d=1):f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f),i+=d}return MW(o)}var s3=4096;function MW(r){var t=r.length;if(t<=s3)return String.fromCharCode.apply(String,r);for(var n="",o=0;oo)&&(n=o);for(var i="",s=t;so&&(t=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),nn)throw new RangeError("Trying to access beyond buffer length")}it.prototype.readUintLE=it.prototype.readUIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t],s=1,f=0;++f>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t+--n],s=1;n>0&&(s*=256);)i+=this[t+--n]*s;return i};it.prototype.readUint8=it.prototype.readUInt8=function(t,n){return t=t>>>0,n||pa(t,1,this.length),this[t]};it.prototype.readUint16LE=it.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||pa(t,2,this.length),this[t]|this[t+1]<<8};it.prototype.readUint16BE=it.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||pa(t,2,this.length),this[t]<<8|this[t+1]};it.prototype.readUint32LE=it.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};it.prototype.readUint32BE=it.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};it.prototype.readIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=this[t],s=1,f=0;++f=s&&(i-=Math.pow(2,8*n)),i};it.prototype.readIntBE=function(t,n,o){t=t>>>0,n=n>>>0,o||pa(t,n,this.length);for(var i=n,s=1,f=this[t+--i];i>0&&(s*=256);)f+=this[t+--i]*s;return s*=128,f>=s&&(f-=Math.pow(2,8*n)),f};it.prototype.readInt8=function(t,n){return t=t>>>0,n||pa(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};it.prototype.readInt16LE=function(t,n){t=t>>>0,n||pa(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};it.prototype.readInt16BE=function(t,n){t=t>>>0,n||pa(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};it.prototype.readInt32LE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};it.prototype.readInt32BE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};it.prototype.readFloatLE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),Nd.read(this,t,!0,23,4)};it.prototype.readFloatBE=function(t,n){return t=t>>>0,n||pa(t,4,this.length),Nd.read(this,t,!1,23,4)};it.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||pa(t,8,this.length),Nd.read(this,t,!0,52,8)};it.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||pa(t,8,this.length),Nd.read(this,t,!1,52,8)};function so(r,t,n,o,i,s){if(!it.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}it.prototype.writeUintLE=it.prototype.writeUIntLE=function(t,n,o,i){if(t=+t,n=n>>>0,o=o>>>0,!i){var s=Math.pow(2,8*o)-1;so(this,t,n,o,s,0)}var f=1,d=0;for(this[n]=t&255;++d>>0,o=o>>>0,!i){var s=Math.pow(2,8*o)-1;so(this,t,n,o,s,0)}var f=o-1,d=1;for(this[n+f]=t&255;--f>=0&&(d*=256);)this[n+f]=t/d&255;return n+o};it.prototype.writeUint8=it.prototype.writeUInt8=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,1,255,0),this[n]=t&255,n+1};it.prototype.writeUint16LE=it.prototype.writeUInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};it.prototype.writeUint16BE=it.prototype.writeUInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};it.prototype.writeUint32LE=it.prototype.writeUInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};it.prototype.writeUint32BE=it.prototype.writeUInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};it.prototype.writeIntLE=function(t,n,o,i){if(t=+t,n=n>>>0,!i){var s=Math.pow(2,8*o-1);so(this,t,n,o,s-1,-s)}var f=0,d=1,h=0;for(this[n]=t&255;++f>0)-h&255;return n+o};it.prototype.writeIntBE=function(t,n,o,i){if(t=+t,n=n>>>0,!i){var s=Math.pow(2,8*o-1);so(this,t,n,o,s-1,-s)}var f=o-1,d=1,h=0;for(this[n+f]=t&255;--f>=0&&(d*=256);)t<0&&h===0&&this[n+f+1]!==0&&(h=1),this[n+f]=(t/d>>0)-h&255;return n+o};it.prototype.writeInt8=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};it.prototype.writeInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};it.prototype.writeInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};it.prototype.writeInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};it.prototype.writeInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||so(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function h3(r,t,n,o,i,s){if(n+o>r.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function m3(r,t,n,o,i){return t=+t,n=n>>>0,i||h3(r,t,n,4,34028234663852886e22,-34028234663852886e22),Nd.write(r,t,n,o,23,4),n+4}it.prototype.writeFloatLE=function(t,n,o){return m3(this,t,n,!0,o)};it.prototype.writeFloatBE=function(t,n,o){return m3(this,t,n,!1,o)};function v3(r,t,n,o,i){return t=+t,n=n>>>0,i||h3(r,t,n,8,17976931348623157e292,-17976931348623157e292),Nd.write(r,t,n,o,52,8),n+8}it.prototype.writeDoubleLE=function(t,n,o){return v3(this,t,n,!0,o)};it.prototype.writeDoubleBE=function(t,n,o){return v3(this,t,n,!1,o)};it.prototype.copy=function(t,n,o,i){if(!it.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var f;if(typeof t=="number")for(f=n;f55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(f+1===o){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function GW(r){for(var t=[],n=0;n>8,i=n%256,s.push(i),s.push(o);return s}function y3(r){return XS.toByteArray(qW(r))}function mb(r,t,n,o){for(var i=0;i=t.length||i>=r.length);++i)t[i+n]=r[i];return i}function gs(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function rC(r){return r!==r}var YW=function(){for(var r="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var o=n*16,i=0;i<16;++i)t[o+i]=r[n]+r[i];return t}()});var w3=se((dle,A3)=>{R();var qi=A3.exports={},bs,Es;function nC(){throw new Error("setTimeout has not been defined")}function iC(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?bs=setTimeout:bs=nC}catch{bs=nC}try{typeof clearTimeout=="function"?Es=clearTimeout:Es=iC}catch{Es=iC}})();function b3(r){if(bs===setTimeout)return setTimeout(r,0);if((bs===nC||!bs)&&setTimeout)return bs=setTimeout,setTimeout(r,0);try{return bs(r,0)}catch{try{return bs.call(null,r,0)}catch{return bs.call(this,r,0)}}}function QW(r){if(Es===clearTimeout)return clearTimeout(r);if((Es===iC||!Es)&&clearTimeout)return Es=clearTimeout,clearTimeout(r);try{return Es(r)}catch{try{return Es.call(null,r)}catch{return Es.call(this,r)}}}var sl=[],$d=!1,Wc,vb=-1;function XW(){!$d||!Wc||($d=!1,Wc.length?sl=Wc.concat(sl):vb=-1,sl.length&&E3())}function E3(){if(!$d){var r=b3(XW);$d=!0;for(var t=sl.length;t;){for(Wc=sl,sl=[];++vb1)for(var n=1;n{Z=Gn(g3()),W=Gn(w3()),KW=function(r){function t(){var o=this||self;return delete r.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),global=KW});var Md=se((mle,S3)=>{"use strict";R();var _3=Object.getOwnPropertySymbols,JW=Object.prototype.hasOwnProperty,ZW=Object.prototype.propertyIsEnumerable;function eY(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function tY(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}S3.exports=tY()?Object.assign:function(r,t){for(var n,o=eY(r),i,s=1;s{"use strict";R();var oC=Md(),jd=60103,R3=60106;dn.Fragment=60107;dn.StrictMode=60108;dn.Profiler=60114;var O3=60109,k3=60110,D3=60112;dn.Suspense=60113;var F3=60115,P3=60116;typeof Symbol=="function"&&Symbol.for&&(ru=Symbol.for,jd=ru("react.element"),R3=ru("react.portal"),dn.Fragment=ru("react.fragment"),dn.StrictMode=ru("react.strict_mode"),dn.Profiler=ru("react.profiler"),O3=ru("react.provider"),k3=ru("react.context"),D3=ru("react.forward_ref"),dn.Suspense=ru("react.suspense"),F3=ru("react.memo"),P3=ru("react.lazy"));var ru,C3=typeof Symbol=="function"&&Symbol.iterator;function rY(r){return r===null||typeof r!="object"?null:(r=C3&&r[C3]||r["@@iterator"],typeof r=="function"?r:null)}function Bv(r){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+r,n=1;n{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=Md(),t="17.0.2",n=60103,o=60106;Br.Fragment=60107,Br.StrictMode=60108,Br.Profiler=60114;var i=60109,s=60110,f=60112;Br.Suspense=60113;var d=60120,h=60115,v=60116,E=60121,A=60122,S=60117,b=60119,F=60128,I=60129,w=60130,T=60131;if(typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;n=O("react.element"),o=O("react.portal"),Br.Fragment=O("react.fragment"),Br.StrictMode=O("react.strict_mode"),Br.Profiler=O("react.profiler"),i=O("react.provider"),s=O("react.context"),f=O("react.forward_ref"),Br.Suspense=O("react.suspense"),d=O("react.suspense_list"),h=O("react.memo"),v=O("react.lazy"),E=O("react.block"),A=O("react.server.block"),S=O("react.fundamental"),b=O("react.scope"),F=O("react.opaque.id"),I=O("react.debug_trace_mode"),w=O("react.offscreen"),T=O("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function H(N){if(N===null||typeof N!="object")return null;var ve=k&&N[k]||N[x];return typeof ve=="function"?ve:null}var oe={current:null},xe={transition:0},Re={current:null},ce={},Ie=null;function ut(N){Ie=N}ce.setExtraStackFrame=function(N){Ie=N},ce.getCurrentStack=null,ce.getStackAddendum=function(){var N="";Ie&&(N+=Ie);var ve=ce.getCurrentStack;return ve&&(N+=ve()||""),N};var le={current:!1},V={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:xe,ReactCurrentOwner:Re,IsSomeRendererActing:le,assign:r};V.ReactDebugCurrentFrame=ce;function $(N){{for(var ve=arguments.length,Me=new Array(ve>1?ve-1:0),at=1;at1?ve-1:0),at=1;at1){for(var On=Array(Rn),Qn=0;Qn1){for(var ra=Array(Qn),na=0;na is not supported and will be removed in a future major release. Did you mean to render instead?")),Me.Provider},set:function(rr){Me.Provider=rr}},_currentValue:{get:function(){return Me._currentValue},set:function(rr){Me._currentValue=rr}},_currentValue2:{get:function(){return Me._currentValue2},set:function(rr){Me._currentValue2=rr}},_threadCount:{get:function(){return Me._threadCount},set:function(rr){Me._threadCount=rr}},Consumer:{get:function(){return at||(at=!0,ne("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),Me.Consumer}},displayName:{get:function(){return Me.displayName},set:function(rr){hr||($("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",rr),hr=!0)}}}),Me.Consumer=fr}return Me._currentRenderer=null,Me._currentRenderer2=null,Me}var Va=-1,va=0,Zi=1,No=2;function $n(N){if(N._status===Va){var ve=N._result,Me=ve(),at=N;at._status=va,at._result=Me,Me.then(function(Nt){if(N._status===va){var hr=Nt.default;hr===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`,Nt);var fr=N;fr._status=Zi,fr._result=hr}},function(Nt){if(N._status===va){var hr=N;hr._status=No,hr._result=Nt}})}if(N._status===Zi)return N._result;throw N._result}function za(N){var ve={_status:-1,_result:N},Me={$$typeof:v,_payload:ve,_init:Mn};{var at,Nt;Object.defineProperties(Me,{defaultProps:{configurable:!0,get:function(){return at},set:function(hr){ne("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),at=hr,Object.defineProperty(Me,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Nt},set:function(hr){ne("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Nt=hr,Object.defineProperty(Me,"propTypes",{enumerable:!0})}}})}return Me}function ya(N){N!=null&&N.$$typeof===h?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof N!="function"?ne("forwardRef requires a render function but was given %s.",N===null?"null":typeof N):N.length!==0&&N.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",N.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),N!=null&&(N.defaultProps!=null||N.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var ve={$$typeof:f,render:N};{var Me;Object.defineProperty(ve,"displayName",{enumerable:!1,configurable:!0,get:function(){return Me},set:function(at){Me=at,N.displayName==null&&(N.displayName=at)}})}return ve}var Ra=!1;function sa(N){return!!(typeof N=="string"||typeof N=="function"||N===Br.Fragment||N===Br.Profiler||N===I||N===Br.StrictMode||N===Br.Suspense||N===d||N===T||Ra||typeof N=="object"&&N!==null&&(N.$$typeof===v||N.$$typeof===h||N.$$typeof===i||N.$$typeof===s||N.$$typeof===f||N.$$typeof===S||N.$$typeof===E||N[0]===A))}function go(N,ve){sa(N)||ne("memo: The first argument must be a component. Instead received: %s",N===null?"null":typeof N);var Me={$$typeof:h,type:N,compare:ve===void 0?null:ve};{var at;Object.defineProperty(Me,"displayName",{enumerable:!1,configurable:!0,get:function(){return at},set:function(Nt){at=Nt,N.displayName==null&&(N.displayName=Nt)}})}return Me}function ea(){var N=oe.current;if(N===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: + const MyComponent = lazy(() => import('./MyComponent'))`,Nt);var fr=N;fr._status=Zi,fr._result=hr}},function(Nt){if(N._status===va){var hr=N;hr._status=No,hr._result=Nt}})}if(N._status===Zi)return N._result;throw N._result}function za(N){var ve={_status:-1,_result:N},Me={$$typeof:v,_payload:ve,_init:$n};{var at,Nt;Object.defineProperties(Me,{defaultProps:{configurable:!0,get:function(){return at},set:function(hr){ne("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),at=hr,Object.defineProperty(Me,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Nt},set:function(hr){ne("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Nt=hr,Object.defineProperty(Me,"propTypes",{enumerable:!0})}}})}return Me}function ya(N){N!=null&&N.$$typeof===h?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof N!="function"?ne("forwardRef requires a render function but was given %s.",N===null?"null":typeof N):N.length!==0&&N.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",N.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),N!=null&&(N.defaultProps!=null||N.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var ve={$$typeof:f,render:N};{var Me;Object.defineProperty(ve,"displayName",{enumerable:!1,configurable:!0,get:function(){return Me},set:function(at){Me=at,N.displayName==null&&(N.displayName=at)}})}return ve}var Ra=!1;function sa(N){return!!(typeof N=="string"||typeof N=="function"||N===Br.Fragment||N===Br.Profiler||N===I||N===Br.StrictMode||N===Br.Suspense||N===d||N===T||Ra||typeof N=="object"&&N!==null&&(N.$$typeof===v||N.$$typeof===h||N.$$typeof===i||N.$$typeof===s||N.$$typeof===f||N.$$typeof===S||N.$$typeof===E||N[0]===A))}function go(N,ve){sa(N)||ne("memo: The first argument must be a component. Instead received: %s",N===null?"null":typeof N);var Me={$$typeof:h,type:N,compare:ve===void 0?null:ve};{var at;Object.defineProperty(Me,"displayName",{enumerable:!1,configurable:!0,get:function(){return at},set:function(Nt){at=Nt,N.displayName==null&&(N.displayName=Nt)}})}return Me}function ea(){var N=oe.current;if(N===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return N}function Bo(N,ve){var Me=ea();if(ve!==void 0&&ne("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",ve,typeof ve=="number"&&Array.isArray(arguments[2])?` -Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks`:""),N._context!==void 0){var at=N._context;at.Consumer===N?ne("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):at.Provider===N&&ne("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Me.useContext(N,ve)}function K(N){var ve=ea();return ve.useState(N)}function Q(N,ve,Me){var at=ea();return at.useReducer(N,ve,Me)}function he(N){var ve=ea();return ve.useRef(N)}function Ae(N,ve){var Me=ea();return Me.useEffect(N,ve)}function Ue(N,ve){var Me=ea();return Me.useLayoutEffect(N,ve)}function _t(N,ve){var Me=ea();return Me.useCallback(N,ve)}function yr(N,ve){var Me=ea();return Me.useMemo(N,ve)}function qr(N,ve,Me){var at=ea();return at.useImperativeHandle(N,ve,Me)}function Fr(N,ve){{var Me=ea();return Me.useDebugValue(N,ve)}}var Zr=0,Pr,nn,gn,un,Lr,an,jt;function ga(){}ga.__reactDisabledLog=!0;function bn(){{if(Zr===0){Pr=console.log,nn=console.info,gn=console.warn,un=console.error,Lr=console.group,an=console.groupCollapsed,jt=console.groupEnd;var N={configurable:!0,enumerable:!0,value:ga,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}Zr++}}function En(){{if(Zr--,Zr===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},N,{value:Pr}),info:r({},N,{value:nn}),warn:r({},N,{value:gn}),error:r({},N,{value:un}),group:r({},N,{value:Lr}),groupCollapsed:r({},N,{value:an}),groupEnd:r({},N,{value:jt})})}Zr<0&&ne("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=V.ReactCurrentDispatcher,Jn;function Cn(N,ve,Me){{if(Jn===void 0)try{throw Error()}catch(Nt){var at=Nt.stack.trim().match(/\n( *(at )?)/);Jn=at&&at[1]||""}return` -`+Jn+N}}var Ti=!1,Mi;{var p=typeof WeakMap=="function"?WeakMap:Map;Mi=new p}function g(N,ve){if(!N||Ti)return"";{var Me=Mi.get(N);if(Me!==void 0)return Me}var at;Ti=!0;var Nt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var hr;hr=Wr.current,Wr.current=null,bn();try{if(ve){var fr=function(){throw Error()};if(Object.defineProperty(fr.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fr,[])}catch(Oa){at=Oa}Reflect.construct(N,[],fr)}else{try{fr.call()}catch(Oa){at=Oa}N.call(fr.prototype)}}else{try{throw Error()}catch(Oa){at=Oa}N()}}catch(Oa){if(Oa&&at&&typeof Oa.stack=="string"){for(var rr=Oa.stack.split(` +Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks`:""),N._context!==void 0){var at=N._context;at.Consumer===N?ne("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):at.Provider===N&&ne("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Me.useContext(N,ve)}function K(N){var ve=ea();return ve.useState(N)}function Q(N,ve,Me){var at=ea();return at.useReducer(N,ve,Me)}function he(N){var ve=ea();return ve.useRef(N)}function Ae(N,ve){var Me=ea();return Me.useEffect(N,ve)}function Ue(N,ve){var Me=ea();return Me.useLayoutEffect(N,ve)}function _t(N,ve){var Me=ea();return Me.useCallback(N,ve)}function yr(N,ve){var Me=ea();return Me.useMemo(N,ve)}function qr(N,ve,Me){var at=ea();return at.useImperativeHandle(N,ve,Me)}function Fr(N,ve){{var Me=ea();return Me.useDebugValue(N,ve)}}var Zr=0,Pr,nn,yn,un,Lr,an,jt;function ga(){}ga.__reactDisabledLog=!0;function gn(){{if(Zr===0){Pr=console.log,nn=console.info,yn=console.warn,un=console.error,Lr=console.group,an=console.groupCollapsed,jt=console.groupEnd;var N={configurable:!0,enumerable:!0,value:ga,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}Zr++}}function bn(){{if(Zr--,Zr===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},N,{value:Pr}),info:r({},N,{value:nn}),warn:r({},N,{value:yn}),error:r({},N,{value:un}),group:r({},N,{value:Lr}),groupCollapsed:r({},N,{value:an}),groupEnd:r({},N,{value:jt})})}Zr<0&&ne("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=V.ReactCurrentDispatcher,Jn;function Sn(N,ve,Me){{if(Jn===void 0)try{throw Error()}catch(Nt){var at=Nt.stack.trim().match(/\n( *(at )?)/);Jn=at&&at[1]||""}return` +`+Jn+N}}var Ti=!1,Mi;{var p=typeof WeakMap=="function"?WeakMap:Map;Mi=new p}function g(N,ve){if(!N||Ti)return"";{var Me=Mi.get(N);if(Me!==void 0)return Me}var at;Ti=!0;var Nt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var hr;hr=Wr.current,Wr.current=null,gn();try{if(ve){var fr=function(){throw Error()};if(Object.defineProperty(fr.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fr,[])}catch(Oa){at=Oa}Reflect.construct(N,[],fr)}else{try{fr.call()}catch(Oa){at=Oa}N.call(fr.prototype)}}else{try{throw Error()}catch(Oa){at=Oa}N()}}catch(Oa){if(Oa&&at&&typeof Oa.stack=="string"){for(var rr=Oa.stack.split(` `),ln=at.stack.split(` -`),On=rr.length-1,kn=ln.length-1;On>=1&&kn>=0&&rr[On]!==ln[kn];)kn--;for(;On>=1&&kn>=0;On--,kn--)if(rr[On]!==ln[kn]){if(On!==1||kn!==1)do if(On--,kn--,kn<0||rr[On]!==ln[kn]){var Qn=` -`+rr[On].replace(" at new "," at ");return typeof N=="function"&&Mi.set(N,Qn),Qn}while(On>=1&&kn>=0);break}}}finally{Ti=!1,Wr.current=hr,En(),Error.prepareStackTrace=Nt}var ra=N?N.displayName||N.name:"",na=ra?Cn(ra):"";return typeof N=="function"&&Mi.set(N,na),na}function P(N,ve,Me){return g(N,!1)}function M(N){var ve=N.prototype;return!!(ve&&ve.isReactComponent)}function te(N,ve,Me){if(N==null)return"";if(typeof N=="function")return g(N,M(N));if(typeof N=="string")return Cn(N);switch(N){case Br.Suspense:return Cn("Suspense");case d:return Cn("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case f:return P(N.render);case h:return te(N.type,ve,Me);case E:return P(N._render);case v:{var at=N,Nt=at._payload,hr=at._init;try{return te(hr(Nt),ve,Me)}catch{}}}return""}var Ce={},Be=V.ReactDebugCurrentFrame;function St(N){if(N){var ve=N._owner,Me=te(N.type,N._source,ve?ve.type:null);Be.setExtraStackFrame(Me)}else Be.setExtraStackFrame(null)}function Gt(N,ve,Me,at,Nt){{var hr=Function.call.bind(Object.prototype.hasOwnProperty);for(var fr in N)if(hr(N,fr)){var rr=void 0;try{if(typeof N[fr]!="function"){var ln=Error((at||"React class")+": "+Me+" type `"+fr+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[fr]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ln.name="Invariant Violation",ln}rr=N[fr](ve,fr,at,Me,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(On){rr=On}rr&&!(rr instanceof Error)&&(St(Nt),ne("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",at||"React class",Me,fr,typeof rr),St(null)),rr instanceof Error&&!(rr.message in Ce)&&(Ce[rr.message]=!0,St(Nt),ne("Failed %s type: %s",Me,rr.message),St(null))}}}function sr(N){if(N){var ve=N._owner,Me=te(N.type,N._source,ve?ve.type:null);ut(Me)}else ut(null)}var ct;ct=!1;function zn(){if(Re.current){var N=Jt(Re.current.type);if(N)return` +`),Rn=rr.length-1,On=ln.length-1;Rn>=1&&On>=0&&rr[Rn]!==ln[On];)On--;for(;Rn>=1&&On>=0;Rn--,On--)if(rr[Rn]!==ln[On]){if(Rn!==1||On!==1)do if(Rn--,On--,On<0||rr[Rn]!==ln[On]){var Qn=` +`+rr[Rn].replace(" at new "," at ");return typeof N=="function"&&Mi.set(N,Qn),Qn}while(Rn>=1&&On>=0);break}}}finally{Ti=!1,Wr.current=hr,bn(),Error.prepareStackTrace=Nt}var ra=N?N.displayName||N.name:"",na=ra?Sn(ra):"";return typeof N=="function"&&Mi.set(N,na),na}function P(N,ve,Me){return g(N,!1)}function M(N){var ve=N.prototype;return!!(ve&&ve.isReactComponent)}function te(N,ve,Me){if(N==null)return"";if(typeof N=="function")return g(N,M(N));if(typeof N=="string")return Sn(N);switch(N){case Br.Suspense:return Sn("Suspense");case d:return Sn("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case f:return P(N.render);case h:return te(N.type,ve,Me);case E:return P(N._render);case v:{var at=N,Nt=at._payload,hr=at._init;try{return te(hr(Nt),ve,Me)}catch{}}}return""}var Ce={},Be=V.ReactDebugCurrentFrame;function St(N){if(N){var ve=N._owner,Me=te(N.type,N._source,ve?ve.type:null);Be.setExtraStackFrame(Me)}else Be.setExtraStackFrame(null)}function Gt(N,ve,Me,at,Nt){{var hr=Function.call.bind(Object.prototype.hasOwnProperty);for(var fr in N)if(hr(N,fr)){var rr=void 0;try{if(typeof N[fr]!="function"){var ln=Error((at||"React class")+": "+Me+" type `"+fr+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[fr]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ln.name="Invariant Violation",ln}rr=N[fr](ve,fr,at,Me,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rn){rr=Rn}rr&&!(rr instanceof Error)&&(St(Nt),ne("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",at||"React class",Me,fr,typeof rr),St(null)),rr instanceof Error&&!(rr.message in Ce)&&(Ce[rr.message]=!0,St(Nt),ne("Failed %s type: %s",Me,rr.message),St(null))}}}function sr(N){if(N){var ve=N._owner,Me=te(N.type,N._source,ve?ve.type:null);ut(Me)}else ut(null)}var ct;ct=!1;function Vn(){if(Re.current){var N=Jt(Re.current.type);if(N)return` -Check the render method of \``+N+"`."}return""}function Tn(N){if(N!==void 0){var ve=N.fileName.replace(/^.*[\\\/]/,""),Me=N.lineNumber;return` +Check the render method of \``+N+"`."}return""}function Cn(N){if(N!==void 0){var ve=N.fileName.replace(/^.*[\\\/]/,""),Me=N.lineNumber;return` -Check your code at `+ve+":"+Me+"."}return""}function ai(N){return N!=null?Tn(N.__source):""}var ji={};function Ha(N){var ve=zn();if(!ve){var Me=typeof N=="string"?N:N.displayName||N.name;Me&&(ve=` +Check your code at `+ve+":"+Me+"."}return""}function ai(N){return N!=null?Cn(N.__source):""}var ji={};function Ha(N){var ve=Vn();if(!ve){var Me=typeof N=="string"?N:N.displayName||N.name;Me&&(ve=` -Check the top-level render call using <`+Me+">.")}return ve}function mn(N,ve){if(!(!N._store||N._store.validated||N.key!=null)){N._store.validated=!0;var Me=Ha(ve);if(!ji[Me]){ji[Me]=!0;var at="";N&&N._owner&&N._owner!==Re.current&&(at=" It was passed a child from "+Jt(N._owner.type)+"."),sr(N),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Me,at),sr(null)}}}function oi(N,ve){if(typeof N=="object"){if(Array.isArray(N))for(var Me=0;Me",Nt=" Did you accidentally export a JSX literal instead of a component?"):fr=typeof N,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fr,Nt)}var rr=er.apply(this,arguments);if(rr==null)return rr;if(at)for(var ln=2;ln{"use strict";R();W.default.env.NODE_ENV==="production"?cC.exports=z3():cC.exports=H3()});var X3=se(Ln=>{"use strict";R();var zd,Vv,wb,gC;typeof performance=="object"&&typeof performance.now=="function"?(q3=performance,Ln.unstable_now=function(){return q3.now()}):(pC=Date,G3=pC.now(),Ln.unstable_now=function(){return pC.now()-G3});var q3,pC,G3;typeof window>"u"||typeof MessageChannel!="function"?(Vd=null,dC=null,hC=function(){if(Vd!==null)try{var r=Ln.unstable_now();Vd(!0,r),Vd=null}catch(t){throw setTimeout(hC,0),t}},zd=function(r){Vd!==null?setTimeout(zd,0,r):(Vd=r,setTimeout(hC,0))},Vv=function(r,t){dC=setTimeout(r,t)},wb=function(){clearTimeout(dC)},Ln.unstable_shouldYield=function(){return!1},gC=Ln.unstable_forceFrameRate=function(){}):(W3=window.setTimeout,Y3=window.clearTimeout,typeof console<"u"&&(Q3=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof Q3!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),jv=!1,Uv=null,Eb=-1,mC=5,vC=0,Ln.unstable_shouldYield=function(){return Ln.unstable_now()>=vC},gC=function(){},Ln.unstable_forceFrameRate=function(r){0>r||125>>1,i=r[o];if(i!==void 0&&0Ab(f,n))h!==void 0&&0>Ab(h,f)?(r[o]=h,r[d]=n,o=d):(r[o]=f,r[s]=n,o=s);else if(h!==void 0&&0>Ab(h,n))r[o]=h,r[d]=n,o=d;else break e}}return t}return null}function Ab(r,t){var n=r.sortIndex-t.sortIndex;return n!==0?n:r.id-t.id}var xs=[],hf=[],oY=1,iu=null,Na=3,Sb=!1,Yc=!1,zv=!1;function EC(r){for(var t=Iu(hf);t!==null;){if(t.callback===null)_b(hf);else if(t.startTime<=r)_b(hf),t.sortIndex=t.expirationTime,bC(xs,t);else break;t=Iu(hf)}}function xC(r){if(zv=!1,EC(r),!Yc)if(Iu(xs)!==null)Yc=!0,zd(AC);else{var t=Iu(hf);t!==null&&Vv(xC,t.startTime-r)}}function AC(r,t){Yc=!1,zv&&(zv=!1,wb()),Sb=!0;var n=Na;try{for(EC(t),iu=Iu(xs);iu!==null&&(!(iu.expirationTime>t)||r&&!Ln.unstable_shouldYield());){var o=iu.callback;if(typeof o=="function"){iu.callback=null,Na=iu.priorityLevel;var i=o(iu.expirationTime<=t);t=Ln.unstable_now(),typeof i=="function"?iu.callback=i:iu===Iu(xs)&&_b(xs),EC(t)}else _b(xs);iu=Iu(xs)}if(iu!==null)var s=!0;else{var f=Iu(hf);f!==null&&Vv(xC,f.startTime-t),s=!1}return s}finally{iu=null,Na=n,Sb=!1}}var uY=gC;Ln.unstable_IdlePriority=5;Ln.unstable_ImmediatePriority=1;Ln.unstable_LowPriority=4;Ln.unstable_NormalPriority=3;Ln.unstable_Profiling=null;Ln.unstable_UserBlockingPriority=2;Ln.unstable_cancelCallback=function(r){r.callback=null};Ln.unstable_continueExecution=function(){Yc||Sb||(Yc=!0,zd(AC))};Ln.unstable_getCurrentPriorityLevel=function(){return Na};Ln.unstable_getFirstCallbackNode=function(){return Iu(xs)};Ln.unstable_next=function(r){switch(Na){case 1:case 2:case 3:var t=3;break;default:t=Na}var n=Na;Na=t;try{return r()}finally{Na=n}};Ln.unstable_pauseExecution=function(){};Ln.unstable_requestPaint=uY;Ln.unstable_runWithPriority=function(r,t){switch(r){case 1:case 2:case 3:case 4:case 5:break;default:r=3}var n=Na;Na=r;try{return t()}finally{Na=n}};Ln.unstable_scheduleCallback=function(r,t,n){var o=Ln.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0o?(r.sortIndex=n,bC(hf,r),Iu(xs)===null&&r===Iu(hf)&&(zv?wb():zv=!0,Vv(xC,n-o))):(r.sortIndex=i,bC(xs,r),Yc||Sb||(Yc=!0,zd(AC))),r};Ln.unstable_wrapCallback=function(r){var t=Na;return function(){var n=Na;Na=t;try{return r.apply(this,arguments)}finally{Na=n}}}});var K3=se(wn=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=!1,t=!1,n,o,i,s,f=typeof performance=="object"&&typeof performance.now=="function";if(f){var d=performance;wn.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();wn.unstable_now=function(){return h.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var E=null,A=null,S=function(){if(E!==null)try{var Ct=wn.unstable_now(),ht=!0;E(ht,Ct),E=null}catch(wr){throw setTimeout(S,0),wr}};n=function(Ct){E!==null?setTimeout(n,0,Ct):(E=Ct,setTimeout(S,0))},o=function(Ct,ht){A=setTimeout(Ct,ht)},i=function(){clearTimeout(A)},wn.unstable_shouldYield=function(){return!1},s=wn.unstable_forceFrameRate=function(){}}else{var b=window.setTimeout,F=window.clearTimeout;if(typeof console<"u"){var I=window.requestAnimationFrame,w=window.cancelAnimationFrame;typeof I!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof w!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var T=!1,O=null,k=-1,x=5,H=0;wn.unstable_shouldYield=function(){return wn.unstable_now()>=H},s=function(){},wn.unstable_forceFrameRate=function(Ct){if(Ct<0||Ct>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ct>0?x=Math.floor(1e3/Ct):x=5};var oe=function(){if(O!==null){var Ct=wn.unstable_now();H=Ct+x;var ht=!0;try{var wr=O(ht,Ct);wr?Re.postMessage(null):(T=!1,O=null)}catch(cr){throw Re.postMessage(null),cr}}else T=!1},xe=new MessageChannel,Re=xe.port2;xe.port1.onmessage=oe,n=function(Ct){O=Ct,T||(T=!0,Re.postMessage(null))},o=function(Ct,ht){k=b(function(){Ct(wn.unstable_now())},ht)},i=function(){F(k),k=-1}}function ce(Ct,ht){var wr=Ct.length;Ct.push(ht),le(Ct,ht,wr)}function Ie(Ct){var ht=Ct[0];return ht===void 0?null:ht}function ut(Ct){var ht=Ct[0];if(ht!==void 0){var wr=Ct.pop();return wr!==ht&&(Ct[0]=wr,V(Ct,wr,0)),ht}else return null}function le(Ct,ht,wr){for(var cr=wr;;){var Hr=cr-1>>>1,Sn=Ct[Hr];if(Sn!==void 0&&$(Sn,ht)>0)Ct[Hr]=ht,Ct[cr]=Sn,cr=Hr;else return}}function V(Ct,ht,wr){for(var cr=wr,Hr=Ct.length;crwr&&(!Ct||wn.unstable_shouldYield()));){var cr=ar.callback;if(typeof cr=="function"){ar.callback=null,Jt=ar.priorityLevel;var Hr=ar.expirationTime<=wr,Sn=cr(Hr);wr=wn.unstable_now(),typeof Sn=="function"?ar.callback=Sn:ar===Ie(qt)&&ut(qt),Nn(wr)}else ut(qt);ar=Ie(qt)}if(ar!==null)return!0;var Kr=Ie(Cr);return Kr!==null&&o(Qr,Kr.startTime-wr),!1}function sn(Ct,ht){switch(Ct){case ne:case ke:case Oe:case Qe:case qe:break;default:Ct=Oe}var wr=Jt;Jt=Ct;try{return ht()}finally{Jt=wr}}function Xr(Ct){var ht;switch(Jt){case ne:case ke:case Oe:ht=Oe;break;default:ht=Jt;break}var wr=Jt;Jt=ht;try{return Ct()}finally{Jt=wr}}function U(Ct){var ht=Jt;return function(){var wr=Jt;Jt=ht;try{return Ct.apply(this,arguments)}finally{Jt=wr}}}function yn(Ct,ht,wr){var cr=wn.unstable_now(),Hr;if(typeof wr=="object"&&wr!==null){var Sn=wr.delay;typeof Sn=="number"&&Sn>0?Hr=cr+Sn:Hr=cr}else Hr=cr;var Kr;switch(Ct){case ne:Kr=Dt;break;case ke:Kr=Lt;break;case qe:Kr=Wt;break;case Qe:Kr=Vt;break;case Oe:default:Kr=Mt;break}var wi=Hr+Kr,$n={id:ci++,callback:ht,priorityLevel:Ct,startTime:Hr,expirationTime:wi,sortIndex:-1};return Hr>cr?($n.sortIndex=Hr,ce(Cr,$n),Ie(qt)===null&&$n===Ie(Cr)&&(tr?i():tr=!0,o(Qr,Hr-cr))):($n.sortIndex=wi,ce(qt,$n),!zr&&!It&&(zr=!0,n(Ci))),$n}function er(){}function Bn(){!zr&&!It&&(zr=!0,n(Ci))}function Ca(){return Ie(qt)}function Yr(Ct){Ct.callback=null}function Ir(){return Jt}var $i=s,Ta=null;wn.unstable_IdlePriority=qe,wn.unstable_ImmediatePriority=ne,wn.unstable_LowPriority=Qe,wn.unstable_NormalPriority=Oe,wn.unstable_Profiling=Ta,wn.unstable_UserBlockingPriority=ke,wn.unstable_cancelCallback=Yr,wn.unstable_continueExecution=Bn,wn.unstable_getCurrentPriorityLevel=Ir,wn.unstable_getFirstCallbackNode=Ca,wn.unstable_next=Xr,wn.unstable_pauseExecution=er,wn.unstable_requestPaint=$i,wn.unstable_runWithPriority=sn,wn.unstable_scheduleCallback=yn,wn.unstable_wrapCallback=U}()});var _C=se((Ele,wC)=>{"use strict";R();W.default.env.NODE_ENV==="production"?wC.exports=X3():wC.exports=K3()});var BI=se(fu=>{"use strict";R();var gE=nu(),Ai=Md(),da=_C();function Ot(r){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+r,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,J3=Object.prototype.hasOwnProperty,Z3={},e4={};function lY(r){return J3.call(e4,r)?!0:J3.call(Z3,r)?!1:sY.test(r)?e4[r]=!0:(Z3[r]=!0,!1)}function fY(r,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function cY(r,t,n,o){if(t===null||typeof t>"u"||fY(r,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ka(r,t,n,o,i,s,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=r,this.type=t,this.sanitizeURL=s,this.removeEmptyString=f}var _a={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){_a[r]=new Ka(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var t=r[0];_a[t]=new Ka(t,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){_a[r]=new Ka(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_a[r]=new Ka(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){_a[r]=new Ka(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){_a[r]=new Ka(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){_a[r]=new Ka(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){_a[r]=new Ka(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){_a[r]=new Ka(r,5,!1,r.toLowerCase(),null,!1,!1)});var P2=/[\-:]([a-z])/g;function I2(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){_a[r]=new Ka(r,1,!1,r.toLowerCase(),null,!1,!1)});_a.xlinkHref=new Ka("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){_a[r]=new Ka(r,1,!1,r.toLowerCase(),null,!0,!0)});function L2(r,t,n,o){var i=_a.hasOwnProperty(t)?_a[t]:null,s=i!==null?i.type===0:o?!1:!(!(2.")}return ve}function hn(N,ve){if(!(!N._store||N._store.validated||N.key!=null)){N._store.validated=!0;var Me=Ha(ve);if(!ji[Me]){ji[Me]=!0;var at="";N&&N._owner&&N._owner!==Re.current&&(at=" It was passed a child from "+Jt(N._owner.type)+"."),sr(N),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Me,at),sr(null)}}}function oi(N,ve){if(typeof N=="object"){if(Array.isArray(N))for(var Me=0;Me",Nt=" Did you accidentally export a JSX literal instead of a component?"):fr=typeof N,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fr,Nt)}var rr=er.apply(this,arguments);if(rr==null)return rr;if(at)for(var ln=2;ln{"use strict";R();W.default.env.NODE_ENV==="production"?cC.exports=U3():cC.exports=V3()});var Y3=se(In=>{"use strict";R();var zd,jv,Ab,gC;typeof performance=="object"&&typeof performance.now=="function"?(z3=performance,In.unstable_now=function(){return z3.now()}):(pC=Date,H3=pC.now(),In.unstable_now=function(){return pC.now()-H3});var z3,pC,H3;typeof window>"u"||typeof MessageChannel!="function"?(Vd=null,dC=null,hC=function(){if(Vd!==null)try{var r=In.unstable_now();Vd(!0,r),Vd=null}catch(t){throw setTimeout(hC,0),t}},zd=function(r){Vd!==null?setTimeout(zd,0,r):(Vd=r,setTimeout(hC,0))},jv=function(r,t){dC=setTimeout(r,t)},Ab=function(){clearTimeout(dC)},In.unstable_shouldYield=function(){return!1},gC=In.unstable_forceFrameRate=function(){}):(q3=window.setTimeout,G3=window.clearTimeout,typeof console<"u"&&(W3=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof W3!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),$v=!1,Mv=null,bb=-1,mC=5,vC=0,In.unstable_shouldYield=function(){return In.unstable_now()>=vC},gC=function(){},In.unstable_forceFrameRate=function(r){0>r||125>>1,i=r[o];if(i!==void 0&&0xb(f,n))h!==void 0&&0>xb(h,f)?(r[o]=h,r[d]=n,o=d):(r[o]=f,r[s]=n,o=s);else if(h!==void 0&&0>xb(h,n))r[o]=h,r[d]=n,o=d;else break e}}return t}return null}function xb(r,t){var n=r.sortIndex-t.sortIndex;return n!==0?n:r.id-t.id}var xs=[],df=[],uY=1,iu=null,Na=3,_b=!1,Yc=!1,Uv=!1;function EC(r){for(var t=Iu(df);t!==null;){if(t.callback===null)wb(df);else if(t.startTime<=r)wb(df),t.sortIndex=t.expirationTime,bC(xs,t);else break;t=Iu(df)}}function xC(r){if(Uv=!1,EC(r),!Yc)if(Iu(xs)!==null)Yc=!0,zd(AC);else{var t=Iu(df);t!==null&&jv(xC,t.startTime-r)}}function AC(r,t){Yc=!1,Uv&&(Uv=!1,Ab()),_b=!0;var n=Na;try{for(EC(t),iu=Iu(xs);iu!==null&&(!(iu.expirationTime>t)||r&&!In.unstable_shouldYield());){var o=iu.callback;if(typeof o=="function"){iu.callback=null,Na=iu.priorityLevel;var i=o(iu.expirationTime<=t);t=In.unstable_now(),typeof i=="function"?iu.callback=i:iu===Iu(xs)&&wb(xs),EC(t)}else wb(xs);iu=Iu(xs)}if(iu!==null)var s=!0;else{var f=Iu(df);f!==null&&jv(xC,f.startTime-t),s=!1}return s}finally{iu=null,Na=n,_b=!1}}var sY=gC;In.unstable_IdlePriority=5;In.unstable_ImmediatePriority=1;In.unstable_LowPriority=4;In.unstable_NormalPriority=3;In.unstable_Profiling=null;In.unstable_UserBlockingPriority=2;In.unstable_cancelCallback=function(r){r.callback=null};In.unstable_continueExecution=function(){Yc||_b||(Yc=!0,zd(AC))};In.unstable_getCurrentPriorityLevel=function(){return Na};In.unstable_getFirstCallbackNode=function(){return Iu(xs)};In.unstable_next=function(r){switch(Na){case 1:case 2:case 3:var t=3;break;default:t=Na}var n=Na;Na=t;try{return r()}finally{Na=n}};In.unstable_pauseExecution=function(){};In.unstable_requestPaint=sY;In.unstable_runWithPriority=function(r,t){switch(r){case 1:case 2:case 3:case 4:case 5:break;default:r=3}var n=Na;Na=r;try{return t()}finally{Na=n}};In.unstable_scheduleCallback=function(r,t,n){var o=In.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0o?(r.sortIndex=n,bC(df,r),Iu(xs)===null&&r===Iu(df)&&(Uv?Ab():Uv=!0,jv(xC,n-o))):(r.sortIndex=i,bC(xs,r),Yc||_b||(Yc=!0,zd(AC))),r};In.unstable_wrapCallback=function(r){var t=Na;return function(){var n=Na;Na=t;try{return r.apply(this,arguments)}finally{Na=n}}}});var Q3=se(An=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=!1,t=!1,n,o,i,s,f=typeof performance=="object"&&typeof performance.now=="function";if(f){var d=performance;An.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();An.unstable_now=function(){return h.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var E=null,A=null,S=function(){if(E!==null)try{var Ct=An.unstable_now(),ht=!0;E(ht,Ct),E=null}catch(wr){throw setTimeout(S,0),wr}};n=function(Ct){E!==null?setTimeout(n,0,Ct):(E=Ct,setTimeout(S,0))},o=function(Ct,ht){A=setTimeout(Ct,ht)},i=function(){clearTimeout(A)},An.unstable_shouldYield=function(){return!1},s=An.unstable_forceFrameRate=function(){}}else{var b=window.setTimeout,F=window.clearTimeout;if(typeof console<"u"){var I=window.requestAnimationFrame,w=window.cancelAnimationFrame;typeof I!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof w!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var T=!1,O=null,k=-1,x=5,H=0;An.unstable_shouldYield=function(){return An.unstable_now()>=H},s=function(){},An.unstable_forceFrameRate=function(Ct){if(Ct<0||Ct>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ct>0?x=Math.floor(1e3/Ct):x=5};var oe=function(){if(O!==null){var Ct=An.unstable_now();H=Ct+x;var ht=!0;try{var wr=O(ht,Ct);wr?Re.postMessage(null):(T=!1,O=null)}catch(cr){throw Re.postMessage(null),cr}}else T=!1},xe=new MessageChannel,Re=xe.port2;xe.port1.onmessage=oe,n=function(Ct){O=Ct,T||(T=!0,Re.postMessage(null))},o=function(Ct,ht){k=b(function(){Ct(An.unstable_now())},ht)},i=function(){F(k),k=-1}}function ce(Ct,ht){var wr=Ct.length;Ct.push(ht),le(Ct,ht,wr)}function Ie(Ct){var ht=Ct[0];return ht===void 0?null:ht}function ut(Ct){var ht=Ct[0];if(ht!==void 0){var wr=Ct.pop();return wr!==ht&&(Ct[0]=wr,V(Ct,wr,0)),ht}else return null}function le(Ct,ht,wr){for(var cr=wr;;){var Hr=cr-1>>>1,_n=Ct[Hr];if(_n!==void 0&&$(_n,ht)>0)Ct[Hr]=ht,Ct[cr]=_n,cr=Hr;else return}}function V(Ct,ht,wr){for(var cr=wr,Hr=Ct.length;crwr&&(!Ct||An.unstable_shouldYield()));){var cr=ar.callback;if(typeof cr=="function"){ar.callback=null,Jt=ar.priorityLevel;var Hr=ar.expirationTime<=wr,_n=cr(Hr);wr=An.unstable_now(),typeof _n=="function"?ar.callback=_n:ar===Ie(qt)&&ut(qt),Ln(wr)}else ut(qt);ar=Ie(qt)}if(ar!==null)return!0;var Kr=Ie(Cr);return Kr!==null&&o(Qr,Kr.startTime-wr),!1}function sn(Ct,ht){switch(Ct){case ne:case ke:case Oe:case Qe:case qe:break;default:Ct=Oe}var wr=Jt;Jt=Ct;try{return ht()}finally{Jt=wr}}function Xr(Ct){var ht;switch(Jt){case ne:case ke:case Oe:ht=Oe;break;default:ht=Jt;break}var wr=Jt;Jt=ht;try{return Ct()}finally{Jt=wr}}function U(Ct){var ht=Jt;return function(){var wr=Jt;Jt=ht;try{return Ct.apply(this,arguments)}finally{Jt=wr}}}function vn(Ct,ht,wr){var cr=An.unstable_now(),Hr;if(typeof wr=="object"&&wr!==null){var _n=wr.delay;typeof _n=="number"&&_n>0?Hr=cr+_n:Hr=cr}else Hr=cr;var Kr;switch(Ct){case ne:Kr=Dt;break;case ke:Kr=Lt;break;case qe:Kr=Wt;break;case Qe:Kr=Vt;break;case Oe:default:Kr=Mt;break}var wi=Hr+Kr,Bn={id:ci++,callback:ht,priorityLevel:Ct,startTime:Hr,expirationTime:wi,sortIndex:-1};return Hr>cr?(Bn.sortIndex=Hr,ce(Cr,Bn),Ie(qt)===null&&Bn===Ie(Cr)&&(tr?i():tr=!0,o(Qr,Hr-cr))):(Bn.sortIndex=wi,ce(qt,Bn),!zr&&!It&&(zr=!0,n(Ci))),Bn}function er(){}function Nn(){!zr&&!It&&(zr=!0,n(Ci))}function Ca(){return Ie(qt)}function Yr(Ct){Ct.callback=null}function Ir(){return Jt}var $i=s,Ta=null;An.unstable_IdlePriority=qe,An.unstable_ImmediatePriority=ne,An.unstable_LowPriority=Qe,An.unstable_NormalPriority=Oe,An.unstable_Profiling=Ta,An.unstable_UserBlockingPriority=ke,An.unstable_cancelCallback=Yr,An.unstable_continueExecution=Nn,An.unstable_getCurrentPriorityLevel=Ir,An.unstable_getFirstCallbackNode=Ca,An.unstable_next=Xr,An.unstable_pauseExecution=er,An.unstable_requestPaint=$i,An.unstable_runWithPriority=sn,An.unstable_scheduleCallback=vn,An.unstable_wrapCallback=U}()});var _C=se((xle,wC)=>{"use strict";R();W.default.env.NODE_ENV==="production"?wC.exports=Y3():wC.exports=Q3()});var LI=se(fu=>{"use strict";R();var yE=nu(),Ai=Md(),da=_C();function Ot(r){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+r,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,X3=Object.prototype.hasOwnProperty,K3={},J3={};function fY(r){return X3.call(J3,r)?!0:X3.call(K3,r)?!1:lY.test(r)?J3[r]=!0:(K3[r]=!0,!1)}function cY(r,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function pY(r,t,n,o){if(t===null||typeof t>"u"||cY(r,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ka(r,t,n,o,i,s,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=r,this.type=t,this.sanitizeURL=s,this.removeEmptyString=f}var _a={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){_a[r]=new Ka(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var t=r[0];_a[t]=new Ka(t,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){_a[r]=new Ka(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_a[r]=new Ka(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){_a[r]=new Ka(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){_a[r]=new Ka(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){_a[r]=new Ka(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){_a[r]=new Ka(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){_a[r]=new Ka(r,5,!1,r.toLowerCase(),null,!1,!1)});var P2=/[\-:]([a-z])/g;function I2(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var t=r.replace(P2,I2);_a[t]=new Ka(t,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){_a[r]=new Ka(r,1,!1,r.toLowerCase(),null,!1,!1)});_a.xlinkHref=new Ka("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){_a[r]=new Ka(r,1,!1,r.toLowerCase(),null,!0,!0)});function L2(r,t,n,o){var i=_a.hasOwnProperty(t)?_a[t]:null,s=i!==null?i.type===0:o?!1:!(!(2d||i[f]!==s[d])return` -`+i[f].replace(" at new "," at ");while(1<=f&&0<=d);break}}}finally{CC=!1,Error.prepareStackTrace=n}return(r=r?r.displayName||r.name:"")?n0(r):""}function pY(r){switch(r.tag){case 5:return n0(r.type);case 16:return n0("Lazy");case 13:return n0("Suspense");case 19:return n0("SuspenseList");case 0:case 2:case 15:return r=Cb(r.type,!1),r;case 11:return r=Cb(r.type.render,!1),r;case 22:return r=Cb(r.type._render,!1),r;case 1:return r=Cb(r.type,!0),r;default:return""}}function eh(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case vf:return"Fragment";case Xc:return"Portal";case u0:return"Profiler";case N2:return"StrictMode";case s0:return"Suspense";case Qb:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case $2:return(r.displayName||"Context")+".Consumer";case B2:return(r._context.displayName||"Context")+".Provider";case bE:var t=r.render;return t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case EE:return eh(r.type);case j2:return eh(r._render);case M2:t=r._payload,r=r._init;try{return eh(r(t))}catch{}}return null}function Rf(r){switch(typeof r){case"boolean":case"number":case"object":case"string":case"undefined":return r;default:return""}}function p6(r){var t=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dY(r){var t=p6(r)?"checked":"value",n=Object.getOwnPropertyDescriptor(r.constructor.prototype,t),o=""+r[t];if(!r.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(r,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){o=""+f,s.call(this,f)}}),Object.defineProperty(r,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(f){o=""+f},stopTracking:function(){r._valueTracker=null,delete r[t]}}}}function Tb(r){r._valueTracker||(r._valueTracker=dY(r))}function d6(r){if(!r)return!1;var t=r._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return r&&(o=p6(r)?r.checked?"true":"false":r.value),r=o,r!==n?(t.setValue(r),!0):!1}function Xb(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function YC(r,t){var n=t.checked;return Ai({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??r._wrapperState.initialChecked})}function r4(r,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Rf(t.value!=null?t.value:n),r._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function h6(r,t){t=t.checked,t!=null&&L2(r,"checked",t,!1)}function QC(r,t){h6(r,t);var n=Rf(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&r.value===""||r.value!=n)&&(r.value=""+n):r.value!==""+n&&(r.value=""+n);else if(o==="submit"||o==="reset"){r.removeAttribute("value");return}t.hasOwnProperty("value")?XC(r,t.type,n):t.hasOwnProperty("defaultValue")&&XC(r,t.type,Rf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(r.defaultChecked=!!t.defaultChecked)}function n4(r,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+r._wrapperState.initialValue,n||t===r.value||(r.value=t),r.defaultValue=t}n=r.name,n!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,n!==""&&(r.name=n)}function XC(r,t,n){(t!=="number"||Xb(r.ownerDocument)!==r)&&(n==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+n&&(r.defaultValue=""+n))}function hY(r){var t="";return gE.Children.forEach(r,function(n){n!=null&&(t+=n)}),t}function KC(r,t){return r=Ai({children:void 0},t),(t=hY(t.children))&&(r.children=t),r}function th(r,t,n,o){if(r=r.options,t){t={};for(var i=0;i=n.length))throw Error(Ot(93));n=n[0]}t=n}t==null&&(t=""),n=t}r._wrapperState={initialValue:Rf(n)}}function m6(r,t){var n=Rf(t.value),o=Rf(t.defaultValue);n!=null&&(n=""+n,n!==r.value&&(r.value=n),t.defaultValue==null&&r.defaultValue!==n&&(r.defaultValue=n)),o!=null&&(r.defaultValue=""+o)}function a4(r){var t=r.textContent;t===r._wrapperState.initialValue&&t!==""&&t!==null&&(r.value=t)}var ZC={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function v6(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function e2(r,t){return r==null||r==="http://www.w3.org/1999/xhtml"?v6(t):r==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Rb,y6=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,i){MSApp.execUnsafeLocalFunction(function(){return r(t,n,o,i)})}:r}(function(r,t){if(r.namespaceURI!==ZC.svg||"innerHTML"in r)r.innerHTML=t;else{for(Rb=Rb||document.createElement("div"),Rb.innerHTML=""+t.valueOf().toString()+"",t=Rb.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;t.firstChild;)r.appendChild(t.firstChild)}});function E0(r,t){if(t){var n=r.firstChild;if(n&&n===r.lastChild&&n.nodeType===3){n.nodeValue=t;return}}r.textContent=t}var l0={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mY=["Webkit","ms","Moz","O"];Object.keys(l0).forEach(function(r){mY.forEach(function(t){t=t+r.charAt(0).toUpperCase()+r.substring(1),l0[t]=l0[r]})});function g6(r,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||l0.hasOwnProperty(r)&&l0[r]?(""+t).trim():t+"px"}function b6(r,t){r=r.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=g6(n,t[n],o);n==="float"&&(n="cssFloat"),o?r.setProperty(n,i):r[n]=i}}var vY=Ai({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function t2(r,t){if(t){if(vY[r]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ot(137,r));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ot(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Ot(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ot(62))}}function r2(r,t){if(r.indexOf("-")===-1)return typeof t.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function z2(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var n2=null,rh=null,nh=null;function o4(r){if(r=I0(r)){if(typeof n2!="function")throw Error(Ot(280));var t=r.stateNode;t&&(t=CE(t),n2(r.stateNode,r.type,t))}}function E6(r){rh?nh?nh.push(r):nh=[r]:rh=r}function x6(){if(rh){var r=rh,t=nh;if(nh=rh=null,o4(r),t)for(r=0;ro?0:1<n;n++)t.push(r);return t}function AE(r,t,n){r.pendingLanes|=t;var o=t-1;r.suspendedLanes&=o,r.pingedLanes&=o,r=r.eventTimes,t=31-Of(t),r[t]=n}var Of=Math.clz32?Math.clz32:FY,kY=Math.log,DY=Math.LN2;function FY(r){return r===0?32:31-(kY(r)/DY|0)|0}var PY=da.unstable_UserBlockingPriority,IY=da.unstable_runWithPriority,jb=!0;function LY(r,t,n,o){Kc||q2();var i=X2,s=Kc;Kc=!0;try{A6(i,r,t,n,o)}finally{(Kc=s)||G2()}}function NY(r,t,n,o){IY(PY,X2.bind(null,r,t,n,o))}function X2(r,t,n,o){if(jb){var i;if((i=(t&4)===0)&&0=c0),v4=String.fromCharCode(32),y4=!1;function M6(r,t){switch(r){case"keyup":return aQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j6(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Qd=!1;function uQ(r,t){switch(r){case"compositionend":return j6(t);case"keypress":return t.which!==32?null:(y4=!0,v4);case"textInput":return r=t.data,r===v4&&y4?null:r;default:return null}}function sQ(r,t){if(Qd)return r==="compositionend"||!tT&&M6(r,t)?(r=B6(),Ub=J2=yf=null,Qd=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-r};r=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=E4(n)}}function H6(r,t){return r&&t?r===t?!0:r&&r.nodeType===3?!1:t&&t.nodeType===3?H6(r,t.parentNode):"contains"in r?r.contains(t):r.compareDocumentPosition?!!(r.compareDocumentPosition(t)&16):!1:!1}function A4(){for(var r=window,t=Xb();t instanceof r.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)r=t.contentWindow;else break;t=Xb(r.document)}return t}function s2(r){var t=r&&r.nodeName&&r.nodeName.toLowerCase();return t&&(t==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||t==="textarea"||r.contentEditable==="true")}var gQ=vl&&"documentMode"in document&&11>=document.documentMode,Xd=null,l2=null,d0=null,f2=!1;function w4(r,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;f2||Xd==null||Xd!==Xb(o)||(o=Xd,"selectionStart"in o&&s2(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),d0&&C0(d0,o)||(d0=o,o=eE(l2,"onSelect"),0Jd||(r.current=p2[Jd],p2[Jd]=null,Jd--)}function Li(r,t){Jd++,p2[Jd]=r.current,r.current=t}var kf={},ja=Pf(kf),co=Pf(!1),rp=kf;function ch(r,t){var n=r.type.contextTypes;if(!n)return kf;var o=r.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return o&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=i),i}function po(r){return r=r.childContextTypes,r!=null}function nE(){fi(co),fi(ja)}function D4(r,t,n){if(ja.current!==kf)throw Error(Ot(168));Li(ja,t),Li(co,n)}function J6(r,t,n){var o=r.stateNode;if(r=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in r))throw Error(Ot(108,eh(t)||"Unknown",i));return Ai({},n,o)}function zb(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||kf,rp=ja.current,Li(ja,r),Li(co,co.current),!0}function F4(r,t,n){var o=r.stateNode;if(!o)throw Error(Ot(169));n?(r=J6(r,t,rp),o.__reactInternalMemoizedMergedChildContext=r,fi(co),fi(ja),Li(ja,r)):fi(co),Li(co,n)}var nT=null,tp=null,xQ=da.unstable_runWithPriority,iT=da.unstable_scheduleCallback,d2=da.unstable_cancelCallback,AQ=da.unstable_shouldYield,P4=da.unstable_requestPaint,h2=da.unstable_now,wQ=da.unstable_getCurrentPriorityLevel,TE=da.unstable_ImmediatePriority,Z6=da.unstable_UserBlockingPriority,eI=da.unstable_NormalPriority,tI=da.unstable_LowPriority,rI=da.unstable_IdlePriority,$C={},_Q=P4!==void 0?P4:function(){},cl=null,Hb=null,MC=!1,I4=h2(),$a=1e4>I4?h2:function(){return h2()-I4};function ph(){switch(wQ()){case TE:return 99;case Z6:return 98;case eI:return 97;case tI:return 96;case rI:return 95;default:throw Error(Ot(332))}}function nI(r){switch(r){case 99:return TE;case 98:return Z6;case 97:return eI;case 96:return tI;case 95:return rI;default:throw Error(Ot(332))}}function np(r,t){return r=nI(r),xQ(r,t)}function R0(r,t,n){return r=nI(r),iT(r,t,n)}function Ts(){if(Hb!==null){var r=Hb;Hb=null,d2(r)}iI()}function iI(){if(!MC&&cl!==null){MC=!0;var r=0;try{var t=cl;np(99,function(){for(;rxe?(Re=oe,oe=null):Re=oe.sibling;var ce=S(w,oe,O[xe],k);if(ce===null){oe===null&&(oe=Re);break}r&&oe&&ce.alternate===null&&t(w,oe),T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce,oe=Re}if(xe===O.length)return n(w,oe),x;if(oe===null){for(;xexe?(Re=oe,oe=null):Re=oe.sibling;var Ie=S(w,oe,ce.value,k);if(Ie===null){oe===null&&(oe=Re);break}r&&oe&&Ie.alternate===null&&t(w,oe),T=s(Ie,T,xe),H===null?x=Ie:H.sibling=Ie,H=Ie,oe=Re}if(ce.done)return n(w,oe),x;if(oe===null){for(;!ce.done;xe++,ce=O.next())ce=A(w,ce.value,k),ce!==null&&(T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce);return x}for(oe=o(w,oe);!ce.done;xe++,ce=O.next())ce=b(oe,w,xe,ce.value,k),ce!==null&&(r&&ce.alternate!==null&&oe.delete(ce.key===null?xe:ce.key),T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce);return r&&oe.forEach(function(ut){return t(w,ut)}),x}return function(w,T,O,k){var x=typeof O=="object"&&O!==null&&O.type===vf&&O.key===null;x&&(O=O.props.children);var H=typeof O=="object"&&O!==null;if(H)switch(O.$$typeof){case r0:e:{for(H=O.key,x=T;x!==null;){if(x.key===H){switch(x.tag){case 7:if(O.type===vf){n(w,x.sibling),T=i(x,O.props.children),T.return=w,w=T;break e}break;default:if(x.elementType===O.type){n(w,x.sibling),T=i(x,O.props),T.ref=Qv(w,x,O),T.return=w,w=T;break e}}n(w,x);break}else t(w,x);x=x.sibling}O.type===vf?(T=lh(O.props.children,w.mode,k,O.key),T.return=w,w=T):(k=Yb(O.type,O.key,O.props,null,w.mode,k),k.ref=Qv(w,T,O),k.return=w,w=k)}return f(w);case Xc:e:{for(x=O.key;T!==null;){if(T.key===x)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){n(w,T.sibling),T=i(T,O.children||[]),T.return=w,w=T;break e}else{n(w,T);break}else t(w,T);T=T.sibling}T=qC(O,w.mode,k),T.return=w,w=T}return f(w)}if(typeof O=="string"||typeof O=="number")return O=""+O,T!==null&&T.tag===6?(n(w,T.sibling),T=i(T,O),T.return=w,w=T):(n(w,T),T=HC(O,w.mode,k),T.return=w,w=T),f(w);if(Ib(O))return F(w,T,O,k);if(Hv(O))return I(w,T,O,k);if(H&&Lb(w,O),typeof O>"u"&&!x)switch(w.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Ot(152,eh(w.type)||"Component"))}return n(w,T)}}var sE=lI(!0),fI=lI(!1),L0={},Ss=Pf(L0),k0=Pf(L0),D0=Pf(L0);function Zc(r){if(r===L0)throw Error(Ot(174));return r}function v2(r,t){switch(Li(D0,t),Li(k0,r),Li(Ss,L0),r=t.nodeType,r){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e2(null,"");break;default:r=r===8?t.parentNode:t,t=r.namespaceURI||null,r=r.tagName,t=e2(t,r)}fi(Ss),Li(Ss,t)}function dh(){fi(Ss),fi(k0),fi(D0)}function M4(r){Zc(D0.current);var t=Zc(Ss.current),n=e2(t,r.type);t!==n&&(Li(k0,r),Li(Ss,n))}function sT(r){k0.current===r&&(fi(Ss),fi(k0))}var Ii=Pf(0);function lE(r){for(var t=r;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break;for(;t.sibling===null;){if(t.return===null||t.return===r)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dl=null,bf=null,Cs=!1;function cI(r,t){var n=ou(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=r,n.flags=8,r.lastEffect!==null?(r.lastEffect.nextEffect=n,r.lastEffect=n):r.firstEffect=r.lastEffect=n}function j4(r,t){switch(r.tag){case 5:var n=r.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(r.stateNode=t,!0):!1;case 6:return t=r.pendingProps===""||t.nodeType!==3?null:t,t!==null?(r.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function y2(r){if(Cs){var t=bf;if(t){var n=t;if(!j4(r,t)){if(t=ih(n.nextSibling),!t||!j4(r,t)){r.flags=r.flags&-1025|2,Cs=!1,dl=r;return}cI(dl,n)}dl=r,bf=ih(t.firstChild)}else r.flags=r.flags&-1025|2,Cs=!1,dl=r}}function U4(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dl=r}function Nb(r){if(r!==dl)return!1;if(!Cs)return U4(r),Cs=!0,!1;var t=r.type;if(r.tag!==5||t!=="head"&&t!=="body"&&!c2(t,r.memoizedProps))for(t=bf;t;)cI(r,t),t=ih(t.nextSibling);if(U4(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(Ot(317));e:{for(r=r.nextSibling,t=0;r;){if(r.nodeType===8){var n=r.data;if(n==="/$"){if(t===0){bf=ih(r.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}r=r.nextSibling}bf=null}}else bf=dl?ih(r.stateNode.nextSibling):null;return!0}function jC(){bf=dl=null,Cs=!1}var oh=[];function lT(){for(var r=0;rs))throw Error(Ot(301));s+=1,Aa=Ba=null,t.updateQueue=null,h0.current=OQ,r=n(o,i)}while(m0)}if(h0.current=hE,t=Ba!==null&&Ba.next!==null,F0=0,Aa=Ba=Gi=null,fE=!1,t)throw Error(Ot(300));return r}function ep(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Aa===null?Gi.memoizedState=Aa=r:Aa=Aa.next=r,Aa}function sp(){if(Ba===null){var r=Gi.alternate;r=r!==null?r.memoizedState:null}else r=Ba.next;var t=Aa===null?Gi.memoizedState:Aa.next;if(t!==null)Aa=t,Ba=r;else{if(r===null)throw Error(Ot(310));Ba=r,r={memoizedState:Ba.memoizedState,baseState:Ba.baseState,baseQueue:Ba.baseQueue,queue:Ba.queue,next:null},Aa===null?Gi.memoizedState=Aa=r:Aa=Aa.next=r}return Aa}function ws(r,t){return typeof t=="function"?t(r):t}function Xv(r){var t=sp(),n=t.queue;if(n===null)throw Error(Ot(311));n.lastRenderedReducer=r;var o=Ba,i=o.baseQueue,s=n.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}o.baseQueue=i=s,n.pending=null}if(i!==null){i=i.next,o=o.baseState;var d=f=s=null,h=i;do{var v=h.lane;if((F0&v)===v)d!==null&&(d=d.next={lane:0,action:h.action,eagerReducer:h.eagerReducer,eagerState:h.eagerState,next:null}),o=h.eagerReducer===r?h.eagerState:r(o,h.action);else{var E={lane:v,action:h.action,eagerReducer:h.eagerReducer,eagerState:h.eagerState,next:null};d===null?(f=d=E,s=o):d=d.next=E,Gi.lanes|=v,N0|=v}h=h.next}while(h!==null&&h!==i);d===null?s=o:d.next=f,au(o,t.memoizedState)||(Nu=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=d,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Kv(r){var t=sp(),n=t.queue;if(n===null)throw Error(Ot(311));n.lastRenderedReducer=r;var o=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do s=r(s,f.action),f=f.next;while(f!==i);au(s,t.memoizedState)||(Nu=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function V4(r,t,n){var o=t._getVersion;o=o(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?r=i===o:(r=r.mutableReadLanes,(r=(F0&r)===r)&&(t._workInProgressVersionPrimary=o,oh.push(t))),r)return n(t._source);throw oh.push(t),Error(Ot(350))}function pI(r,t,n,o){var i=Xa;if(i===null)throw Error(Ot(349));var s=t._getVersion,f=s(t._source),d=h0.current,h=d.useState(function(){return V4(i,t,n)}),v=h[1],E=h[0];h=Aa;var A=r.memoizedState,S=A.refs,b=S.getSnapshot,F=A.source;A=A.subscribe;var I=Gi;return r.memoizedState={refs:S,source:t,subscribe:o},d.useEffect(function(){S.getSnapshot=n,S.setSnapshot=v;var w=s(t._source);if(!au(f,w)){w=n(t._source),au(E,w)||(v(w),w=Sf(I),i.mutableReadLanes|=w&i.pendingLanes),w=i.mutableReadLanes,i.entangledLanes|=w;for(var T=i.entanglements,O=w;0n?98:n,function(){r(!0)}),np(97<\/script>",r=r.removeChild(r.firstChild)):typeof o.is=="string"?r=f.createElement(n,{is:o.is}):(r=f.createElement(n),n==="select"&&(f=r,o.multiple?f.multiple=!0:o.size&&(f.size=o.size))):r=f.createElementNS(r,n),r[gf]=t,r[rE]=o,xI(r,t,!1,!1),t.stateNode=r,f=r2(n,o),n){case"dialog":li("cancel",r),li("close",r),i=o;break;case"iframe":case"object":case"embed":li("load",r),i=o;break;case"video":case"audio":for(i=0;iT2&&(t.flags|=64,s=!0,Zv(o,!1),t.lanes=33554432)}else{if(!s)if(r=lE(f),r!==null){if(t.flags|=64,s=!0,n=r.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zv(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Cs)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*$a()-o.renderingStartTime>T2&&n!==1073741824&&(t.flags|=64,s=!0,Zv(o,!1),t.lanes=33554432);o.isBackwards?(f.sibling=t.child,t.child=f):(n=o.last,n!==null?n.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=$a(),n.sibling=null,t=Ii.current,Li(Ii,s?t&1|2:t&1),n):null;case 23:case 24:return bT(),r!==null&&r.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Ot(156,t.tag))}function FQ(r){switch(r.tag){case 1:po(r.type)&&nE();var t=r.flags;return t&4096?(r.flags=t&-4097|64,r):null;case 3:if(dh(),fi(co),fi(ja),lT(),t=r.flags,(t&64)!==0)throw Error(Ot(285));return r.flags=t&-4097|64,r;case 5:return sT(r),null;case 13:return fi(Ii),t=r.flags,t&4096?(r.flags=t&-4097|64,r):null;case 19:return fi(Ii),null;case 4:return dh(),null;case 10:return oT(r),null;case 23:case 24:return bT(),null;default:return null}}function mT(r,t){try{var n="",o=t;do n+=pY(o),o=o.return;while(o);var i=n}catch(s){i=` +`+i[f].replace(" at new "," at ");while(1<=f&&0<=d);break}}}finally{CC=!1,Error.prepareStackTrace=n}return(r=r?r.displayName||r.name:"")?t0(r):""}function dY(r){switch(r.tag){case 5:return t0(r.type);case 16:return t0("Lazy");case 13:return t0("Suspense");case 19:return t0("SuspenseList");case 0:case 2:case 15:return r=Sb(r.type,!1),r;case 11:return r=Sb(r.type.render,!1),r;case 22:return r=Sb(r.type._render,!1),r;case 1:return r=Sb(r.type,!0),r;default:return""}}function eh(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case mf:return"Fragment";case Xc:return"Portal";case a0:return"Profiler";case N2:return"StrictMode";case o0:return"Suspense";case Yb:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case $2:return(r.displayName||"Context")+".Consumer";case B2:return(r._context.displayName||"Context")+".Provider";case gE:var t=r.render;return t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case bE:return eh(r.type);case j2:return eh(r._render);case M2:t=r._payload,r=r._init;try{return eh(r(t))}catch{}}return null}function Tf(r){switch(typeof r){case"boolean":case"number":case"object":case"string":case"undefined":return r;default:return""}}function f6(r){var t=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hY(r){var t=f6(r)?"checked":"value",n=Object.getOwnPropertyDescriptor(r.constructor.prototype,t),o=""+r[t];if(!r.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(r,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){o=""+f,s.call(this,f)}}),Object.defineProperty(r,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(f){o=""+f},stopTracking:function(){r._valueTracker=null,delete r[t]}}}}function Cb(r){r._valueTracker||(r._valueTracker=hY(r))}function c6(r){if(!r)return!1;var t=r._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return r&&(o=f6(r)?r.checked?"true":"false":r.value),r=o,r!==n?(t.setValue(r),!0):!1}function Qb(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function YC(r,t){var n=t.checked;return Ai({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??r._wrapperState.initialChecked})}function e4(r,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Tf(t.value!=null?t.value:n),r._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function p6(r,t){t=t.checked,t!=null&&L2(r,"checked",t,!1)}function QC(r,t){p6(r,t);var n=Tf(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&r.value===""||r.value!=n)&&(r.value=""+n):r.value!==""+n&&(r.value=""+n);else if(o==="submit"||o==="reset"){r.removeAttribute("value");return}t.hasOwnProperty("value")?XC(r,t.type,n):t.hasOwnProperty("defaultValue")&&XC(r,t.type,Tf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(r.defaultChecked=!!t.defaultChecked)}function t4(r,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+r._wrapperState.initialValue,n||t===r.value||(r.value=t),r.defaultValue=t}n=r.name,n!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,n!==""&&(r.name=n)}function XC(r,t,n){(t!=="number"||Qb(r.ownerDocument)!==r)&&(n==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+n&&(r.defaultValue=""+n))}function mY(r){var t="";return yE.Children.forEach(r,function(n){n!=null&&(t+=n)}),t}function KC(r,t){return r=Ai({children:void 0},t),(t=mY(t.children))&&(r.children=t),r}function th(r,t,n,o){if(r=r.options,t){t={};for(var i=0;i=n.length))throw Error(Ot(93));n=n[0]}t=n}t==null&&(t=""),n=t}r._wrapperState={initialValue:Tf(n)}}function d6(r,t){var n=Tf(t.value),o=Tf(t.defaultValue);n!=null&&(n=""+n,n!==r.value&&(r.value=n),t.defaultValue==null&&r.defaultValue!==n&&(r.defaultValue=n)),o!=null&&(r.defaultValue=""+o)}function n4(r){var t=r.textContent;t===r._wrapperState.initialValue&&t!==""&&t!==null&&(r.value=t)}var ZC={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function h6(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function e2(r,t){return r==null||r==="http://www.w3.org/1999/xhtml"?h6(t):r==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Tb,m6=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,i){MSApp.execUnsafeLocalFunction(function(){return r(t,n,o,i)})}:r}(function(r,t){if(r.namespaceURI!==ZC.svg||"innerHTML"in r)r.innerHTML=t;else{for(Tb=Tb||document.createElement("div"),Tb.innerHTML=""+t.valueOf().toString()+"",t=Tb.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;t.firstChild;)r.appendChild(t.firstChild)}});function g0(r,t){if(t){var n=r.firstChild;if(n&&n===r.lastChild&&n.nodeType===3){n.nodeValue=t;return}}r.textContent=t}var u0={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vY=["Webkit","ms","Moz","O"];Object.keys(u0).forEach(function(r){vY.forEach(function(t){t=t+r.charAt(0).toUpperCase()+r.substring(1),u0[t]=u0[r]})});function v6(r,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||u0.hasOwnProperty(r)&&u0[r]?(""+t).trim():t+"px"}function y6(r,t){r=r.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=v6(n,t[n],o);n==="float"&&(n="cssFloat"),o?r.setProperty(n,i):r[n]=i}}var yY=Ai({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function t2(r,t){if(t){if(yY[r]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ot(137,r));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ot(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Ot(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ot(62))}}function r2(r,t){if(r.indexOf("-")===-1)return typeof t.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function z2(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var n2=null,rh=null,nh=null;function i4(r){if(r=F0(r)){if(typeof n2!="function")throw Error(Ot(280));var t=r.stateNode;t&&(t=SE(t),n2(r.stateNode,r.type,t))}}function g6(r){rh?nh?nh.push(r):nh=[r]:rh=r}function b6(){if(rh){var r=rh,t=nh;if(nh=rh=null,i4(r),t)for(r=0;ro?0:1<n;n++)t.push(r);return t}function xE(r,t,n){r.pendingLanes|=t;var o=t-1;r.suspendedLanes&=o,r.pingedLanes&=o,r=r.eventTimes,t=31-Rf(t),r[t]=n}var Rf=Math.clz32?Math.clz32:PY,DY=Math.log,FY=Math.LN2;function PY(r){return r===0?32:31-(DY(r)/FY|0)|0}var IY=da.unstable_UserBlockingPriority,LY=da.unstable_runWithPriority,Mb=!0;function NY(r,t,n,o){Kc||q2();var i=X2,s=Kc;Kc=!0;try{E6(i,r,t,n,o)}finally{(Kc=s)||G2()}}function BY(r,t,n,o){LY(IY,X2.bind(null,r,t,n,o))}function X2(r,t,n,o){if(Mb){var i;if((i=(t&4)===0)&&0=l0),h4=String.fromCharCode(32),m4=!1;function B6(r,t){switch(r){case"keyup":return oQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $6(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Qd=!1;function sQ(r,t){switch(r){case"compositionend":return $6(t);case"keypress":return t.which!==32?null:(m4=!0,h4);case"textInput":return r=t.data,r===h4&&m4?null:r;default:return null}}function lQ(r,t){if(Qd)return r==="compositionend"||!tT&&B6(r,t)?(r=L6(),jb=J2=vf=null,Qd=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-r};r=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=g4(n)}}function V6(r,t){return r&&t?r===t?!0:r&&r.nodeType===3?!1:t&&t.nodeType===3?V6(r,t.parentNode):"contains"in r?r.contains(t):r.compareDocumentPosition?!!(r.compareDocumentPosition(t)&16):!1:!1}function E4(){for(var r=window,t=Qb();t instanceof r.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)r=t.contentWindow;else break;t=Qb(r.document)}return t}function s2(r){var t=r&&r.nodeName&&r.nodeName.toLowerCase();return t&&(t==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||t==="textarea"||r.contentEditable==="true")}var bQ=vl&&"documentMode"in document&&11>=document.documentMode,Xd=null,l2=null,c0=null,f2=!1;function x4(r,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;f2||Xd==null||Xd!==Qb(o)||(o=Xd,"selectionStart"in o&&s2(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),c0&&_0(c0,o)||(c0=o,o=Zb(l2,"onSelect"),0Jd||(r.current=p2[Jd],p2[Jd]=null,Jd--)}function Li(r,t){Jd++,p2[Jd]=r.current,r.current=t}var Of={},ja=Ff(Of),co=Ff(!1),rp=Of;function ch(r,t){var n=r.type.contextTypes;if(!n)return Of;var o=r.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return o&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=i),i}function po(r){return r=r.childContextTypes,r!=null}function rE(){fi(co),fi(ja)}function O4(r,t,n){if(ja.current!==Of)throw Error(Ot(168));Li(ja,t),Li(co,n)}function X6(r,t,n){var o=r.stateNode;if(r=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in r))throw Error(Ot(108,eh(t)||"Unknown",i));return Ai({},n,o)}function Vb(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Of,rp=ja.current,Li(ja,r),Li(co,co.current),!0}function k4(r,t,n){var o=r.stateNode;if(!o)throw Error(Ot(169));n?(r=X6(r,t,rp),o.__reactInternalMemoizedMergedChildContext=r,fi(co),fi(ja),Li(ja,r)):fi(co),Li(co,n)}var nT=null,tp=null,AQ=da.unstable_runWithPriority,iT=da.unstable_scheduleCallback,d2=da.unstable_cancelCallback,wQ=da.unstable_shouldYield,D4=da.unstable_requestPaint,h2=da.unstable_now,_Q=da.unstable_getCurrentPriorityLevel,CE=da.unstable_ImmediatePriority,K6=da.unstable_UserBlockingPriority,J6=da.unstable_NormalPriority,Z6=da.unstable_LowPriority,eI=da.unstable_IdlePriority,$C={},SQ=D4!==void 0?D4:function(){},cl=null,zb=null,MC=!1,F4=h2(),$a=1e4>F4?h2:function(){return h2()-F4};function ph(){switch(_Q()){case CE:return 99;case K6:return 98;case J6:return 97;case Z6:return 96;case eI:return 95;default:throw Error(Ot(332))}}function tI(r){switch(r){case 99:return CE;case 98:return K6;case 97:return J6;case 96:return Z6;case 95:return eI;default:throw Error(Ot(332))}}function np(r,t){return r=tI(r),AQ(r,t)}function C0(r,t,n){return r=tI(r),iT(r,t,n)}function Ts(){if(zb!==null){var r=zb;zb=null,d2(r)}rI()}function rI(){if(!MC&&cl!==null){MC=!0;var r=0;try{var t=cl;np(99,function(){for(;rxe?(Re=oe,oe=null):Re=oe.sibling;var ce=S(w,oe,O[xe],k);if(ce===null){oe===null&&(oe=Re);break}r&&oe&&ce.alternate===null&&t(w,oe),T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce,oe=Re}if(xe===O.length)return n(w,oe),x;if(oe===null){for(;xexe?(Re=oe,oe=null):Re=oe.sibling;var Ie=S(w,oe,ce.value,k);if(Ie===null){oe===null&&(oe=Re);break}r&&oe&&Ie.alternate===null&&t(w,oe),T=s(Ie,T,xe),H===null?x=Ie:H.sibling=Ie,H=Ie,oe=Re}if(ce.done)return n(w,oe),x;if(oe===null){for(;!ce.done;xe++,ce=O.next())ce=A(w,ce.value,k),ce!==null&&(T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce);return x}for(oe=o(w,oe);!ce.done;xe++,ce=O.next())ce=b(oe,w,xe,ce.value,k),ce!==null&&(r&&ce.alternate!==null&&oe.delete(ce.key===null?xe:ce.key),T=s(ce,T,xe),H===null?x=ce:H.sibling=ce,H=ce);return r&&oe.forEach(function(ut){return t(w,ut)}),x}return function(w,T,O,k){var x=typeof O=="object"&&O!==null&&O.type===mf&&O.key===null;x&&(O=O.props.children);var H=typeof O=="object"&&O!==null;if(H)switch(O.$$typeof){case e0:e:{for(H=O.key,x=T;x!==null;){if(x.key===H){switch(x.tag){case 7:if(O.type===mf){n(w,x.sibling),T=i(x,O.props.children),T.return=w,w=T;break e}break;default:if(x.elementType===O.type){n(w,x.sibling),T=i(x,O.props),T.ref=Wv(w,x,O),T.return=w,w=T;break e}}n(w,x);break}else t(w,x);x=x.sibling}O.type===mf?(T=lh(O.props.children,w.mode,k,O.key),T.return=w,w=T):(k=Wb(O.type,O.key,O.props,null,w.mode,k),k.ref=Wv(w,T,O),k.return=w,w=k)}return f(w);case Xc:e:{for(x=O.key;T!==null;){if(T.key===x)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){n(w,T.sibling),T=i(T,O.children||[]),T.return=w,w=T;break e}else{n(w,T);break}else t(w,T);T=T.sibling}T=qC(O,w.mode,k),T.return=w,w=T}return f(w)}if(typeof O=="string"||typeof O=="number")return O=""+O,T!==null&&T.tag===6?(n(w,T.sibling),T=i(T,O),T.return=w,w=T):(n(w,T),T=HC(O,w.mode,k),T.return=w,w=T),f(w);if(Pb(O))return F(w,T,O,k);if(Vv(O))return I(w,T,O,k);if(H&&Ib(w,O),typeof O>"u"&&!x)switch(w.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Ot(152,eh(w.type)||"Component"))}return n(w,T)}}var uE=uI(!0),sI=uI(!1),P0={},Ss=Ff(P0),R0=Ff(P0),O0=Ff(P0);function Zc(r){if(r===P0)throw Error(Ot(174));return r}function v2(r,t){switch(Li(O0,t),Li(R0,r),Li(Ss,P0),r=t.nodeType,r){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e2(null,"");break;default:r=r===8?t.parentNode:t,t=r.namespaceURI||null,r=r.tagName,t=e2(t,r)}fi(Ss),Li(Ss,t)}function dh(){fi(Ss),fi(R0),fi(O0)}function B4(r){Zc(O0.current);var t=Zc(Ss.current),n=e2(t,r.type);t!==n&&(Li(R0,r),Li(Ss,n))}function sT(r){R0.current===r&&(fi(Ss),fi(R0))}var Ii=Ff(0);function sE(r){for(var t=r;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break;for(;t.sibling===null;){if(t.return===null||t.return===r)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dl=null,gf=null,Cs=!1;function lI(r,t){var n=ou(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=r,n.flags=8,r.lastEffect!==null?(r.lastEffect.nextEffect=n,r.lastEffect=n):r.firstEffect=r.lastEffect=n}function $4(r,t){switch(r.tag){case 5:var n=r.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(r.stateNode=t,!0):!1;case 6:return t=r.pendingProps===""||t.nodeType!==3?null:t,t!==null?(r.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function y2(r){if(Cs){var t=gf;if(t){var n=t;if(!$4(r,t)){if(t=ih(n.nextSibling),!t||!$4(r,t)){r.flags=r.flags&-1025|2,Cs=!1,dl=r;return}lI(dl,n)}dl=r,gf=ih(t.firstChild)}else r.flags=r.flags&-1025|2,Cs=!1,dl=r}}function M4(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dl=r}function Lb(r){if(r!==dl)return!1;if(!Cs)return M4(r),Cs=!0,!1;var t=r.type;if(r.tag!==5||t!=="head"&&t!=="body"&&!c2(t,r.memoizedProps))for(t=gf;t;)lI(r,t),t=ih(t.nextSibling);if(M4(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(Ot(317));e:{for(r=r.nextSibling,t=0;r;){if(r.nodeType===8){var n=r.data;if(n==="/$"){if(t===0){gf=ih(r.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}r=r.nextSibling}gf=null}}else gf=dl?ih(r.stateNode.nextSibling):null;return!0}function jC(){gf=dl=null,Cs=!1}var oh=[];function lT(){for(var r=0;rs))throw Error(Ot(301));s+=1,Aa=Ba=null,t.updateQueue=null,p0.current=kQ,r=n(o,i)}while(d0)}if(p0.current=dE,t=Ba!==null&&Ba.next!==null,k0=0,Aa=Ba=Gi=null,lE=!1,t)throw Error(Ot(300));return r}function ep(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Aa===null?Gi.memoizedState=Aa=r:Aa=Aa.next=r,Aa}function sp(){if(Ba===null){var r=Gi.alternate;r=r!==null?r.memoizedState:null}else r=Ba.next;var t=Aa===null?Gi.memoizedState:Aa.next;if(t!==null)Aa=t,Ba=r;else{if(r===null)throw Error(Ot(310));Ba=r,r={memoizedState:Ba.memoizedState,baseState:Ba.baseState,baseQueue:Ba.baseQueue,queue:Ba.queue,next:null},Aa===null?Gi.memoizedState=Aa=r:Aa=Aa.next=r}return Aa}function ws(r,t){return typeof t=="function"?t(r):t}function Yv(r){var t=sp(),n=t.queue;if(n===null)throw Error(Ot(311));n.lastRenderedReducer=r;var o=Ba,i=o.baseQueue,s=n.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}o.baseQueue=i=s,n.pending=null}if(i!==null){i=i.next,o=o.baseState;var d=f=s=null,h=i;do{var v=h.lane;if((k0&v)===v)d!==null&&(d=d.next={lane:0,action:h.action,eagerReducer:h.eagerReducer,eagerState:h.eagerState,next:null}),o=h.eagerReducer===r?h.eagerState:r(o,h.action);else{var E={lane:v,action:h.action,eagerReducer:h.eagerReducer,eagerState:h.eagerState,next:null};d===null?(f=d=E,s=o):d=d.next=E,Gi.lanes|=v,I0|=v}h=h.next}while(h!==null&&h!==i);d===null?s=o:d.next=f,au(o,t.memoizedState)||(Nu=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=d,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Qv(r){var t=sp(),n=t.queue;if(n===null)throw Error(Ot(311));n.lastRenderedReducer=r;var o=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do s=r(s,f.action),f=f.next;while(f!==i);au(s,t.memoizedState)||(Nu=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function j4(r,t,n){var o=t._getVersion;o=o(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?r=i===o:(r=r.mutableReadLanes,(r=(k0&r)===r)&&(t._workInProgressVersionPrimary=o,oh.push(t))),r)return n(t._source);throw oh.push(t),Error(Ot(350))}function fI(r,t,n,o){var i=Xa;if(i===null)throw Error(Ot(349));var s=t._getVersion,f=s(t._source),d=p0.current,h=d.useState(function(){return j4(i,t,n)}),v=h[1],E=h[0];h=Aa;var A=r.memoizedState,S=A.refs,b=S.getSnapshot,F=A.source;A=A.subscribe;var I=Gi;return r.memoizedState={refs:S,source:t,subscribe:o},d.useEffect(function(){S.getSnapshot=n,S.setSnapshot=v;var w=s(t._source);if(!au(f,w)){w=n(t._source),au(E,w)||(v(w),w=_f(I),i.mutableReadLanes|=w&i.pendingLanes),w=i.mutableReadLanes,i.entangledLanes|=w;for(var T=i.entanglements,O=w;0n?98:n,function(){r(!0)}),np(97<\/script>",r=r.removeChild(r.firstChild)):typeof o.is=="string"?r=f.createElement(n,{is:o.is}):(r=f.createElement(n),n==="select"&&(f=r,o.multiple?f.multiple=!0:o.size&&(f.size=o.size))):r=f.createElementNS(r,n),r[yf]=t,r[tE]=o,bI(r,t,!1,!1),t.stateNode=r,f=r2(n,o),n){case"dialog":li("cancel",r),li("close",r),i=o;break;case"iframe":case"object":case"embed":li("load",r),i=o;break;case"video":case"audio":for(i=0;iT2&&(t.flags|=64,s=!0,Kv(o,!1),t.lanes=33554432)}else{if(!s)if(r=sE(f),r!==null){if(t.flags|=64,s=!0,n=r.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kv(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Cs)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*$a()-o.renderingStartTime>T2&&n!==1073741824&&(t.flags|=64,s=!0,Kv(o,!1),t.lanes=33554432);o.isBackwards?(f.sibling=t.child,t.child=f):(n=o.last,n!==null?n.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=$a(),n.sibling=null,t=Ii.current,Li(Ii,s?t&1|2:t&1),n):null;case 23:case 24:return bT(),r!==null&&r.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Ot(156,t.tag))}function PQ(r){switch(r.tag){case 1:po(r.type)&&rE();var t=r.flags;return t&4096?(r.flags=t&-4097|64,r):null;case 3:if(dh(),fi(co),fi(ja),lT(),t=r.flags,(t&64)!==0)throw Error(Ot(285));return r.flags=t&-4097|64,r;case 5:return sT(r),null;case 13:return fi(Ii),t=r.flags,t&4096?(r.flags=t&-4097|64,r):null;case 19:return fi(Ii),null;case 4:return dh(),null;case 10:return oT(r),null;case 23:case 24:return bT(),null;default:return null}}function mT(r,t){try{var n="",o=t;do n+=dY(o),o=o.return;while(o);var i=n}catch(s){i=` Error generating stack: `+s.message+` -`+s.stack}return{value:r,source:t,stack:i}}function A2(r,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PQ=typeof WeakMap=="function"?WeakMap:Map;function _I(r,t,n){n=wf(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){vE||(vE=!0,R2=o),A2(r,t)},n}function SI(r,t,n){n=wf(-1,n),n.tag=3;var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var i=t.value;n.payload=function(){return A2(r,t),o(i)}}var s=r.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(_s===null?_s=new Set([this]):_s.add(this),A2(r,t));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}var IQ=typeof WeakSet=="function"?WeakSet:Set;function t6(r){var t=r.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Tf(r,n)}else t.current=null}function LQ(r,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&r!==null){var n=r.memoizedProps,o=r.memoizedState;r=t.stateNode,t=r.getSnapshotBeforeUpdate(t.elementType===t.type?n:Lu(t.type,n),o),r.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&rT(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Ot(163))}function NQ(r,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){r=t=t.next;do{if((r.tag&3)===3){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){r=t=t.next;do{var i=r;o=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(II(n,r),HQ(n,r)),r=o}while(r!==t)}return;case 1:r=n.stateNode,n.flags&4&&(t===null?r.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Lu(n.type,t.memoizedProps),r.componentDidUpdate(o,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&N4(n,t,r);return;case 3:if(t=n.updateQueue,t!==null){if(r=null,n.child!==null)switch(n.child.tag){case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}N4(n,t,r)}return;case 5:r=n.stateNode,t===null&&n.flags&4&&X6(n.type,n.memoizedProps)&&r.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&O6(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Ot(163))}function r6(r,t){for(var n=r;;){if(n.tag===5){var o=n.stateNode;if(t)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,o.style.display=g6("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===r)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break;for(;n.sibling===null;){if(n.return===null||n.return===r)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function n6(r,t){if(tp&&typeof tp.onCommitFiberUnmount=="function")try{tp.onCommitFiberUnmount(nT,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null)){var n=r=r.next;do{var o=n,i=o.destroy;if(o=o.tag,i!==void 0)if((o&4)!==0)II(t,n);else{o=t;try{i()}catch(s){Tf(o,s)}}n=n.next}while(n!==r)}break;case 1:if(t6(t),r=t.stateNode,typeof r.componentWillUnmount=="function")try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Tf(t,s)}break;case 5:t6(t);break;case 4:CI(r,t)}}function i6(r){r.alternate=null,r.child=null,r.dependencies=null,r.firstEffect=null,r.lastEffect=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.return=null,r.updateQueue=null}function a6(r){return r.tag===5||r.tag===3||r.tag===4}function o6(r){e:{for(var t=r.return;t!==null;){if(a6(t))break e;t=t.return}throw Error(Ot(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(Ot(161))}n.flags&16&&(E0(t,""),n.flags&=-17);e:t:for(n=r;;){for(;n.sibling===null;){if(n.return===null||a6(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?w2(r,n,t):_2(r,n,t)}function w2(r,t,n){var o=r.tag,i=o===5||o===6;if(i)r=i?r.stateNode:r.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(r,t):n.insertBefore(r,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(r,n)):(t=n,t.appendChild(r)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tE));else if(o!==4&&(r=r.child,r!==null))for(w2(r,t,n),r=r.sibling;r!==null;)w2(r,t,n),r=r.sibling}function _2(r,t,n){var o=r.tag,i=o===5||o===6;if(i)r=i?r.stateNode:r.stateNode.instance,t?n.insertBefore(r,t):n.appendChild(r);else if(o!==4&&(r=r.child,r!==null))for(_2(r,t,n),r=r.sibling;r!==null;)_2(r,t,n),r=r.sibling}function CI(r,t){for(var n=t,o=!1,i,s;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(Ot(160));switch(i=o.stateNode,o.tag){case 5:s=!1;break e;case 3:i=i.containerInfo,s=!0;break e;case 4:i=i.containerInfo,s=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var f=r,d=n,h=d;;)if(n6(f,h),h.child!==null&&h.tag!==4)h.child.return=h,h=h.child;else{if(h===d)break e;for(;h.sibling===null;){if(h.return===null||h.return===d)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}s?(f=i,d=n.stateNode,f.nodeType===8?f.parentNode.removeChild(d):f.removeChild(d)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(n6(r,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function zC(r,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(r=o.destroy,o.destroy=void 0,r!==void 0&&r()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){o=t.memoizedProps;var i=r!==null?r.memoizedProps:o;r=t.type;var s=t.updateQueue;if(t.updateQueue=null,s!==null){for(n[rE]=o,r==="input"&&o.type==="radio"&&o.name!=null&&h6(n,o),r2(r,i),t=r2(r,o),i=0;ii&&(i=f),n&=~s}if(n=i,n=$a()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$Q(n/1960))-n,10i&&(i=f),n&=~s}if(n=i,n=$a()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*MQ(n/1960))-n,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}wa!==5&&(wa=2),h=mT(h,d),S=f;do{switch(S.tag){case 3:s=h,S.flags|=4096,t&=-t,S.lanes|=t;var H=_I(S,s,t);L4(S,H);break e;case 1:s=h;var oe=S.type,xe=S.stateNode;if((S.flags&64)===0&&(typeof oe.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&(_s===null||!_s.has(xe)))){S.flags|=4096,t&=-t,S.lanes|=t;var Re=SI(S,s,t);L4(S,Re);break e}}S=S.return}while(S!==null)}PI(n)}catch(ce){t=ce,oa===n&&n!==null&&(oa=n=n.return);continue}break}while(1)}function DI(){var r=mE.current;return mE.current=hE,r===null?hE:r}function o0(r,t){var n=Rr;Rr|=16;var o=DI();Xa===r&&Ma===t||sh(r,t);do try{jQ();break}catch(i){kI(r,i)}while(1);if(aT(),Rr=n,mE.current=o,oa!==null)throw Error(Ot(261));return Xa=null,Ma=0,wa}function jQ(){for(;oa!==null;)FI(oa)}function UQ(){for(;oa!==null&&!AQ();)FI(oa)}function FI(r){var t=LI(r.alternate,r,ip);r.memoizedProps=r.pendingProps,t===null?PI(r):oa=t,vT.current=null}function PI(r){var t=r;do{var n=t.alternate;if(r=t.return,(t.flags&2048)===0){if(n=DQ(n,t,ip),n!==null){oa=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(ip&1073741824)!==0||(n.mode&4)===0){for(var o=0,i=n.child;i!==null;)o|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=o}r!==null&&(r.flags&2048)===0&&(r.firstEffect===null&&(r.firstEffect=t.firstEffect),t.lastEffect!==null&&(r.lastEffect!==null&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),1f&&(d=f,f=H,H=d),d=x4(O,H),s=x4(O,f),d&&s&&(x.rangeCount!==1||x.anchorNode!==d.node||x.anchorOffset!==d.offset||x.focusNode!==s.node||x.focusOffset!==s.offset)&&(k=k.createRange(),k.setStart(d.node,d.offset),x.removeAllRanges(),H>f?(x.addRange(k),x.extend(s.node,s.offset)):(k.setEnd(s.node,s.offset),x.addRange(k)))))),k=[],x=O;x=x.parentNode;)x.nodeType===1&&k.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O$a()-gT?sh(r,0):yT|=n),lu(r,t)}function WQ(r,t){var n=r.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=r.mode,(t&2)===0?t=1:(t&4)===0?t=ph()===99?1:2:(pl===0&&(pl=vh),t=Wd(62914560&~pl),t===0&&(t=4194304))),n=Fo(),r=kE(r,t),r!==null&&(AE(r,t,n),lu(r,n))}var LI;LI=function(r,t,n){var o=t.lanes;if(r!==null)if(r.memoizedProps!==t.pendingProps||co.current)Nu=!0;else if((n&o)!==0)Nu=(r.flags&16384)!==0;else{switch(Nu=!1,t.tag){case 3:Y4(t),jC();break;case 5:M4(t);break;case 1:po(t.type)&&zb(t);break;case 4:v2(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var i=t.type._context;Li(iE,i._currentValue),i._currentValue=o;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?Q4(r,t,n):(Li(Ii,Ii.current&1),t=hl(r,t,n),t!==null?t.sibling:null);Li(Ii,Ii.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(r.flags&64)!==0){if(o)return e6(r,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Li(Ii,Ii.current),o)break;return null;case 23:case 24:return t.lanes=0,UC(r,t,n)}return hl(r,t,n)}else Nu=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,r!==null&&(r.alternate=null,t.alternate=null,t.flags|=2),r=t.pendingProps,i=ch(t,ja.current),ah(t,n),i=cT(null,t,o,r,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,po(o)){var s=!0;zb(t)}else s=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,uT(t);var f=o.getDerivedStateFromProps;typeof f=="function"&&uE(t,o,f,r),i.updater=RE,t.stateNode=i,i._reactInternals=t,m2(t,o,r,n),t=E2(null,t,o,!0,s,n)}else t.tag=0,fo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(r!==null&&(r.alternate=null,t.alternate=null,t.flags|=2),r=t.pendingProps,s=i._init,i=s(i._payload),t.type=i,s=t.tag=QQ(i),r=Lu(i,r),s){case 0:t=b2(null,t,i,r,n);break e;case 1:t=W4(null,t,i,r,n);break e;case 11:t=q4(null,t,i,r,n);break e;case 14:t=G4(null,t,i,Lu(i.type,r),o,n);break e}throw Error(Ot(306,i,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Lu(o,i),b2(r,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Lu(o,i),W4(r,t,o,i,n);case 3:if(Y4(t),o=t.updateQueue,r===null||o===null)throw Error(Ot(282));if(o=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,oI(r,t),O0(t,o,null,n),o=t.memoizedState.element,o===i)jC(),t=hl(r,t,n);else{if(i=t.stateNode,(s=i.hydrate)&&(bf=ih(t.stateNode.containerInfo.firstChild),dl=t,s=Cs=!0),s){if(r=i.mutableSourceEagerHydrationData,r!=null)for(i=0;i{"use strict";R();var rX=0;Rs.__interactionsRef=null;Rs.__subscriberRef=null;Rs.unstable_clear=function(r){return r()};Rs.unstable_getCurrent=function(){return null};Rs.unstable_getThreadID=function(){return++rX};Rs.unstable_subscribe=function(){};Rs.unstable_trace=function(r,t,n){return n()};Rs.unstable_unsubscribe=function(){};Rs.unstable_wrap=function(r){return r}});var MI=se(jn=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=0,t=0,n=0;jn.__interactionsRef=null,jn.__subscriberRef=null,jn.__interactionsRef={current:new Set},jn.__subscriberRef={current:null};function o(T){var O=jn.__interactionsRef.current;jn.__interactionsRef.current=new Set;try{return T()}finally{jn.__interactionsRef.current=O}}function i(){return jn.__interactionsRef.current}function s(){return++n}function f(T,O,k){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,H={__count:1,id:t++,name:T,timestamp:O},oe=jn.__interactionsRef.current,xe=new Set(oe);xe.add(H),jn.__interactionsRef.current=xe;var Re=jn.__subscriberRef.current,ce;try{Re!==null&&Re.onInteractionTraced(H)}finally{try{Re!==null&&Re.onWorkStarted(xe,x)}finally{try{ce=k()}finally{jn.__interactionsRef.current=oe;try{Re!==null&&Re.onWorkStopped(xe,x)}finally{H.__count--,Re!==null&&H.__count===0&&Re.onInteractionScheduledWorkCompleted(H)}}}}return ce}function d(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,k=jn.__interactionsRef.current,x=jn.__subscriberRef.current;x!==null&&x.onWorkScheduled(k,O),k.forEach(function(xe){xe.__count++});var H=!1;function oe(){var xe=jn.__interactionsRef.current;jn.__interactionsRef.current=k,x=jn.__subscriberRef.current;try{var Re;try{x!==null&&x.onWorkStarted(k,O)}finally{try{Re=T.apply(void 0,arguments)}finally{jn.__interactionsRef.current=xe,x!==null&&x.onWorkStopped(k,O)}}return Re}finally{H||(H=!0,k.forEach(function(ce){ce.__count--,x!==null&&ce.__count===0&&x.onInteractionScheduledWorkCompleted(ce)}))}}return oe.cancel=function(){x=jn.__subscriberRef.current;try{x!==null&&x.onWorkCanceled(k,O)}finally{k.forEach(function(Re){Re.__count--,x&&Re.__count===0&&x.onInteractionScheduledWorkCompleted(Re)})}},oe}var h=null;h=new Set;function v(T){h.add(T),h.size===1&&(jn.__subscriberRef.current={onInteractionScheduledWorkCompleted:S,onInteractionTraced:A,onWorkCanceled:w,onWorkScheduled:b,onWorkStarted:F,onWorkStopped:I})}function E(T){h.delete(T),h.size===0&&(jn.__subscriberRef.current=null)}function A(T){var O=!1,k=null;if(h.forEach(function(x){try{x.onInteractionTraced(T)}catch(H){O||(O=!0,k=H)}}),O)throw k}function S(T){var O=!1,k=null;if(h.forEach(function(x){try{x.onInteractionScheduledWorkCompleted(T)}catch(H){O||(O=!0,k=H)}}),O)throw k}function b(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkScheduled(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function F(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkStarted(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function I(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkStopped(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function w(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkCanceled(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}jn.unstable_clear=o,jn.unstable_getCurrent=i,jn.unstable_getThreadID=s,jn.unstable_subscribe=v,jn.unstable_trace=f,jn.unstable_unsubscribe=E,jn.unstable_wrap=d}()});var jI=se((_le,_T)=>{"use strict";R();W.default.env.NODE_ENV==="production"?_T.exports=$I():_T.exports=MI()});var UI=se(cu=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=nu(),t=Md(),n=_C(),o=jI(),i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function s(a){{for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1?u-1:0),c=1;c2&&(a[0]==="o"||a[0]==="O")&&(a[1]==="n"||a[1]==="N")}function er(a,u,l,c){if(l!==null&&l.type===qt)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(l!==null)return!l.acceptsBooleans;var m=a.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function Bn(a,u,l,c){if(u===null||typeof u>"u"||er(a,u,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case ar:return!u;case Jt:return u===!1;case It:return isNaN(u);case zr:return isNaN(u)||u<1}return!1}function Ca(a){return Ir.hasOwnProperty(a)?Ir[a]:null}function Yr(a,u,l,c,m,y,_){this.acceptsBooleans=u===ci||u===ar||u===Jt,this.attributeName=c,this.attributeNamespace=m,this.mustUseProperty=l,this.propertyName=a,this.type=u,this.sanitizeURL=y,this.removeEmptyString=_}var Ir={},$i=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$i.forEach(function(a){Ir[a]=new Yr(a,qt,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var u=a[0],l=a[1];Ir[u]=new Yr(u,Cr,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){Ir[a]=new Yr(a,ci,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){Ir[a]=new Yr(a,ci,!1,a,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(a){Ir[a]=new Yr(a,ar,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){Ir[a]=new Yr(a,ar,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){Ir[a]=new Yr(a,Jt,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){Ir[a]=new Yr(a,zr,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){Ir[a]=new Yr(a,It,!1,a.toLowerCase(),null,!1,!1)});var Ta=/[\-\:]([a-z])/g,Ct=function(a){return a[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){Ir[a]=new Yr(a,Cr,!1,a.toLowerCase(),null,!1,!1)});var ht="xlinkHref";Ir[ht]=new Yr("xlinkHref",Cr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){Ir[a]=new Yr(a,Cr,!1,a.toLowerCase(),null,!0,!0)});var wr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,cr=!1;function Hr(a){!cr&&wr.test(a)&&(cr=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}function Sn(a,u,l,c){if(c.mustUseProperty){var m=c.propertyName;return a[m]}else{c.sanitizeURL&&Hr(""+l);var y=c.attributeName,_=null;if(c.type===Jt){if(a.hasAttribute(y)){var D=a.getAttribute(y);return D===""?!0:Bn(u,l,c,!1)?D:D===""+l?l:D}}else if(a.hasAttribute(y)){if(Bn(u,l,c,!1))return a.getAttribute(y);if(c.type===ar)return l;_=a.getAttribute(y)}return Bn(u,l,c,!1)?_===null?l:_:_===""+l?l:_}}function Kr(a,u,l){{if(!U(u))return;if(Pz(l))return l;if(!a.hasAttribute(u))return l===void 0?void 0:null;var c=a.getAttribute(u);return c===""+l?l:c}}function wi(a,u,l,c){var m=Ca(u);if(!yn(u,m,c)){if(Bn(u,l,m,c)&&(l=null),c||m===null){if(U(u)){var y=u;l===null?a.removeAttribute(y):a.setAttribute(y,""+l)}return}var _=m.mustUseProperty;if(_){var D=m.propertyName;if(l===null){var L=m.type;a[D]=L===ar?!1:""}else a[D]=l;return}var X=m.attributeName,ee=m.attributeNamespace;if(l===null)a.removeAttribute(X);else{var De=m.type,pe;De===ar||De===Jt&&l===!0?pe="":(pe=""+l,m.sanitizeURL&&Hr(pe.toString())),ee?a.setAttributeNS(ee,X,pe):a.setAttribute(X,pe)}}}var $n=60103,Yn=60106,Jr=60107,Va=60108,va=60114,Zi=60109,No=60110,Mn=60112,za=60113,ya=60120,Ra=60115,sa=60116,go=60121,ea=60122,Bo=60117,K=60119,Q=60128,he=60129,Ae=60130,Ue=60131;if(typeof Symbol=="function"&&Symbol.for){var _t=Symbol.for;$n=_t("react.element"),Yn=_t("react.portal"),Jr=_t("react.fragment"),Va=_t("react.strict_mode"),va=_t("react.profiler"),Zi=_t("react.provider"),No=_t("react.context"),Mn=_t("react.forward_ref"),za=_t("react.suspense"),ya=_t("react.suspense_list"),Ra=_t("react.memo"),sa=_t("react.lazy"),go=_t("react.block"),ea=_t("react.server.block"),Bo=_t("react.fundamental"),K=_t("react.scope"),Q=_t("react.opaque.id"),he=_t("react.debug_trace_mode"),Ae=_t("react.offscreen"),Ue=_t("react.legacy_hidden")}var yr=typeof Symbol=="function"&&Symbol.iterator,qr="@@iterator";function Fr(a){if(a===null||typeof a!="object")return null;var u=yr&&a[yr]||a[qr];return typeof u=="function"?u:null}var Zr=0,Pr,nn,gn,un,Lr,an,jt;function ga(){}ga.__reactDisabledLog=!0;function bn(){{if(Zr===0){Pr=console.log,nn=console.info,gn=console.warn,un=console.error,Lr=console.group,an=console.groupCollapsed,jt=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ga,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Zr++}}function En(){{if(Zr--,Zr===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},a,{value:Pr}),info:t({},a,{value:nn}),warn:t({},a,{value:gn}),error:t({},a,{value:un}),group:t({},a,{value:Lr}),groupCollapsed:t({},a,{value:an}),groupEnd:t({},a,{value:jt})})}Zr<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=i.ReactCurrentDispatcher,Jn;function Cn(a,u,l){{if(Jn===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);Jn=c&&c[1]||""}return` -`+Jn+a}}var Ti=!1,Mi;{var p=typeof WeakMap=="function"?WeakMap:Map;Mi=new p}function g(a,u){if(!a||Ti)return"";{var l=Mi.get(a);if(l!==void 0)return l}var c;Ti=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Wr.current,Wr.current=null,bn();try{if(u){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(mt){c=mt}Reflect.construct(a,[],_)}else{try{_.call()}catch(mt){c=mt}a.call(_.prototype)}}else{try{throw Error()}catch(mt){c=mt}a()}}catch(mt){if(mt&&c&&typeof mt.stack=="string"){for(var D=mt.stack.split(` +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}wa!==5&&(wa=2),h=mT(h,d),S=f;do{switch(S.tag){case 3:s=h,S.flags|=4096,t&=-t,S.lanes|=t;var H=AI(S,s,t);P4(S,H);break e;case 1:s=h;var oe=S.type,xe=S.stateNode;if((S.flags&64)===0&&(typeof oe.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&(_s===null||!_s.has(xe)))){S.flags|=4096,t&=-t,S.lanes|=t;var Re=wI(S,s,t);P4(S,Re);break e}}S=S.return}while(S!==null)}DI(n)}catch(ce){t=ce,oa===n&&n!==null&&(oa=n=n.return);continue}break}while(1)}function OI(){var r=hE.current;return hE.current=dE,r===null?dE:r}function i0(r,t){var n=Rr;Rr|=16;var o=OI();Xa===r&&Ma===t||sh(r,t);do try{UQ();break}catch(i){RI(r,i)}while(1);if(aT(),Rr=n,hE.current=o,oa!==null)throw Error(Ot(261));return Xa=null,Ma=0,wa}function UQ(){for(;oa!==null;)kI(oa)}function VQ(){for(;oa!==null&&!wQ();)kI(oa)}function kI(r){var t=PI(r.alternate,r,ip);r.memoizedProps=r.pendingProps,t===null?DI(r):oa=t,vT.current=null}function DI(r){var t=r;do{var n=t.alternate;if(r=t.return,(t.flags&2048)===0){if(n=FQ(n,t,ip),n!==null){oa=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(ip&1073741824)!==0||(n.mode&4)===0){for(var o=0,i=n.child;i!==null;)o|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=o}r!==null&&(r.flags&2048)===0&&(r.firstEffect===null&&(r.firstEffect=t.firstEffect),t.lastEffect!==null&&(r.lastEffect!==null&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),1f&&(d=f,f=H,H=d),d=b4(O,H),s=b4(O,f),d&&s&&(x.rangeCount!==1||x.anchorNode!==d.node||x.anchorOffset!==d.offset||x.focusNode!==s.node||x.focusOffset!==s.offset)&&(k=k.createRange(),k.setStart(d.node,d.offset),x.removeAllRanges(),H>f?(x.addRange(k),x.extend(s.node,s.offset)):(k.setEnd(s.node,s.offset),x.addRange(k)))))),k=[],x=O;x=x.parentNode;)x.nodeType===1&&k.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O$a()-gT?sh(r,0):yT|=n),lu(r,t)}function YQ(r,t){var n=r.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=r.mode,(t&2)===0?t=1:(t&4)===0?t=ph()===99?1:2:(pl===0&&(pl=vh),t=Wd(62914560&~pl),t===0&&(t=4194304))),n=Fo(),r=OE(r,t),r!==null&&(xE(r,t,n),lu(r,n))}var PI;PI=function(r,t,n){var o=t.lanes;if(r!==null)if(r.memoizedProps!==t.pendingProps||co.current)Nu=!0;else if((n&o)!==0)Nu=(r.flags&16384)!==0;else{switch(Nu=!1,t.tag){case 3:G4(t),jC();break;case 5:B4(t);break;case 1:po(t.type)&&Vb(t);break;case 4:v2(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var i=t.type._context;Li(nE,i._currentValue),i._currentValue=o;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?W4(r,t,n):(Li(Ii,Ii.current&1),t=hl(r,t,n),t!==null?t.sibling:null);Li(Ii,Ii.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(r.flags&64)!==0){if(o)return J4(r,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Li(Ii,Ii.current),o)break;return null;case 23:case 24:return t.lanes=0,UC(r,t,n)}return hl(r,t,n)}else Nu=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,r!==null&&(r.alternate=null,t.alternate=null,t.flags|=2),r=t.pendingProps,i=ch(t,ja.current),ah(t,n),i=cT(null,t,o,r,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,po(o)){var s=!0;Vb(t)}else s=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,uT(t);var f=o.getDerivedStateFromProps;typeof f=="function"&&oE(t,o,f,r),i.updater=TE,t.stateNode=i,i._reactInternals=t,m2(t,o,r,n),t=E2(null,t,o,!0,s,n)}else t.tag=0,fo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(r!==null&&(r.alternate=null,t.alternate=null,t.flags|=2),r=t.pendingProps,s=i._init,i=s(i._payload),t.type=i,s=t.tag=XQ(i),r=Lu(i,r),s){case 0:t=b2(null,t,i,r,n);break e;case 1:t=q4(null,t,i,r,n);break e;case 11:t=z4(null,t,i,r,n);break e;case 14:t=H4(null,t,i,Lu(i.type,r),o,n);break e}throw Error(Ot(306,i,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Lu(o,i),b2(r,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Lu(o,i),q4(r,t,o,i,n);case 3:if(G4(t),o=t.updateQueue,r===null||o===null)throw Error(Ot(282));if(o=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,iI(r,t),T0(t,o,null,n),o=t.memoizedState.element,o===i)jC(),t=hl(r,t,n);else{if(i=t.stateNode,(s=i.hydrate)&&(gf=ih(t.stateNode.containerInfo.firstChild),dl=t,s=Cs=!0),s){if(r=i.mutableSourceEagerHydrationData,r!=null)for(i=0;i{"use strict";R();var nX=0;Rs.__interactionsRef=null;Rs.__subscriberRef=null;Rs.unstable_clear=function(r){return r()};Rs.unstable_getCurrent=function(){return null};Rs.unstable_getThreadID=function(){return++nX};Rs.unstable_subscribe=function(){};Rs.unstable_trace=function(r,t,n){return n()};Rs.unstable_unsubscribe=function(){};Rs.unstable_wrap=function(r){return r}});var BI=se(Mn=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=0,t=0,n=0;Mn.__interactionsRef=null,Mn.__subscriberRef=null,Mn.__interactionsRef={current:new Set},Mn.__subscriberRef={current:null};function o(T){var O=Mn.__interactionsRef.current;Mn.__interactionsRef.current=new Set;try{return T()}finally{Mn.__interactionsRef.current=O}}function i(){return Mn.__interactionsRef.current}function s(){return++n}function f(T,O,k){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,H={__count:1,id:t++,name:T,timestamp:O},oe=Mn.__interactionsRef.current,xe=new Set(oe);xe.add(H),Mn.__interactionsRef.current=xe;var Re=Mn.__subscriberRef.current,ce;try{Re!==null&&Re.onInteractionTraced(H)}finally{try{Re!==null&&Re.onWorkStarted(xe,x)}finally{try{ce=k()}finally{Mn.__interactionsRef.current=oe;try{Re!==null&&Re.onWorkStopped(xe,x)}finally{H.__count--,Re!==null&&H.__count===0&&Re.onInteractionScheduledWorkCompleted(H)}}}}return ce}function d(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,k=Mn.__interactionsRef.current,x=Mn.__subscriberRef.current;x!==null&&x.onWorkScheduled(k,O),k.forEach(function(xe){xe.__count++});var H=!1;function oe(){var xe=Mn.__interactionsRef.current;Mn.__interactionsRef.current=k,x=Mn.__subscriberRef.current;try{var Re;try{x!==null&&x.onWorkStarted(k,O)}finally{try{Re=T.apply(void 0,arguments)}finally{Mn.__interactionsRef.current=xe,x!==null&&x.onWorkStopped(k,O)}}return Re}finally{H||(H=!0,k.forEach(function(ce){ce.__count--,x!==null&&ce.__count===0&&x.onInteractionScheduledWorkCompleted(ce)}))}}return oe.cancel=function(){x=Mn.__subscriberRef.current;try{x!==null&&x.onWorkCanceled(k,O)}finally{k.forEach(function(Re){Re.__count--,x&&Re.__count===0&&x.onInteractionScheduledWorkCompleted(Re)})}},oe}var h=null;h=new Set;function v(T){h.add(T),h.size===1&&(Mn.__subscriberRef.current={onInteractionScheduledWorkCompleted:S,onInteractionTraced:A,onWorkCanceled:w,onWorkScheduled:b,onWorkStarted:F,onWorkStopped:I})}function E(T){h.delete(T),h.size===0&&(Mn.__subscriberRef.current=null)}function A(T){var O=!1,k=null;if(h.forEach(function(x){try{x.onInteractionTraced(T)}catch(H){O||(O=!0,k=H)}}),O)throw k}function S(T){var O=!1,k=null;if(h.forEach(function(x){try{x.onInteractionScheduledWorkCompleted(T)}catch(H){O||(O=!0,k=H)}}),O)throw k}function b(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkScheduled(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function F(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkStarted(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function I(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkStopped(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}function w(T,O){var k=!1,x=null;if(h.forEach(function(H){try{H.onWorkCanceled(T,O)}catch(oe){k||(k=!0,x=oe)}}),k)throw x}Mn.unstable_clear=o,Mn.unstable_getCurrent=i,Mn.unstable_getThreadID=s,Mn.unstable_subscribe=v,Mn.unstable_trace=f,Mn.unstable_unsubscribe=E,Mn.unstable_wrap=d}()});var $I=se((Sle,_T)=>{"use strict";R();W.default.env.NODE_ENV==="production"?_T.exports=NI():_T.exports=BI()});var MI=se(cu=>{"use strict";R();W.default.env.NODE_ENV!=="production"&&function(){"use strict";var r=nu(),t=Md(),n=_C(),o=$I(),i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function s(a){{for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1?u-1:0),c=1;c2&&(a[0]==="o"||a[0]==="O")&&(a[1]==="n"||a[1]==="N")}function er(a,u,l,c){if(l!==null&&l.type===qt)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(l!==null)return!l.acceptsBooleans;var m=a.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function Nn(a,u,l,c){if(u===null||typeof u>"u"||er(a,u,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case ar:return!u;case Jt:return u===!1;case It:return isNaN(u);case zr:return isNaN(u)||u<1}return!1}function Ca(a){return Ir.hasOwnProperty(a)?Ir[a]:null}function Yr(a,u,l,c,m,y,_){this.acceptsBooleans=u===ci||u===ar||u===Jt,this.attributeName=c,this.attributeNamespace=m,this.mustUseProperty=l,this.propertyName=a,this.type=u,this.sanitizeURL=y,this.removeEmptyString=_}var Ir={},$i=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$i.forEach(function(a){Ir[a]=new Yr(a,qt,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var u=a[0],l=a[1];Ir[u]=new Yr(u,Cr,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){Ir[a]=new Yr(a,ci,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){Ir[a]=new Yr(a,ci,!1,a,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(a){Ir[a]=new Yr(a,ar,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){Ir[a]=new Yr(a,ar,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){Ir[a]=new Yr(a,Jt,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){Ir[a]=new Yr(a,zr,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){Ir[a]=new Yr(a,It,!1,a.toLowerCase(),null,!1,!1)});var Ta=/[\-\:]([a-z])/g,Ct=function(a){return a[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var u=a.replace(Ta,Ct);Ir[u]=new Yr(u,Cr,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){Ir[a]=new Yr(a,Cr,!1,a.toLowerCase(),null,!1,!1)});var ht="xlinkHref";Ir[ht]=new Yr("xlinkHref",Cr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){Ir[a]=new Yr(a,Cr,!1,a.toLowerCase(),null,!0,!0)});var wr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,cr=!1;function Hr(a){!cr&&wr.test(a)&&(cr=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}function _n(a,u,l,c){if(c.mustUseProperty){var m=c.propertyName;return a[m]}else{c.sanitizeURL&&Hr(""+l);var y=c.attributeName,_=null;if(c.type===Jt){if(a.hasAttribute(y)){var D=a.getAttribute(y);return D===""?!0:Nn(u,l,c,!1)?D:D===""+l?l:D}}else if(a.hasAttribute(y)){if(Nn(u,l,c,!1))return a.getAttribute(y);if(c.type===ar)return l;_=a.getAttribute(y)}return Nn(u,l,c,!1)?_===null?l:_:_===""+l?l:_}}function Kr(a,u,l){{if(!U(u))return;if(Iz(l))return l;if(!a.hasAttribute(u))return l===void 0?void 0:null;var c=a.getAttribute(u);return c===""+l?l:c}}function wi(a,u,l,c){var m=Ca(u);if(!vn(u,m,c)){if(Nn(u,l,m,c)&&(l=null),c||m===null){if(U(u)){var y=u;l===null?a.removeAttribute(y):a.setAttribute(y,""+l)}return}var _=m.mustUseProperty;if(_){var D=m.propertyName;if(l===null){var L=m.type;a[D]=L===ar?!1:""}else a[D]=l;return}var X=m.attributeName,ee=m.attributeNamespace;if(l===null)a.removeAttribute(X);else{var De=m.type,pe;De===ar||De===Jt&&l===!0?pe="":(pe=""+l,m.sanitizeURL&&Hr(pe.toString())),ee?a.setAttributeNS(ee,X,pe):a.setAttribute(X,pe)}}}var Bn=60103,Yn=60106,Jr=60107,Va=60108,va=60114,Zi=60109,No=60110,$n=60112,za=60113,ya=60120,Ra=60115,sa=60116,go=60121,ea=60122,Bo=60117,K=60119,Q=60128,he=60129,Ae=60130,Ue=60131;if(typeof Symbol=="function"&&Symbol.for){var _t=Symbol.for;Bn=_t("react.element"),Yn=_t("react.portal"),Jr=_t("react.fragment"),Va=_t("react.strict_mode"),va=_t("react.profiler"),Zi=_t("react.provider"),No=_t("react.context"),$n=_t("react.forward_ref"),za=_t("react.suspense"),ya=_t("react.suspense_list"),Ra=_t("react.memo"),sa=_t("react.lazy"),go=_t("react.block"),ea=_t("react.server.block"),Bo=_t("react.fundamental"),K=_t("react.scope"),Q=_t("react.opaque.id"),he=_t("react.debug_trace_mode"),Ae=_t("react.offscreen"),Ue=_t("react.legacy_hidden")}var yr=typeof Symbol=="function"&&Symbol.iterator,qr="@@iterator";function Fr(a){if(a===null||typeof a!="object")return null;var u=yr&&a[yr]||a[qr];return typeof u=="function"?u:null}var Zr=0,Pr,nn,yn,un,Lr,an,jt;function ga(){}ga.__reactDisabledLog=!0;function gn(){{if(Zr===0){Pr=console.log,nn=console.info,yn=console.warn,un=console.error,Lr=console.group,an=console.groupCollapsed,jt=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ga,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Zr++}}function bn(){{if(Zr--,Zr===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},a,{value:Pr}),info:t({},a,{value:nn}),warn:t({},a,{value:yn}),error:t({},a,{value:un}),group:t({},a,{value:Lr}),groupCollapsed:t({},a,{value:an}),groupEnd:t({},a,{value:jt})})}Zr<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=i.ReactCurrentDispatcher,Jn;function Sn(a,u,l){{if(Jn===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);Jn=c&&c[1]||""}return` +`+Jn+a}}var Ti=!1,Mi;{var p=typeof WeakMap=="function"?WeakMap:Map;Mi=new p}function g(a,u){if(!a||Ti)return"";{var l=Mi.get(a);if(l!==void 0)return l}var c;Ti=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Wr.current,Wr.current=null,gn();try{if(u){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(mt){c=mt}Reflect.construct(a,[],_)}else{try{_.call()}catch(mt){c=mt}a.call(_.prototype)}}else{try{throw Error()}catch(mt){c=mt}a()}}catch(mt){if(mt&&c&&typeof mt.stack=="string"){for(var D=mt.stack.split(` `),L=c.stack.split(` `),X=D.length-1,ee=L.length-1;X>=1&&ee>=0&&D[X]!==L[ee];)ee--;for(;X>=1&&ee>=0;X--,ee--)if(D[X]!==L[ee]){if(X!==1||ee!==1)do if(X--,ee--,ee<0||D[X]!==L[ee]){var De=` -`+D[X].replace(" at new "," at ");return typeof a=="function"&&Mi.set(a,De),De}while(X>=1&&ee>=0);break}}}finally{Ti=!1,Wr.current=y,En(),Error.prepareStackTrace=m}var pe=a?a.displayName||a.name:"",$e=pe?Cn(pe):"";return typeof a=="function"&&Mi.set(a,$e),$e}function P(a,u,l){return g(a,!0)}function M(a,u,l){return g(a,!1)}function te(a){var u=a.prototype;return!!(u&&u.isReactComponent)}function Ce(a,u,l){if(a==null)return"";if(typeof a=="function")return g(a,te(a));if(typeof a=="string")return Cn(a);switch(a){case za:return Cn("Suspense");case ya:return Cn("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case Mn:return M(a.render);case Ra:return Ce(a.type,u,l);case go:return M(a._render);case sa:{var c=a,m=c._payload,y=c._init;try{return Ce(y(m),u,l)}catch{}}}return""}function Be(a){var u=a._debugOwner?a._debugOwner.type:null,l=a._debugSource;switch(a.tag){case b:return Cn(a.type);case Re:return Cn("Lazy");case H:return Cn("Suspense");case ut:return Cn("SuspenseList");case h:case E:case xe:return M(a.type);case k:return M(a.type.render);case $:return M(a.type._render);case v:return P(a.type);default:return""}}function St(a){try{var u="",l=a;do u+=Be(l),l=l.return;while(l);return u}catch(c){return` +`+D[X].replace(" at new "," at ");return typeof a=="function"&&Mi.set(a,De),De}while(X>=1&&ee>=0);break}}}finally{Ti=!1,Wr.current=y,bn(),Error.prepareStackTrace=m}var pe=a?a.displayName||a.name:"",$e=pe?Sn(pe):"";return typeof a=="function"&&Mi.set(a,$e),$e}function P(a,u,l){return g(a,!0)}function M(a,u,l){return g(a,!1)}function te(a){var u=a.prototype;return!!(u&&u.isReactComponent)}function Ce(a,u,l){if(a==null)return"";if(typeof a=="function")return g(a,te(a));if(typeof a=="string")return Sn(a);switch(a){case za:return Sn("Suspense");case ya:return Sn("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case $n:return M(a.render);case Ra:return Ce(a.type,u,l);case go:return M(a._render);case sa:{var c=a,m=c._payload,y=c._init;try{return Ce(y(m),u,l)}catch{}}}return""}function Be(a){var u=a._debugOwner?a._debugOwner.type:null,l=a._debugSource;switch(a.tag){case b:return Sn(a.type);case Re:return Sn("Lazy");case H:return Sn("Suspense");case ut:return Sn("SuspenseList");case h:case E:case xe:return M(a.type);case k:return M(a.type.render);case $:return M(a.type._render);case v:return P(a.type);default:return""}}function St(a){try{var u="",l=a;do u+=Be(l),l=l.return;while(l);return u}catch(c){return` Error generating stack: `+c.message+` -`+c.stack}}function Gt(a,u,l){var c=u.displayName||u.name||"";return a.displayName||(c!==""?l+"("+c+")":l)}function sr(a){return a.displayName||"Context"}function ct(a){if(a==null)return null;if(typeof a.tag=="number"&&f("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Jr:return"Fragment";case Yn:return"Portal";case va:return"Profiler";case Va:return"StrictMode";case za:return"Suspense";case ya:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case No:var u=a;return sr(u)+".Consumer";case Zi:var l=a;return sr(l._context)+".Provider";case Mn:return Gt(a,a.render,"ForwardRef");case Ra:return ct(a.type);case go:return ct(a._render);case sa:{var c=a,m=c._payload,y=c._init;try{return ct(y(m))}catch{return null}}}return null}var zn=i.ReactDebugCurrentFrame,Tn=null,ai=!1;function ji(){{if(Tn===null)return null;var a=Tn._debugOwner;if(a!==null&&typeof a<"u")return ct(a.type)}return null}function Ha(){return Tn===null?"":St(Tn)}function mn(){zn.getCurrentStack=null,Tn=null,ai=!1}function oi(a){zn.getCurrentStack=Ha,Tn=a,ai=!1}function Hn(a){ai=a}function ta(){return ai}function Rn(a){return""+a}function Wi(a){switch(typeof a){case"boolean":case"number":case"object":case"string":case"undefined":return a;default:return""}}var Is={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function bo(a,u){Is[u.type]||u.onChange||u.onInput||u.readOnly||u.disabled||u.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),u.onChange||u.readOnly||u.disabled||u.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qa(a){var u=a.type,l=a.nodeName;return l&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Gf(a){return a._valueTracker}function $o(a){a._valueTracker=null}function Eo(a){var u="";return a&&(qa(a)?u=a.checked?"true":"false":u=a.value),u}function kl(a){var u=qa(a)?"checked":"value",l=Object.getOwnPropertyDescriptor(a.constructor.prototype,u),c=""+a[u];if(!(a.hasOwnProperty(u)||typeof l>"u"||typeof l.get!="function"||typeof l.set!="function")){var m=l.get,y=l.set;Object.defineProperty(a,u,{configurable:!0,get:function(){return m.call(this)},set:function(D){c=""+D,y.call(this,D)}}),Object.defineProperty(a,u,{enumerable:l.enumerable});var _={getValue:function(){return c},setValue:function(D){c=""+D},stopTracking:function(){$o(a),delete a[u]}};return _}}function N(a){Gf(a)||(a._valueTracker=kl(a))}function ve(a){if(!a)return!1;var u=Gf(a);if(!u)return!0;var l=u.getValue(),c=Eo(a);return c!==l?(u.setValue(c),!0):!1}function Me(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var at=!1,Nt=!1,hr=!1,fr=!1;function rr(a){var u=a.type==="checkbox"||a.type==="radio";return u?a.checked!=null:a.value!=null}function ln(a,u){var l=a,c=u.checked,m=t({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??l._wrapperState.initialChecked});return m}function On(a,u){bo("input",u),u.checked!==void 0&&u.defaultChecked!==void 0&&!Nt&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ji()||"A component",u.type),Nt=!0),u.value!==void 0&&u.defaultValue!==void 0&&!at&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ji()||"A component",u.type),at=!0);var l=a,c=u.defaultValue==null?"":u.defaultValue;l._wrapperState={initialChecked:u.checked!=null?u.checked:u.defaultChecked,initialValue:Wi(u.value!=null?u.value:c),controlled:rr(u)}}function kn(a,u){var l=a,c=u.checked;c!=null&&wi(l,"checked",c,!1)}function Qn(a,u){var l=a;{var c=rr(u);!l._wrapperState.controlled&&c&&!fr&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fr=!0),l._wrapperState.controlled&&!c&&!hr&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),hr=!0)}kn(a,u);var m=Wi(u.value),y=u.type;if(m!=null)y==="number"?(m===0&&l.value===""||l.value!=m)&&(l.value=Rn(m)):l.value!==Rn(m)&&(l.value=Rn(m));else if(y==="submit"||y==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?Mo(l,u.type,m):u.hasOwnProperty("defaultValue")&&Mo(l,u.type,Wi(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function ra(a,u,l){var c=a;if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var m=u.type,y=m==="submit"||m==="reset";if(y&&(u.value===void 0||u.value===null))return;var _=Rn(c._wrapperState.initialValue);l||_!==c.value&&(c.value=_),c.defaultValue=_}var D=c.name;D!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,D!==""&&(c.name=D)}function na(a,u){var l=a;Qn(l,u),Oa(l,u)}function Oa(a,u){var l=u.name;if(u.type==="radio"&&l!=null){for(var c=a;c.parentNode;)c=c.parentNode;for(var m=c.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),y=0;y children."))))}),u.selected!=null&&!Uu&&(f("Use the `defaultValue` or `value` props on instead of setting `selected` on