@nocobase/app 0.17.0-alpha.7 → 0.18.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/src/.umi-production/core/pluginConfig.ts +7 -1
- package/client/src/.umi-production/core/polyfill.ts +1 -1
- package/client/src/.umi-production/exports.ts +6 -3
- package/client/src/.umi-production/umi.ts +1 -1
- package/dist/client/501.9a9a34fd.async.js +1 -0
- package/dist/client/5235.22384beb.async.js +8 -0
- package/dist/client/7476.54ec963f.async.js +67 -0
- package/dist/client/index.html +1 -1
- package/dist/client/npm._at_ant-design.c8da2180.async.js +110 -0
- package/dist/client/{npm._at_antv.075b2cb5.async.js → npm._at_antv.bb7e0163.async.js} +18 -18
- package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +6 -0
- package/dist/client/npm._at_emotion.8e5c8bc0.async.js +5 -0
- package/dist/client/npm._at_formily.fd7edd94.async.js +101 -0
- package/dist/client/{npm._at_popperjs.239b27c0.async.js → npm._at_popperjs.ac099936.async.js} +1 -1
- package/dist/client/npm._at_rc-component.f3da9f04.async.js +5 -0
- package/dist/client/npm.antd-style.17236528.async.js +1 -0
- package/dist/client/npm.antd.848dff87.async.js +471 -0
- package/dist/client/npm.cytoscape.39239e7b.async.js +5 -0
- package/dist/client/npm.dayjs.0b96e4ef.async.js +1 -0
- package/dist/client/npm.entities.164ef922.async.js +1 -0
- package/dist/client/{npm.highlight.js.44877676.async.js → npm.highlight.js.10e70f9e.async.js} +1 -1
- package/dist/client/{npm.html-tokenize.f9791764.async.js → npm.html-tokenize.a34dd9b4.async.js} +1 -1
- package/dist/client/npm.htmlparser2.cbbea4c4.async.js +2 -0
- package/dist/client/{npm.lodash.93d1c62b.async.js → npm.lodash.0f9322fa.async.js} +2 -2
- package/dist/client/npm.luxon.5d2c85e2.async.js +2 -0
- package/dist/client/{npm.mathjs.be9ec2d3.async.js → npm.mathjs.d8df2940.async.js} +1 -1
- package/dist/client/npm.mermaid.e7a40d6f.async.js +1530 -0
- package/dist/client/npm.postcss.b0c2a099.async.js +28 -0
- package/dist/client/npm.rc-cascader.bf35f374.async.js +1 -0
- package/dist/client/npm.rc-menu.5ccd0102.async.js +1 -0
- package/dist/client/npm.rc-picker.a6a5e6bc.async.js +1 -0
- package/dist/client/npm.rc-select.6df54e75.async.js +3 -0
- package/dist/client/npm.rc-table.67f7d15f.async.js +1 -0
- package/dist/client/npm.rc-tree.6e700913.async.js +1 -0
- package/dist/client/npm.rc-util.64745f61.async.js +18 -0
- package/dist/client/npm.react-big-calendar.19736c65.async.js +1 -0
- package/dist/client/npm.react-router-dom.3fe2134f.async.js +2 -0
- package/dist/client/p__index.0fbd450d.async.js +1466 -0
- package/dist/client/umi.ddfa9dcc.js +22 -0
- package/package.json +6 -6
- package/dist/client/1862.d725f0c3.async.js +0 -61
- package/dist/client/501.ba2433f5.async.js +0 -1
- package/dist/client/5235.60b26416.async.js +0 -8
- package/dist/client/npm._at_ant-design.9562f422.async.js +0 -112
- package/dist/client/npm._at_dnd-kit.69800acb.async.js +0 -6
- package/dist/client/npm._at_emotion.9832fe3a.async.js +0 -5
- package/dist/client/npm._at_formily.debb4155.async.js +0 -101
- package/dist/client/npm._at_rc-component.47bb9ad7.async.js +0 -5
- package/dist/client/npm._at_remix-run.48a662f9.async.js +0 -3
- package/dist/client/npm.antd-style.96f809fe.async.js +0 -1
- package/dist/client/npm.antd.90b7ad5e.async.js +0 -591
- package/dist/client/npm.cytoscape.bccd98b6.async.js +0 -5
- package/dist/client/npm.dayjs.0f9daced.async.js +0 -1
- package/dist/client/npm.luxon.d95deda7.async.js +0 -2
- package/dist/client/npm.mermaid.cd65c0a9.async.js +0 -1530
- package/dist/client/npm.postcss.760ca1af.async.js +0 -28
- package/dist/client/npm.rc-cascader.319b3624.async.js +0 -1
- package/dist/client/npm.rc-menu.e5a2b0b6.async.js +0 -1
- package/dist/client/npm.rc-picker.3e998b7d.async.js +0 -1
- package/dist/client/npm.rc-select.201649e6.async.js +0 -3
- package/dist/client/npm.rc-table.3e14a5f9.async.js +0 -1
- package/dist/client/npm.rc-tabs.d77275e8.async.js +0 -1
- package/dist/client/npm.rc-util.9a802879.async.js +0 -18
- package/dist/client/npm.react-beautiful-dnd.9d0d24f3.async.js +0 -65
- package/dist/client/npm.react-big-calendar.42f51710.async.js +0 -1
- package/dist/client/npm.react-redux.cfaadeef.async.js +0 -5
- package/dist/client/npm.sanitize-html.2a16ee9c.async.js +0 -9
- package/dist/client/npm.swr.e0173e82.async.js +0 -2
- package/dist/client/p__index.74c6e5fb.async.js +0 -1720
- package/dist/client/umi.24b61dfc.js +0 -22
|
@@ -33,6 +33,9 @@ interface IConfigTypes {
|
|
|
33
33
|
routes?: IConfigTypes['routes'];
|
|
34
34
|
wrappers?: (Array<string> | undefined);
|
|
35
35
|
} | { [x: string]: any }>;
|
|
36
|
+
routeLoader: {
|
|
37
|
+
moduleType: "esm" | "cjs";
|
|
38
|
+
};
|
|
36
39
|
reactRouter5Compat: boolean | {
|
|
37
40
|
|
|
38
41
|
};
|
|
@@ -83,12 +86,13 @@ interface IConfigTypes {
|
|
|
83
86
|
targets: { [x: string]: any };
|
|
84
87
|
svgr: { [x: string]: any };
|
|
85
88
|
svgo: { [x: string]: any } | boolean;
|
|
89
|
+
stylusLoader: { [x: string]: any };
|
|
86
90
|
styleLoader: { [x: string]: any };
|
|
87
91
|
srcTranspilerOptions: {
|
|
88
92
|
esbuild?: ({ [x: string]: any } | undefined);
|
|
89
93
|
swc?: ({ [x: string]: any } | undefined);
|
|
90
94
|
};
|
|
91
|
-
srcTranspiler: "babel" | "esbuild" | "swc"
|
|
95
|
+
srcTranspiler: "babel" | "esbuild" | "swc";
|
|
92
96
|
sassLoader: { [x: string]: any };
|
|
93
97
|
runtimePublicPath: {
|
|
94
98
|
|
|
@@ -153,6 +157,7 @@ interface IConfigTypes {
|
|
|
153
157
|
failOnHint?: (boolean | undefined);
|
|
154
158
|
patterns?: (Array<string> | undefined);
|
|
155
159
|
};
|
|
160
|
+
cssPublicPath: string;
|
|
156
161
|
cssMinifierOptions: { [x: string]: any };
|
|
157
162
|
cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
|
|
158
163
|
cssLoaderModules: { [x: string]: any };
|
|
@@ -176,6 +181,7 @@ interface IConfigTypes {
|
|
|
176
181
|
};
|
|
177
182
|
exportStatic: {
|
|
178
183
|
extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
|
|
184
|
+
ignorePreRenderError?: (boolean | undefined);
|
|
179
185
|
};
|
|
180
186
|
favicons: Array<string>;
|
|
181
187
|
helmet: boolean;
|
|
@@ -233,5 +233,5 @@ import "/__w/nocobase/nocobase/node_modules/core-js/modules/web.structured-clone
|
|
|
233
233
|
import "/__w/nocobase/nocobase/node_modules/core-js/modules/web.url.js";
|
|
234
234
|
import "/__w/nocobase/nocobase/node_modules/core-js/modules/web.url.to-json.js";
|
|
235
235
|
import "/__w/nocobase/nocobase/node_modules/core-js/modules/web.url-search-params.js";
|
|
236
|
-
import '/__w/nocobase/nocobase/node_modules/regenerator-runtime/runtime.js';
|
|
236
|
+
import '/__w/nocobase/nocobase/node_modules/@umijs/preset-umi/node_modules/regenerator-runtime/runtime.js';
|
|
237
237
|
export {};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// This file is generated by Umi automatically
|
|
3
3
|
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
// defineApp
|
|
4
5
|
export { defineApp } from './core/defineApp'
|
|
5
6
|
export type { RuntimeConfig } from './core/defineApp'
|
|
7
|
+
// plugins
|
|
8
|
+
// plugins types.d.ts
|
|
6
9
|
// @umijs/renderer-*
|
|
7
10
|
export { createBrowserHistory, createHashHistory, createMemoryHistory, Helmet, HelmetProvider, createSearchParams, generatePath, matchPath, matchRoutes, Navigate, NavLink, Outlet, resolvePath, useLocation, useMatch, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, useSearchParams, useAppData, useClientLoaderData, useRouteProps, useSelectedRoutes, useServerLoaderData, renderClient, __getRoot, Link, useRouteData, __useFetcher, withRouter } from '/__w/nocobase/nocobase/node_modules/@umijs/renderer-react';
|
|
8
|
-
export type {
|
|
11
|
+
export type { History } from '/__w/nocobase/nocobase/node_modules/@umijs/renderer-react'
|
|
9
12
|
// umi/client/client/plugin
|
|
10
13
|
export { ApplyPluginsType, PluginManager } from '/__w/nocobase/nocobase/node_modules/umi/client/client/plugin.js';
|
|
11
14
|
export { history, createHistory } from './core/history';
|
|
12
15
|
export { terminal } from './core/terminal';
|
|
13
|
-
//
|
|
14
|
-
|
|
16
|
+
// react ssr
|
|
17
|
+
export const useServerInsertedHTML: Function = () => {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[501],{80501:function(P,m,e){e.r(m),e.d(m,{default:function(){return I}});var y=e(9980),j=e.n(y),p=e(34138),x=e.n(p),C=e(97857),k=e.n(C),o=e(4737);function A(l,L){o.o.initialize(k()({securityLevel:"loose"},L));function R(n){return n.split(/\s+/g)[0]}var u=l.renderer.rules.fence;function E(n,c,F,H,s){var v=n[c],f=v.info.trim(),N=f?R(f):"";if(["mermaid","{mermaid}"].indexOf(N)===-1)return u!==void 0?u(n,c,F,H,s):"";var g="",a=[],r=document.createElement("div");document.body.appendChild(r);try{var h="mermaid-container";o.o.mermaidAPI.render(h,v.content,function(d){var i=document.getElementById(h);i!==null&&a.push(["style","max-width:".concat(i.style.maxWidth,";max-height:").concat(i.style.maxHeight)]),g=d},r)}catch(d){return'<div class="alert alert-danger">'.concat(d,"</div>")}finally{r.remove()}return a.push(["src","data:image/svg+xml,".concat(encodeURIComponent(g))]),"<img ".concat(s.renderAttrs({attrs:a}),">")}l.renderer.rules.fence=E}var t=new(j())({html:!0,linkify:!0,typographer:!0,breaks:!0});t.use(x()),t.use(A);var I=t}}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
!(function(){var or=Math.pow;(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5235],{17967:function(ct,tt){"use strict";var P;P={value:!0},tt.Nm=tt.Rq=void 0;var O=/^([^\w]*)(javascript|data|vbscript)/im,B=/&#(\w+)(^\w|;)?/g,N=/&(newline|tab);/gi,E=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,F=/^.+(:|:)/gim,w=[".","/"];tt.Rq="about:blank";function S(y){return w.indexOf(y[0])>-1}function M(y){var c=y.replace(E,"");return c.replace(B,function(g,x){return String.fromCharCode(x)})}function p(y){if(!y)return tt.Rq;var c=M(y).replace(N,"").replace(E,"").trim();if(!c)return tt.Rq;if(S(c))return c;var g=c.match(F);if(!g)return c;var x=g[0];return O.test(x)?tt.Rq:c}tt.Nm=p},34138:function(ct,tt,P){const O=P(77869);function B(p){try{return p()}catch(y){return!1}}const N=p=>p&&Object.entries(p).map(([y,c])=>{O.registerLanguage(y,c)}),E=(p,y)=>B(()=>O.highlight(y||"plaintext",p,!0).value)||"",F=(p,y)=>y?E(p,y):B(()=>O.highlightAuto(p).value)||"",w=p=>function(...y){return p.apply(this,y).replace('<code class="','<code class="hljs ').replace("<code>",'<code class="hljs">')};function S(p,y,c,g){const x=y[c],A=y[c+1];let H;if(A&&A.type==="text"){const Ct=/^{:?\.([^}]+)}/.exec(A.content);Ct&&(H=Ct[1],A.content=A.content.slice(Ct[0].length))}const it=g.highlight(x.content,H);return`<code${H?` class="${g.langPrefix}${p.utils.escapeHtml(H)}"`:""}>${it}</code>`}const M=(p,y)=>{y=Object.assign({},M.defaults,y),N(y.register),p.options.highlight=y.auto?F:E,p.renderer.rules.fence=w(p.renderer.rules.fence),y.code&&(p.renderer.rules.code_block=w(p.renderer.rules.code_block)),y.inline&&(p.renderer.rules.code_inline=S.bind(null,p))};M.defaults={auto:!0,code:!0,inline:!1},ct.exports=M},83122:function(ct){"use strict";var tt={};function P(B){var N,E,F=tt[B];if(F)return F;for(F=tt[B]=[],N=0;N<128;N++)E=String.fromCharCode(N),F.push(E);for(N=0;N<B.length;N++)E=B.charCodeAt(N),F[E]="%"+("0"+E.toString(16).toUpperCase()).slice(-2);return F}function O(B,N){var E;return typeof N!="string"&&(N=O.defaultChars),E=P(N),B.replace(/(%[a-f0-9]{2})+/gi,function(F){var w,S,M,p,y,c,g,x="";for(w=0,S=F.length;w<S;w+=3){if(M=parseInt(F.slice(w+1,w+3),16),M<128){x+=E[M];continue}if((M&224)===192&&w+3<S&&(p=parseInt(F.slice(w+4,w+6),16),(p&192)===128)){g=M<<6&1984|p&63,g<128?x+="\uFFFD\uFFFD":x+=String.fromCharCode(g),w+=3;continue}if((M&240)===224&&w+6<S&&(p=parseInt(F.slice(w+4,w+6),16),y=parseInt(F.slice(w+7,w+9),16),(p&192)===128&&(y&192)===128)){g=M<<12&61440|p<<6&4032|y&63,g<2048||g>=55296&&g<=57343?x+="\uFFFD\uFFFD\uFFFD":x+=String.fromCharCode(g),w+=6;continue}if((M&248)===240&&w+9<S&&(p=parseInt(F.slice(w+4,w+6),16),y=parseInt(F.slice(w+7,w+9),16),c=parseInt(F.slice(w+10,w+12),16),(p&192)===128&&(y&192)===128&&(c&192)===128)){g=M<<18&1835008|p<<12&258048|y<<6&4032|c&63,g<65536||g>1114111?x+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,x+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),w+=9;continue}x+="\uFFFD"}return x})}O.defaultChars=";/?:@&=+$,#",O.componentChars="",ct.exports=O},70729:function(ct){"use strict";var tt={};function P(B){var N,E,F=tt[B];if(F)return F;for(F=tt[B]=[],N=0;N<128;N++)E=String.fromCharCode(N),/^[0-9a-z]$/i.test(E)?F.push(E):F.push("%"+("0"+N.toString(16).toUpperCase()).slice(-2));for(N=0;N<B.length;N++)F[B.charCodeAt(N)]=B[N];return F}function O(B,N,E){var F,w,S,M,p,y="";for(typeof N!="string"&&(E=N,N=O.defaultChars),typeof E=="undefined"&&(E=!0),p=P(N),F=0,w=B.length;F<w;F++){if(S=B.charCodeAt(F),E&&S===37&&F+2<w&&/^[0-9a-f]{2}$/i.test(B.slice(F+1,F+3))){y+=B.slice(F,F+3),F+=2;continue}if(S<128){y+=p[S];continue}if(S>=55296&&S<=57343){if(S>=55296&&S<=56319&&F+1<w&&(M=B.charCodeAt(F+1),M>=56320&&M<=57343)){y+=encodeURIComponent(B[F]+B[F+1]),F++;continue}y+="%EF%BF%BD";continue}y+=encodeURIComponent(B[F])}return y}O.defaultChars=";/?:@&=+$,-_.!~*'()#",O.componentChars="-_.!~*'()",ct.exports=O},2201:function(ct){"use strict";ct.exports=function(P){var O="";return O+=P.protocol||"",O+=P.slashes?"//":"",O+=P.auth?P.auth+"@":"",P.hostname&&P.hostname.indexOf(":")!==-1?O+="["+P.hostname+"]":O+=P.hostname||"",O+=P.port?":"+P.port:"",O+=P.pathname||"",O+=P.search||"",O+=P.hash||"",O}},48765:function(ct,tt,P){"use strict";ct.exports.encode=P(70729),ct.exports.decode=P(83122),ct.exports.format=P(2201),ct.exports.parse=P(9553)},9553:function(ct){"use strict";function tt(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var P=/^([a-z0-9.+-]+:)/i,O=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,N=["<",">",'"',"`"," ","\r",`
|
|
2
|
+
`," "],E=["{","}","|","\\","^","`"].concat(N),F=["'"].concat(E),w=["%","/","?",";","#"].concat(F),S=["/","?","#"],M=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,c={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function x(A,H){if(A&&A instanceof tt)return A;var it=new tt;return it.parse(A,H),it}tt.prototype.parse=function(A,H){var it,yt,Ct,lt,G,l=A;if(l=l.trim(),!H&&A.split("#").length===1){var _=B.exec(l);if(_)return this.pathname=_[1],_[2]&&(this.search=_[2]),this}var X=P.exec(l);if(X&&(X=X[0],Ct=X.toLowerCase(),this.protocol=X,l=l.substr(X.length)),(H||X||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(G=l.substr(0,2)==="//",G&&!(X&&c[X])&&(l=l.substr(2),this.slashes=!0)),!c[X]&&(G||X&&!g[X])){var et=-1;for(it=0;it<S.length;it++)lt=l.indexOf(S[it]),lt!==-1&&(et===-1||lt<et)&&(et=lt);var gt,st;for(et===-1?st=l.lastIndexOf("@"):st=l.lastIndexOf("@",et),st!==-1&&(gt=l.slice(0,st),l=l.slice(st+1),this.auth=gt),et=-1,it=0;it<w.length;it++)lt=l.indexOf(w[it]),lt!==-1&&(et===-1||lt<et)&&(et=lt);et===-1&&(et=l.length),l[et-1]===":"&&et--;var Xt=l.slice(0,et);l=l.slice(et),this.parseHost(Xt),this.hostname=this.hostname||"";var jt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!jt){var Wt=this.hostname.split(/\./);for(it=0,yt=Wt.length;it<yt;it++){var U=Wt[it];if(U&&!U.match(p)){for(var ut="",ht=0,mt=U.length;ht<mt;ht++)U.charCodeAt(ht)>127?ut+="x":ut+=U[ht];if(!ut.match(p)){var Mt=Wt.slice(0,it),St=Wt.slice(it+1),Ot=U.match(y);Ot&&(Mt.push(Ot[1]),St.unshift(Ot[2])),St.length&&(l=St.join(".")+l),this.hostname=Mt.join(".");break}}}}this.hostname.length>M&&(this.hostname=""),jt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var _t=l.indexOf("#");_t!==-1&&(this.hash=l.substr(_t),l=l.slice(0,_t));var Nt=l.indexOf("?");return Nt!==-1&&(this.search=l.substr(Nt),l=l.slice(0,Nt)),l&&(this.pathname=l),g[Ct]&&this.hostname&&!this.pathname&&(this.pathname=""),this},tt.prototype.parseHost=function(A){var H=O.exec(A);H&&(H=H[0],H!==":"&&(this.port=H.substr(1)),A=A.substr(0,A.length-H.length)),A&&(this.hostname=A)},ct.exports=x},3689:function(ct,tt,P){"use strict";P.r(tt),P.d(tt,{decode:function(){return gt},encode:function(){return st},toASCII:function(){return jt},toUnicode:function(){return Xt},ucs2decode:function(){return G},ucs2encode:function(){return l}});const O=2147483647,B=36,N=1,E=26,F=38,w=700,S=72,M=128,p="-",y=/^xn--/,c=/[^\0-\x7F]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=B-N,H=Math.floor,it=String.fromCharCode;function yt(U){throw new RangeError(x[U])}function Ct(U,ut){const ht=[];let mt=U.length;for(;mt--;)ht[mt]=ut(U[mt]);return ht}function lt(U,ut){const ht=U.split("@");let mt="";ht.length>1&&(mt=ht[0]+"@",U=ht[1]),U=U.replace(g,".");const Mt=U.split("."),St=Ct(Mt,ut).join(".");return mt+St}function G(U){const ut=[];let ht=0;const mt=U.length;for(;ht<mt;){const Mt=U.charCodeAt(ht++);if(Mt>=55296&&Mt<=56319&&ht<mt){const St=U.charCodeAt(ht++);(St&64512)==56320?ut.push(((Mt&1023)<<10)+(St&1023)+65536):(ut.push(Mt),ht--)}else ut.push(Mt)}return ut}const l=U=>String.fromCodePoint(...U),_=function(U){return U>=48&&U<58?26+(U-48):U>=65&&U<91?U-65:U>=97&&U<123?U-97:B},X=function(U,ut){return U+22+75*(U<26)-((ut!=0)<<5)},et=function(U,ut,ht){let mt=0;for(U=ht?H(U/w):U>>1,U+=H(U/ut);U>A*E>>1;mt+=B)U=H(U/A);return H(mt+(A+1)*U/(U+F))},gt=function(U){const ut=[],ht=U.length;let mt=0,Mt=M,St=S,Ot=U.lastIndexOf(p);Ot<0&&(Ot=0);for(let _t=0;_t<Ot;++_t)U.charCodeAt(_t)>=128&&yt("not-basic"),ut.push(U.charCodeAt(_t));for(let _t=Ot>0?Ot+1:0;_t<ht;){const Nt=mt;for(let Zt=1,Rt=B;;Rt+=B){_t>=ht&&yt("invalid-input");const Kt=_(U.charCodeAt(_t++));Kt>=B&&yt("invalid-input"),Kt>H((O-mt)/Zt)&&yt("overflow"),mt+=Kt*Zt;const rn=Rt<=St?N:Rt>=St+E?E:Rt-St;if(Kt<rn)break;const cn=B-rn;Zt>H(O/cn)&&yt("overflow"),Zt*=cn}const Qt=ut.length+1;St=et(mt-Nt,Qt,Nt==0),H(mt/Qt)>O-Mt&&yt("overflow"),Mt+=H(mt/Qt),mt%=Qt,ut.splice(mt++,0,Mt)}return String.fromCodePoint(...ut)},st=function(U){const ut=[];U=G(U);const ht=U.length;let mt=M,Mt=0,St=S;for(const Nt of U)Nt<128&&ut.push(it(Nt));const Ot=ut.length;let _t=Ot;for(Ot&&ut.push(p);_t<ht;){let Nt=O;for(const Zt of U)Zt>=mt&&Zt<Nt&&(Nt=Zt);const Qt=_t+1;Nt-mt>H((O-Mt)/Qt)&&yt("overflow"),Mt+=(Nt-mt)*Qt,mt=Nt;for(const Zt of U)if(Zt<mt&&++Mt>O&&yt("overflow"),Zt===mt){let Rt=Mt;for(let Kt=B;;Kt+=B){const rn=Kt<=St?N:Kt>=St+E?E:Kt-St;if(Rt<rn)break;const cn=Rt-rn,Ln=B-rn;ut.push(it(X(rn+cn%Ln,0))),Rt=H(cn/Ln)}ut.push(it(X(Rt,0))),St=et(Mt,Qt,_t===Ot),Mt=0,++_t}++Mt,++mt}return ut.join("")},Xt=function(U){return lt(U,function(ut){return y.test(ut)?gt(ut.slice(4).toLowerCase()):ut})},jt=function(U){return lt(U,function(ut){return c.test(ut)?"xn--"+st(ut):ut})},Wt={version:"2.3.1",ucs2:{decode:G,encode:l},decode:gt,encode:st,toASCII:jt,toUnicode:Xt};tt.default=Wt},18464:function(ct,tt,P){"use strict";function O(B){for(var N=[],E=1;E<arguments.length;E++)N[E-1]=arguments[E];var F=Array.from(typeof B=="string"?[B]:B);F[F.length-1]=F[F.length-1].replace(/\r?\n([\t ]*)$/,"");var w=F.reduce(function(p,y){var c=y.match(/\n([\t ]+|(?!\s).)/g);return c?p.concat(c.map(function(g){var x,A;return(A=(x=g.match(/[\t ]/g))===null||x===void 0?void 0:x.length)!==null&&A!==void 0?A:0})):p},[]);if(w.length){var S=new RegExp(`
|
|
3
|
+
[ ]{`+Math.min.apply(Math,w)+"}","g");F=F.map(function(p){return p.replace(S,`
|
|
4
|
+
`)})}F[0]=F[0].replace(/^\r?\n/,"");var M=F[0];return N.forEach(function(p,y){var c=M.match(/(?:^|\n)( *)$/),g=c?c[1]:"",x=p;typeof p=="string"&&p.includes(`
|
|
5
|
+
`)&&(x=String(p).split(`
|
|
6
|
+
`).map(function(A,H){return H===0?A:""+g+A}).join(`
|
|
7
|
+
`)),M+=x+F[y+1]}),M}tt.C=O},99413:function(ct){ct.exports=/[\0-\x1F\x7F-\x9F]/},52326:function(ct){ct.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},73189:function(ct){ct.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(ct){ct.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},84205:function(ct,tt,P){"use strict";tt.Any=P(29369),tt.Cc=P(99413),tt.Cf=P(52326),tt.P=P(73189),tt.Z=P(35045)},29369:function(ct){ct.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},17049:function(ct,tt){"use strict";var P={value:function(){}};function O(){for(var w=0,S=arguments.length,M={},p;w<S;++w){if(!(p=arguments[w]+"")||p in M||/[\s.]/.test(p))throw new Error("illegal type: "+p);M[p]=[]}return new B(M)}function B(w){this._=w}function N(w,S){return w.trim().split(/^|\s+/).map(function(M){var p="",y=M.indexOf(".");if(y>=0&&(p=M.slice(y+1),M=M.slice(0,y)),M&&!S.hasOwnProperty(M))throw new Error("unknown type: "+M);return{type:M,name:p}})}B.prototype=O.prototype={constructor:B,on:function(S,M){var p=this._,y=N(S+"",p),c,g=-1,x=y.length;if(arguments.length<2){for(;++g<x;)if((c=(S=y[g]).type)&&(c=E(p[c],S.name)))return c;return}if(M!=null&&typeof M!="function")throw new Error("invalid callback: "+M);for(;++g<x;)if(c=(S=y[g]).type)p[c]=F(p[c],S.name,M);else if(M==null)for(c in p)p[c]=F(p[c],S.name,null);return this},copy:function(){var S={},M=this._;for(var p in M)S[p]=M[p].slice();return new B(S)},call:function(S,M){if((c=arguments.length-2)>0)for(var p=new Array(c),y=0,c,g;y<c;++y)p[y]=arguments[y+2];if(!this._.hasOwnProperty(S))throw new Error("unknown type: "+S);for(g=this._[S],y=0,c=g.length;y<c;++y)g[y].value.apply(M,p)},apply:function(S,M,p){if(!this._.hasOwnProperty(S))throw new Error("unknown type: "+S);for(var y=this._[S],c=0,g=y.length;c<g;++c)y[c].value.apply(M,p)}};function E(w,S){for(var M=0,p=w.length,y;M<p;++M)if((y=w[M]).name===S)return y.value}function F(w,S,M){for(var p=0,y=w.length;p<y;++p)if(w[p].name===S){w[p]=P,w=w.slice(0,p).concat(w.slice(p+1));break}return M!=null&&w.push({name:S,value:M}),w}tt.Z=O},60898:function(ct,tt,P){"use strict";P.d(tt,{Y:function(){return p},w:function(){return y}});var O=P(79848),B=180/Math.PI,N={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(c,g,x,A,H,it){var yt,Ct,lt;return(yt=Math.sqrt(c*c+g*g))&&(c/=yt,g/=yt),(lt=c*x+g*A)&&(x-=c*lt,A-=g*lt),(Ct=Math.sqrt(x*x+A*A))&&(x/=Ct,A/=Ct,lt/=Ct),c*A<g*x&&(c=-c,g=-g,lt=-lt,yt=-yt),{translateX:H,translateY:it,rotate:Math.atan2(g,c)*B,skewX:Math.atan(lt)*B,scaleX:yt,scaleY:Ct}}var F;function w(c){var g=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(c+"");return g.isIdentity?N:E(g.a,g.b,g.c,g.d,g.e,g.f)}function S(c){return c==null||(F||(F=document.createElementNS("http://www.w3.org/2000/svg","g")),F.setAttribute("transform",c),!(c=F.transform.baseVal.consolidate()))?N:(c=c.matrix,E(c.a,c.b,c.c,c.d,c.e,c.f))}function M(c,g,x,A){function H(G){return G.length?G.pop()+" ":""}function it(G,l,_,X,et,gt){if(G!==_||l!==X){var st=et.push("translate(",null,g,null,x);gt.push({i:st-4,x:(0,O.Z)(G,_)},{i:st-2,x:(0,O.Z)(l,X)})}else(_||X)&&et.push("translate("+_+g+X+x)}function yt(G,l,_,X){G!==l?(G-l>180?l+=360:l-G>180&&(G+=360),X.push({i:_.push(H(_)+"rotate(",null,A)-2,x:(0,O.Z)(G,l)})):l&&_.push(H(_)+"rotate("+l+A)}function Ct(G,l,_,X){G!==l?X.push({i:_.push(H(_)+"skewX(",null,A)-2,x:(0,O.Z)(G,l)}):l&&_.push(H(_)+"skewX("+l+A)}function lt(G,l,_,X,et,gt){if(G!==_||l!==X){var st=et.push(H(et)+"scale(",null,",",null,")");gt.push({i:st-4,x:(0,O.Z)(G,_)},{i:st-2,x:(0,O.Z)(l,X)})}else(_!==1||X!==1)&&et.push(H(et)+"scale("+_+","+X+")")}return function(G,l){var _=[],X=[];return G=c(G),l=c(l),it(G.translateX,G.translateY,l.translateX,l.translateY,_,X),yt(G.rotate,l.rotate,_,X),Ct(G.skewX,l.skewX,_,X),lt(G.scaleX,G.scaleY,l.scaleX,l.scaleY,_,X),G=l=null,function(et){for(var gt=-1,st=X.length,Xt;++gt<st;)_[(Xt=X[gt]).i]=Xt.x(et);return _.join("")}}}var p=M(w,"px, ","px)","deg)"),y=M(S,", ",")",")")},2067:function(ct,tt,P){"use strict";P.d(tt,{tw:function(){return N}});function O(E){return E*E*E}function B(E){return--E*E*E+1}function N(E){return((E*=2)<=1?E*E*E:(E-=2)*E*E+2)/2}},79906:function(ct,tt,P){"use strict";P.d(tt,{y$:function(){return S}});const O=Math.PI,B=2*O,N=1e-6,E=B-N;function F(y){this._+=y[0];for(let c=1,g=y.length;c<g;++c)this._+=arguments[c]+y[c]}function w(y){let c=Math.floor(y);if(!(c>=0))throw new Error(`invalid digits: ${y}`);if(c>15)return F;const g=or(10,c);return function(x){this._+=x[0];for(let A=1,H=x.length;A<H;++A)this._+=Math.round(arguments[A]*g)/g+x[A]}}class S{constructor(c){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=c==null?F:w(c)}moveTo(c,g){this._append`M${this._x0=this._x1=+c},${this._y0=this._y1=+g}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(c,g){this._append`L${this._x1=+c},${this._y1=+g}`}quadraticCurveTo(c,g,x,A){this._append`Q${+c},${+g},${this._x1=+x},${this._y1=+A}`}bezierCurveTo(c,g,x,A,H,it){this._append`C${+c},${+g},${+x},${+A},${this._x1=+H},${this._y1=+it}`}arcTo(c,g,x,A,H){if(c=+c,g=+g,x=+x,A=+A,H=+H,H<0)throw new Error(`negative radius: ${H}`);let it=this._x1,yt=this._y1,Ct=x-c,lt=A-g,G=it-c,l=yt-g,_=G*G+l*l;if(this._x1===null)this._append`M${this._x1=c},${this._y1=g}`;else if(_>N)if(!(Math.abs(l*Ct-lt*G)>N)||!H)this._append`L${this._x1=c},${this._y1=g}`;else{let X=x-it,et=A-yt,gt=Ct*Ct+lt*lt,st=X*X+et*et,Xt=Math.sqrt(gt),jt=Math.sqrt(_),Wt=H*Math.tan((O-Math.acos((gt+_-st)/(2*Xt*jt)))/2),U=Wt/jt,ut=Wt/Xt;Math.abs(U-1)>N&&this._append`L${c+U*G},${g+U*l}`,this._append`A${H},${H},0,0,${+(l*X>G*et)},${this._x1=c+ut*Ct},${this._y1=g+ut*lt}`}}arc(c,g,x,A,H,it){if(c=+c,g=+g,x=+x,it=!!it,x<0)throw new Error(`negative radius: ${x}`);let yt=x*Math.cos(A),Ct=x*Math.sin(A),lt=c+yt,G=g+Ct,l=1^it,_=it?A-H:H-A;this._x1===null?this._append`M${lt},${G}`:(Math.abs(this._x1-lt)>N||Math.abs(this._y1-G)>N)&&this._append`L${lt},${G}`,x&&(_<0&&(_=_%B+B),_>E?this._append`A${x},${x},0,1,${l},${c-yt},${g-Ct}A${x},${x},0,1,${l},${this._x1=lt},${this._y1=G}`:_>N&&this._append`A${x},${x},0,${+(_>=O)},${l},${this._x1=c+x*Math.cos(H)},${this._y1=g+x*Math.sin(H)}`)}rect(c,g,x,A){this._append`M${this._x0=this._x1=+c},${this._y0=this._y1=+g}h${x=+x}v${+A}h${-x}Z`}toString(){return this._}}function M(){return new S}M.prototype=S.prototype;function p(y=3){return new S(+y)}},76084:function(ct,tt,P){"use strict";P.d(tt,{Z:function(){return B}});var O=P(91739);function B(N,E,F){var w=new O.B7;return E=E==null?0:+E,w.restart(S=>{w.stop(),N(S+E)},E,F),w}},91739:function(ct,tt,P){"use strict";P.d(tt,{B7:function(){return A},HT:function(){return H},zO:function(){return g}});var O=0,B=0,N=0,E=1e3,F,w,S=0,M=0,p=0,y=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function g(){return M||(c(x),M=y.now()+p)}function x(){M=0}function A(){this._call=this._time=this._next=null}A.prototype=H.prototype={constructor:A,restart:function(l,_,X){if(typeof l!="function")throw new TypeError("callback is not a function");X=(X==null?g():+X)+(_==null?0:+_),!this._next&&w!==this&&(w?w._next=this:F=this,w=this),this._call=l,this._time=X,G()},stop:function(){this._call&&(this._call=null,this._time=1/0,G())}};function H(l,_,X){var et=new A;return et.restart(l,_,X),et}function it(){g(),++O;for(var l=F,_;l;)(_=M-l._time)>=0&&l._call.call(void 0,_),l=l._next;--O}function yt(){M=(S=y.now())+p,O=B=0;try{it()}finally{O=0,lt(),M=0}}function Ct(){var l=y.now(),_=l-S;_>E&&(p-=_,S=l)}function lt(){for(var l,_=F,X,et=1/0;_;)_._call?(et>_._time&&(et=_._time),l=_,_=_._next):(X=_._next,_._next=null,_=l?l._next=X:F=X);w=l,G(et)}function G(l){if(!O){B&&(B=clearTimeout(B));var _=l-M;_>24?(l<1/0&&(B=setTimeout(yt,l-y.now()-p)),N&&(N=clearInterval(N))):(N||(S=y.now(),N=setInterval(Ct,E)),O=1,c(yt))}}},38905:function(ct,tt,P){"use strict";P.d(tt,{Nb1:function(){return Tt.Nb},LLu:function(){return yt},F5q:function(){return H},$0Z:function(){return Tt.$0},Dts:function(){return Tt.Dt},WQY:function(){return Tt.WQ},qpX:function(){return Tt.qp},u93:function(){return Tt.u9},tFB:function(){return Tt.tF},YY7:function(){return Tt.YY},OvA:function(){return Tt.Ov},dCK:function(){return Tt.dC},zgE:function(){return Tt.zg},fGX:function(){return Tt.fG},$m7:function(){return Tt.$m},c_6:function(){return Tt.c_},fxm:function(){return Tt.fx},FdL:function(){return Tt.Fd},ak_:function(){return Tt.ak},SxZ:function(){return Tt.Sx},eA_:function(){return Tt.eA},jsv:function(){return Tt.js},iJ:function(){return Tt.iJ},JHv:function(){return gr},jvg:function(){return Tt.jv},Fp7:function(){return O},VV$:function(){return B},ve8:function(){return Tt.ve},BYU:function(){return Ee},PKp:function(){return Ne},Xf:function(){return ci},Ys:function(){return ur.Ys},td_:function(){return ur.td},YPS:function(){return cr},rr1:function(){return gn},i$Z:function(){return se},WQD:function(){return $n},Z_i:function(){return Yn},F0B:function(){return In},NGh:function(){return Fn}});function O(t,n){let e;if(n===void 0)for(const r of t)r!=null&&(e<r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let a of t)(a=n(a,++r,t))!=null&&(e<a||e===void 0&&a>=a)&&(e=a)}return e}function B(t,n){let e;if(n===void 0)for(const r of t)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let a of t)(a=n(a,++r,t))!=null&&(e>a||e===void 0&&a>=a)&&(e=a)}return e}function N(t){return t}var E=1,F=2,w=3,S=4,M=1e-6;function p(t){return"translate("+t+",0)"}function y(t){return"translate(0,"+t+")"}function c(t){return n=>+t(n)}function g(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function x(){return!this.__axis}function A(t,n){var e=[],r=null,a=null,u=6,i=6,h=3,d=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,s=t===E||t===S?-1:1,$=t===S||t===F?"x":"y",I=t===E||t===w?p:y;function T(Z){var xt=r==null?n.ticks?n.ticks.apply(n,e):n.domain():r,zt=a==null?n.tickFormat?n.tickFormat.apply(n,e):N:a,D=Math.max(u,0)+h,m=n.range(),R=+m[0]+d,b=+m[m.length-1]+d,Q=(n.bandwidth?g:c)(n.copy(),d),K=Z.selection?Z.selection():Z,k=K.selectAll(".domain").data([null]),ot=K.selectAll(".tick").data(xt,n).order(),pt=ot.exit(),kt=ot.enter().append("g").attr("class","tick"),dt=ot.select("line"),W=ot.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ot=ot.merge(kt),dt=dt.merge(kt.append("line").attr("stroke","currentColor").attr($+"2",s*u)),W=W.merge(kt.append("text").attr("fill","currentColor").attr($,s*D).attr("dy",t===E?"0em":t===w?"0.71em":"0.32em")),Z!==K&&(k=k.transition(Z),ot=ot.transition(Z),dt=dt.transition(Z),W=W.transition(Z),pt=pt.transition(Z).attr("opacity",M).attr("transform",function(Dt){return isFinite(Dt=Q(Dt))?I(Dt+d):this.getAttribute("transform")}),kt.attr("opacity",M).attr("transform",function(Dt){var at=this.parentNode.__axis;return I((at&&isFinite(at=at(Dt))?at:Q(Dt))+d)})),pt.remove(),k.attr("d",t===S||t===F?i?"M"+s*i+","+R+"H"+d+"V"+b+"H"+s*i:"M"+d+","+R+"V"+b:i?"M"+R+","+s*i+"V"+d+"H"+b+"V"+s*i:"M"+R+","+d+"H"+b),ot.attr("opacity",1).attr("transform",function(Dt){return I(Q(Dt)+d)}),dt.attr($+"2",s*u),W.attr($,s*D).text(zt),K.filter(x).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===F?"start":t===S?"end":"middle"),K.each(function(){this.__axis=Q})}return T.scale=function(Z){return arguments.length?(n=Z,T):n},T.ticks=function(){return e=Array.from(arguments),T},T.tickArguments=function(Z){return arguments.length?(e=Z==null?[]:Array.from(Z),T):e.slice()},T.tickValues=function(Z){return arguments.length?(r=Z==null?null:Array.from(Z),T):r&&r.slice()},T.tickFormat=function(Z){return arguments.length?(a=Z,T):a},T.tickSize=function(Z){return arguments.length?(u=i=+Z,T):u},T.tickSizeInner=function(Z){return arguments.length?(u=+Z,T):u},T.tickSizeOuter=function(Z){return arguments.length?(i=+Z,T):i},T.tickPadding=function(Z){return arguments.length?(h=+Z,T):h},T.offset=function(Z){return arguments.length?(d=+Z,T):d},T}function H(t){return A(E,t)}function it(t){return A(F,t)}function yt(t){return A(w,t)}function Ct(t){return A(S,t)}var lt=P(60829),G={name:"drag"},l={name:"space"},_={name:"handle"},X={name:"center"};const{abs:et,max:gt,min:st}=Math;function Xt(t){return[+t[0],+t[1]]}function jt(t){return[Xt(t[0]),Xt(t[1])]}var Wt={name:"x",handles:["w","e"].map(_t),input:function(t,n){return t==null?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},U={name:"y",handles:["n","s"].map(_t),input:function(t,n){return t==null?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ut={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(_t),input:function(t){return t==null?null:jt(t)},output:function(t){return t}},ht={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},mt={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Mt={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},St={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ot={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function _t(t){return{type:t}}function Nt(t){return!t.ctrlKey&&!t.button}function Qt(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Zt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rt(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Kt(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function rn(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function cn(){return On(Wt)}function Ln(){return On(U)}function yi(){return On(ut)}function On(t){var n=Qt,e=Nt,r=Zt,a=!0,u=dispatch("start","brush","end"),i=6,h;function d(D){var m=D.property("__brush",zt).selectAll(".overlay").data([_t("overlay")]);m.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ht.overlay).merge(m).each(function(){var b=Rt(this).extent;select(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),D.selectAll(".selection").data([_t("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ht.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var R=D.selectAll(".handle").data(t.handles,function(b){return b.type});R.exit().remove(),R.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return ht[b.type]}),D.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",T).filter(r).on("touchstart.brush",T).on("touchmove.brush",Z).on("touchend.brush touchcancel.brush",xt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}d.move=function(D,m,R){D.tween?D.on("start.brush",function(b){$(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){$(this,arguments).end(b)}).tween("brush",function(){var b=this,Q=b.__brush,K=$(b,arguments),k=Q.selection,ot=t.input(typeof m=="function"?m.apply(this,arguments):m,Q.extent),pt=interpolate(k,ot);function kt(dt){Q.selection=dt===1&&ot===null?null:pt(dt),s.call(b),K.brush()}return k!==null&&ot!==null?kt:kt(1)}):D.each(function(){var b=this,Q=arguments,K=b.__brush,k=t.input(typeof m=="function"?m.apply(b,Q):m,K.extent),ot=$(b,Q).beforestart();interrupt(b),K.selection=k===null?null:k,s.call(b),ot.start(R).brush(R).end(R)})},d.clear=function(D,m){d.move(D,null,m)};function s(){var D=select(this),m=Rt(this).selection;m?(D.selectAll(".selection").style("display",null).attr("x",m[0][0]).attr("y",m[0][1]).attr("width",m[1][0]-m[0][0]).attr("height",m[1][1]-m[0][1]),D.selectAll(".handle").style("display",null).attr("x",function(R){return R.type[R.type.length-1]==="e"?m[1][0]-i/2:m[0][0]-i/2}).attr("y",function(R){return R.type[0]==="s"?m[1][1]-i/2:m[0][1]-i/2}).attr("width",function(R){return R.type==="n"||R.type==="s"?m[1][0]-m[0][0]+i:i}).attr("height",function(R){return R.type==="e"||R.type==="w"?m[1][1]-m[0][1]+i:i})):D.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function $(D,m,R){var b=D.__brush.emitter;return b&&(!R||!b.clean)?b:new I(D,m,R)}function I(D,m,R){this.that=D,this.args=m,this.state=D.__brush,this.active=0,this.clean=R}I.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(D,m){return this.starting?(this.starting=!1,this.emit("start",D,m)):this.emit("brush",D),this},brush:function(D,m){return this.emit("brush",D,m),this},end:function(D,m){return--this.active===0&&(delete this.state.emitter,this.emit("end",D,m)),this},emit:function(D,m,R){var b=select(this.that).datum();u.call(D,this.that,new BrushEvent(D,{sourceEvent:m,target:d,selection:t.output(this.state.selection),mode:R,dispatch:u}),b)}};function T(D){if(h&&!D.touches||!e.apply(this,arguments))return;var m=this,R=D.target.__data__.type,b=(a&&D.metaKey?R="overlay":R)==="selection"?G:a&&D.altKey?X:_,Q=t===U?null:St[R],K=t===Wt?null:Ot[R],k=Rt(m),ot=k.extent,pt=k.selection,kt=ot[0][0],dt,W,Dt=ot[0][1],at,o,z=ot[1][0],f,C,j=ot[1][1],L,V,J=0,nt=0,It,bt=Q&&K&&a&&D.shiftKey,$t,Lt,Ft=Array.from(D.touches||[D],q=>{const Et=q.identifier;return q=pointer(q,m),q.point0=q.slice(),q.identifier=Et,q});interrupt(m);var Bt=$(m,arguments,!0).beforestart();if(R==="overlay"){pt&&(It=!0);const q=[Ft[0],Ft[1]||Ft[0]];k.selection=pt=[[dt=t===U?kt:st(q[0][0],q[1][0]),at=t===Wt?Dt:st(q[0][1],q[1][1])],[f=t===U?z:gt(q[0][0],q[1][0]),L=t===Wt?j:gt(q[0][1],q[1][1])]],Ft.length>1&&At(D)}else dt=pt[0][0],at=pt[0][1],f=pt[1][0],L=pt[1][1];W=dt,o=at,C=f,V=L;var Y=select(m).attr("pointer-events","none"),rt=Y.selectAll(".overlay").attr("cursor",ht[R]);if(D.touches)Bt.moved=v,Bt.ended=wt;else{var ft=select(D.view).on("mousemove.brush",v,!0).on("mouseup.brush",wt,!0);a&&ft.on("keydown.brush",Pt,!0).on("keyup.brush",Ht,!0),dragDisable(D.view)}s.call(m),Bt.start(D,b.name);function v(q){for(const Et of q.changedTouches||[q])for(const bn of Ft)bn.identifier===Et.identifier&&(bn.cur=pointer(Et,m));if(bt&&!$t&&!Lt&&Ft.length===1){const Et=Ft[0];et(Et.cur[0]-Et[0])>et(Et.cur[1]-Et[1])?Lt=!0:$t=!0}for(const Et of Ft)Et.cur&&(Et[0]=Et.cur[0],Et[1]=Et.cur[1]);It=!0,noevent(q),At(q)}function At(q){const Et=Ft[0],bn=Et.point0;var on;switch(J=Et[0]-bn[0],nt=Et[1]-bn[1],b){case l:case G:{Q&&(J=gt(kt-dt,st(z-f,J)),W=dt+J,C=f+J),K&&(nt=gt(Dt-at,st(j-L,nt)),o=at+nt,V=L+nt);break}case _:{Ft[1]?(Q&&(W=gt(kt,st(z,Ft[0][0])),C=gt(kt,st(z,Ft[1][0])),Q=1),K&&(o=gt(Dt,st(j,Ft[0][1])),V=gt(Dt,st(j,Ft[1][1])),K=1)):(Q<0?(J=gt(kt-dt,st(z-dt,J)),W=dt+J,C=f):Q>0&&(J=gt(kt-f,st(z-f,J)),W=dt,C=f+J),K<0?(nt=gt(Dt-at,st(j-at,nt)),o=at+nt,V=L):K>0&&(nt=gt(Dt-L,st(j-L,nt)),o=at,V=L+nt));break}case X:{Q&&(W=gt(kt,st(z,dt-J*Q)),C=gt(kt,st(z,f+J*Q))),K&&(o=gt(Dt,st(j,at-nt*K)),V=gt(Dt,st(j,L+nt*K)));break}}C<W&&(Q*=-1,on=dt,dt=f,f=on,on=W,W=C,C=on,R in mt&&rt.attr("cursor",ht[R=mt[R]])),V<o&&(K*=-1,on=at,at=L,L=on,on=o,o=V,V=on,R in Mt&&rt.attr("cursor",ht[R=Mt[R]])),k.selection&&(pt=k.selection),$t&&(W=pt[0][0],C=pt[1][0]),Lt&&(o=pt[0][1],V=pt[1][1]),(pt[0][0]!==W||pt[0][1]!==o||pt[1][0]!==C||pt[1][1]!==V)&&(k.selection=[[W,o],[C,V]],s.call(m),Bt.brush(q,b.name))}function wt(q){if(nopropagation(q),q.touches){if(q.touches.length)return;h&&clearTimeout(h),h=setTimeout(function(){h=null},500)}else dragEnable(q.view,It),ft.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),rt.attr("cursor",ht.overlay),k.selection&&(pt=k.selection),Kt(pt)&&(k.selection=null,s.call(m)),Bt.end(q,b.name)}function Pt(q){switch(q.keyCode){case 16:{bt=Q&&K;break}case 18:{b===_&&(Q&&(f=C-J*Q,dt=W+J*Q),K&&(L=V-nt*K,at=o+nt*K),b=X,At(q));break}case 32:{(b===_||b===X)&&(Q<0?f=C-J:Q>0&&(dt=W-J),K<0?L=V-nt:K>0&&(at=o-nt),b=l,rt.attr("cursor",ht.selection),At(q));break}default:return}noevent(q)}function Ht(q){switch(q.keyCode){case 16:{bt&&($t=Lt=bt=!1,At(q));break}case 18:{b===X&&(Q<0?f=C:Q>0&&(dt=W),K<0?L=V:K>0&&(at=o),b=_,At(q));break}case 32:{b===l&&(q.altKey?(Q&&(f=C-J*Q,dt=W+J*Q),K&&(L=V-nt*K,at=o+nt*K),b=X):(Q<0?f=C:Q>0&&(dt=W),K<0?L=V:K>0&&(at=o),b=_),rt.attr("cursor",ht[R]),At(q));break}default:return}noevent(q)}}function Z(D){$(this,arguments).moved(D)}function xt(D){$(this,arguments).ended(D)}function zt(){var D=this.__brush||{selection:null};return D.extent=jt(n.apply(this,arguments)),D.dim=t,D}return d.extent=function(D){return arguments.length?(n=typeof D=="function"?D:constant(jt(D)),d):n},d.filter=function(D){return arguments.length?(e=typeof D=="function"?D:constant(!!D),d):e},d.touchable=function(D){return arguments.length?(r=typeof D=="function"?D:constant(!!D),d):r},d.handleSize=function(D){return arguments.length?(i=+D,d):i},d.keyModifiers=function(D){return arguments.length?(a=!!D,d):a},d.on=function(){var D=u.on.apply(u,arguments);return D===u?d:D},d}function ar(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function sr(t,n){return fetch(t,n).then(ar)}function Pn(t){return(n,e)=>sr(n,e).then(r=>new DOMParser().parseFromString(r,t))}var vi=Pn("application/xml"),Di=Pn("text/html"),cr=Pn("image/svg+xml"),_n=P(9546),Dn=P(96683),fr=Math.PI/180,lr=180/Math.PI,Tn=18,ce=.96422,fe=1,le=.82521,he=4/29,fn=6/29,me=3*fn*fn,hr=fn*fn*fn;function ge(t){if(t instanceof Gt)return new Gt(t.l,t.a,t.b,t.opacity);if(t instanceof qt)return de(t);t instanceof Dn.Ss||(t=(0,Dn.SU)(t));var n=Zn(t.r),e=Zn(t.g),r=Zn(t.b),a=Hn((.2225045*n+.7168786*e+.0606169*r)/fe),u,i;return n===e&&e===r?u=i=a:(u=Hn((.4360747*n+.3850649*e+.1430804*r)/ce),i=Hn((.0139322*n+.0971045*e+.7141733*r)/le)),new Gt(116*a-16,500*(u-a),200*(a-i),t.opacity)}function wi(t,n){return new Gt(t,0,0,n==null?1:n)}function mr(t,n,e,r){return arguments.length===1?ge(t):new Gt(t,n,e,r==null?1:r)}function Gt(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}(0,_n.Z)(Gt,mr,(0,_n.l)(Dn.Il,{brighter:function(n){return new Gt(this.l+Tn*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new Gt(this.l-Tn*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,r=isNaN(this.b)?n:n-this.b/200;return e=ce*Wn(e),n=fe*Wn(n),r=le*Wn(r),new Dn.Ss(Xn(3.1338561*e-1.6168667*n-.4906146*r),Xn(-.9787684*e+1.9161415*n+.033454*r),Xn(.0719453*e-.2289914*n+1.4052427*r),this.opacity)}}));function Hn(t){return t>hr?Math.pow(t,1/3):t/me+he}function Wn(t){return t>fn?t*t*t:me*(t-he)}function Xn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Zn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function pe(t){if(t instanceof qt)return new qt(t.h,t.c,t.l,t.opacity);if(t instanceof Gt||(t=ge(t)),t.a===0&&t.b===0)return new qt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*lr;return new qt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Fi(t,n,e,r){return arguments.length===1?pe(t):new qt(e,n,t,r==null?1:r)}function Rn(t,n,e,r){return arguments.length===1?pe(t):new qt(t,n,e,r==null?1:r)}function qt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function de(t){if(isNaN(t.h))return new Gt(t.l,0,0,t.opacity);var n=t.h*fr;return new Gt(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}(0,_n.Z)(qt,Rn,(0,_n.l)(Dn.Il,{brighter:function(n){return new qt(this.h,this.c,this.l+Tn*(n==null?1:n),this.opacity)},darker:function(n){return new qt(this.h,this.c,this.l-Tn*(n==null?1:n),this.opacity)},rgb:function(){return de(this).rgb()}}));var wn=P(5312);function ye(t){return function(n,e){var r=t((n=Rn(n)).h,(e=Rn(e)).h),a=(0,wn.ZP)(n.c,e.c),u=(0,wn.ZP)(n.l,e.l),i=(0,wn.ZP)(n.opacity,e.opacity);return function(h){return n.h=r(h),n.c=a(h),n.l=u(h),n.opacity=i(h),n+""}}}var gr=ye(wn.wx),Ci=ye(wn.ZP);const pr=Math.sqrt(50),dr=Math.sqrt(10),yr=Math.sqrt(2);function kn(t,n,e){const r=(n-t)/Math.max(0,e),a=Math.floor(Math.log10(r)),u=r/Math.pow(10,a),i=u>=pr?10:u>=dr?5:u>=yr?2:1;let h,d,s;return a<0?(s=Math.pow(10,-a)/i,h=Math.round(t*s),d=Math.round(n*s),h/s<t&&++h,d/s>n&&--d,s=-s):(s=Math.pow(10,a)*i,h=Math.round(t/s),d=Math.round(n/s),h*s<t&&++h,d*s>n&&--d),d<h&&.5<=e&&e<2?kn(t,n,e*2):[h,d,s]}function vr(t,n,e){if(n=+n,t=+t,e=+e,!(e>0))return[];if(t===n)return[t];const r=n<t,[a,u,i]=r?kn(n,t,e):kn(t,n,e);if(!(u>=a))return[];const h=u-a+1,d=new Array(h);if(r)if(i<0)for(let s=0;s<h;++s)d[s]=(u-s)/-i;else for(let s=0;s<h;++s)d[s]=(u-s)*i;else if(i<0)for(let s=0;s<h;++s)d[s]=(a+s)/-i;else for(let s=0;s<h;++s)d[s]=(a+s)*i;return d}function jn(t,n,e){return n=+n,t=+t,e=+e,kn(t,n,e)[2]}function Vn(t,n,e){n=+n,t=+t,e=+e;const r=n<t,a=r?jn(n,t,e):jn(t,n,e);return(r?-1:1)*(a<0?1/-a:a)}function An(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Dr(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Kn(t){let n,e,r;t.length!==2?(n=An,e=(h,d)=>An(t(h),d),r=(h,d)=>t(h)-d):(n=t===An||t===Dr?t:wr,e=t,r=t);function a(h,d,s=0,$=h.length){if(s<$){if(n(d,d)!==0)return $;do{const I=s+$>>>1;e(h[I],d)<0?s=I+1:$=I}while(s<$)}return s}function u(h,d,s=0,$=h.length){if(s<$){if(n(d,d)!==0)return $;do{const I=s+$>>>1;e(h[I],d)<=0?s=I+1:$=I}while(s<$)}return s}function i(h,d,s=0,$=h.length){const I=a(h,d,s,$-1);return I>s&&r(h[I-1],d)>-r(h[I],d)?I-1:I}return{left:a,center:i,right:u}}function wr(){return 0}function Fr(t){return t===null?NaN:+t}function*Mi(t,n){if(n===void 0)for(let e of t)e!=null&&(e=+e)>=e&&(yield e);else{let e=-1;for(let r of t)(r=n(r,++e,t))!=null&&(r=+r)>=r&&(yield r)}}const ve=Kn(An),Cr=ve.right,xi=ve.left,bi=Kn(Fr).center;var Mr=Cr,xr=P(11730),br=P(79848);function _r(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Tr(t){return function(){return t}}function kr(t){return+t}var De=[0,1];function ln(t){return t}function Gn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Tr(isNaN(n)?NaN:.5)}function Ar(t,n){var e;return t>n&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}function Er(t,n,e){var r=t[0],a=t[1],u=n[0],i=n[1];return a<r?(r=Gn(a,r),u=e(i,u)):(r=Gn(r,a),u=e(u,i)),function(h){return u(r(h))}}function Sr(t,n,e){var r=Math.min(t.length,n.length)-1,a=new Array(r),u=new Array(r),i=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++i<r;)a[i]=Gn(t[i],t[i+1]),u[i]=e(n[i],n[i+1]);return function(h){var d=Mr(t,h,1,r)-1;return u[d](a[d](h))}}function we(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ur(){var t=De,n=De,e=xr.Z,r,a,u,i=ln,h,d,s;function $(){var T=Math.min(t.length,n.length);return i!==ln&&(i=Ar(t[0],t[T-1])),h=T>2?Sr:Er,d=s=null,I}function I(T){return T==null||isNaN(T=+T)?u:(d||(d=h(t.map(r),n,e)))(r(i(T)))}return I.invert=function(T){return i(a((s||(s=h(n,t.map(r),br.Z)))(T)))},I.domain=function(T){return arguments.length?(t=Array.from(T,kr),$()):t.slice()},I.range=function(T){return arguments.length?(n=Array.from(T),$()):n.slice()},I.rangeRound=function(T){return n=Array.from(T),e=_r,$()},I.clamp=function(T){return arguments.length?(i=T?!0:ln,$()):i!==ln},I.interpolate=function(T){return arguments.length?(e=T,$()):e},I.unknown=function(T){return arguments.length?(u=T,I):u},function(T,Z){return r=T,a=Z,$()}}function Fe(){return Ur()(ln,ln)}function Qn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function _i(t,n){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}var zr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function En(t){if(!(n=zr.exec(t)))throw new Error("invalid format: "+t);var n;return new qn({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]})}En.prototype=qn.prototype;function qn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}qn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Yr(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Sn(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function hn(t){return t=Sn(Math.abs(t)),t?t[1]:NaN}function $r(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hn(n)/3)))*3-hn(Math.abs(t)))}function Nr(t,n){return function(e,r){for(var a=e.length,u=[],i=0,h=t[0],d=0;a>0&&h>0&&(d+h+1>r&&(h=Math.max(1,r-d)),u.push(e.substring(a-=h,a+h)),!((d+=h+1)>r));)h=t[i=(i+1)%t.length];return u.reverse().join(n)}}function Br(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}function Ir(t){t:for(var n=t.length,e=1,r=-1,a;e<n;++e)switch(t[e]){case".":r=a=e;break;case"0":r===0&&(r=e),a=e;break;default:if(!+t[e])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(a+1):t}var Ce;function Lr(t,n){var e=Sn(t,n);if(!e)return t+"";var r=e[0],a=e[1],u=a-(Ce=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=r.length;return u===i?r:u>i?r+new Array(u-i+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+Sn(t,Math.max(0,n+u-1))[0]}function Me(t,n){var e=Sn(t,n);if(!e)return t+"";var r=e[0],a=e[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}var xe={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Yr,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Me(t*100,n),r:Me,s:Lr,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function be(t){return t}var _e=Array.prototype.map,Te=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Or(t){var n=t.grouping===void 0||t.thousands===void 0?be:Nr(_e.call(t.grouping,Number),t.thousands+""),e=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",u=t.numerals===void 0?be:Br(_e.call(t.numerals,String)),i=t.percent===void 0?"%":t.percent+"",h=t.minus===void 0?"\u2212":t.minus+"",d=t.nan===void 0?"NaN":t.nan+"";function s(I){I=En(I);var T=I.fill,Z=I.align,xt=I.sign,zt=I.symbol,D=I.zero,m=I.width,R=I.comma,b=I.precision,Q=I.trim,K=I.type;K==="n"?(R=!0,K="g"):xe[K]||(b===void 0&&(b=12),Q=!0,K="g"),(D||T==="0"&&Z==="=")&&(D=!0,T="0",Z="=");var k=zt==="$"?e:zt==="#"&&/[boxX]/.test(K)?"0"+K.toLowerCase():"",ot=zt==="$"?r:/[%p]/.test(K)?i:"",pt=xe[K],kt=/[defgprs%]/.test(K);b=b===void 0?6:/[gprs]/.test(K)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function dt(W){var Dt=k,at=ot,o,z,f;if(K==="c")at=pt(W)+at,W="";else{W=+W;var C=W<0||1/W<0;if(W=isNaN(W)?d:pt(Math.abs(W),b),Q&&(W=Ir(W)),C&&+W==0&&xt!=="+"&&(C=!1),Dt=(C?xt==="("?xt:h:xt==="-"||xt==="("?"":xt)+Dt,at=(K==="s"?Te[8+Ce/3]:"")+at+(C&&xt==="("?")":""),kt){for(o=-1,z=W.length;++o<z;)if(f=W.charCodeAt(o),48>f||f>57){at=(f===46?a+W.slice(o+1):W.slice(o))+at,W=W.slice(0,o);break}}}R&&!D&&(W=n(W,1/0));var j=Dt.length+W.length+at.length,L=j<m?new Array(m-j+1).join(T):"";switch(R&&D&&(W=n(L+W,L.length?m-at.length:1/0),L=""),Z){case"<":W=Dt+W+at+L;break;case"=":W=Dt+L+W+at;break;case"^":W=L.slice(0,j=L.length>>1)+Dt+W+at+L.slice(j);break;default:W=L+Dt+W+at;break}return u(W)}return dt.toString=function(){return I+""},dt}function $(I,T){var Z=s((I=En(I),I.type="f",I)),xt=Math.max(-8,Math.min(8,Math.floor(hn(T)/3)))*3,zt=Math.pow(10,-xt),D=Te[8+xt/3];return function(m){return Z(zt*m)+D}}return{format:s,formatPrefix:$}}var Un,ke,Ae;Pr({thousands:",",grouping:[3],currency:["$",""]});function Pr(t){return Un=Or(t),ke=Un.format,Ae=Un.formatPrefix,Un}function Hr(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,hn(n)-hn(t))+1}function Wr(t){return Math.max(0,-hn(Math.abs(t)))}function Xr(t,n,e,r){var a=Vn(t,n,e),u;switch(r=En(r==null?",f":r),r.type){case"s":{var i=Math.max(Math.abs(t),Math.abs(n));return r.precision==null&&!isNaN(u=$r(a,i))&&(r.precision=u),Ae(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(u=Hr(a,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=u-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(u=Wr(a))&&(r.precision=u-(r.type==="%")*2);break}}return ke(r)}function Zr(t){var n=t.domain;return t.ticks=function(e){var r=n();return vr(r[0],r[r.length-1],e==null?10:e)},t.tickFormat=function(e,r){var a=n();return Xr(a[0],a[a.length-1],e==null?10:e,r)},t.nice=function(e){e==null&&(e=10);var r=n(),a=0,u=r.length-1,i=r[a],h=r[u],d,s,$=10;for(h<i&&(s=i,i=h,h=s,s=a,a=u,u=s);$-- >0;){if(s=jn(i,h,e),s===d)return r[a]=i,r[u]=h,n(r);if(s>0)i=Math.floor(i/s)*s,h=Math.ceil(h/s)*s;else if(s<0)i=Math.ceil(i*s)/s,h=Math.floor(h*s)/s;else break;d=s}return t},t}function Ee(){var t=Fe();return t.copy=function(){return we(t,Ee())},Qn.apply(t,arguments),Zr(t)}class Se extends Map{constructor(n,e=Ye){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),n!=null)for(const[r,a]of n)this.set(r,a)}get(n){return super.get(Jn(this,n))}has(n){return super.has(Jn(this,n))}set(n,e){return super.set(Ue(this,n),e)}delete(n){return super.delete(ze(this,n))}}class Ti extends null{constructor(n,e=Ye){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),n!=null)for(const r of n)this.add(r)}has(n){return super.has(Jn(this,n))}add(n){return super.add(Ue(this,n))}delete(n){return super.delete(ze(this,n))}}function Jn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Ue({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function ze({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function Ye(t){return t!==null&&typeof t=="object"?t.valueOf():t}const $e=Symbol("implicit");function Ne(){var t=new Se,n=[],e=[],r=$e;function a(u){let i=t.get(u);if(i===void 0){if(r!==$e)return r;t.set(u,i=n.push(u)-1)}return e[i%e.length]}return a.domain=function(u){if(!arguments.length)return n.slice();n=[],t=new Se;for(const i of u)t.has(i)||t.set(i,n.push(i)-1);return a},a.range=function(u){return arguments.length?(e=Array.from(u),a):e.slice()},a.unknown=function(u){return arguments.length?(r=u,a):r},a.copy=function(){return Ne(n,e).unknown(r)},Qn.apply(a,arguments),a}const Jt=1e3,Vt=Jt*60,tn=Vt*60,nn=tn*24,te=nn*7,Be=nn*30,ne=nn*365,ee=new Date,re=new Date;function Ut(t,n,e,r){function a(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return a.floor=u=>(t(u=new Date(+u)),u),a.ceil=u=>(t(u=new Date(u-1)),n(u,1),t(u),u),a.round=u=>{const i=a(u),h=a.ceil(u);return u-i<h-u?i:h},a.offset=(u,i)=>(n(u=new Date(+u),i==null?1:Math.floor(i)),u),a.range=(u,i,h)=>{const d=[];if(u=a.ceil(u),h=h==null?1:Math.floor(h),!(u<i)||!(h>0))return d;let s;do d.push(s=new Date(+u)),n(u,h),t(u);while(s<u&&u<i);return d},a.filter=u=>Ut(i=>{if(i>=i)for(;t(i),!u(i);)i.setTime(i-1)},(i,h)=>{if(i>=i)if(h<0)for(;++h<=0;)for(;n(i,-1),!u(i););else for(;--h>=0;)for(;n(i,1),!u(i););}),e&&(a.count=(u,i)=>(ee.setTime(+u),re.setTime(+i),t(ee),t(re),Math.floor(e(ee,re))),a.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?a.filter(r?i=>r(i)%u===0:i=>a.count(0,i)%u===0):a)),a}const zn=Ut(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);zn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ut(n=>{n.setTime(Math.floor(n/t)*t)},(n,e)=>{n.setTime(+n+e*t)},(n,e)=>(e-n)/t):zn);const ki=zn.range,mn=Ut(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*Jt)},(t,n)=>(n-t)/Jt,t=>t.getUTCSeconds()),Ai=mn.range,Yn=Ut(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jt)},(t,n)=>{t.setTime(+t+n*Vt)},(t,n)=>(n-t)/Vt,t=>t.getMinutes()),Ei=Yn.range,Ie=Ut(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*Vt)},(t,n)=>(n-t)/Vt,t=>t.getUTCMinutes()),Si=Ie.range,$n=Ut(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jt-t.getMinutes()*Vt)},(t,n)=>{t.setTime(+t+n*tn)},(t,n)=>(n-t)/tn,t=>t.getHours()),Ui=$n.range,Le=Ut(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*tn)},(t,n)=>(n-t)/tn,t=>t.getUTCHours()),zi=Le.range,gn=Ut(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Vt)/nn,t=>t.getDate()-1),Yi=gn.range,ue=Ut(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/nn,t=>t.getUTCDate()-1),$i=ue.range,Oe=Ut(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/nn,t=>Math.floor(t/nn)),Ni=Oe.range;function an(t){return Ut(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,e)=>{n.setDate(n.getDate()+e*7)},(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Vt)/te)}const Fn=an(0),Nn=an(1),Rr=an(2),jr=an(3),pn=an(4),Vr=an(5),Kr=an(6),Bi=Fn.range,Ii=Nn.range,Li=Rr.range,Oi=jr.range,Pi=pn.range,Hi=Vr.range,Wi=Kr.range;function sn(t){return Ut(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e*7)},(n,e)=>(e-n)/te)}const ie=sn(0),Bn=sn(1),Gr=sn(2),Qr=sn(3),dn=sn(4),qr=sn(5),Jr=sn(6),Xi=ie.range,Zi=Bn.range,Ri=Gr.range,ji=Qr.range,Vi=dn.range,Ki=qr.range,Gi=Jr.range,In=Ut(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Qi=In.range,Pe=Ut(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),qi=Pe.range,en=Ut(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());en.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ut(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e*t)});const Ji=en.range,un=Ut(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());un.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ut(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)});const to=un.range;function He(t,n,e,r,a,u){const i=[[mn,1,Jt],[mn,5,5*Jt],[mn,15,15*Jt],[mn,30,30*Jt],[u,1,Vt],[u,5,5*Vt],[u,15,15*Vt],[u,30,30*Vt],[a,1,tn],[a,3,3*tn],[a,6,6*tn],[a,12,12*tn],[r,1,nn],[r,2,2*nn],[e,1,te],[n,1,Be],[n,3,3*Be],[t,1,ne]];function h(s,$,I){const T=$<s;T&&([s,$]=[$,s]);const Z=I&&typeof I.range=="function"?I:d(s,$,I),xt=Z?Z.range(s,+$+1):[];return T?xt.reverse():xt}function d(s,$,I){const T=Math.abs($-s)/I,Z=Kn(([,,D])=>D).right(i,T);if(Z===i.length)return t.every(Vn(s/ne,$/ne,I));if(Z===0)return zn.every(Math.max(Vn(s,$,I),1));const[xt,zt]=i[T/i[Z-1][2]<i[Z][2]/T?Z-1:Z];return xt.every(zt)}return[h,d]}const[no,eo]=He(un,Pe,ie,Oe,Le,Ie),[tu,nu]=He(en,In,Fn,gn,$n,Yn);function oe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ae(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cn(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function eu(t){var n=t.dateTime,e=t.date,r=t.time,a=t.periods,u=t.days,i=t.shortDays,h=t.months,d=t.shortMonths,s=Mn(a),$=xn(a),I=Mn(u),T=xn(u),Z=Mn(i),xt=xn(i),zt=Mn(h),D=xn(h),m=Mn(d),R=xn(d),b={a:C,A:j,b:L,B:V,c:null,d:Ve,e:Ve,f:bu,g:$u,G:Bu,H:Cu,I:Mu,j:xu,L:Ke,m:_u,M:Tu,p:J,q:nt,Q:nr,s:er,S:ku,u:Au,U:Eu,V:Su,w:Uu,W:zu,x:null,X:null,y:Yu,Y:Nu,Z:Iu,"%":tr},Q={a:It,A:bt,b:$t,B:Lt,c:null,d:Qe,e:Qe,f:Hu,g:qu,G:ti,H:Lu,I:Ou,j:Pu,L:qe,m:Wu,M:Xu,p:Ft,q:Bt,Q:nr,s:er,S:Zu,u:Ru,U:ju,V:Vu,w:Ku,W:Gu,x:null,X:null,y:Qu,Y:Ju,Z:ni,"%":tr},K={a:dt,A:W,b:Dt,B:at,c:o,d:Re,e:Re,f:vu,g:Ze,G:Xe,H:je,I:je,j:gu,L:yu,m:mu,M:pu,p:kt,q:hu,Q:wu,s:Fu,S:du,u:au,U:su,V:cu,w:ou,W:fu,x:z,X:f,y:Ze,Y:Xe,Z:lu,"%":Du};b.x=k(e,b),b.X=k(r,b),b.c=k(n,b),Q.x=k(e,Q),Q.X=k(r,Q),Q.c=k(n,Q);function k(Y,rt){return function(ft){var v=[],At=-1,wt=0,Pt=Y.length,Ht,q,Et;for(ft instanceof Date||(ft=new Date(+ft));++At<Pt;)Y.charCodeAt(At)===37&&(v.push(Y.slice(wt,At)),(q=We[Ht=Y.charAt(++At)])!=null?Ht=Y.charAt(++At):q=Ht==="e"?" ":"0",(Et=rt[Ht])&&(Ht=Et(ft,q)),v.push(Ht),wt=At+1);return v.push(Y.slice(wt,At)),v.join("")}}function ot(Y,rt){return function(ft){var v=Cn(1900,void 0,1),At=pt(v,Y,ft+="",0),wt,Pt;if(At!=ft.length)return null;if("Q"in v)return new Date(v.Q);if("s"in v)return new Date(v.s*1e3+("L"in v?v.L:0));if(rt&&!("Z"in v)&&(v.Z=0),"p"in v&&(v.H=v.H%12+v.p*12),v.m===void 0&&(v.m="q"in v?v.q:0),"V"in v){if(v.V<1||v.V>53)return null;"w"in v||(v.w=1),"Z"in v?(wt=ae(Cn(v.y,0,1)),Pt=wt.getUTCDay(),wt=Pt>4||Pt===0?Bn.ceil(wt):Bn(wt),wt=ue.offset(wt,(v.V-1)*7),v.y=wt.getUTCFullYear(),v.m=wt.getUTCMonth(),v.d=wt.getUTCDate()+(v.w+6)%7):(wt=oe(Cn(v.y,0,1)),Pt=wt.getDay(),wt=Pt>4||Pt===0?Nn.ceil(wt):Nn(wt),wt=gn.offset(wt,(v.V-1)*7),v.y=wt.getFullYear(),v.m=wt.getMonth(),v.d=wt.getDate()+(v.w+6)%7)}else("W"in v||"U"in v)&&("w"in v||(v.w="u"in v?v.u%7:"W"in v?1:0),Pt="Z"in v?ae(Cn(v.y,0,1)).getUTCDay():oe(Cn(v.y,0,1)).getDay(),v.m=0,v.d="W"in v?(v.w+6)%7+v.W*7-(Pt+5)%7:v.w+v.U*7-(Pt+6)%7);return"Z"in v?(v.H+=v.Z/100|0,v.M+=v.Z%100,ae(v)):oe(v)}}function pt(Y,rt,ft,v){for(var At=0,wt=rt.length,Pt=ft.length,Ht,q;At<wt;){if(v>=Pt)return-1;if(Ht=rt.charCodeAt(At++),Ht===37){if(Ht=rt.charAt(At++),q=K[Ht in We?rt.charAt(At++):Ht],!q||(v=q(Y,ft,v))<0)return-1}else if(Ht!=ft.charCodeAt(v++))return-1}return v}function kt(Y,rt,ft){var v=s.exec(rt.slice(ft));return v?(Y.p=$.get(v[0].toLowerCase()),ft+v[0].length):-1}function dt(Y,rt,ft){var v=Z.exec(rt.slice(ft));return v?(Y.w=xt.get(v[0].toLowerCase()),ft+v[0].length):-1}function W(Y,rt,ft){var v=I.exec(rt.slice(ft));return v?(Y.w=T.get(v[0].toLowerCase()),ft+v[0].length):-1}function Dt(Y,rt,ft){var v=m.exec(rt.slice(ft));return v?(Y.m=R.get(v[0].toLowerCase()),ft+v[0].length):-1}function at(Y,rt,ft){var v=zt.exec(rt.slice(ft));return v?(Y.m=D.get(v[0].toLowerCase()),ft+v[0].length):-1}function o(Y,rt,ft){return pt(Y,n,rt,ft)}function z(Y,rt,ft){return pt(Y,e,rt,ft)}function f(Y,rt,ft){return pt(Y,r,rt,ft)}function C(Y){return i[Y.getDay()]}function j(Y){return u[Y.getDay()]}function L(Y){return d[Y.getMonth()]}function V(Y){return h[Y.getMonth()]}function J(Y){return a[+(Y.getHours()>=12)]}function nt(Y){return 1+~~(Y.getMonth()/3)}function It(Y){return i[Y.getUTCDay()]}function bt(Y){return u[Y.getUTCDay()]}function $t(Y){return d[Y.getUTCMonth()]}function Lt(Y){return h[Y.getUTCMonth()]}function Ft(Y){return a[+(Y.getUTCHours()>=12)]}function Bt(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var rt=k(Y+="",b);return rt.toString=function(){return Y},rt},parse:function(Y){var rt=ot(Y+="",!1);return rt.toString=function(){return Y},rt},utcFormat:function(Y){var rt=k(Y+="",Q);return rt.toString=function(){return Y},rt},utcParse:function(Y){var rt=ot(Y+="",!0);return rt.toString=function(){return Y},rt}}}var We={"-":"",_:" ",0:"0"},Yt=/^\s*\d+/,ru=/^%/,uu=/[\\^$*+?|[\]().{}]/g;function vt(t,n,e){var r=t<0?"-":"",a=(r?-t:t)+"",u=a.length;return r+(u<e?new Array(e-u+1).join(n)+a:a)}function iu(t){return t.replace(uu,"\\$&")}function Mn(t){return new RegExp("^(?:"+t.map(iu).join("|")+")","i")}function xn(t){return new Map(t.map((n,e)=>[n.toLowerCase(),e]))}function ou(t,n,e){var r=Yt.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function au(t,n,e){var r=Yt.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function su(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function cu(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function fu(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Xe(t,n,e){var r=Yt.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ze(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function lu(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 hu(t,n,e){var r=Yt.exec(n.slice(e,e+1));return r?(t.q=r[0]*3-3,e+r[0].length):-1}function mu(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Re(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function gu(t,n,e){var r=Yt.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function je(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function pu(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function du(t,n,e){var r=Yt.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function yu(t,n,e){var r=Yt.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function vu(t,n,e){var r=Yt.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Du(t,n,e){var r=ru.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function wu(t,n,e){var r=Yt.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Fu(t,n,e){var r=Yt.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ve(t,n){return vt(t.getDate(),n,2)}function Cu(t,n){return vt(t.getHours(),n,2)}function Mu(t,n){return vt(t.getHours()%12||12,n,2)}function xu(t,n){return vt(1+gn.count(en(t),t),n,3)}function Ke(t,n){return vt(t.getMilliseconds(),n,3)}function bu(t,n){return Ke(t,n)+"000"}function _u(t,n){return vt(t.getMonth()+1,n,2)}function Tu(t,n){return vt(t.getMinutes(),n,2)}function ku(t,n){return vt(t.getSeconds(),n,2)}function Au(t){var n=t.getDay();return n===0?7:n}function Eu(t,n){return vt(Fn.count(en(t)-1,t),n,2)}function Ge(t){var n=t.getDay();return n>=4||n===0?pn(t):pn.ceil(t)}function Su(t,n){return t=Ge(t),vt(pn.count(en(t),t)+(en(t).getDay()===4),n,2)}function Uu(t){return t.getDay()}function zu(t,n){return vt(Nn.count(en(t)-1,t),n,2)}function Yu(t,n){return vt(t.getFullYear()%100,n,2)}function $u(t,n){return t=Ge(t),vt(t.getFullYear()%100,n,2)}function Nu(t,n){return vt(t.getFullYear()%1e4,n,4)}function Bu(t,n){var e=t.getDay();return t=e>=4||e===0?pn(t):pn.ceil(t),vt(t.getFullYear()%1e4,n,4)}function Iu(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+vt(n/60|0,"0",2)+vt(n%60,"0",2)}function Qe(t,n){return vt(t.getUTCDate(),n,2)}function Lu(t,n){return vt(t.getUTCHours(),n,2)}function Ou(t,n){return vt(t.getUTCHours()%12||12,n,2)}function Pu(t,n){return vt(1+ue.count(un(t),t),n,3)}function qe(t,n){return vt(t.getUTCMilliseconds(),n,3)}function Hu(t,n){return qe(t,n)+"000"}function Wu(t,n){return vt(t.getUTCMonth()+1,n,2)}function Xu(t,n){return vt(t.getUTCMinutes(),n,2)}function Zu(t,n){return vt(t.getUTCSeconds(),n,2)}function Ru(t){var n=t.getUTCDay();return n===0?7:n}function ju(t,n){return vt(ie.count(un(t)-1,t),n,2)}function Je(t){var n=t.getUTCDay();return n>=4||n===0?dn(t):dn.ceil(t)}function Vu(t,n){return t=Je(t),vt(dn.count(un(t),t)+(un(t).getUTCDay()===4),n,2)}function Ku(t){return t.getUTCDay()}function Gu(t,n){return vt(Bn.count(un(t)-1,t),n,2)}function Qu(t,n){return vt(t.getUTCFullYear()%100,n,2)}function qu(t,n){return t=Je(t),vt(t.getUTCFullYear()%100,n,2)}function Ju(t,n){return vt(t.getUTCFullYear()%1e4,n,4)}function ti(t,n){var e=t.getUTCDay();return t=e>=4||e===0?dn(t):dn.ceil(t),vt(t.getUTCFullYear()%1e4,n,4)}function ni(){return"+0000"}function tr(){return"%"}function nr(t){return+t}function er(t){return Math.floor(+t/1e3)}var yn,se,ei,ri,ui;ii({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"]});function ii(t){return yn=eu(t),se=yn.format,ei=yn.parse,ri=yn.utcFormat,ui=yn.utcParse,yn}function oi(t,n){t=t.slice();var e=0,r=t.length-1,a=t[e],u=t[r],i;return u<a&&(i=e,e=r,r=i,i=a,a=u,u=i),t[e]=n.floor(a),t[r]=n.ceil(u),t}function ai(t){return new Date(t)}function si(t){return t instanceof Date?+t:+new Date(+t)}function rr(t,n,e,r,a,u,i,h,d,s){var $=Fe(),I=$.invert,T=$.domain,Z=s(".%L"),xt=s(":%S"),zt=s("%I:%M"),D=s("%I %p"),m=s("%a %d"),R=s("%b %d"),b=s("%B"),Q=s("%Y");function K(k){return(d(k)<k?Z:h(k)<k?xt:i(k)<k?zt:u(k)<k?D:r(k)<k?a(k)<k?m:R:e(k)<k?b:Q)(k)}return $.invert=function(k){return new Date(I(k))},$.domain=function(k){return arguments.length?T(Array.from(k,si)):T().map(ai)},$.ticks=function(k){var ot=T();return t(ot[0],ot[ot.length-1],k==null?10:k)},$.tickFormat=function(k,ot){return ot==null?K:s(ot)},$.nice=function(k){var ot=T();return(!k||typeof k.range!="function")&&(k=n(ot[0],ot[ot.length-1],k==null?10:k)),k?T(oi(ot,k)):$},$.copy=function(){return we($,rr(t,n,e,r,a,u,i,h,d,s))},$}function ci(){return Qn.apply(rr(tu,nu,en,In,Fn,gn,$n,Yn,mn,se).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var ur=P(18320),Tt=P(38100);function vn(t,n,e){this.k=t,this.x=n,this.y=e}vn.prototype={constructor:vn,scale:function(t){return t===1?this:new vn(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new vn(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 fi=new vn(1,0,0);li.prototype=vn.prototype;function li(t){for(;!t.__zoom;)if(!(t=t.parentNode))return fi;return t.__zoom}function hi(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function mi(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 ir(){return this.__zoom||identity}function gi(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function pi(){return navigator.maxTouchPoints||"ontouchstart"in this}function di(t,n,e){var r=t.invertX(n[0][0])-e[0][0],a=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],i=t.invertY(n[1][1])-e[1][1];return t.translate(a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a),i>u?(u+i)/2:Math.min(0,u)||Math.max(0,i))}function ro(){var t=hi,n=mi,e=di,r=gi,a=pi,u=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],h=250,d=interpolateZoom,s=dispatch("start","zoom","end"),$,I,T,Z=500,xt=150,zt=0,D=10;function m(o){o.property("__zoom",ir).on("wheel.zoom",pt,{passive:!1}).on("mousedown.zoom",kt).on("dblclick.zoom",dt).filter(a).on("touchstart.zoom",W).on("touchmove.zoom",Dt).on("touchend.zoom touchcancel.zoom",at).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(o,z,f,C){var j=o.selection?o.selection():o;j.property("__zoom",ir),o!==j?K(o,z,f,C):j.interrupt().each(function(){k(this,arguments).event(C).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},m.scaleBy=function(o,z,f,C){m.scaleTo(o,function(){var j=this.__zoom.k,L=typeof z=="function"?z.apply(this,arguments):z;return j*L},f,C)},m.scaleTo=function(o,z,f,C){m.transform(o,function(){var j=n.apply(this,arguments),L=this.__zoom,V=f==null?Q(j):typeof f=="function"?f.apply(this,arguments):f,J=L.invert(V),nt=typeof z=="function"?z.apply(this,arguments):z;return e(b(R(L,nt),V,J),j,i)},f,C)},m.translateBy=function(o,z,f,C){m.transform(o,function(){return e(this.__zoom.translate(typeof z=="function"?z.apply(this,arguments):z,typeof f=="function"?f.apply(this,arguments):f),n.apply(this,arguments),i)},null,C)},m.translateTo=function(o,z,f,C,j){m.transform(o,function(){var L=n.apply(this,arguments),V=this.__zoom,J=C==null?Q(L):typeof C=="function"?C.apply(this,arguments):C;return e(identity.translate(J[0],J[1]).scale(V.k).translate(typeof z=="function"?-z.apply(this,arguments):-z,typeof f=="function"?-f.apply(this,arguments):-f),L,i)},C,j)};function R(o,z){return z=Math.max(u[0],Math.min(u[1],z)),z===o.k?o:new Transform(z,o.x,o.y)}function b(o,z,f){var C=z[0]-f[0]*o.k,j=z[1]-f[1]*o.k;return C===o.x&&j===o.y?o:new Transform(o.k,C,j)}function Q(o){return[(+o[0][0]+ +o[1][0])/2,(+o[0][1]+ +o[1][1])/2]}function K(o,z,f,C){o.on("start.zoom",function(){k(this,arguments).event(C).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(C).end()}).tween("zoom",function(){var j=this,L=arguments,V=k(j,L).event(C),J=n.apply(j,L),nt=f==null?Q(J):typeof f=="function"?f.apply(j,L):f,It=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),bt=j.__zoom,$t=typeof z=="function"?z.apply(j,L):z,Lt=d(bt.invert(nt).concat(It/bt.k),$t.invert(nt).concat(It/$t.k));return function(Ft){if(Ft===1)Ft=$t;else{var Bt=Lt(Ft),Y=It/Bt[2];Ft=new Transform(Y,nt[0]-Bt[0]*Y,nt[1]-Bt[1]*Y)}V.zoom(null,Ft)}})}function k(o,z,f){return!f&&o.__zooming||new ot(o,z)}function ot(o,z){this.that=o,this.args=z,this.active=0,this.sourceEvent=null,this.extent=n.apply(o,z),this.taps=0}ot.prototype={event:function(o){return o&&(this.sourceEvent=o),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(o,z){return this.mouse&&o!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&o!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&o!=="touch"&&(this.touch1[1]=z.invert(this.touch1[0])),this.that.__zoom=z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(o){var z=select(this.that).datum();s.call(o,this.that,new ZoomEvent(o,{sourceEvent:this.sourceEvent,target:m,type:o,transform:this.that.__zoom,dispatch:s}),z)}};function pt(o,...z){if(!t.apply(this,arguments))return;var f=k(this,z).event(o),C=this.__zoom,j=Math.max(u[0],Math.min(u[1],C.k*Math.pow(2,r.apply(this,arguments)))),L=pointer(o);if(f.wheel)(f.mouse[0][0]!==L[0]||f.mouse[0][1]!==L[1])&&(f.mouse[1]=C.invert(f.mouse[0]=L)),clearTimeout(f.wheel);else{if(C.k===j)return;f.mouse=[L,C.invert(L)],interrupt(this),f.start()}noevent(o),f.wheel=setTimeout(V,xt),f.zoom("mouse",e(b(R(C,j),f.mouse[0],f.mouse[1]),f.extent,i));function V(){f.wheel=null,f.end()}}function kt(o,...z){if(T||!t.apply(this,arguments))return;var f=o.currentTarget,C=k(this,z,!0).event(o),j=select(o.view).on("mousemove.zoom",nt,!0).on("mouseup.zoom",It,!0),L=pointer(o,f),V=o.clientX,J=o.clientY;dragDisable(o.view),nopropagation(o),C.mouse=[L,this.__zoom.invert(L)],interrupt(this),C.start();function nt(bt){if(noevent(bt),!C.moved){var $t=bt.clientX-V,Lt=bt.clientY-J;C.moved=$t*$t+Lt*Lt>zt}C.event(bt).zoom("mouse",e(b(C.that.__zoom,C.mouse[0]=pointer(bt,f),C.mouse[1]),C.extent,i))}function It(bt){j.on("mousemove.zoom mouseup.zoom",null),dragEnable(bt.view,C.moved),noevent(bt),C.event(bt).end()}}function dt(o,...z){if(t.apply(this,arguments)){var f=this.__zoom,C=pointer(o.changedTouches?o.changedTouches[0]:o,this),j=f.invert(C),L=f.k*(o.shiftKey?.5:2),V=e(b(R(f,L),C,j),n.apply(this,z),i);noevent(o),h>0?select(this).transition().duration(h).call(K,V,C,o):select(this).call(m.transform,V,C,o)}}function W(o,...z){if(t.apply(this,arguments)){var f=o.touches,C=f.length,j=k(this,z,o.changedTouches.length===C).event(o),L,V,J,nt;for(nopropagation(o),V=0;V<C;++V)J=f[V],nt=pointer(J,this),nt=[nt,this.__zoom.invert(nt),J.identifier],j.touch0?!j.touch1&&j.touch0[2]!==nt[2]&&(j.touch1=nt,j.taps=0):(j.touch0=nt,L=!0,j.taps=1+!!$);$&&($=clearTimeout($)),L&&(j.taps<2&&(I=nt[0],$=setTimeout(function(){$=null},Z)),interrupt(this),j.start())}}function Dt(o,...z){if(this.__zooming){var f=k(this,z).event(o),C=o.changedTouches,j=C.length,L,V,J,nt;for(noevent(o),L=0;L<j;++L)V=C[L],J=pointer(V,this),f.touch0&&f.touch0[2]===V.identifier?f.touch0[0]=J:f.touch1&&f.touch1[2]===V.identifier&&(f.touch1[0]=J);if(V=f.that.__zoom,f.touch1){var It=f.touch0[0],bt=f.touch0[1],$t=f.touch1[0],Lt=f.touch1[1],Ft=(Ft=$t[0]-It[0])*Ft+(Ft=$t[1]-It[1])*Ft,Bt=(Bt=Lt[0]-bt[0])*Bt+(Bt=Lt[1]-bt[1])*Bt;V=R(V,Math.sqrt(Ft/Bt)),J=[(It[0]+$t[0])/2,(It[1]+$t[1])/2],nt=[(bt[0]+Lt[0])/2,(bt[1]+Lt[1])/2]}else if(f.touch0)J=f.touch0[0],nt=f.touch0[1];else return;f.zoom("touch",e(b(V,J,nt),f.extent,i))}}function at(o,...z){if(this.__zooming){var f=k(this,z).event(o),C=o.changedTouches,j=C.length,L,V;for(nopropagation(o),T&&clearTimeout(T),T=setTimeout(function(){T=null},Z),L=0;L<j;++L)V=C[L],f.touch0&&f.touch0[2]===V.identifier?delete f.touch0:f.touch1&&f.touch1[2]===V.identifier&&delete f.touch1;if(f.touch1&&!f.touch0&&(f.touch0=f.touch1,delete f.touch1),f.touch0)f.touch0[1]=this.__zoom.invert(f.touch0[0]);else if(f.end(),f.taps===2&&(V=pointer(V,this),Math.hypot(I[0]-V[0],I[1]-V[1])<D)){var J=select(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return m.wheelDelta=function(o){return arguments.length?(r=typeof o=="function"?o:constant(+o),m):r},m.filter=function(o){return arguments.length?(t=typeof o=="function"?o:constant(!!o),m):t},m.touchable=function(o){return arguments.length?(a=typeof o=="function"?o:constant(!!o),m):a},m.extent=function(o){return arguments.length?(n=typeof o=="function"?o:constant([[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]]),m):n},m.scaleExtent=function(o){return arguments.length?(u[0]=+o[0],u[1]=+o[1],m):[u[0],u[1]]},m.translateExtent=function(o){return arguments.length?(i[0][0]=+o[0][0],i[1][0]=+o[1][0],i[0][1]=+o[0][1],i[1][1]=+o[1][1],m):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},m.constrain=function(o){return arguments.length?(e=o,m):e},m.duration=function(o){return arguments.length?(h=+o,m):h},m.interpolate=function(o){return arguments.length?(d=o,m):d},m.on=function(){var o=s.on.apply(s,arguments);return o===s?m:o},m.clickDistance=function(o){return arguments.length?(zt=(o=+o)*o,m):Math.sqrt(zt)},m.tapDistance=function(o){return arguments.length?(D=+o,m):D},m}}}]);
|
|
8
|
+
}());
|