mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix heatmap clustering Fix nvd3 tool based types Remove global d3 object from heatmap and jqplot
945 lines
662 KiB
JavaScript
945 lines
662 KiB
JavaScript
parcelRequire=function(e,r,n){var t="function"==typeof parcelRequire&&parcelRequire,i="function"==typeof require&&require;function u(n,o){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!o&&f)return f(n,!0);if(t)return t(n,!0);if(i&&"string"==typeof n)return i(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}a.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,a,l,l.exports)}return r[n].exports;function a(e){return u(a.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=t;for(var o=0;o<n.length;o++)u(n[o]);return u}({28:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.name="d3",d=exports.version="4.13.0",s=exports.description="Data-Driven Documents",i=exports.keywords=["dom","visualization","svg","animation","canvas"],t=exports.homepage="https://d3js.org",o=exports.license="BSD-3-Clause",r=exports.author={name:"Mike Bostock",url:"https://bost.ocks.org/mike"},p=exports.main="build/d3.node.js",a=exports.unpkg="build/d3.min.js",l=exports.jsdelivr="build/d3.min.js",n="index";exports.module=n;var u=exports.repository={type:"git",url:"https://github.com/d3/d3.git"},m=exports.scripts={pretest:"rimraf build && mkdir build && json2module package.json > build/package.js && node rollup.node",test:"tape 'test/**/*-test.js'",prepublishOnly:'npm run test && rollup -c --banner "$(preamble)" && uglifyjs -b beautify=false,preamble="\'$(preamble)\'" build/d3.js -c negate_iife=false -m -o build/d3.min.js',postpublish:'git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/build/d3.js d3.v4.js && cp ../d3/build/d3.min.js d3.v4.min.js && git add d3.v4.js d3.v4.min.js && git commit -m "d3 ${npm_package_version}" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/build/d3.js ../d3/build/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m "${npm_package_version}" && git tag -am "${npm_package_version}" v${npm_package_version} && git push && git push --tags && cd - && zip -j build/d3.zip -- LICENSE README.md API.md CHANGES.md build/d3.js build/d3.min.js'},c=exports.devDependencies={json2module:"0.0","package-preamble":"0.1",rimraf:"2",rollup:"0.53","rollup-plugin-ascii":"0.0","rollup-plugin-node-resolve":"3",tape:"4","uglify-js":"3.2"},g=exports.dependencies={"d3-array":"1.2.1","d3-axis":"1.0.8","d3-brush":"1.0.4","d3-chord":"1.0.4","d3-collection":"1.0.4","d3-color":"1.0.3","d3-dispatch":"1.0.3","d3-drag":"1.2.1","d3-dsv":"1.0.8","d3-ease":"1.0.3","d3-force":"1.1.0","d3-format":"1.2.2","d3-geo":"1.9.1","d3-hierarchy":"1.1.5","d3-interpolate":"1.1.6","d3-path":"1.0.5","d3-polygon":"1.0.3","d3-quadtree":"1.0.3","d3-queue":"3.0.7","d3-random":"1.1.0","d3-request":"1.0.6","d3-scale":"1.0.7","d3-selection":"1.3.0","d3-shape":"1.2.0","d3-time":"1.0.8","d3-time-format":"2.1.1","d3-timer":"1.0.7","d3-transition":"1.1.1","d3-voronoi":"1.1.2","d3-zoom":"1.7.1"};
|
|
},{}],66:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};
|
|
},{}],67:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return 1===e.length&&(e=r(e)),{left:function(n,t,r,u){for(null==r&&(r=0),null==u&&(u=n.length);r<u;){var l=r+u>>>1;e(n[l],t)<0?r=l+1:u=l}return r},right:function(n,t,r,u){for(null==r&&(r=0),null==u&&(u=n.length);r<u;){var l=r+u>>>1;e(n[l],t)>0?u=l:r=l+1}return r}}};var e=require("./ascending"),n=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(t,r){return(0,n.default)(e(t),r)}}
|
|
},{"./ascending":66}],65:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bisectLeft=exports.bisectRight=void 0;var e=require("./ascending"),t=i(e),r=require("./bisector"),s=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var o=(0,s.default)(t.default),u=exports.bisectRight=o.right,c=exports.bisectLeft=o.left;exports.default=u;
|
|
},{"./ascending":66,"./bisector":67}],78:[function(require,module,exports) {
|
|
"use strict";function e(e,r){return[e,r]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,t){null==t&&(t=e);for(var n=0,u=r.length-1,o=r[0],l=new Array(u<0?0:u);n<u;)l[n]=t(o,o=r[++n]);return l},exports.pair=e;
|
|
},{}],68:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,t,n){var u,a,l,o,i=r.length,s=t.length,f=new Array(i*s);for(null==n&&(n=e.pair),u=l=0;u<i;++u)for(o=r[u],a=0;a<s;++a,++l)f[l]=n(o,t[a]);return f};var e=require("./pairs");
|
|
},{"./pairs":78}],69:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN};
|
|
},{}],336:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return null===e?NaN:+e};
|
|
},{}],87:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var u,f,l=e.length,n=0,a=-1,i=0,o=0;if(null==t)for(;++a<l;)isNaN(u=(0,r.default)(e[a]))||(o+=(f=u-i)*(u-(i+=f/++n)));else for(;++a<l;)isNaN(u=(0,r.default)(t(e[a],a,e)))||(o+=(f=u-i)*(u-(i+=f/++n)));if(n>1)return o/(n-1)};var e=require("./number"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./number":336}],70:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var u=(0,r.default)(e,t);return u?Math.sqrt(u):u};var e=require("./variance"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./variance":87}],71:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,l){var r,u,f,n=e.length,t=-1;if(null==l){for(;++t<n;)if(null!=(r=e[t])&&r>=r)for(u=f=r;++t<n;)null!=(r=e[t])&&(u>r&&(u=r),f<r&&(f=r))}else for(;++t<n;)if(null!=(r=l(e[t],t,e))&&r>=r)for(u=f=r;++t<n;)null!=(r=l(e[t],t,e))&&(u>r&&(u=r),f<r&&(f=r));return[u,f]};
|
|
},{}],333:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Array.prototype,r=exports.slice=e.slice,t=exports.map=e.map;
|
|
},{}],334:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return function(){return e}};
|
|
},{}],335:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return e};
|
|
},{}],81:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var a=-1,n=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(n);++a<n;)o[a]=e+a*r;return o};
|
|
},{}],85:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,r,a){var o,M,h,i,n=-1;if(a=+a,(t=+t)===(r=+r)&&a>0)return[t];if((o=r<t)&&(M=t,t=r,r=M),0===(i=e(t,r,a))||!isFinite(i))return[];if(i>0)for(t=Math.ceil(t/i),r=Math.floor(r/i),h=new Array(M=Math.ceil(r-t+1));++n<M;)h[n]=(t+n)*i;else for(t=Math.floor(t*i),r=Math.ceil(r*i),h=new Array(M=Math.ceil(t-r+1));++n<M;)h[n]=(t-n)/i;return o&&h.reverse(),h},exports.tickIncrement=e,exports.tickStep=o;var t=Math.sqrt(50),r=Math.sqrt(10),a=Math.sqrt(2);function e(e,o,M){var h=(o-e)/Math.max(0,M),i=Math.floor(Math.log(h)/Math.LN10),n=h/Math.pow(10,i);return i>=0?(n>=t?10:n>=r?5:n>=a?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(n>=t?10:n>=r?5:n>=a?2:1)}function o(e,o,M){var h=Math.abs(o-e)/Math.max(0,M),i=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),n=h/i;return n>=t?i*=10:n>=r?i*=5:n>=a&&(i*=2),o<e?-i:i}
|
|
},{}],253:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1};
|
|
},{}],72:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var r=o.default,u=f.default,a=h.default;function i(e){var n,f,i=e.length,o=new Array(i);for(n=0;n<i;++n)o[n]=r(e[n],n,e);var l=u(o),d=l[0],h=l[1],y=a(o,d,h);Array.isArray(y)||(y=(0,c.tickStep)(d,h,y),y=(0,s.default)(Math.ceil(d/y)*y,Math.floor(h/y)*y,y));for(var p=y.length;y[0]<=d;)y.shift(),--p;for(;y[p-1]>h;)y.pop(),--p;var q,v=new Array(p+1);for(n=0;n<=p;++n)(q=v[n]=[]).x0=n>0?y[n-1]:d,q.x1=n<p?y[n]:h;for(n=0;n<i;++n)d<=(f=o[n])&&f<=h&&v[(0,t.default)(y,f,0,p)].push(e[n]);return v}return i.value=function(e){return arguments.length?(r="function"==typeof e?e:(0,n.default)(e),i):r},i.domain=function(e){return arguments.length?(u="function"==typeof e?e:(0,n.default)([e[0],e[1]]),i):u},i.thresholds=function(r){return arguments.length?(a="function"==typeof r?r:Array.isArray(r)?(0,n.default)(e.slice.call(r)):(0,n.default)(r),i):a},i};var e=require("./array"),r=require("./bisect"),t=y(r),u=require("./constant"),n=y(u),a=require("./extent"),f=y(a),i=require("./identity"),o=y(i),l=require("./range"),s=y(l),c=require("./ticks"),d=require("./threshold/sturges"),h=y(d);function y(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./array":333,"./bisect":65,"./constant":334,"./extent":71,"./identity":335,"./range":81,"./ticks":85,"./threshold/sturges":253}],80:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,u){if(null==u&&(u=r.default),n=e.length){if((t=+t)<=0||n<2)return+u(e[0],0,e);if(t>=1)return+u(e[n-1],n-1,e);var n,f=(n-1)*t,l=Math.floor(f),o=+u(e[l],l,e);return o+(+u(e[l+1],l+1,e)-o)*(f-l)}};var e=require("./number"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./number":336}],251:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,u,l){return r=e.map.call(r,a.default).sort(t.default),Math.ceil((l-u)/(2*((0,n.default)(r,.75)-(0,n.default)(r,.25))*Math.pow(r.length,-1/3)))};var e=require("../array"),r=require("../ascending"),t=i(r),u=require("../number"),a=i(u),l=require("../quantile"),n=i(l);function i(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../array":333,"../ascending":66,"../number":336,"../quantile":80}],252:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r,u){return Math.ceil((u-r)/(3.5*(0,t.default)(e)*Math.pow(e.length,-1/3)))};var e=require("../deviation"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../deviation":70}],73:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,l){var r,u,f=e.length,n=-1;if(null==l){for(;++n<f;)if(null!=(r=e[n])&&r>=r)for(u=r;++n<f;)null!=(r=e[n])&&r>u&&(u=r)}else for(;++n<f;)if(null!=(r=l(e[n],n,e))&&r>=r)for(u=r;++n<f;)null!=(r=l(e[n],n,e))&&r>u&&(u=r);return u};
|
|
},{}],74:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var u,f=e.length,l=f,n=-1,a=0;if(null==t)for(;++n<f;)isNaN(u=(0,r.default)(e[n]))?--l:a+=u;else for(;++n<f;)isNaN(u=(0,r.default)(t(e[n],n,e)))?--l:a+=u;if(l)return a/l};var e=require("./number"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./number":336}],75:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var l,n=e.length,s=-1,f=[];if(null==r)for(;++s<n;)isNaN(l=(0,t.default)(e[s]))||f.push(l);else for(;++s<n;)isNaN(l=(0,t.default)(r(e[s],s,e)))||f.push(l);return(0,a.default)(f.sort(u.default),.5)};var e=require("./ascending"),u=n(e),r=require("./number"),t=n(r),l=require("./quantile"),a=n(l);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./ascending":66,"./number":336,"./quantile":80}],76:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var r,t,n,o=e.length,f=-1,l=0;++f<o;)l+=e[f].length;for(t=new Array(l);--o>=0;)for(r=(n=e[o]).length;--r>=0;)t[--l]=n[r];return t};
|
|
},{}],77:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,l){var r,u,f=e.length,n=-1;if(null==l){for(;++n<f;)if(null!=(r=e[n])&&r>=r)for(u=r;++n<f;)null!=(r=e[n])&&u>r&&(u=r)}else for(;++n<f;)if(null!=(r=l(e[n],n,e))&&r>=r)for(u=r;++n<f;)null!=(r=l(e[n],n,e))&&u>r&&(u=r);return u};
|
|
},{}],79:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){for(var t=r.length,n=new Array(t);t--;)n[t]=e[r[t]];return n};
|
|
},{}],82:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if(u=e.length){var u,n,l=0,o=0,d=e[o];for(null==t&&(t=r.default);++l<u;)(t(n=e[l],d)<0||0!==t(d,d))&&(d=n,o=l);return 0===t(d,d)?o:void 0}};var e=require("./ascending"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./ascending":66}],83:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,r){for(var l,n,u=(null==r?e.length:r)-(t=null==t?0:+t);u;)n=Math.random()*u--|0,l=e[u+t],e[u+t]=e[n+t],e[n+t]=l;return e};
|
|
},{}],84:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var t,l=e.length,o=-1,u=0;if(null==r)for(;++o<l;)(t=+e[o])&&(u+=t);else for(;++o<l;)(t=+r(e[o],o,e))&&(u+=t);return u};
|
|
},{}],86:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){if(!(o=e.length))return[];for(var t=-1,u=(0,r.default)(e,n),f=new Array(u);++t<u;)for(var o,a=-1,i=f[t]=new Array(o);++a<o;)i[a]=e[a][t];return f};var e=require("./min"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function n(e){return e.length}
|
|
},{"./min":77}],88:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return(0,t.default)(arguments)};var e=require("./transpose"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./transpose":86}],30:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/bisect");Object.defineProperty(exports,"bisect",{enumerable:!0,get:function(){return _(e).default}}),Object.defineProperty(exports,"bisectRight",{enumerable:!0,get:function(){return e.bisectRight}}),Object.defineProperty(exports,"bisectLeft",{enumerable:!0,get:function(){return e.bisectLeft}});var r=require("./src/ascending");Object.defineProperty(exports,"ascending",{enumerable:!0,get:function(){return _(r).default}});var t=require("./src/bisector");Object.defineProperty(exports,"bisector",{enumerable:!0,get:function(){return _(t).default}});var n=require("./src/cross");Object.defineProperty(exports,"cross",{enumerable:!0,get:function(){return _(n).default}});var u=require("./src/descending");Object.defineProperty(exports,"descending",{enumerable:!0,get:function(){return _(u).default}});var i=require("./src/deviation");Object.defineProperty(exports,"deviation",{enumerable:!0,get:function(){return _(i).default}});var c=require("./src/extent");Object.defineProperty(exports,"extent",{enumerable:!0,get:function(){return _(c).default}});var o=require("./src/histogram");Object.defineProperty(exports,"histogram",{enumerable:!0,get:function(){return _(o).default}});var a=require("./src/threshold/freedmanDiaconis");Object.defineProperty(exports,"thresholdFreedmanDiaconis",{enumerable:!0,get:function(){return _(a).default}});var s=require("./src/threshold/scott");Object.defineProperty(exports,"thresholdScott",{enumerable:!0,get:function(){return _(s).default}});var f=require("./src/threshold/sturges");Object.defineProperty(exports,"thresholdSturges",{enumerable:!0,get:function(){return _(f).default}});var d=require("./src/max");Object.defineProperty(exports,"max",{enumerable:!0,get:function(){return _(d).default}});var p=require("./src/mean");Object.defineProperty(exports,"mean",{enumerable:!0,get:function(){return _(p).default}});var l=require("./src/median");Object.defineProperty(exports,"median",{enumerable:!0,get:function(){return _(l).default}});var b=require("./src/merge");Object.defineProperty(exports,"merge",{enumerable:!0,get:function(){return _(b).default}});var m=require("./src/min");Object.defineProperty(exports,"min",{enumerable:!0,get:function(){return _(m).default}});var g=require("./src/pairs");Object.defineProperty(exports,"pairs",{enumerable:!0,get:function(){return _(g).default}});var x=require("./src/permute");Object.defineProperty(exports,"permute",{enumerable:!0,get:function(){return _(x).default}});var j=require("./src/quantile");Object.defineProperty(exports,"quantile",{enumerable:!0,get:function(){return _(j).default}});var v=require("./src/range");Object.defineProperty(exports,"range",{enumerable:!0,get:function(){return _(v).default}});var y=require("./src/scan");Object.defineProperty(exports,"scan",{enumerable:!0,get:function(){return _(y).default}});var O=require("./src/shuffle");Object.defineProperty(exports,"shuffle",{enumerable:!0,get:function(){return _(O).default}});var P=require("./src/sum");Object.defineProperty(exports,"sum",{enumerable:!0,get:function(){return _(P).default}});var q=require("./src/ticks");Object.defineProperty(exports,"ticks",{enumerable:!0,get:function(){return _(q).default}}),Object.defineProperty(exports,"tickIncrement",{enumerable:!0,get:function(){return q.tickIncrement}}),Object.defineProperty(exports,"tickStep",{enumerable:!0,get:function(){return q.tickStep}});var h=require("./src/transpose");Object.defineProperty(exports,"transpose",{enumerable:!0,get:function(){return _(h).default}});var k=require("./src/variance");Object.defineProperty(exports,"variance",{enumerable:!0,get:function(){return _(k).default}});var S=require("./src/zip");function _(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"zip",{enumerable:!0,get:function(){return _(S).default}});
|
|
},{"./src/bisect":65,"./src/ascending":66,"./src/bisector":67,"./src/cross":68,"./src/descending":69,"./src/deviation":70,"./src/extent":71,"./src/histogram":72,"./src/threshold/freedmanDiaconis":251,"./src/threshold/scott":252,"./src/threshold/sturges":253,"./src/max":73,"./src/mean":74,"./src/median":75,"./src/merge":76,"./src/min":77,"./src/pairs":78,"./src/permute":79,"./src/quantile":80,"./src/range":81,"./src/scan":82,"./src/shuffle":83,"./src/sum":84,"./src/ticks":85,"./src/transpose":86,"./src/variance":87,"./src/zip":88}],325:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.slice=Array.prototype.slice;
|
|
},{}],61:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.axisTop=h,exports.axisRight=x,exports.axisBottom=g,exports.axisLeft=k;var t=require("./array"),n=require("./identity"),r=e(n);function e(t){return t&&t.__esModule?t:{default:t}}var i=1,a=2,u=3,o=4,l=1e-6;function c(t){return"translate("+(t+.5)+",0)"}function s(t){return"translate(0,"+(t+.5)+")"}function f(t){return function(n){return+t(n)}}function d(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(r){return+t(r)+n}}function m(){return!this.__axis}function p(n,e){var p=[],h=null,x=null,g=6,k=6,y=3,_=n===i||n===o?-1:1,v=n===o||n===a?"x":"y",M=n===i||n===u?c:s;function F(t){var c=null==h?e.ticks?e.ticks.apply(e,p):e.domain():h,s=null==x?e.tickFormat?e.tickFormat.apply(e,p):r.default:x,F=Math.max(g,0)+y,b=e.range(),z=+b[0]+.5,A=+b[b.length-1]+.5,V=(e.bandwidth?d:f)(e.copy()),H=t.selection?t.selection():t,S=H.selectAll(".domain").data([null]),q=H.selectAll(".tick").data(c,e).order(),w=q.exit(),O=q.enter().append("g").attr("class","tick"),P=q.select("line"),j=q.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),q=q.merge(O),P=P.merge(O.append("line").attr("stroke","#000").attr(v+"2",_*g)),j=j.merge(O.append("text").attr("fill","#000").attr(v,_*F).attr("dy",n===i?"0em":n===u?"0.71em":"0.32em")),t!==H&&(S=S.transition(t),q=q.transition(t),P=P.transition(t),j=j.transition(t),w=w.transition(t).attr("opacity",l).attr("transform",function(t){return isFinite(t=V(t))?M(t):this.getAttribute("transform")}),O.attr("opacity",l).attr("transform",function(t){var n=this.parentNode.__axis;return M(n&&isFinite(n=n(t))?n:V(t))})),w.remove(),S.attr("d",n===o||n==a?"M"+_*k+","+z+"H0.5V"+A+"H"+_*k:"M"+z+","+_*k+"V0.5H"+A+"V"+_*k),q.attr("opacity",1).attr("transform",function(t){return M(V(t))}),P.attr(v+"2",_*g),j.attr(v,_*F).text(s),H.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===a?"start":n===o?"end":"middle"),H.each(function(){this.__axis=V})}return F.scale=function(t){return arguments.length?(e=t,F):e},F.ticks=function(){return p=t.slice.call(arguments),F},F.tickArguments=function(n){return arguments.length?(p=null==n?[]:t.slice.call(n),F):p.slice()},F.tickValues=function(n){return arguments.length?(h=null==n?null:t.slice.call(n),F):h&&h.slice()},F.tickFormat=function(t){return arguments.length?(x=t,F):x},F.tickSize=function(t){return arguments.length?(g=k=+t,F):g},F.tickSizeInner=function(t){return arguments.length?(g=+t,F):g},F.tickSizeOuter=function(t){return arguments.length?(k=+t,F):k},F.tickPadding=function(t){return arguments.length?(y=+t,F):y},F}function h(t){return p(i,t)}function x(t){return p(a,t)}function g(t){return p(u,t)}function k(t){return p(o,t)}
|
|
},{"./array":325,"./identity":335}],31:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/axis");Object.defineProperty(exports,"axisTop",{enumerable:!0,get:function(){return e.axisTop}}),Object.defineProperty(exports,"axisRight",{enumerable:!0,get:function(){return e.axisRight}}),Object.defineProperty(exports,"axisBottom",{enumerable:!0,get:function(){return e.axisBottom}}),Object.defineProperty(exports,"axisLeft",{enumerable:!0,get:function(){return e.axisLeft}});
|
|
},{"./src/axis":61}],95:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n={value:function(){}};function r(){for(var n,r=0,t=arguments.length,o={};r<t;++r){if(!(n=arguments[r]+"")||n in o)throw new Error("illegal type: "+n);o[n]=[]}return new e(o)}function e(n){this._=n}function t(n,r){return n.trim().split(/^|\s+/).map(function(n){var e="",t=n.indexOf(".");if(t>=0&&(e=n.slice(t+1),n=n.slice(0,t)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:e}})}function o(n,r){for(var e,t=0,o=n.length;t<o;++t)if((e=n[t]).name===r)return e.value}function i(r,e,t){for(var o=0,i=r.length;o<i;++o)if(r[o].name===e){r[o]=n,r=r.slice(0,o).concat(r.slice(o+1));break}return null!=t&&r.push({name:e,value:t}),r}e.prototype=r.prototype={constructor:e,on:function(n,r){var e,l=this._,a=t(n+"",l),f=-1,u=a.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++f<u;)if(e=(n=a[f]).type)l[e]=i(l[e],n.name,r);else if(null==r)for(e in l)l[e]=i(l[e],n.name,null);return this}for(;++f<u;)if((e=(n=a[f]).type)&&(e=o(l[e],n.name)))return e},copy:function(){var n={},r=this._;for(var t in r)n[t]=r[t].slice();return new e(n)},call:function(n,r){if((e=arguments.length-2)>0)for(var e,t,o=new Array(e),i=0;i<e;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,e=(t=this._[n]).length;i<e;++i)t[i].value.apply(r,o)},apply:function(n,r,e){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var t=this._[n],o=0,i=t.length;o<i;++o)t[o].value.apply(r,e)}},exports.default=r;
|
|
},{}],35:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/dispatch");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"dispatch",{enumerable:!0,get:function(){return t(e).default}});
|
|
},{"./src/dispatch":95}],189:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=exports.xhtml="http://www.w3.org/1999/xhtml";exports.default={svg:"http://www.w3.org/2000/svg",xhtml:t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};
|
|
},{}],188:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var t=e+="",s=t.indexOf(":");return s>=0&&"xmlns"!==(t=e.slice(0,s))&&(e=e.slice(s+1)),r.default.hasOwnProperty(t)?{space:r.default[t],local:e}:e};var e=require("./namespaces"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./namespaces":189}],184:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var n=(0,t.default)(e);return(n.local?a:u)(n)};var e=require("./namespace"),t=r(e),n=require("./namespaces");function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===n.xhtml&&t.documentElement.namespaceURI===n.xhtml?t.createElement(e):t.createElementNS(r,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}
|
|
},{"./namespace":188,"./namespaces":189}],193:[function(require,module,exports) {
|
|
"use strict";function e(){}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return null==t?e:function(){return this.querySelector(t)}};
|
|
},{}],432:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){"function"!=typeof t&&(t=(0,r.default)(t));for(var _=this._groups,a=_.length,n=new Array(a),u=0;u<a;++u)for(var o,i,l=_[u],d=l.length,s=n[u]=new Array(d),f=0;f<d;++f)(o=l[f])&&(i=t.call(o,o.__data__,f,l))&&("__data__"in o&&(i.__data__=o.__data__),s[f]=i);return new e.Selection(n,this._parents)};var e=require("./index"),t=require("../selector"),r=_(t);function _(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./index":286,"../selector":193}],194:[function(require,module,exports) {
|
|
"use strict";function e(){return[]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return null==t?e:function(){return this.querySelectorAll(t)}};
|
|
},{}],433:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){"function"!=typeof t&&(t=(0,r.default)(t));for(var u=this._groups,l=u.length,n=[],o=[],s=0;s<l;++s)for(var a,f=u[s],i=f.length,_=0;_<i;++_)(a=f[_])&&(n.push(t.call(a,a.__data__,_,f)),o.push(a));return new e.Selection(n,o)};var e=require("./index"),t=require("../selectorAll"),r=u(t);function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./index":286,"../selectorAll":194}],186:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var t=document.documentElement;if(!t.matches){var c=t.webkitMatchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector;e=function(e){return function(){return c.call(this,e)}}}}exports.default=e;
|
|
},{}],434:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){"function"!=typeof r&&(r=(0,t.default)(r));for(var n=this._groups,u=n.length,a=new Array(u),o=0;o<u;++o)for(var i,l=n[o],s=l.length,f=a[o]=[],_=0;_<s;++_)(i=l[_])&&r.call(i,i.__data__,_,l)&&f.push(i);return new e.Selection(a,this._parents)};var e=require("./index"),r=require("../matcher"),t=n(r);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./index":286,"../matcher":186}],490:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return new Array(e.length)};
|
|
},{}],436:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return new r.Selection(this._enter||this._groups.map(t.default),this._parents)},exports.EnterNode=o;var e=require("./sparse"),t=n(e),r=require("./index");function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}o.prototype={constructor:o,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};
|
|
},{"./sparse":490,"./index":286}],435:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,n){if(!r)return v=new Array(this.size()),d=-1,this.each(function(e){v[++d]=e}),v;var a=n?l:_,o=this._parents,i=this._groups;"function"!=typeof r&&(r=(0,t.default)(r));for(var u=i.length,f=new Array(u),c=new Array(u),s=new Array(u),d=0;d<u;++d){var h=o[d],w=i[d],y=w.length,v=r.call(h,h&&h.__data__,d,o),g=v.length,A=c[d]=new Array(g),p=f[d]=new Array(g);a(h,w,A,p,s[d]=new Array(y),v,n);for(var x,q,E=0,M=0;E<g;++E)if(x=A[E]){for(E>=M&&(M=E+1);!(q=p[M])&&++M<g;);x._next=q||null}}return(f=new e.Selection(f,o))._enter=c,f._exit=s,f};var e=require("./index"),r=require("./enter"),n=require("../constant"),t=a(n);function a(e){return e&&e.__esModule?e:{default:e}}var o="$";function _(e,n,t,a,o,_){for(var l,i=0,u=n.length,f=_.length;i<f;++i)(l=n[i])?(l.__data__=_[i],a[i]=l):t[i]=new r.EnterNode(e,_[i]);for(;i<u;++i)(l=n[i])&&(o[i]=l)}function l(e,n,t,a,_,l,i){var u,f,c,s={},d=n.length,h=l.length,w=new Array(d);for(u=0;u<d;++u)(f=n[u])&&(w[u]=c=o+i.call(f,f.__data__,u,n),c in s?_[u]=f:s[c]=f);for(u=0;u<h;++u)(f=s[c=o+i.call(e,l[u],u,l)])?(a[u]=f,f.__data__=l[u],s[c]=null):t[u]=new r.EnterNode(e,l[u]);for(u=0;u<d;++u)(f=n[u])&&s[w[u]]===f&&(_[u]=f)}
|
|
},{"./index":286,"./enter":436,"../constant":334}],437:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return new r.Selection(this._exit||this._groups.map(t.default),this._parents)};var e=require("./sparse"),t=u(e),r=require("./index");function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./sparse":490,"./index":286}],438:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){for(var t=this._groups,n=r._groups,o=t.length,s=n.length,a=Math.min(o,s),i=new Array(o),u=0;u<a;++u)for(var l,f=t[u],h=n[u],p=f.length,g=i[u]=new Array(p),_=0;_<p;++_)(l=f[_]||h[_])&&(g[_]=l);for(;u<o;++u)i[u]=t[u];return new e.Selection(i,this._parents)};var e=require("./index");
|
|
},{"./index":286}],439:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n,o=e[t],s=o.length-1,i=o[s];--s>=0;)(n=o[s])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this};
|
|
},{}],440:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){function n(r,e){return r&&e?t(r.__data__,e.__data__):!r-!e}t||(t=e);for(var a=this._groups,o=a.length,u=new Array(o),_=0;_<o;++_){for(var i,s=a[_],d=s.length,f=u[_]=new Array(d),c=0;c<d;++c)(i=s[c])&&(f[c]=i);f.sort(n)}return new r.Selection(u,this._parents).order()};var r=require("./index");function e(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}
|
|
},{"./index":286}],441:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this};
|
|
},{}],442:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e};
|
|
},{}],443:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var u=e[r],n=0,o=u.length;n<o;++n){var l=u[n];if(l)return l}return null};
|
|
},{}],444:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=0;return this.each(function(){++e}),e};
|
|
},{}],445:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return!this.node()};
|
|
},{}],446:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s,a=t[r],l=0,u=a.length;l<u;++l)(s=a[l])&&e.call(s,s.__data__,l,a);return this};
|
|
},{}],447:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,n){var a=(0,e.default)(t);if(arguments.length<2){var s=this.node();return a.local?s.getAttributeNS(a.space,a.local):s.getAttribute(a)}return this.each((null==n?a.local?r:u:"function"==typeof n?a.local?l:c:a.local?o:i)(a,n))};var t=require("../namespace"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(){this.removeAttribute(t)}}function r(t){return function(){this.removeAttributeNS(t.space,t.local)}}function i(t,e){return function(){this.setAttribute(t,e)}}function o(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function c(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function l(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}
|
|
},{"../namespace":188}],197:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};
|
|
},{}],287:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,r){return arguments.length>1?this.each((null==t?n:"function"==typeof t?o:u)(e,t,null==r?"":r)):l(this.node(),e)},exports.styleValue=l;var e=require("../window"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return function(){this.style.removeProperty(e)}}function u(e,t,r){return function(){this.style.setProperty(e,t,r)}}function o(e,t,r){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function l(e,r){return e.style.getPropertyValue(r)||(0,t.default)(e).getComputedStyle(e,null).getPropertyValue(r)}
|
|
},{"../window":197}],448:[function(require,module,exports) {
|
|
"use strict";function t(t){return function(){delete this[t]}}function e(t,e){return function(){this[t]=e}}function n(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(u,i){return arguments.length>1?this.each((null==i?t:"function"==typeof i?n:e)(u,i)):this.node()[u]};
|
|
},{}],449:[function(require,module,exports) {
|
|
"use strict";function t(t){return t.trim().split(/^|\s+/)}function n(t){return t.classList||new e(t)}function e(n){this._node=n,this._names=t(n.getAttribute("class")||"")}function i(t,e){for(var i=n(t),s=-1,r=e.length;++s<r;)i.add(e[s])}function s(t,e){for(var i=n(t),s=-1,r=e.length;++s<r;)i.remove(e[s])}function r(t){return function(){i(this,t)}}function o(t){return function(){s(this,t)}}function u(t,n){return function(){(n.apply(this,arguments)?i:s)(this,t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,i){var s=t(e+"");if(arguments.length<2){for(var f=n(this.node()),c=-1,a=s.length;++c<a;)if(!f.contains(s[c]))return!1;return!0}return this.each(("function"==typeof i?u:i?r:o)(s,i))},e.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};
|
|
},{}],450:[function(require,module,exports) {
|
|
"use strict";function t(){this.textContent=""}function n(t){return function(){this.textContent=t}}function e(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(o){return arguments.length?this.each(null==o?t:("function"==typeof o?e:n)(o)):this.node().textContent};
|
|
},{}],451:[function(require,module,exports) {
|
|
"use strict";function n(){this.innerHTML=""}function t(n){return function(){this.innerHTML=n}}function e(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(i){return arguments.length?this.each(null==i?n:("function"==typeof i?e:t)(i)):this.node().innerHTML};
|
|
},{}],452:[function(require,module,exports) {
|
|
"use strict";function e(){this.nextSibling&&this.parentNode.appendChild(this)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this.each(e)};
|
|
},{}],453:[function(require,module,exports) {
|
|
"use strict";function e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this.each(e)};
|
|
},{}],454:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r="function"==typeof e?e:(0,t.default)(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})};var e=require("../creator"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../creator":184}],455:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var n="function"==typeof e?e:(0,t.default)(e),o=null==r?l:"function"==typeof r?r:(0,u.default)(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})};var e=require("../creator"),t=n(e),r=require("../selector"),u=n(r);function n(e){return e&&e.__esModule?e:{default:e}}function l(){return null}
|
|
},{"../creator":184,"../selector":193}],456:[function(require,module,exports) {
|
|
"use strict";function e(){var e=this.parentNode;e&&e.removeChild(this)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this.each(e)};
|
|
},{}],457:[function(require,module,exports) {
|
|
"use strict";function e(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function t(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n){return this.select(n?t:e)};
|
|
},{}],458:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return arguments.length?this.property("__data__",e):this.node().__data__};
|
|
},{}],288:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,n){var r,i,a=o(e+""),l=a.length;if(!(arguments.length<2)){for(p=t?u:s,null==n&&(n=!1),r=0;r<l;++r)this.each(p(a[r],t,n));return this}var p=this.node().__on;if(p)for(var v,f=0,c=p.length;f<c;++f)for(r=0,v=p[f];r<l;++r)if((i=a[r]).type===v.type&&i.name===v.name)return v.value},exports.customEvent=a;var e={},t=exports.event=null;if("undefined"!=typeof document){var n=document.documentElement;"onmouseenter"in n||(e={mouseenter:"mouseover",mouseleave:"mouseout"})}function r(e,t,n){return e=i(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function i(e,n,r){return function(i){var o=t;exports.event=t=i;try{e.call(this,this.__data__,n,r)}finally{exports.event=t=o}}}function o(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function s(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function u(t,n,o){var s=e.hasOwnProperty(t.type)?r:i;return function(e,r,i){var u,a=this.__on,l=s(n,r,i);if(a)for(var p=0,v=a.length;p<v;++p)if((u=a[p]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=o),void(u.value=n);this.addEventListener(t.type,l,o),u={type:t.type,name:t.name,value:n,listener:l,capture:o},a?a.push(u):this.__on=[u]}}function a(e,n,r,i){var o=t;e.sourceEvent=t,exports.event=t=e;try{return n.apply(r,i)}finally{exports.event=t=o}}
|
|
},{}],459:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,e){return this.each(("function"==typeof e?r:i)(t,e))};var t=require("../window"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}function u(t,n,u){var i=(0,e.default)(t),r=i.CustomEvent;"function"==typeof r?r=new r(n,u):(r=i.document.createEvent("Event"),u?(r.initEvent(n,u.bubbles,u.cancelable),r.detail=u.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function i(t,e){return function(){return u(this,t,e)}}function r(t,e){return function(){return u(this,t,e.apply(this,arguments))}}
|
|
},{"../window":197}],286:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.root=void 0,exports.Selection=oe;var e=require("./select"),r=de(e),t=require("./selectAll"),u=de(t),l=require("./filter"),a=de(l),d=require("./data"),i=de(d),o=require("./enter"),f=de(o),s=require("./exit"),n=de(s),q=require("./merge"),c=de(q),p=require("./order"),m=de(p),x=require("./sort"),y=de(x),h=require("./call"),v=de(h),_=require("./nodes"),g=de(_),w=require("./node"),z=de(w),A=require("./size"),M=de(A),b=require("./empty"),j=de(b),E=require("./each"),O=de(E),P=require("./attr"),S=de(P),k=require("./style"),B=de(k),C=require("./property"),D=de(C),F=require("./classed"),G=de(F),H=require("./text"),I=de(H),J=require("./html"),K=de(J),L=require("./raise"),N=de(L),Q=require("./lower"),R=de(Q),T=require("./append"),U=de(T),V=require("./insert"),W=de(V),X=require("./remove"),Y=de(X),Z=require("./clone"),$=de(Z),ee=require("./datum"),re=de(ee),te=require("./on"),ue=de(te),le=require("./dispatch"),ae=de(le);function de(e){return e&&e.__esModule?e:{default:e}}var ie=exports.root=[null];function oe(e,r){this._groups=e,this._parents=r}function fe(){return new oe([[document.documentElement]],ie)}oe.prototype=fe.prototype={constructor:oe,select:r.default,selectAll:u.default,filter:a.default,data:i.default,enter:f.default,exit:n.default,merge:c.default,order:m.default,sort:y.default,call:v.default,nodes:g.default,node:z.default,size:M.default,empty:j.default,each:O.default,attr:S.default,style:B.default,property:D.default,classed:G.default,text:I.default,html:K.default,raise:N.default,lower:R.default,append:U.default,insert:W.default,remove:Y.default,clone:$.default,datum:re.default,on:ue.default,dispatch:ae.default},exports.default=fe;
|
|
},{"./select":432,"./selectAll":433,"./filter":434,"./data":435,"./enter":436,"./exit":437,"./merge":438,"./order":439,"./sort":440,"./call":441,"./nodes":442,"./node":443,"./size":444,"./empty":445,"./each":446,"./attr":447,"./style":287,"./property":448,"./classed":449,"./text":450,"./html":451,"./raise":452,"./lower":453,"./append":454,"./insert":455,"./remove":456,"./clone":457,"./datum":458,"./on":288,"./dispatch":459}],191:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return"string"==typeof t?new e.Selection([[document.querySelector(t)]],[document.documentElement]):new e.Selection([[t]],e.root)};var e=require("./selection/index");
|
|
},{"./selection/index":286}],183:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return(0,u.default)((0,t.default)(e).call(document.documentElement))};var e=require("./creator"),t=l(e),r=require("./select"),u=l(r);function l(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./creator":184,"./select":191}],185:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;var t=0;function e(){return new r}function r(){this._="@"+(++t).toString(36)}r.prototype=e.prototype={constructor:r,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};
|
|
},{}],382:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){for(var r,t=e.event;r=t.sourceEvent;)t=r;return t};var e=require("./selection/on");
|
|
},{"./selection/on":288}],190:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]};
|
|
},{}],187:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=(0,u.default)();return r.changedTouches&&(r=r.changedTouches[0]),(0,t.default)(e,r)};var e=require("./sourceEvent"),u=n(e),r=require("./point"),t=n(r);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./sourceEvent":382,"./point":190}],192:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return"string"==typeof t?new e.Selection([document.querySelectorAll(t)],[document.documentElement]):new e.Selection([null==t?[]:t],e.root)};var e=require("./selection/index");
|
|
},{"./selection/index":286}],195:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,n){arguments.length<3&&(n=t,t=(0,r.default)().changedTouches);for(var i,l=0,o=t?t.length:0;l<o;++l)if((i=t[l]).identifier===n)return(0,u.default)(e,i);return null};var e=require("./sourceEvent"),r=n(e),t=require("./point"),u=n(t);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./sourceEvent":382,"./point":190}],196:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){null==t&&(t=(0,r.default)().touches);for(var n=0,o=t?t.length:0,l=new Array(o);n<o;++n)l[n]=(0,u.default)(e,t[n]);return l};var e=require("./sourceEvent"),r=n(e),t=require("./point"),u=n(t);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./sourceEvent":382,"./point":190}],50:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/create");Object.defineProperty(exports,"create",{enumerable:!0,get:function(){return x(e).default}});var r=require("./src/creator");Object.defineProperty(exports,"creator",{enumerable:!0,get:function(){return x(r).default}});var t=require("./src/local");Object.defineProperty(exports,"local",{enumerable:!0,get:function(){return x(t).default}});var n=require("./src/matcher");Object.defineProperty(exports,"matcher",{enumerable:!0,get:function(){return x(n).default}});var u=require("./src/mouse");Object.defineProperty(exports,"mouse",{enumerable:!0,get:function(){return x(u).default}});var c=require("./src/namespace");Object.defineProperty(exports,"namespace",{enumerable:!0,get:function(){return x(c).default}});var o=require("./src/namespaces");Object.defineProperty(exports,"namespaces",{enumerable:!0,get:function(){return x(o).default}});var a=require("./src/point");Object.defineProperty(exports,"clientPoint",{enumerable:!0,get:function(){return x(a).default}});var i=require("./src/select");Object.defineProperty(exports,"select",{enumerable:!0,get:function(){return x(i).default}});var s=require("./src/selectAll");Object.defineProperty(exports,"selectAll",{enumerable:!0,get:function(){return x(s).default}});var l=require("./src/selection/index");Object.defineProperty(exports,"selection",{enumerable:!0,get:function(){return x(l).default}});var f=require("./src/selector");Object.defineProperty(exports,"selector",{enumerable:!0,get:function(){return x(f).default}});var p=require("./src/selectorAll");Object.defineProperty(exports,"selectorAll",{enumerable:!0,get:function(){return x(p).default}});var d=require("./src/selection/style");Object.defineProperty(exports,"style",{enumerable:!0,get:function(){return d.styleValue}});var b=require("./src/touch");Object.defineProperty(exports,"touch",{enumerable:!0,get:function(){return x(b).default}});var m=require("./src/touches");Object.defineProperty(exports,"touches",{enumerable:!0,get:function(){return x(m).default}});var v=require("./src/window");Object.defineProperty(exports,"window",{enumerable:!0,get:function(){return x(v).default}});var y=require("./src/selection/on");function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"event",{enumerable:!0,get:function(){return y.event}}),Object.defineProperty(exports,"customEvent",{enumerable:!0,get:function(){return y.customEvent}});
|
|
},{"./src/create":183,"./src/creator":184,"./src/local":185,"./src/matcher":186,"./src/mouse":187,"./src/namespace":188,"./src/namespaces":189,"./src/point":190,"./src/select":191,"./src/selectAll":192,"./src/selection/index":286,"./src/selector":193,"./src/selectorAll":194,"./src/selection/style":287,"./src/touch":195,"./src/touches":196,"./src/window":197,"./src/selection/on":288}],370:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.nopropagation=t,exports.default=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()};var e=require("d3-selection");function t(){e.event.stopImmediatePropagation()}
|
|
},{"d3-selection":50}],156:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){var l=t.document.documentElement,r=(0,e.select)(t).on("dragstart.drag",n.default,!0);"onselectstart"in l?r.on("selectstart.drag",n.default,!0):(l.__noselect=l.style.MozUserSelect,l.style.MozUserSelect="none")},exports.yesdrag=r;var e=require("d3-selection"),t=require("./noevent"),n=l(t);function l(e){return e&&e.__esModule?e:{default:e}}function r(t,l){var r=t.document.documentElement,o=(0,e.select)(t).on("dragstart.drag",null);l&&(o.on("click.drag",n.default,!0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}
|
|
},{"d3-selection":50,"./noevent":370}],372:[function(require,module,exports) {
|
|
"use strict";function t(t,i,s,e,h,r,o,n,p,u){this.target=t,this.type=i,this.subject=s,this.identifier=e,this.active=h,this.x=r,this.y=o,this.dx=n,this.dy=p,this._=u}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t,t.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};
|
|
},{}],155:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var i,c,l,p,g=s,y=d,m=h,b=v,w={},q=(0,e.dispatch)("start","drag","end"),x=0,T=0;function _(e){e.on("mousedown.drag",j).filter(b).on("touchstart.drag",E).on("touchmove.drag",X).on("touchend.drag touchcancel.drag",Y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function j(){if(!p&&g.apply(this,arguments)){var e=D("mouse",y.apply(this,arguments),t.mouse,this,arguments);e&&((0,t.select)(t.event.view).on("mousemove.drag",k,!0).on("mouseup.drag",M,!0),(0,o.default)(t.event.view),(0,r.nopropagation)(),l=!1,i=t.event.clientX,c=t.event.clientY,e("start"))}}function k(){if((0,u.default)(),!l){var e=t.event.clientX-i,n=t.event.clientY-c;l=e*e+n*n>T}w.mouse("drag")}function M(){(0,t.select)(t.event.view).on("mousemove.drag mouseup.drag",null),(0,n.yesdrag)(t.event.view,l),(0,u.default)(),w.mouse("end")}function E(){if(g.apply(this,arguments)){var e,n,o=t.event.changedTouches,u=y.apply(this,arguments),i=o.length;for(e=0;e<i;++e)(n=D(o[e].identifier,u,t.touch,this,arguments))&&((0,r.nopropagation)(),n("start"))}}function X(){var e,n,o=t.event.changedTouches,r=o.length;for(e=0;e<r;++e)(n=w[o[e].identifier])&&((0,u.default)(),n("drag"))}function Y(){var e,n,o=t.event.changedTouches,u=o.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),e=0;e<u;++e)(n=w[o[e].identifier])&&((0,r.nopropagation)(),n("end"))}function D(e,n,o,r,u){var i,a,c,l=o(n,e),s=q.copy();if((0,t.customEvent)(new f.default(_,"beforestart",i,e,x,l[0],l[1],0,0,s),function(){return null!=(t.event.subject=i=m.apply(r,u))&&(a=i.x-l[0]||0,c=i.y-l[1]||0,!0)}))return function d(h){var v,p=l;switch(h){case"start":w[e]=d,v=x++;break;case"end":delete w[e],--x;case"drag":l=o(n,e),v=x}(0,t.customEvent)(new f.default(_,h,i,e,v,l[0]+a,l[1]+c,l[0]-p[0],l[1]-p[1],s),s.apply,s,[h,r,u])}}return _.filter=function(e){return arguments.length?(g="function"==typeof e?e:(0,a.default)(!!e),_):g},_.container=function(e){return arguments.length?(y="function"==typeof e?e:(0,a.default)(e),_):y},_.subject=function(e){return arguments.length?(m="function"==typeof e?e:(0,a.default)(e),_):m},_.touchable=function(e){return arguments.length?(b="function"==typeof e?e:(0,a.default)(!!e),_):b},_.on=function(){var e=q.on.apply(q,arguments);return e===q?_:e},_.clickDistance=function(e){return arguments.length?(T=(e=+e)*e,_):Math.sqrt(T)},_};var e=require("d3-dispatch"),t=require("d3-selection"),n=require("./nodrag"),o=l(n),r=require("./noevent"),u=l(r),i=require("./constant"),a=l(i),c=require("./event"),f=l(c);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return!t.event.button}function d(){return this.parentNode}function h(e){return null==e?{x:t.event.x,y:t.event.y}:e}function v(){return"ontouchstart"in this}
|
|
},{"d3-dispatch":35,"d3-selection":50,"./nodrag":156,"./noevent":370,"./constant":334,"./event":372}],47:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/drag");Object.defineProperty(exports,"drag",{enumerable:!0,get:function(){return t(e).default}});var r=require("./src/nodrag");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"dragDisable",{enumerable:!0,get:function(){return t(r).default}}),Object.defineProperty(exports,"dragEnable",{enumerable:!0,get:function(){return r.yesdrag}});
|
|
},{"./src/drag":155,"./src/nodrag":156}],352:[function(require,module,exports) {
|
|
"use strict";function t(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t},exports.extend=t;
|
|
},{}],135:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.brighter=exports.darker=void 0,exports.Color=i,exports.default=m,exports.rgbConvert=x,exports.rgb=v,exports.Rgb=N,exports.hslConvert=q,exports.hsl=E;var e=require("./define"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}function i(){}var n=exports.darker=.7,a=exports.brighter=1/n,l="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3})$/,u=/^#([0-9a-f]{6})$/,g=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),c=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),p=new RegExp("^rgba\\("+[o,o,o,s]+"\\)$"),b=new RegExp("^hsl\\("+[s,o,o]+"\\)$"),y=new RegExp("^hsla\\("+[s,o,o,s]+"\\)$"),w={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(e){var t;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?new N((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=u.exec(e))?f(parseInt(t[1],16)):(t=g.exec(e))?new N(t[1],t[2],t[3],1):(t=d.exec(e))?new N(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?k(t[1],t[2],t[3],t[4]):(t=p.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):w.hasOwnProperty(e)?f(w[e]):"transparent"===e?new N(NaN,NaN,NaN,0):null}function f(e){return new N(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,i){return i<=0&&(e=t=r=NaN),new N(e,t,r,i)}function x(e){return e instanceof i||(e=m(e)),e?new N((e=e.rgb()).r,e.g,e.b,e.opacity):new N}function v(e,t,r,i){return 1===arguments.length?x(e):new N(e,t,r,null==i?1:i)}function N(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function M(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new $(e,t,r,i)}function q(e){if(e instanceof $)return new $(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=m(e)),!e)return new $;if(e instanceof $)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),l=Math.max(t,r,n),s=NaN,o=l-a,h=(l+a)/2;return o?(s=t===l?(r-n)/o+6*(r<n):r===l?(n-t)/o+2:(t-r)/o+4,o/=h<.5?l+a:2-l-a,s*=60):o=h>0&&h<1?0:s,new $(s,o,h,e.opacity)}function E(e,t,r,i){return 1===arguments.length?q(e):new $(e,t,r,null==i?1:i)}function $(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function R(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,t.default)(i,m,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),(0,t.default)(N,v,(0,e.extend)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?n:Math.pow(n,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),(0,t.default)($,E,(0,e.extend)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new $(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?n:Math.pow(n,e),new $(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new N(R(e>=240?e-240:e+120,n,i),R(e,n,i),R(e<120?e+240:e-120,n,i),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}}));
|
|
},{"./define":352}],353:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.deg2rad=Math.PI/180,r=exports.rad2deg=180/Math.PI;
|
|
},{}],136:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=b,exports.Lab=d,exports.hcl=x,exports.Hcl=q;var t=require("./define"),n=e(t),i=require("./color"),r=require("./math");function e(t){return t&&t.__esModule?t:{default:t}}var a=18,o=.95047,u=1,s=1.08883,h=4/29,c=6/29,l=3*c*c,f=c*c*c;function p(t){if(t instanceof d)return new d(t.l,t.a,t.b,t.opacity);if(t instanceof q){var n=t.h*r.deg2rad;return new d(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e=M(t.r),a=M(t.g),h=M(t.b),c=w((.4124564*e+.3575761*a+.1804375*h)/o),l=w((.2126729*e+.7151522*a+.072175*h)/u);return new d(116*l-16,500*(c-l),200*(l-w((.0193339*e+.119192*a+.9503041*h)/s)),t.opacity)}function b(t,n,i,r){return 1===arguments.length?p(t):new d(t,n,i,null==r?1:r)}function d(t,n,i,r){this.l=+t,this.a=+n,this.b=+i,this.opacity=+r}function w(t){return t>f?Math.pow(t,1/3):t/l+h}function g(t){return t>c?t*t*t:l*(t-h)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function M(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v(t){if(t instanceof q)return new q(t.h,t.c,t.l,t.opacity);t instanceof d||(t=p(t));var n=Math.atan2(t.b,t.a)*r.rad2deg;return new q(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function x(t,n,i,r){return 1===arguments.length?v(t):new q(t,n,i,null==r?1:r)}function q(t,n,i,r){this.h=+t,this.c=+n,this.l=+i,this.opacity=+r}(0,n.default)(d,b,(0,t.extend)(i.Color,{brighter:function(t){return new d(this.l+a*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new d(this.l-a*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return t=u*g(t),n=o*g(n),r=s*g(r),new i.Rgb(y(3.2404542*n-1.5371385*t-.4985314*r),y(-.969266*n+1.8760108*t+.041556*r),y(.0556434*n-.2040259*t+1.0572252*r),this.opacity)}})),(0,n.default)(q,x,(0,t.extend)(i.Color,{brighter:function(t){return new q(this.h,this.c,this.l+a*(null==t?1:t),this.opacity)},darker:function(t){return new q(this.h,this.c,this.l-a*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));
|
|
},{"./define":352,"./color":135,"./math":353}],137:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=p,exports.Cubehelix=g;var t=require("./define"),e=n(t),r=require("./color"),i=require("./math");function n(t){return t&&t.__esModule?t:{default:t}}var s=-.14861,h=1.78277,a=-.29227,o=-.90649,u=1.97294,l=u*o,c=u*h,d=h*a-o*s;function f(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);t instanceof r.Rgb||(t=(0,r.rgbConvert)(t));var e=t.r/255,n=t.g/255,s=t.b/255,h=(d*s+l*e-c*n)/(d+l-c),f=s-h,p=(u*(n-h)-a*f)/o,b=Math.sqrt(p*p+f*f)/(u*h*(1-h)),w=b?Math.atan2(p,f)*i.rad2deg-120:NaN;return new g(w<0?w+360:w,b,h,t.opacity)}function p(t,e,r,i){return 1===arguments.length?f(t):new g(t,e,r,null==i?1:i)}function g(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}(0,e.default)(g,p,(0,t.extend)(r.Color,{brighter:function(t){return t=null==t?r.brighter:Math.pow(r.brighter,t),new g(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?r.darker:Math.pow(r.darker,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*i.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),l=Math.cos(t),c=Math.sin(t);return new r.Rgb(255*(e+n*(s*l+h*c)),255*(e+n*(a*l+o*c)),255*(e+n*(u*l)),this.opacity)}}));
|
|
},{"./define":352,"./color":135,"./math":353}],41:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/color");Object.defineProperty(exports,"color",{enumerable:!0,get:function(){return n(e).default}}),Object.defineProperty(exports,"rgb",{enumerable:!0,get:function(){return e.rgb}}),Object.defineProperty(exports,"hsl",{enumerable:!0,get:function(){return e.hsl}});var r=require("./src/lab");Object.defineProperty(exports,"lab",{enumerable:!0,get:function(){return n(r).default}}),Object.defineProperty(exports,"hcl",{enumerable:!0,get:function(){return r.hcl}});var t=require("./src/cubehelix");function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"cubehelix",{enumerable:!0,get:function(){return n(t).default}});
|
|
},{"./src/color":135,"./src/lab":136,"./src/cubehelix":137}],231:[function(require,module,exports) {
|
|
"use strict";function e(e,r,t,n,o){var u=e*e,s=u*e;return((1-3*e+3*u-s)*r+(4-6*u+3*s)*t+(1+3*e+3*u-3*s)*n+s*o)/6}Object.defineProperty(exports,"__esModule",{value:!0}),exports.basis=e,exports.default=function(r){var t=r.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),u=r[o],s=r[o+1],a=o>0?r[o-1]:2*u-s,f=o<t-1?r[o+2]:2*s-u;return e((n-o/t)*t,a,u,s,f)}};
|
|
},{}],232:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){var t=r.length;return function(s){var u=Math.floor(((s%=1)<0?++s:s)*t),a=r[(u+t-1)%t],n=r[u%t],o=r[(u+1)%t],i=r[(u+2)%t];return(0,e.basis)((s-u/t)*t,a,n,o,i)}};var e=require("./basis");
|
|
},{"./basis":231}],391:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hue=o,exports.gamma=a,exports.default=f;var t=require("./constant"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return function(n){return t+n*e}}function u(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,n){var u=n-t;return u?r(t,u>180||u<-180?u-360*Math.round(u/360):u):(0,e.default)(isNaN(t)?n:t)}function a(t){return 1==(t=+t)?f:function(n,r){return r-n?u(n,r,t):(0,e.default)(isNaN(n)?r:n)}}function f(t,n){var u=n-t;return u?r(t,u):(0,e.default)(isNaN(t)?n:t)}
|
|
},{"./constant":334}],239:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rgbBasisClosed=exports.rgbBasis=void 0;var r=require("d3-color"),e=require("./basis"),t=s(e),o=require("./basisClosed"),a=s(o),u=require("./color"),n=s(u);function s(r){return r&&r.__esModule?r:{default:r}}function i(e){return function(t){var o,a,u=t.length,n=new Array(u),s=new Array(u),i=new Array(u);for(o=0;o<u;++o)a=(0,r.rgb)(t[o]),n[o]=a.r||0,s[o]=a.g||0,i[o]=a.b||0;return n=e(n),s=e(s),i=e(i),a.opacity=1,function(r){return a.r=n(r),a.g=s(r),a.b=i(r),a+""}}}exports.default=function e(t){var o=(0,u.gamma)(t);function a(e,t){var a=o((e=(0,r.rgb)(e)).r,(t=(0,r.rgb)(t)).r),u=o(e.g,t.g),s=o(e.b,t.b),i=(0,n.default)(e.opacity,t.opacity);return function(r){return e.r=a(r),e.g=u(r),e.b=s(r),e.opacity=i(r),e+""}}return a.gamma=e,a}(1);var b=exports.rgbBasis=i(t.default),c=exports.rgbBasisClosed=i(a.default);
|
|
},{"d3-color":41,"./basis":231,"./basisClosed":232,"./color":391}],230:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var n,u=t?t.length:0,o=e?Math.min(u,e.length):0,a=new Array(o),f=new Array(u);for(n=0;n<o;++n)a[n]=(0,r.default)(e[n],t[n]);for(;n<u;++n)f[n]=t[n];return function(e){for(n=0;n<o;++n)f[n]=a[n](e);return f}};var e=require("./value"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./value":229}],233:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var r=new Date;return t-=e=+e,function(n){return r.setTime(e+t*n),r}};
|
|
},{}],234:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return t-=e=+e,function(r){return e+t*r}};
|
|
},{}],235:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var u,n={},o={};for(u in null!==e&&"object"==typeof e||(e={}),null!==r&&"object"==typeof r||(r={}),r)u in e?n[u]=(0,t.default)(e[u],r[u]):o[u]=r[u];return function(e){for(u in n)o[u]=n[u](e);return o}};var e=require("./value"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./value":229}],237:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var o,c,d,f=t.lastIndex=u.lastIndex=0,s=-1,x=[],a=[];for(e+="",r+="";(o=t.exec(e))&&(c=u.exec(r));)(d=c.index)>f&&(d=r.slice(f,d),x[s]?x[s]+=d:x[++s]=d),(o=o[0])===(c=c[0])?x[s]?x[s]+=c:x[++s]=c:(x[++s]=null,a.push({i:s,x:(0,n.default)(o,c)})),f=u.lastIndex;return f<r.length&&(d=r.slice(f),x[s]?x[s]+=d:x[++s]=d),x.length<2?a[0]?l(a[0].x):i(r):(r=a.length,function(e){for(var n,t=0;t<r;++t)x[(n=a[t]).i]=n.x(e);return x.join("")})};var e=require("./number"),n=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var t=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=new RegExp(t.source,"g");function i(e){return function(){return e}}function l(e){return function(n){return e(n)+""}}
|
|
},{"./number":234}],229:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,u){var o,f=typeof u;return null==u||"boolean"===f?(0,y.default)(u):("number"===f?i.default:"string"===f?(o=(0,e.color)(u))?(u=o,t.default):s.default:u instanceof e.color?t.default:u instanceof Date?n.default:Array.isArray(u)?a.default:"function"!=typeof u.valueOf&&"function"!=typeof u.toString||isNaN(u)?d.default:i.default)(r,u)};var e=require("d3-color"),r=require("./rgb"),t=b(r),u=require("./array"),a=b(u),o=require("./date"),n=b(o),f=require("./number"),i=b(f),l=require("./object"),d=b(l),c=require("./string"),s=b(c),q=require("./constant"),y=b(q);function b(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"d3-color":41,"./rgb":239,"./array":230,"./date":233,"./number":234,"./object":235,"./string":237,"./constant":334}],236:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return t-=e=+e,function(r){return Math.round(e+t*r)}};
|
|
},{}],491:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(a,e,r,s,l,n){var o,c,u;return(o=Math.sqrt(a*a+e*e))&&(a/=o,e/=o),(u=a*r+e*s)&&(r-=a*u,s-=e*u),(c=Math.sqrt(r*r+s*s))&&(r/=c,s/=c,u/=c),a*s<e*r&&(a=-a,e=-e,u=-u,o=-o),{translateX:l,translateY:n,rotate:Math.atan2(e,a)*t,skewX:Math.atan(u)*t,scaleX:o,scaleY:c}};var t=180/Math.PI,a=exports.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};
|
|
},{}],460:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseCss=s,exports.parseSvg=d;var e,t,r,n,o=require("./decompose"),u=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function s(n){return"none"===n?o.identity:(e||(e=document.createElement("DIV"),t=document.documentElement,r=document.defaultView),e.style.transform=n,n=r.getComputedStyle(t.appendChild(e),null).getPropertyValue("transform"),t.removeChild(e),n=n.slice(7,-1).split(","),(0,u.default)(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}function d(e){return null==e?o.identity:(n||(n=document.createElementNS("http://www.w3.org/2000/svg","g")),n.setAttribute("transform",e),(e=n.transform.baseVal.consolidate())?(e=e.matrix,(0,u.default)(e.a,e.b,e.c,e.d,e.e,e.f)):o.identity)}
|
|
},{"./decompose":491}],322:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.interpolateTransformSvg=exports.interpolateTransformCss=void 0;var e=require("../number"),t=s(e),r=require("./parse");function s(e){return e&&e.__esModule?e:{default:e}}function n(e,r,s,n){function a(e){return e.length?e.pop()+" ":""}return function(u,l){var o=[],p=[];return u=e(u),l=e(l),function(e,n,a,u,l,o){if(e!==a||n!==u){var p=l.push("translate(",null,r,null,s);o.push({i:p-4,x:(0,t.default)(e,a)},{i:p-2,x:(0,t.default)(n,u)})}else(a||u)&&l.push("translate("+a+r+u+s)}(u.translateX,u.translateY,l.translateX,l.translateY,o,p),function(e,r,s,u){e!==r?(e-r>180?r+=360:r-e>180&&(e+=360),u.push({i:s.push(a(s)+"rotate(",null,n)-2,x:(0,t.default)(e,r)})):r&&s.push(a(s)+"rotate("+r+n)}(u.rotate,l.rotate,o,p),function(e,r,s,u){e!==r?u.push({i:s.push(a(s)+"skewX(",null,n)-2,x:(0,t.default)(e,r)}):r&&s.push(a(s)+"skewX("+r+n)}(u.skewX,l.skewX,o,p),function(e,r,s,n,u,l){if(e!==s||r!==n){var o=u.push(a(u)+"scale(",null,",",null,")");l.push({i:o-4,x:(0,t.default)(e,s)},{i:o-2,x:(0,t.default)(r,n)})}else 1===s&&1===n||u.push(a(u)+"scale("+s+","+n+")")}(u.scaleX,u.scaleY,l.scaleX,l.scaleY,o,p),u=l=null,function(e){for(var t,r=-1,s=p.length;++r<s;)o[(t=p[r]).i]=t.x(e);return o.join("")}}}var a=exports.interpolateTransformCss=n(r.parseCss,"px, ","px)","deg)"),u=exports.interpolateTransformSvg=n(r.parseSvg,", ",")",")");
|
|
},{"../number":234,"./parse":460}],238:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(M,h){var i,f,s=M[0],c=M[1],l=M[2],p=h[0],x=h[1],v=h[2],d=p-s,g=x-c,q=d*d+g*g;if(q<n)f=Math.log(v/l)/t,i=function(e){return[s+e*d,c+e*g,l*Math.exp(t*e*f)]};else{var _=Math.sqrt(q),b=(v*v-l*l+r*q)/(2*l*e*_),j=(v*v-l*l-r*q)/(2*v*e*_),y=Math.log(Math.sqrt(b*b+1)-b),O=Math.log(Math.sqrt(j*j+1)-j);f=(O-y)/t,i=function(r){var n=r*f,M=a(y),h=l/(e*_)*(M*o(t*n+y)-u(y));return[s+h*d,c+h*g,l*M/a(t*n+y)]}}return i.duration=1e3*f,i};var t=Math.SQRT2,e=2,r=4,n=1e-12;function a(t){return((t=Math.exp(t))+1/t)/2}function u(t){return((t=Math.exp(t))-1/t)/2}function o(t){return((t=Math.exp(2*t))-1)/(t+1)}
|
|
},{}],240:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hslLong=void 0;var e=require("d3-color"),t=require("./color"),r=o(t);function o(e){return e&&e.__esModule?e:{default:e}}function u(t){return function(o,u){var l=t((o=(0,e.hsl)(o)).h,(u=(0,e.hsl)(u)).h),n=(0,r.default)(o.s,u.s),s=(0,r.default)(o.l,u.l),a=(0,r.default)(o.opacity,u.opacity);return function(e){return o.h=l(e),o.s=n(e),o.l=s(e),o.opacity=a(e),o+""}}}exports.default=u(t.hue);var l=exports.hslLong=u(r.default);
|
|
},{"d3-color":41,"./color":391}],241:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a;var e=require("d3-color"),t=require("./color"),r=u(t);function u(e){return e&&e.__esModule?e:{default:e}}function a(t,u){var a=(0,r.default)((t=(0,e.lab)(t)).l,(u=(0,e.lab)(u)).l),l=(0,r.default)(t.a,u.a),o=(0,r.default)(t.b,u.b),c=(0,r.default)(t.opacity,u.opacity);return function(e){return t.l=a(e),t.a=l(e),t.b=o(e),t.opacity=c(e),t+""}}
|
|
},{"d3-color":41,"./color":391}],242:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hclLong=void 0;var e=require("d3-color"),t=require("./color"),r=o(t);function o(e){return e&&e.__esModule?e:{default:e}}function u(t){return function(o,u){var c=t((o=(0,e.hcl)(o)).h,(u=(0,e.hcl)(u)).h),l=(0,r.default)(o.c,u.c),n=(0,r.default)(o.l,u.l),a=(0,r.default)(o.opacity,u.opacity);return function(e){return o.h=c(e),o.c=l(e),o.l=n(e),o.opacity=a(e),o+""}}}exports.default=u(t.hue);var c=exports.hclLong=u(r.default);
|
|
},{"d3-color":41,"./color":391}],243:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cubehelixLong=void 0;var e=require("d3-color"),t=require("./color"),u=r(t);function r(e){return e&&e.__esModule?e:{default:e}}function o(t){return function r(o){function l(r,l){var n=t((r=(0,e.cubehelix)(r)).h,(l=(0,e.cubehelix)(l)).h),i=(0,u.default)(r.s,l.s),a=(0,u.default)(r.l,l.l),c=(0,u.default)(r.opacity,l.opacity);return function(e){return r.h=n(e),r.s=i(e),r.l=a(Math.pow(e,o)),r.opacity=c(e),r+""}}return o=+o,l.gamma=r,l}(1)}exports.default=o(t.hue);var l=exports.cubehelixLong=o(u.default);
|
|
},{"d3-color":41,"./color":391}],244:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){for(var t=new Array(r),o=0;o<r;++o)t[o]=e(o/(r-1));return t};
|
|
},{}],55:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/value");Object.defineProperty(exports,"interpolate",{enumerable:!0,get:function(){return x(e).default}});var r=require("./src/array");Object.defineProperty(exports,"interpolateArray",{enumerable:!0,get:function(){return x(r).default}});var t=require("./src/basis");Object.defineProperty(exports,"interpolateBasis",{enumerable:!0,get:function(){return x(t).default}});var n=require("./src/basisClosed");Object.defineProperty(exports,"interpolateBasisClosed",{enumerable:!0,get:function(){return x(n).default}});var o=require("./src/date");Object.defineProperty(exports,"interpolateDate",{enumerable:!0,get:function(){return x(o).default}});var u=require("./src/number");Object.defineProperty(exports,"interpolateNumber",{enumerable:!0,get:function(){return x(u).default}});var i=require("./src/object");Object.defineProperty(exports,"interpolateObject",{enumerable:!0,get:function(){return x(i).default}});var a=require("./src/round");Object.defineProperty(exports,"interpolateRound",{enumerable:!0,get:function(){return x(a).default}});var l=require("./src/string");Object.defineProperty(exports,"interpolateString",{enumerable:!0,get:function(){return x(l).default}});var s=require("./src/transform/index");Object.defineProperty(exports,"interpolateTransformCss",{enumerable:!0,get:function(){return s.interpolateTransformCss}}),Object.defineProperty(exports,"interpolateTransformSvg",{enumerable:!0,get:function(){return s.interpolateTransformSvg}});var c=require("./src/zoom");Object.defineProperty(exports,"interpolateZoom",{enumerable:!0,get:function(){return x(c).default}});var p=require("./src/rgb");Object.defineProperty(exports,"interpolateRgb",{enumerable:!0,get:function(){return x(p).default}}),Object.defineProperty(exports,"interpolateRgbBasis",{enumerable:!0,get:function(){return p.rgbBasis}}),Object.defineProperty(exports,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return p.rgbBasisClosed}});var f=require("./src/hsl");Object.defineProperty(exports,"interpolateHsl",{enumerable:!0,get:function(){return x(f).default}}),Object.defineProperty(exports,"interpolateHslLong",{enumerable:!0,get:function(){return f.hslLong}});var b=require("./src/lab");Object.defineProperty(exports,"interpolateLab",{enumerable:!0,get:function(){return x(b).default}});var d=require("./src/hcl");Object.defineProperty(exports,"interpolateHcl",{enumerable:!0,get:function(){return x(d).default}}),Object.defineProperty(exports,"interpolateHclLong",{enumerable:!0,get:function(){return d.hclLong}});var g=require("./src/cubehelix");Object.defineProperty(exports,"interpolateCubehelix",{enumerable:!0,get:function(){return x(g).default}}),Object.defineProperty(exports,"interpolateCubehelixLong",{enumerable:!0,get:function(){return g.cubehelixLong}});var m=require("./src/quantize");function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"quantize",{enumerable:!0,get:function(){return x(m).default}});
|
|
},{"./src/value":229,"./src/array":230,"./src/basis":231,"./src/basisClosed":232,"./src/date":233,"./src/number":234,"./src/object":235,"./src/round":236,"./src/string":237,"./src/transform/index":322,"./src/zoom":238,"./src/rgb":239,"./src/hsl":240,"./src/lab":241,"./src/hcl":242,"./src/cubehelix":243,"./src/quantize":244}],226:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.now=f,exports.Timer=m,exports.timer=p,exports.timerFlush=w;var t,n,e=0,o=0,i=0,r=1e3,l=0,c=0,s=0,u="object"==typeof performance&&performance.now?performance:Date,a="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return c||(a(_),c=u.now()+s)}function _(){c=0}function m(){this._call=this._time=this._next=null}function p(t,n,e){var o=new m;return o.restart(t,n,e),o}function w(){f(),++e;for(var n,o=t;o;)(n=c-o._time)>=0&&o._call.call(null,n),o=o._next;--e}function h(){c=(l=u.now())+s,e=o=0;try{w()}finally{e=0,y(),c=0}}function x(){var t=u.now(),n=t-l;n>r&&(s-=n,l=t)}function y(){for(var e,o,i=t,r=1/0;i;)i._call?(r>i._time&&(r=i._time),e=i,i=i._next):(o=i._next,i._next=null,i=e?e._next=o:t=o);n=e,v(r)}function v(t){e||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(h,t-u.now()-s)),i&&(i=clearInterval(i))):(i||(l=u.now(),i=setInterval(x,r)),e=1,a(h)))}m.prototype=p.prototype={constructor:m,restart:function(e,o,i){if("function"!=typeof e)throw new TypeError("callback is not a function");i=(null==i?f():+i)+(null==o?0:+o),this._next||n===this||(n?n._next=this:t=this,n=this),this._call=e,this._time=i,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};
|
|
},{}],227:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,t,u){var n=new e.Timer;return t=null==t?0:+t,n.restart(function(e){n.stop(),r(e+t)},t,u),n};var e=require("./timer");
|
|
},{"./timer":226}],228:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,t,n){var u=new e.Timer,s=t;return null==t?(u.restart(r,t,n),u):(t=+t,n=null==n?(0,e.now)():+n,u.restart(function e(a){a+=s,u.restart(e,s+=t,n),r(a)},t,n),u)};var e=require("./timer");
|
|
},{"./timer":226}],54:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/timer");Object.defineProperty(exports,"now",{enumerable:!0,get:function(){return e.now}}),Object.defineProperty(exports,"timer",{enumerable:!0,get:function(){return e.timer}}),Object.defineProperty(exports,"timerFlush",{enumerable:!0,get:function(){return e.timerFlush}});var r=require("./src/timeout");Object.defineProperty(exports,"timeout",{enumerable:!0,get:function(){return n(r).default}});var t=require("./src/interval");function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"interval",{enumerable:!0,get:function(){return n(t).default}});
|
|
},{"./src/timer":226,"./src/timeout":227,"./src/interval":228}],400:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENDED=exports.ENDING=exports.RUNNING=exports.STARTED=exports.STARTING=exports.SCHEDULED=exports.CREATED=void 0,exports.default=function(t,e,o,i,s,u){var l=t.__transition;if(l){if(o in l)return}else t.__transition={};x(t,o,{name:e,index:i,group:s,on:r,tween:a,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:n})},exports.init=p,exports.set=_,exports.get=f;var t=require("d3-dispatch"),e=require("d3-timer"),r=(0,t.dispatch)("start","end","interrupt"),a=[],n=exports.CREATED=0,o=exports.SCHEDULED=1,i=exports.STARTING=2,s=exports.STARTED=3,u=exports.RUNNING=4,l=exports.ENDING=5,d=exports.ENDED=6;function p(t,e){var r=f(t,e);if(r.state>n)throw new Error("too late; already scheduled");return r}function _(t,e){var r=f(t,e);if(r.state>i)throw new Error("too late; already started");return r}function f(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function x(t,r,a){var n,p=t.__transition;function _(l){var c,m,E,D;if(a.state!==o)return x();for(c in p)if((D=p[c]).name===a.name){if(D.state===s)return(0,e.timeout)(_);D.state===u?(D.state=d,D.timer.stop(),D.on.call("interrupt",t,t.__data__,D.index,D.group),delete p[c]):+c<r&&(D.state=d,D.timer.stop(),delete p[c])}if((0,e.timeout)(function(){a.state===s&&(a.state=u,a.timer.restart(f,a.delay,a.time),f(l))}),a.state=i,a.on.call("start",t,t.__data__,a.index,a.group),a.state===i){for(a.state=s,n=new Array(E=a.tween.length),c=0,m=-1;c<E;++c)(D=a.tween[c].value.call(t,t.__data__,a.index,a.group))&&(n[++m]=D);n.length=m+1}}function f(e){for(var r=e<a.duration?a.ease.call(null,e/a.duration):(a.timer.restart(x),a.state=l,1),o=-1,i=n.length;++o<i;)n[o].call(null,r);a.state===l&&(a.on.call("end",t,t.__data__,a.index,a.group),x())}function x(){for(var e in a.state=d,a.timer.stop(),delete p[r],p)return;delete t.__transition}p[r]=a,a.timer=(0,e.timer)(function(t){a.state=o,a.timer.restart(_,a.delay,a.time),a.delay<=t&&_(t-a.delay)},0,a.time)}
|
|
},{"d3-dispatch":35,"d3-timer":54}],246:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,r){var n,i,a,s=t.__transition,l=!0;if(s){for(a in r=null==r?null:r+"",s)(n=s[a]).name===r?(i=n.state>e.STARTING&&n.state<e.ENDING,n.state=e.ENDED,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete s[a]):l=!1;l&&delete t.__transition}};var e=require("./transition/schedule");
|
|
},{"./transition/schedule":400}],461:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return this.each(function(){(0,t.default)(this,e)})};var e=require("../interrupt"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../interrupt":246}],479:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,i){var u=this._id;if(r+="",arguments.length<2){for(var a,f=(0,e.get)(this.node(),u).tween,l=0,o=f.length;l<o;++l)if((a=f[l]).name===r)return a.value;return null}return this.each((null==i?t:n)(u,r,i))},exports.tweenValue=r;var e=require("./schedule");function t(t,n){var r,i;return function(){var u=(0,e.set)(this,t),a=u.tween;if(a!==r)for(var f=0,l=(i=r=a).length;f<l;++f)if(i[f].name===n){(i=i.slice()).splice(f,1);break}u.tween=i}}function n(t,n,r){var i,u;if("function"!=typeof r)throw new Error;return function(){var a=(0,e.set)(this,t),f=a.tween;if(f!==i){u=(i=f).slice();for(var l={name:n,value:r},o=0,s=u.length;o<s;++o)if(u[o].name===n){u[o]=l;break}o===s&&u.push(l)}a.tween=u}}function r(t,n,r){var i=t._id;return t.each(function(){var t=(0,e.set)(this,i);(t.value||(t.value={}))[n]=r.apply(this,arguments)}),function(t){return(0,e.get)(t,i).value[n]}}
|
|
},{"./schedule":400}],492:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,o){var n;return("number"==typeof o?r.interpolateNumber:o instanceof e.color?r.interpolateRgb:(n=(0,e.color)(o))?(o=n,r.interpolateRgb):r.interpolateString)(t,o)};var e=require("d3-color"),r=require("d3-interpolate");
|
|
},{"d3-color":41,"d3-interpolate":55}],463:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n,i){var v=(0,e.namespace)(n),h="transform"===v?t.interpolateTransformSvg:u.default;return this.attrTween(n,"function"==typeof i?(v.local?f:s)(v,h,(0,r.tweenValue)(this,"attr."+n,i)):null==i?(v.local?o:l)(v):(v.local?c:a)(v,h,i+""))};var t=require("d3-interpolate"),e=require("d3-selection"),r=require("./tween"),n=require("./interpolate"),u=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(){this.removeAttribute(t)}}function o(t){return function(){this.removeAttributeNS(t.space,t.local)}}function a(t,e,r){var n,u;return function(){var i=this.getAttribute(t);return i===r?null:i===n?u:u=e(n=i,r)}}function c(t,e,r){var n,u;return function(){var i=this.getAttributeNS(t.space,t.local);return i===r?null:i===n?u:u=e(n=i,r)}}function s(t,e,r){var n,u,i;return function(){var l,o=r(this);if(null!=o)return(l=this.getAttribute(t))===o?null:l===n&&o===u?i:i=e(n=l,u=o);this.removeAttribute(t)}}function f(t,e,r){var n,u,i;return function(){var l,o=r(this);if(null!=o)return(l=this.getAttributeNS(t.space,t.local))===o?null:l===n&&o===u?i:i=e(n=l,u=o);this.removeAttributeNS(t.space,t.local)}}
|
|
},{"d3-interpolate":55,"d3-selection":50,"./tween":479,"./interpolate":492}],464:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,u){var i="attr."+r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==u)return this.tween(i,null);if("function"!=typeof u)throw new Error;var a=(0,t.namespace)(r);return this.tween(i,(a.local?e:n)(a,u))};var t=require("d3-selection");function e(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}function n(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n}
|
|
},{"d3-selection":50}],465:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?e:i)(r,n)):(0,t.get)(this.node(),r).delay};var t=require("./schedule");function e(e,i){return function(){(0,t.init)(this,e).delay=+i.apply(this,arguments)}}function i(e,i){return i=+i,function(){(0,t.init)(this,e).delay=i}}
|
|
},{"./schedule":400}],466:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(i){var r=this._id;return arguments.length?this.each(("function"==typeof i?e:n)(r,i)):(0,t.get)(this.node(),r).duration};var t=require("./schedule");function e(e,n){return function(){(0,t.set)(this,e).duration=+n.apply(this,arguments)}}function n(e,n){return n=+n,function(){(0,t.set)(this,e).duration=n}}
|
|
},{"./schedule":400}],467:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){var n=this._id;return arguments.length?this.each(t(n,r)):(0,e.get)(this.node(),n).ease};var e=require("./schedule");function t(t,r){if("function"!=typeof r)throw new Error;return function(){(0,e.set)(this,t).ease=r}}
|
|
},{"./schedule":400}],468:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){"function"!=typeof t&&(t=(0,e.matcher)(t));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var o,u=n[a],_=u.length,h=s[a]=[],l=0;l<_;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&h.push(o);return new r.Transition(s,this._parents,this._name,this._id)};var e=require("d3-selection"),r=require("./index");
|
|
},{"d3-selection":50,"./index":324}],469:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,i=e._groups,n=t.length,s=i.length,o=Math.min(n,s),a=new Array(n),h=0;h<o;++h)for(var u,_=t[h],d=i[h],f=_.length,l=a[h]=new Array(f),p=0;p<f;++p)(u=_[p]||d[p])&&(l[p]=u);for(;h<n;++h)a[h]=t[h];return new r.Transition(a,this._parents,this._name,this._id)};var r=require("./index");
|
|
},{"./index":324}],470:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,r){var i=this._id;return arguments.length<2?(0,e.get)(this.node(),i).on.on(t):this.each(n(i,t,r))};var e=require("./schedule");function t(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}function n(n,r,i){var o,s,u=t(r)?e.init:e.set;return function(){var e=u(this,n),t=e.on;t!==o&&(s=(o=t).copy()).on(r,i),e.on=s}}
|
|
},{"./schedule":400}],471:[function(require,module,exports) {
|
|
"use strict";function e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this.on("end.remove",e(this._id))};
|
|
},{}],472:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(a){var n=this._name,i=this._id;"function"!=typeof a&&(a=(0,e.selector)(a));for(var u=this._groups,s=u.length,o=new Array(s),d=0;d<s;++d)for(var l,f,c=u[d],h=c.length,p=o[d]=new Array(h),v=0;v<h;++v)(l=c[v])&&(f=a.call(l,l.__data__,v,c))&&("__data__"in l&&(f.__data__=l.__data__),p[v]=f,(0,_.default)(p[v],n,i,v,p,(0,r.get)(l,i)));return new t.Transition(o,this._parents,n,i)};var e=require("d3-selection"),t=require("./index"),r=require("./schedule"),_=a(r);function a(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"d3-selection":50,"./index":324,"./schedule":400}],473:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n){var i=this._name,l=this._id;"function"!=typeof n&&(n=(0,e.selectorAll)(n));for(var o=this._groups,s=o.length,a=[],f=[],d=0;d<s;++d)for(var _,c=o[d],h=c.length,p=0;p<h;++p)if(_=c[p]){for(var v,g=n.call(_,_.__data__,p,c),q=(0,t.get)(_,l),x=0,y=g.length;x<y;++x)(v=g[x])&&(0,u.default)(v,i,l,x,g,q);a.push(g),f.push(_)}return new r.Transition(a,f,i,l)};var e=require("d3-selection"),r=require("./index"),t=require("./schedule"),u=n(t);function n(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"d3-selection":50,"./index":324,"./schedule":400}],474:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return new t(this._groups,this._parents)};var e=require("d3-selection"),t=e.selection.prototype.constructor;
|
|
},{"d3-selection":50}],475:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,n,s){var f="transform"==(t+="")?e.interpolateTransformCss:u.default;return null==n?this.styleTween(t,i(t,f)).on("end.style."+t,l(t)):this.styleTween(t,"function"==typeof n?a(t,f,(0,r.tweenValue)(this,"style."+t,n)):o(t,f,n+""),s)};var e=require("d3-interpolate"),t=require("d3-selection"),r=require("./tween"),n=require("./interpolate"),u=s(n);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,r){var n,u,s;return function(){var i=(0,t.style)(this,e),l=(this.style.removeProperty(e),(0,t.style)(this,e));return i===l?null:i===n&&l===u?s:s=r(n=i,u=l)}}function l(e){return function(){this.style.removeProperty(e)}}function o(e,r,n){var u,s;return function(){var i=(0,t.style)(this,e);return i===n?null:i===u?s:s=r(u=i,n)}}function a(e,r,n){var u,s,i;return function(){var l=(0,t.style)(this,e),o=n(this);return null==o&&(this.style.removeProperty(e),o=(0,t.style)(this,e)),l===o?null:l===u&&o===s?i:i=r(u=l,s=o)}}
|
|
},{"d3-interpolate":55,"d3-selection":50,"./tween":479,"./interpolate":492}],476:[function(require,module,exports) {
|
|
"use strict";function e(e,t,n){function r(){var r=this,u=t.apply(r,arguments);return u&&function(t){r.style.setProperty(e,u(t),n)}}return r._value=t,r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,n,r){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(null==n)return this.tween(u,null);if("function"!=typeof n)throw new Error;return this.tween(u,e(t,n,null==r?"":r))};
|
|
},{}],477:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(u){return this.tween("text","function"==typeof u?n((0,t.tweenValue)(this,"text",u)):e(null==u?"":u+""))};var t=require("./tween");function e(t){return function(){this.textContent=t}}function n(t){return function(){var e=t(this);this.textContent=null==e?"":e}}
|
|
},{"./tween":479}],478:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){for(var i=this._name,n=this._id,a=(0,e.newId)(),u=this._groups,s=u.length,d=0;d<s;++d)for(var o,l=u[d],f=l.length,_=0;_<f;++_)if(o=l[_]){var h=(0,t.get)(o,n);(0,r.default)(o,i,a,_,l,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new e.Transition(u,this._parents,i,a)};var e=require("./index"),t=require("./schedule"),r=i(t);function i(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./index":324,"./schedule":400}],324:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Transition=F,exports.default=G,exports.newId=H;var e=require("d3-selection"),t=require("./attr"),r=D(t),u=require("./attrTween"),i=D(u),l=require("./delay"),a=D(l),n=require("./duration"),o=D(n),s=require("./ease"),d=D(s),f=require("./filter"),c=D(f),q=require("./merge"),p=D(q),y=require("./on"),_=D(y),m=require("./remove"),w=D(m),h=require("./select"),v=D(h),x=require("./selectAll"),T=D(x),g=require("./selection"),z=D(g),A=require("./style"),M=D(A),b=require("./styleTween"),j=D(b),I=require("./text"),O=D(I),P=require("./transition"),k=D(P),B=require("./tween"),C=D(B);function D(e){return e&&e.__esModule?e:{default:e}}var E=0;function F(e,t,r,u){this._groups=e,this._parents=t,this._name=r,this._id=u}function G(t){return(0,e.selection)().transition(t)}function H(){return++E}var J=e.selection.prototype;F.prototype=G.prototype={constructor:F,select:v.default,selectAll:T.default,filter:c.default,merge:p.default,selection:z.default,transition:k.default,call:J.call,nodes:J.nodes,node:J.node,size:J.size,empty:J.empty,each:J.each,on:_.default,attr:r.default,attrTween:i.default,style:M.default,styleTween:j.default,text:O.default,remove:w.default,tween:C.default,delay:a.default,duration:o.default,ease:d.default};
|
|
},{"d3-selection":50,"./attr":463,"./attrTween":464,"./delay":465,"./duration":466,"./ease":467,"./filter":468,"./merge":469,"./on":470,"./remove":471,"./select":472,"./selectAll":473,"./selection":474,"./style":475,"./styleTween":476,"./text":477,"./transition":478,"./tween":479}],107:[function(require,module,exports) {
|
|
"use strict";function e(e){return+e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.linear=e;
|
|
},{}],108:[function(require,module,exports) {
|
|
"use strict";function t(t){return t*t}function e(t){return t*(2-t)}function u(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.quadIn=t,exports.quadOut=e,exports.quadInOut=u;
|
|
},{}],109:[function(require,module,exports) {
|
|
"use strict";function t(t){return t*t*t}function e(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.cubicIn=t,exports.cubicOut=e,exports.cubicInOut=u;
|
|
},{}],110:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=3,n=exports.polyIn=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(t),e=exports.polyOut=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(t),o=exports.polyInOut=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(t);
|
|
},{}],111:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sinIn=e,exports.sinOut=r,exports.sinInOut=s;var t=Math.PI,n=t/2;function e(t){return 1-Math.cos(t*n)}function r(t){return Math.sin(t*n)}function s(n){return(1-Math.cos(t*n))/2}
|
|
},{}],112:[function(require,module,exports) {
|
|
"use strict";function t(t){return Math.pow(2,10*t-10)}function e(t){return 1-Math.pow(2,-10*t)}function o(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.expIn=t,exports.expOut=e,exports.expInOut=o;
|
|
},{}],113:[function(require,module,exports) {
|
|
"use strict";function t(t){return 1-Math.sqrt(1-t*t)}function r(t){return Math.sqrt(1- --t*t)}function e(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.circleIn=t,exports.circleOut=r,exports.circleInOut=e;
|
|
},{}],114:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bounceIn=b,exports.bounceOut=f,exports.bounceInOut=x;var e=4/11,t=6/11,n=8/11,r=.75,u=9/11,o=10/11,c=.9375,s=21/22,i=63/64,p=1/e/e;function b(e){return 1-f(1-e)}function f(b){return(b=+b)<e?p*b*b:b<n?p*(b-=t)*b+r:b<o?p*(b-=u)*b+c:p*(b-=s)*b+i}function x(e){return((e*=2)<=1?1-f(1-e):f(e-1)+1)/2}
|
|
},{}],115:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=1.70158,r=exports.backIn=function t(r){function e(t){return t*t*((r+1)*t-r)}return r=+r,e.overshoot=t,e}(t),e=exports.backOut=function t(r){function e(t){return--t*t*((r+1)*t+r)+1}return r=+r,e.overshoot=t,e}(t),n=exports.backInOut=function t(r){function e(t){return((t*=2)<1?t*t*((r+1)*t-r):(t-=2)*t*((r+1)*t+r)+2)/2}return r=+r,e.overshoot=t,e}(t);
|
|
},{}],116:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=2*Math.PI,n=1,r=.3,e=exports.elasticIn=function n(r,e){var a=Math.asin(1/(r=Math.max(1,r)))*(e/=t);function u(t){return r*Math.pow(2,10*--t)*Math.sin((a-t)/e)}return u.amplitude=function(r){return n(r,e*t)},u.period=function(t){return n(r,t)},u}(n,r),a=exports.elasticOut=function n(r,e){var a=Math.asin(1/(r=Math.max(1,r)))*(e/=t);function u(t){return 1-r*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/e)}return u.amplitude=function(r){return n(r,e*t)},u.period=function(t){return n(r,t)},u}(n,r),u=exports.elasticInOut=function n(r,e){var a=Math.asin(1/(r=Math.max(1,r)))*(e/=t);function u(t){return((t=2*t-1)<0?r*Math.pow(2,10*t)*Math.sin((a-t)/e):2-r*Math.pow(2,-10*t)*Math.sin((a+t)/e))/2}return u.amplitude=function(r){return n(r,e*t)},u.period=function(t){return n(r,t)},u}(n,r);
|
|
},{}],38:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/linear");Object.defineProperty(exports,"easeLinear",{enumerable:!0,get:function(){return e.linear}});var t=require("./src/quad");Object.defineProperty(exports,"easeQuad",{enumerable:!0,get:function(){return t.quadInOut}}),Object.defineProperty(exports,"easeQuadIn",{enumerable:!0,get:function(){return t.quadIn}}),Object.defineProperty(exports,"easeQuadOut",{enumerable:!0,get:function(){return t.quadOut}}),Object.defineProperty(exports,"easeQuadInOut",{enumerable:!0,get:function(){return t.quadInOut}});var r=require("./src/cubic");Object.defineProperty(exports,"easeCubic",{enumerable:!0,get:function(){return r.cubicInOut}}),Object.defineProperty(exports,"easeCubicIn",{enumerable:!0,get:function(){return r.cubicIn}}),Object.defineProperty(exports,"easeCubicOut",{enumerable:!0,get:function(){return r.cubicOut}}),Object.defineProperty(exports,"easeCubicInOut",{enumerable:!0,get:function(){return r.cubicInOut}});var n=require("./src/poly");Object.defineProperty(exports,"easePoly",{enumerable:!0,get:function(){return n.polyInOut}}),Object.defineProperty(exports,"easePolyIn",{enumerable:!0,get:function(){return n.polyIn}}),Object.defineProperty(exports,"easePolyOut",{enumerable:!0,get:function(){return n.polyOut}}),Object.defineProperty(exports,"easePolyInOut",{enumerable:!0,get:function(){return n.polyInOut}});var u=require("./src/sin");Object.defineProperty(exports,"easeSin",{enumerable:!0,get:function(){return u.sinInOut}}),Object.defineProperty(exports,"easeSinIn",{enumerable:!0,get:function(){return u.sinIn}}),Object.defineProperty(exports,"easeSinOut",{enumerable:!0,get:function(){return u.sinOut}}),Object.defineProperty(exports,"easeSinInOut",{enumerable:!0,get:function(){return u.sinInOut}});var c=require("./src/exp");Object.defineProperty(exports,"easeExp",{enumerable:!0,get:function(){return c.expInOut}}),Object.defineProperty(exports,"easeExpIn",{enumerable:!0,get:function(){return c.expIn}}),Object.defineProperty(exports,"easeExpOut",{enumerable:!0,get:function(){return c.expOut}}),Object.defineProperty(exports,"easeExpInOut",{enumerable:!0,get:function(){return c.expInOut}});var o=require("./src/circle");Object.defineProperty(exports,"easeCircle",{enumerable:!0,get:function(){return o.circleInOut}}),Object.defineProperty(exports,"easeCircleIn",{enumerable:!0,get:function(){return o.circleIn}}),Object.defineProperty(exports,"easeCircleOut",{enumerable:!0,get:function(){return o.circleOut}}),Object.defineProperty(exports,"easeCircleInOut",{enumerable:!0,get:function(){return o.circleInOut}});var i=require("./src/bounce");Object.defineProperty(exports,"easeBounce",{enumerable:!0,get:function(){return i.bounceOut}}),Object.defineProperty(exports,"easeBounceIn",{enumerable:!0,get:function(){return i.bounceIn}}),Object.defineProperty(exports,"easeBounceOut",{enumerable:!0,get:function(){return i.bounceOut}}),Object.defineProperty(exports,"easeBounceInOut",{enumerable:!0,get:function(){return i.bounceInOut}});var a=require("./src/back");Object.defineProperty(exports,"easeBack",{enumerable:!0,get:function(){return a.backInOut}}),Object.defineProperty(exports,"easeBackIn",{enumerable:!0,get:function(){return a.backIn}}),Object.defineProperty(exports,"easeBackOut",{enumerable:!0,get:function(){return a.backOut}}),Object.defineProperty(exports,"easeBackInOut",{enumerable:!0,get:function(){return a.backInOut}});var s=require("./src/elastic");Object.defineProperty(exports,"easeElastic",{enumerable:!0,get:function(){return s.elasticOut}}),Object.defineProperty(exports,"easeElasticIn",{enumerable:!0,get:function(){return s.elasticIn}}),Object.defineProperty(exports,"easeElasticOut",{enumerable:!0,get:function(){return s.elasticOut}}),Object.defineProperty(exports,"easeElasticInOut",{enumerable:!0,get:function(){return s.elasticInOut}});
|
|
},{"./src/linear":107,"./src/quad":108,"./src/cubic":109,"./src/poly":110,"./src/sin":111,"./src/exp":112,"./src/circle":113,"./src/bounce":114,"./src/back":115,"./src/elastic":116}],462:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){var t,u;r instanceof e.Transition?(t=r._id,r=r._name):(t=(0,e.newId)(),(u=a).time=(0,i.now)(),r=null==r?null:r+"");for(var s=this._groups,l=s.length,d=0;d<l;++d)for(var f,_=s[d],c=_.length,v=0;v<c;++v)(f=_[v])&&(0,n.default)(f,r,t,v,_,u||o(f,t));return new e.Transition(s,this._parents,r,t)};var e=require("../transition/index"),r=require("../transition/schedule"),n=u(r),t=require("d3-ease"),i=require("d3-timer");function u(e){return e&&e.__esModule?e:{default:e}}var a={time:null,delay:0,duration:250,ease:t.easeCubicInOut};function o(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))return a.time=(0,i.now)(),a;return n}
|
|
},{"../transition/index":324,"../transition/schedule":400,"d3-ease":38,"d3-timer":54}],323:[function(require,module,exports) {
|
|
"use strict";var e=require("d3-selection"),t=require("./interrupt"),r=u(t),i=require("./transition"),n=u(i);function u(e){return e&&e.__esModule?e:{default:e}}e.selection.prototype.interrupt=r.default,e.selection.prototype.transition=n.default;
|
|
},{"d3-selection":50,"./interrupt":461,"./transition":462}],245:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,i){var u,l,s=t.__transition;if(s)for(l in i=null==i?null:i+"",s)if((u=s[l]).state>n.SCHEDULED&&u.name===i)return new e.Transition([[t]],r,i,+l);return null};var e=require("./transition/index"),n=require("./transition/schedule"),r=[null];
|
|
},{"./transition/index":324,"./transition/schedule":400}],56:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.interrupt=exports.active=exports.transition=void 0;var e=require("./src/transition/index");Object.defineProperty(exports,"transition",{enumerable:!0,get:function(){return n(e).default}});var r=require("./src/active");Object.defineProperty(exports,"active",{enumerable:!0,get:function(){return n(r).default}});var t=require("./src/interrupt");function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"interrupt",{enumerable:!0,get:function(){return n(t).default}}),require("./src/selection/index");
|
|
},{"./src/selection/index":323,"./src/transition/index":324,"./src/active":245,"./src/interrupt":246}],331:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,s){this.target=e,this.type=t,this.selection=s};
|
|
},{}],62:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.brushSelection=K,exports.brushX=S,exports.brushY=T,exports.default=function(){return V(m)};var t=require("d3-dispatch"),e=require("d3-drag"),n=require("d3-interpolate"),r=require("d3-selection"),s=require("d3-transition"),a=require("./constant"),u=h(a),i=require("./event"),o=h(i),l=require("./noevent"),c=h(l);function h(t){return t&&t.__esModule?t:{default:t}}var f={name:"drag"},p={name:"space"},d={name:"handle"},v={name:"center"},b={name:"x",handles:["e","w"].map(k),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},y={name:"y",handles:["n","s"].map(k),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},m={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(k),input:function(t){return t},output:function(t){return t}},w={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"},g={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},x={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},_={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},M={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function k(t){return{type:t}}function z(){return!r.event.button}function q(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function A(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function E(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function K(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function S(){return V(b)}function T(){return V(y)}function V(a){var i,h=q,m=z,K=(0,t.dispatch)(T,"start","brush","end"),S=6;function T(t){var e=t.property("__brush",G).selectAll(".overlay").data([k("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",w.overlay).merge(e).each(function(){var t=A(this).extent;(0,r.select)(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([k("selection")]).enter().append("rect").attr("class","selection").attr("cursor",w.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(a.handles,function(t){return t.type});n.exit().remove(),n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return w[t.type]}),t.each(V).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",D)}function V(){var t=(0,r.select)(this),e=A(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-S/2:e[0][0]-S/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-S/2:e[0][1]-S/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+S:S}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+S:S})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function C(t,e){return t.__brush.emitter||new j(t,e)}function j(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function D(){if(r.event.touches){if(r.event.changedTouches.length<r.event.touches.length)return(0,c.default)()}else if(i)return;if(m.apply(this,arguments)){var t,n,u,o,h,k,z,q,K,S,T,j,D,G=this,N=r.event.target.__data__.type,O="selection"===(r.event.metaKey?N="overlay":N)?f:r.event.altKey?v:d,P=a===y?null:_[N],X=a===b?null:M[N],Y=A(G),B=Y.extent,F=Y.selection,H=B[0][0],I=B[0][1],J=B[1][0],L=B[1][1],Q=P&&X&&r.event.shiftKey,R=(0,r.mouse)(G),U=R,W=C(G,arguments).beforestart();"overlay"===N?Y.selection=F=[[t=a===y?H:R[0],u=a===b?I:R[1]],[h=a===y?J:t,z=a===b?L:u]]:(t=F[0][0],u=F[0][1],h=F[1][0],z=F[1][1]),n=t,o=u,k=h,q=z;var Z=(0,r.select)(G).attr("pointer-events","none"),$=Z.selectAll(".overlay").attr("cursor",w[N]);if(r.event.touches)Z.on("touchmove.brush",et,!0).on("touchend.brush touchcancel.brush",rt,!0);else{var tt=(0,r.select)(r.event.view).on("keydown.brush",function(){switch(r.event.keyCode){case 16:Q=P&&X;break;case 18:O===d&&(P&&(h=k-K*P,t=n+K*P),X&&(z=q-S*X,u=o+S*X),O=v,nt());break;case 32:O!==d&&O!==v||(P<0?h=k-K:P>0&&(t=n-K),X<0?z=q-S:X>0&&(u=o-S),O=p,$.attr("cursor",w.selection),nt());break;default:return}(0,c.default)()},!0).on("keyup.brush",function(){switch(r.event.keyCode){case 16:Q&&(j=D=Q=!1,nt());break;case 18:O===v&&(P<0?h=k:P>0&&(t=n),X<0?z=q:X>0&&(u=o),O=d,nt());break;case 32:O===p&&(r.event.altKey?(P&&(h=k-K*P,t=n+K*P),X&&(z=q-S*X,u=o+S*X),O=v):(P<0?h=k:P>0&&(t=n),X<0?z=q:X>0&&(u=o),O=d),$.attr("cursor",w[N]),nt());break;default:return}(0,c.default)()},!0).on("mousemove.brush",et,!0).on("mouseup.brush",rt,!0);(0,e.dragDisable)(r.event.view)}(0,l.nopropagation)(),(0,s.interrupt)(G),V.call(G),W.start()}function et(){var t=(0,r.mouse)(G);!Q||j||D||(Math.abs(t[0]-U[0])>Math.abs(t[1]-U[1])?D=!0:j=!0),U=t,T=!0,(0,c.default)(),nt()}function nt(){var e;switch(K=U[0]-R[0],S=U[1]-R[1],O){case p:case f:P&&(K=Math.max(H-t,Math.min(J-h,K)),n=t+K,k=h+K),X&&(S=Math.max(I-u,Math.min(L-z,S)),o=u+S,q=z+S);break;case d:P<0?(K=Math.max(H-t,Math.min(J-t,K)),n=t+K,k=h):P>0&&(K=Math.max(H-h,Math.min(J-h,K)),n=t,k=h+K),X<0?(S=Math.max(I-u,Math.min(L-u,S)),o=u+S,q=z):X>0&&(S=Math.max(I-z,Math.min(L-z,S)),o=u,q=z+S);break;case v:P&&(n=Math.max(H,Math.min(J,t-K*P)),k=Math.max(H,Math.min(J,h+K*P))),X&&(o=Math.max(I,Math.min(L,u-S*X)),q=Math.max(I,Math.min(L,z+S*X)))}k<n&&(P*=-1,e=t,t=h,h=e,e=n,n=k,k=e,N in g&&$.attr("cursor",w[N=g[N]])),q<o&&(X*=-1,e=u,u=z,z=e,e=o,o=q,q=e,N in x&&$.attr("cursor",w[N=x[N]])),Y.selection&&(F=Y.selection),j&&(n=F[0][0],k=F[1][0]),D&&(o=F[0][1],q=F[1][1]),F[0][0]===n&&F[0][1]===o&&F[1][0]===k&&F[1][1]===q||(Y.selection=[[n,o],[k,q]],V.call(G),W.brush())}function rt(){if((0,l.nopropagation)(),r.event.touches){if(r.event.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500),Z.on("touchmove.brush touchend.brush touchcancel.brush",null)}else(0,e.dragEnable)(r.event.view,T),tt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Z.attr("pointer-events","all"),$.attr("cursor",w.overlay),Y.selection&&(F=Y.selection),E(F)&&(Y.selection=null,V.call(G)),W.end()}}function G(){var t=this.__brush||{selection:null};return t.extent=h.apply(this,arguments),t.dim=a,t}return T.move=function(t,e){t.selection?t.on("start.brush",function(){C(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){C(this,arguments).end()}).tween("brush",function(){var t=this,r=t.__brush,s=C(t,arguments),u=r.selection,i=a.input("function"==typeof e?e.apply(this,arguments):e,r.extent),o=(0,n.interpolate)(u,i);function l(e){r.selection=1===e&&E(i)?null:o(e),V.call(t),s.brush()}return u&&i?l:l(1)}):t.each(function(){var t=arguments,n=this.__brush,r=a.input("function"==typeof e?e.apply(this,t):e,n.extent),u=C(this,t).beforestart();(0,s.interrupt)(this),n.selection=null==r||E(r)?null:r,V.call(this),u.start().brush().end()})},j.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){(0,r.customEvent)(new o.default(T,t,a.output(this.state.selection)),K.apply,K,[t,this.that,this.args])}},T.extent=function(t){return arguments.length?(h="function"==typeof t?t:(0,u.default)([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),T):h},T.filter=function(t){return arguments.length?(m="function"==typeof t?t:(0,u.default)(!!t),T):m},T.handleSize=function(t){return arguments.length?(S=+t,T):S},T.on=function(){var t=K.on.apply(K,arguments);return t===K?T:t},T}
|
|
},{"d3-dispatch":35,"d3-drag":47,"d3-interpolate":55,"d3-selection":50,"d3-transition":56,"./constant":334,"./event":331,"./noevent":370}],32:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/brush");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"brush",{enumerable:!0,get:function(){return r(e).default}}),Object.defineProperty(exports,"brushX",{enumerable:!0,get:function(){return e.brushX}}),Object.defineProperty(exports,"brushY",{enumerable:!0,get:function(){return e.brushY}}),Object.defineProperty(exports,"brushSelection",{enumerable:!0,get:function(){return e.brushSelection}});
|
|
},{"./src/brush":62}],329:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=exports.cos=Math.cos,e=exports.sin=Math.sin,s=exports.pi=Math.PI,o=exports.halfPi=s/2,r=exports.tau=2*s,a=exports.max=Math.max;
|
|
},{}],63:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var u=0,t=null,a=null,o=null;function l(n){var l,s,f,c,g,i,v=n.length,d=[],h=(0,r.range)(v),p=[],x=[],A=x.groups=new Array(v),y=new Array(v*v);for(l=0,g=-1;++g<v;){for(s=0,i=-1;++i<v;)s+=n[g][i];d.push(s),p.push((0,r.range)(v)),l+=s}for(t&&h.sort(function(r,e){return t(d[r],d[e])}),a&&p.forEach(function(r,e){r.sort(function(r,u){return a(n[e][r],n[e][u])})}),c=(l=(0,e.max)(0,e.tau-u*v)/l)?u:e.tau/v,s=0,g=-1;++g<v;){for(f=s,i=-1;++i<v;){var _=h[g],b=p[_][i],m=n[_][b],q=s,w=s+=m*l;y[b*v+_]={index:_,subindex:b,startAngle:q,endAngle:w,value:m}}A[_]={index:_,startAngle:f,endAngle:s,value:d[_]},s+=c}for(g=-1;++g<v;)for(i=g-1;++i<v;){var j=y[i*v+g],C=y[g*v+i];(j.value||C.value)&&x.push(j.value<C.value?{source:C,target:j}:{source:j,target:C})}return o?x.sort(o):x}return l.padAngle=function(r){return arguments.length?(u=(0,e.max)(0,r),l):u},l.sortGroups=function(r){return arguments.length?(t=r,l):t},l.sortSubgroups=function(r){return arguments.length?(a=r,l):a},l.sortChords=function(r){return arguments.length?(null==r?o=null:(o=n(r))._=r,l):o&&o._},l};var r=require("d3-array"),e=require("./math");function n(r){return function(e,n){return r(e.source.value+e.target.value,n.source.value+n.target.value)}}
|
|
},{"d3-array":30,"./math":329}],248:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=Math.PI,i=2*t,s=1e-6,h=i-s;function _(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function n(){return new _}_.prototype=n.prototype={constructor:_,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,h){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+h)},bezierCurveTo:function(t,i,s,h,_,n){this._+="C"+ +t+","+ +i+","+ +s+","+ +h+","+(this._x1=+_)+","+(this._y1=+n)},arcTo:function(i,h,_,n,e){i=+i,h=+h,_=+_,n=+n,e=+e;var r=this._x1,o=this._y1,a=_-i,u=n-h,c=r-i,x=o-h,y=c*c+x*x;if(e<0)throw new Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=i)+","+(this._y1=h);else if(y>s)if(Math.abs(x*a-u*c)>s&&e){var f=_-r,M=n-o,l=a*a+u*u,v=f*f+M*M,p=Math.sqrt(l),b=Math.sqrt(y),d=e*Math.tan((t-Math.acos((l+y-v)/(2*p*b)))/2),w=d/b,T=d/p;Math.abs(w-1)>s&&(this._+="L"+(i+w*c)+","+(h+w*x)),this._+="A"+e+","+e+",0,0,"+ +(x*f>c*M)+","+(this._x1=i+T*a)+","+(this._y1=h+T*u)}else this._+="L"+(this._x1=i)+","+(this._y1=h);else;},arc:function(_,n,e,r,o,a){_=+_,n=+n;var u=(e=+e)*Math.cos(r),c=e*Math.sin(r),x=_+u,y=n+c,f=1^a,M=a?r-o:o-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+x+","+y:(Math.abs(this._x1-x)>s||Math.abs(this._y1-y)>s)&&(this._+="L"+x+","+y),e&&(M<0&&(M=M%i+i),M>h?this._+="A"+e+","+e+",0,1,"+f+","+(_-u)+","+(n-c)+"A"+e+","+e+",0,1,"+f+","+(this._x1=x)+","+(this._y1=y):M>s&&(this._+="A"+e+","+e+",0,"+ +(M>=t)+","+f+","+(this._x1=_+e*Math.cos(o))+","+(this._y1=n+e*Math.sin(o))))},rect:function(t,i,s,h){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +h+"h"+-s+"Z"},toString:function(){return this._}},exports.default=n;
|
|
},{}],57:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/path");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"path",{enumerable:!0,get:function(){return t(e).default}});
|
|
},{"./src/path":248}],64:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n=i,l=a,s=o,p=c,h=f,d=null;function y(){var e,i=t.slice.call(arguments),a=n.apply(this,i),o=l.apply(this,i),c=+s.apply(this,(i[0]=a,i)),f=p.apply(this,i)-r.halfPi,y=h.apply(this,i)-r.halfPi,g=c*(0,r.cos)(f),v=c*(0,r.sin)(f),q=+s.apply(this,(i[0]=o,i)),P=p.apply(this,i)-r.halfPi,A=h.apply(this,i)-r.halfPi;if(d||(d=e=(0,u.path)()),d.moveTo(g,v),d.arc(0,0,c,f,y),f===P&&y===A||(d.quadraticCurveTo(0,0,q*(0,r.cos)(P),q*(0,r.sin)(P)),d.arc(0,0,q,P,A)),d.quadraticCurveTo(0,0,g,v),d.closePath(),e)return d=null,e+""||null}return y.radius=function(t){return arguments.length?(s="function"==typeof t?t:(0,e.default)(+t),y):s},y.startAngle=function(t){return arguments.length?(p="function"==typeof t?t:(0,e.default)(+t),y):p},y.endAngle=function(t){return arguments.length?(h="function"==typeof t?t:(0,e.default)(+t),y):h},y.source=function(t){return arguments.length?(n=t,y):n},y.target=function(t){return arguments.length?(l=t,y):l},y.context=function(t){return arguments.length?(d=null==t?null:t,y):d},y};var t=require("./array"),n=require("./constant"),e=l(n),r=require("./math"),u=require("d3-path");function l(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.source}function a(t){return t.target}function o(t){return t.radius}function c(t){return t.startAngle}function f(t){return t.endAngle}
|
|
},{"./array":325,"./constant":334,"./math":329,"d3-path":57}],33:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/chord");Object.defineProperty(exports,"chord",{enumerable:!0,get:function(){return t(e).default}});var r=require("./src/ribbon");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"ribbon",{enumerable:!0,get:function(){return t(r).default}});
|
|
},{"./src/chord":63,"./src/ribbon":64}],91:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=exports.prefix="$";function r(){}function e(t,e){var i=new r;if(t instanceof r)t.each(function(t,r){i.set(r,t)});else if(Array.isArray(t)){var n,s=-1,o=t.length;if(null==e)for(;++s<o;)i.set(s,t[s]);else for(;++s<o;)i.set(e(n=t[s],s,t),n)}else if(t)for(var u in t)i.set(u,t[u]);return i}r.prototype=e.prototype={constructor:r,has:function(r){return t+r in this},get:function(r){return this[t+r]},set:function(r,e){return this[t+r]=e,this},remove:function(r){var e=t+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===t&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===t&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===t&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===t&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===t&&++r;return r},empty:function(){for(var r in this)if(r[0]===t)return!1;return!0},each:function(r){for(var e in this)e[0]===t&&r(this[e],e.slice(1),this)}},exports.default=e;
|
|
},{}],89:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n,e,i,l=[],c=[];function s(u,r,o,f){if(r>=l.length)return null!=n&&u.sort(n),null!=e?e(u):u;for(var i,c,a,h=-1,p=u.length,d=l[r++],g=(0,t.default)(),v=o();++h<p;)(a=g.get(i=d(c=u[h])+""))?a.push(c):g.set(i,[c]);return g.each(function(n,t){f(v,t,s(n,r,o,f))}),v}return i={object:function(n){return s(n,0,u,r)},map:function(n){return s(n,0,o,f)},entries:function(n){return function n(t,u){if(++u>l.length)return t;var r,o=c[u-1];return null!=e&&u>=l.length?r=t.entries():(r=[],t.each(function(t,e){r.push({key:e,values:n(t,u)})})),null!=o?r.sort(function(n,t){return o(n.key,t.key)}):r}(s(n,0,o,f),0)},key:function(n){return l.push(n),i},sortKeys:function(n){return c[l.length-1]=n,i},sortValues:function(t){return n=t,i},rollup:function(n){return e=n,i}}};var n=require("./map"),t=e(n);function e(n){return n&&n.__esModule?n:{default:n}}function u(){return{}}function r(n,t,e){n[t]=e}function o(){return(0,t.default)()}function f(n,t,e){n.set(t,e)}
|
|
},{"./map":91}],90:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./map"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}function o(){}var a=t.default.prototype;function n(e,t){var r=new o;if(e instanceof o)e.each(function(e){r.add(e)});else if(e){var a=-1,n=e.length;if(null==t)for(;++a<n;)r.add(e[a]);else for(;++a<n;)r.add(t(e[a],a,e))}return r}o.prototype=n.prototype={constructor:o,has:a.has,add:function(t){return t+="",this[e.prefix+t]=t,this},remove:a.remove,clear:a.clear,values:a.keys,size:a.size,empty:a.empty,each:a.each},exports.default=n;
|
|
},{"./map":91}],92:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=[];for(var t in e)r.push(t);return r};
|
|
},{}],93:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=[];for(var t in e)r.push(e[t]);return r};
|
|
},{}],94:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=[];for(var t in e)r.push({key:t,value:e[t]});return r};
|
|
},{}],34:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/nest");Object.defineProperty(exports,"nest",{enumerable:!0,get:function(){return a(e).default}});var r=require("./src/set");Object.defineProperty(exports,"set",{enumerable:!0,get:function(){return a(r).default}});var t=require("./src/map");Object.defineProperty(exports,"map",{enumerable:!0,get:function(){return a(t).default}});var u=require("./src/keys");Object.defineProperty(exports,"keys",{enumerable:!0,get:function(){return a(u).default}});var n=require("./src/values");Object.defineProperty(exports,"values",{enumerable:!0,get:function(){return a(n).default}});var s=require("./src/entries");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return a(s).default}});
|
|
},{"./src/nest":89,"./src/set":90,"./src/map":91,"./src/keys":92,"./src/values":93,"./src/entries":94}],104:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(a){var f=new RegExp('["'+a+"\n\r]"),l=a.charCodeAt(0);function s(o,c){var i,a=[],f=o.length,s=0,p=0,d=f<=0,h=!1;function v(){if(d)return r;if(h)return h=!1,n;var c,i,a=s;if(o.charCodeAt(a)===t){for(;s++<f&&o.charCodeAt(s)!==t||o.charCodeAt(++s)===t;);return(c=s)>=f?d=!0:(i=o.charCodeAt(s++))===e?h=!0:i===u&&(h=!0,o.charCodeAt(s)===e&&++s),o.slice(a+1,c-1).replace(/""/g,'"')}for(;s<f;){if((i=o.charCodeAt(c=s++))===e)h=!0;else if(i===u)h=!0,o.charCodeAt(s)===e&&++s;else if(i!==l)continue;return o.slice(a,c)}return d=!0,o.slice(a,f)}for(o.charCodeAt(f-1)===e&&--f,o.charCodeAt(f-1)===u&&--f;(i=v())!==r;){for(var A=[];i!==n&&i!==r;)A.push(i),i=v();c&&null==(A=c(A,p++))||a.push(A)}return a}function p(n){return n.map(d).join(a)}function d(n){return null==n?"":f.test(n+="")?'"'+n.replace(/"/g,'""')+'"':n}return{parse:function(n,r){var t,e,u=s(n,function(n,u){if(t)return t(n,u-1);e=n,t=r?c(n,r):o(n)});return u.columns=e||[],u},parseRows:s,format:function(n,r){return null==r&&(r=i(n)),[r.map(d).join(a)].concat(n.map(function(n){return r.map(function(r){return d(n[r])}).join(a)})).join("\n")},formatRows:function(n){return n.map(p).join("\n")}}};var n={},r={},t=34,e=10,u=13;function o(n){return new Function("d","return {"+n.map(function(n,r){return JSON.stringify(n)+": d["+r+"]"}).join(",")+"}")}function c(n,r){var t=o(n);return function(e,u){return r(t(e),u,n)}}function i(n){var r=Object.create(null),t=[];return n.forEach(function(n){for(var e in n)e in r||t.push(r[e]=e)}),t}
|
|
},{}],105:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.csvFormatRows=exports.csvFormat=exports.csvParseRows=exports.csvParse=void 0;var s=require("./dsv"),e=r(s);function r(s){return s&&s.__esModule?s:{default:s}}var o=(0,e.default)(","),t=exports.csvParse=o.parse,a=exports.csvParseRows=o.parseRows,v=exports.csvFormat=o.format,p=exports.csvFormatRows=o.formatRows;
|
|
},{"./dsv":104}],106:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.tsvFormatRows=exports.tsvFormat=exports.tsvParseRows=exports.tsvParse=void 0;var s=require("./dsv"),t=e(s);function e(s){return s&&s.__esModule?s:{default:s}}var r=(0,t.default)("\t"),o=exports.tsvParse=r.parse,a=exports.tsvParseRows=r.parseRows,v=exports.tsvFormat=r.format,p=exports.tsvFormatRows=r.formatRows;
|
|
},{"./dsv":104}],37:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/dsv");Object.defineProperty(exports,"dsvFormat",{enumerable:!0,get:function(){return s(e).default}});var r=require("./src/csv");Object.defineProperty(exports,"csvParse",{enumerable:!0,get:function(){return r.csvParse}}),Object.defineProperty(exports,"csvParseRows",{enumerable:!0,get:function(){return r.csvParseRows}}),Object.defineProperty(exports,"csvFormat",{enumerable:!0,get:function(){return r.csvFormat}}),Object.defineProperty(exports,"csvFormatRows",{enumerable:!0,get:function(){return r.csvFormatRows}});var t=require("./src/tsv");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"tsvParse",{enumerable:!0,get:function(){return t.tsvParse}}),Object.defineProperty(exports,"tsvParseRows",{enumerable:!0,get:function(){return t.tsvParseRows}}),Object.defineProperty(exports,"tsvFormat",{enumerable:!0,get:function(){return t.tsvFormat}}),Object.defineProperty(exports,"tsvFormatRows",{enumerable:!0,get:function(){return t.tsvFormatRows}});
|
|
},{"./src/dsv":104,"./src/csv":105,"./src/tsv":106}],96:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n,t){var e;function r(){var r,u,i=e.length,l=0,o=0;for(r=0;r<i;++r)l+=(u=e[r]).x,o+=u.y;for(l=l/i-n,o=o/i-t,r=0;r<i;++r)(u=e[r]).x-=l,u.y-=o}return null==n&&(n=0),null==t&&(t=0),r.initialize=function(n){e=n},r.x=function(t){return arguments.length?(n=+t,r):n},r.y=function(n){return arguments.length?(t=+n,r):t},r};
|
|
},{}],338:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return 1e-6*(Math.random()-.5)};
|
|
},{}],356:[function(require,module,exports) {
|
|
"use strict";function r(r,t,l,e){if(isNaN(t)||isNaN(l))return r;var n,a,i,o,s,u,_,h,c,f=r._root,y={data:e},x=r._x0,d=r._y0,N=r._x1,v=r._y1;if(!f)return r._root=y,r;for(;f.length;)if((u=t>=(a=(x+N)/2))?x=a:N=a,(_=l>=(i=(d+v)/2))?d=i:v=i,n=f,!(f=f[h=_<<1|u]))return n[h]=y,r;if(o=+r._x.call(null,f.data),s=+r._y.call(null,f.data),t===o&&l===s)return y.next=f,n?n[h]=y:r._root=y,r;do{n=n?n[h]=new Array(4):r._root=new Array(4),(u=t>=(a=(x+N)/2))?x=a:N=a,(_=l>=(i=(d+v)/2))?d=i:v=i}while((h=_<<1|u)==(c=(s>=i)<<1|o>=a));return n[c]=f,n[h]=y,r}function t(t){var l,e,n,a,i=t.length,o=new Array(i),s=new Array(i),u=1/0,_=1/0,h=-1/0,c=-1/0;for(e=0;e<i;++e)isNaN(n=+this._x.call(null,l=t[e]))||isNaN(a=+this._y.call(null,l))||(o[e]=n,s[e]=a,n<u&&(u=n),n>h&&(h=n),a<_&&(_=a),a>c&&(c=a));for(h<u&&(u=this._x0,h=this._x1),c<_&&(_=this._y0,c=this._y1),this.cover(u,_).cover(h,c),e=0;e<i;++e)r(this,o[e],s[e],t[e]);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){var l=+this._x.call(null,t),e=+this._y.call(null,t);return r(this.cover(l,e),l,e,t)},exports.addAll=t;
|
|
},{}],357:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,i=this._y0,s=this._x1,h=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,h=(i=Math.floor(e))+1;else{if(!(r>t||t>s||i>e||e>h))return this;var o,a,_=s-r,l=this._root;switch(a=(e<(i+h)/2)<<1|t<(r+s)/2){case 0:do{(o=new Array(4))[a]=l,l=o}while(h=i+(_*=2),t>(s=r+_)||e>h);break;case 1:do{(o=new Array(4))[a]=l,l=o}while(h=i+(_*=2),(r=s-_)>t||e>h);break;case 2:do{(o=new Array(4))[a]=l,l=o}while(i=h-(_*=2),t>(s=r+_)||i>e);break;case 3:do{(o=new Array(4))[a]=l,l=o}while(i=h-(_*=2),(r=s-_)>t||i>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=r,this._y0=i,this._x1=s,this._y1=h,this};
|
|
},{}],358:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e};
|
|
},{}],359:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
|
|
},{}],483:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,e,s,i,o){this.node=t,this.x0=e,this.y0=s,this.x1=i,this.y1=o};
|
|
},{}],360:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,l,a){var u,n,r,s,d,h,i,f=this._x0,o=this._y0,_=this._x1,p=this._y1,x=[],c=this._root;for(c&&x.push(new t.default(c,f,o,_,p)),null==a?a=1/0:(f=e-a,o=l-a,_=e+a,p=l+a,a*=a);h=x.pop();)if(!(!(c=h.node)||(n=h.x0)>_||(r=h.y0)>p||(s=h.x1)<f||(d=h.y1)<o))if(c.length){var v=(n+s)/2,y=(r+d)/2;x.push(new t.default(c[3],v,y,s,d),new t.default(c[2],n,y,v,d),new t.default(c[1],v,r,s,y),new t.default(c[0],n,r,v,y)),(i=(l>=y)<<1|e>=v)&&(h=x[x.length-1],x[x.length-1]=x[x.length-1-i],x[x.length-1-i]=h)}else{var g=e-+this._x.call(null,c.data),w=l-+this._y.call(null,c.data),q=g*g+w*w;if(q<a){var M=Math.sqrt(a=q);f=e-M,o=l-M,_=e+M,p=l+M,u=c.data}}return u};var e=require("./quad"),t=l(e);function l(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./quad":483}],361:[function(require,module,exports) {
|
|
"use strict";function t(t){for(var e=0,i=t.length;e<i;++e)this.remove(t[e]);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){if(isNaN(h=+this._x.call(null,t))||isNaN(n=+this._y.call(null,t)))return this;var e,i,r,s,h,n,l,o,u,f,a,x,_=this._root,d=this._x0,c=this._y0,v=this._x1,g=this._y1;if(!_)return this;if(_.length)for(;;){if((u=h>=(l=(d+v)/2))?d=l:v=l,(f=n>=(o=(c+g)/2))?c=o:g=o,e=_,!(_=_[a=f<<1|u]))return this;if(!_.length)break;(e[a+1&3]||e[a+2&3]||e[a+3&3])&&(i=e,x=a)}for(;_.data!==t;)if(r=_,!(_=_.next))return this;return(s=_.next)&&delete _.next,r?(s?r.next=s:delete r.next,this):e?(s?e[a]=s:delete e[a],(_=e[0]||e[1]||e[2]||e[3])&&_===(e[3]||e[2]||e[1]||e[0])&&!_.length&&(i?i[x]=_:this._root=_),this):(this._root=s,this)},exports.removeAll=t;
|
|
},{}],362:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this._root};
|
|
},{}],363:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e};
|
|
},{}],364:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var u,s,r,n,a,d,f=[],h=this._root;for(h&&f.push(new t.default(h,this._x0,this._y0,this._x1,this._y1));u=f.pop();)if(!e(h=u.node,r=u.x0,n=u.y0,a=u.x1,d=u.y1)&&h.length){var i=(r+a)/2,o=(n+d)/2;(s=h[3])&&f.push(new t.default(s,i,o,a,d)),(s=h[2])&&f.push(new t.default(s,r,o,i,d)),(s=h[1])&&f.push(new t.default(s,i,n,a,o)),(s=h[0])&&f.push(new t.default(s,r,n,i,o))}return this};var e=require("./quad"),t=u(e);function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./quad":483}],365:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var u,r=[],s=[];for(this._root&&r.push(new t.default(this._root,this._x0,this._y0,this._x1,this._y1));u=r.pop();){var o=u.node;if(o.length){var n,h=u.x0,a=u.y0,d=u.x1,f=u.y1,i=(h+d)/2,p=(a+f)/2;(n=o[0])&&r.push(new t.default(n,h,a,i,p)),(n=o[1])&&r.push(new t.default(n,i,a,d,p)),(n=o[2])&&r.push(new t.default(n,h,p,i,f)),(n=o[3])&&r.push(new t.default(n,i,p,d,f))}s.push(u)}for(;u=s.pop();)e(u.node,u.x0,u.y0,u.x1,u.y1);return this};var e=require("./quad"),t=u(e);function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./quad":483}],366:[function(require,module,exports) {
|
|
"use strict";function t(t){return t[0]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultX=t,exports.default=function(t){return arguments.length?(this._x=t,this):this._x};
|
|
},{}],367:[function(require,module,exports) {
|
|
"use strict";function t(t){return t[1]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultY=t,exports.default=function(t){return arguments.length?(this._y=t,this):this._y};
|
|
},{}],147:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=z;var e=require("./add"),t=w(e),r=require("./cover"),a=w(r),u=require("./data"),i=w(u),o=require("./extent"),d=w(o),l=require("./find"),n=w(l),f=require("./remove"),s=w(f),_=require("./root"),v=w(_),h=require("./size"),x=w(h),y=require("./visit"),c=w(y),q=require("./visitAfter"),p=w(q),A=require("./x"),N=w(A),g=require("./y"),m=w(g);function w(e){return e&&e.__esModule?e:{default:e}}function z(e,t,r){var a=new M(null==t?A.defaultX:t,null==r?g.defaultY:r,NaN,NaN,NaN,NaN);return null==e?a:a.addAll(e)}function M(e,t,r,a,u,i){this._x=e,this._y=t,this._x0=r,this._y0=a,this._x1=u,this._y1=i,this._root=void 0}function b(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var j=z.prototype=M.prototype;j.copy=function(){var e,t,r=new M(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root;if(!a)return r;if(!a.length)return r._root=b(a),r;for(e=[{source:a,target:r._root=new Array(4)}];a=e.pop();)for(var u=0;u<4;++u)(t=a.source[u])&&(t.length?e.push({source:t,target:a.target[u]=new Array(4)}):a.target[u]=b(t));return r},j.add=t.default,j.addAll=e.addAll,j.cover=a.default,j.data=i.default,j.extent=d.default,j.find=n.default,j.remove=s.default,j.removeAll=f.removeAll,j.root=v.default,j.size=x.default,j.visit=c.default,j.visitAfter=p.default,j.x=N.default,j.y=m.default;
|
|
},{"./add":356,"./cover":357,"./data":358,"./extent":359,"./find":360,"./remove":361,"./root":362,"./size":363,"./visit":364,"./visitAfter":365,"./x":366,"./y":367}],44:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/quadtree");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"quadtree",{enumerable:!0,get:function(){return r(e).default}});
|
|
},{"./src/quadtree":147}],97:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){var e,u,o=1,d=1;function v(){for(var t,r,v,c,x,s,y,g=e.length,h=0;h<d;++h)for(r=(0,i.quadtree)(e,f,a).visitAfter(l),t=0;t<g;++t)v=e[t],s=u[v.index],y=s*s,c=v.x+v.vx,x=v.y+v.vy,r.visit(q);function q(t,r,e,i,u){var f=t.data,a=t.r,d=s+a;if(!f)return r>c+d||i<c-d||e>x+d||u<x-d;if(f.index>v.index){var l=c-f.x-f.vx,g=x-f.y-f.vy,h=l*l+g*g;h<d*d&&(0===l&&(h+=(l=(0,n.default)())*l),0===g&&(h+=(g=(0,n.default)())*g),h=(d-(h=Math.sqrt(h)))/h*o,v.vx+=(l*=h)*(d=(a*=a)/(y+a)),v.vy+=(g*=h)*d,f.vx-=l*(d=1-d),f.vy-=g*d)}}}function l(t){if(t.data)return t.r=u[t.data.index];for(var r=t.r=0;r<4;++r)t[r]&&t[r].r>t.r&&(t.r=t[r].r)}function c(){if(e){var r,n,i=e.length;for(u=new Array(i),r=0;r<i;++r)n=e[r],u[n.index]=+t(n,r,e)}}return"function"!=typeof t&&(t=(0,r.default)(null==t?1:+t)),v.initialize=function(t){e=t,c()},v.iterations=function(t){return arguments.length?(d=+t,v):d},v.strength=function(t){return arguments.length?(o=+t,v):o},v.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),c(),v):t},v};var t=require("./constant"),r=u(t),e=require("./jiggle"),n=u(e),i=require("d3-quadtree");function u(t){return t&&t.__esModule?t:{default:t}}function f(t){return t.x+t.vx}function a(t){return t.y+t.vy}
|
|
},{"./constant":334,"./jiggle":338,"d3-quadtree":44}],98:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var n,u,a,c,l,d=o,g=function(e){return 1/Math.min(c[e.source.index],c[e.target.index])},s=(0,t.default)(30),x=1;function v(t){for(var i=0,o=e.length;i<x;++i)for(var f,a,c,d,g,s,v,y=0;y<o;++y)a=(f=e[y]).source,d=(c=f.target).x+c.vx-a.x-a.vx||(0,r.default)(),g=c.y+c.vy-a.y-a.vy||(0,r.default)(),d*=s=((s=Math.sqrt(d*d+g*g))-u[y])/s*t*n[y],g*=s,c.vx-=d*(v=l[y]),c.vy-=g*v,a.vx+=d*(v=1-v),a.vy+=g*v}function y(){if(a){var t,r,o=a.length,g=e.length,s=(0,i.map)(a,d);for(t=0,c=new Array(o);t<g;++t)(r=e[t]).index=t,"object"!=typeof r.source&&(r.source=f(s,r.source)),"object"!=typeof r.target&&(r.target=f(s,r.target)),c[r.source.index]=(c[r.source.index]||0)+1,c[r.target.index]=(c[r.target.index]||0)+1;for(t=0,l=new Array(g);t<g;++t)r=e[t],l[t]=c[r.source.index]/(c[r.source.index]+c[r.target.index]);n=new Array(g),h(),u=new Array(g),p()}}function h(){if(a)for(var t=0,r=e.length;t<r;++t)n[t]=+g(e[t],t,e)}function p(){if(a)for(var t=0,n=e.length;t<n;++t)u[t]=+s(e[t],t,e)}return null==e&&(e=[]),v.initialize=function(e){a=e,y()},v.links=function(t){return arguments.length?(e=t,y(),v):e},v.id=function(e){return arguments.length?(d=e,v):d},v.iterations=function(e){return arguments.length?(x=+e,v):x},v.strength=function(e){return arguments.length?(g="function"==typeof e?e:(0,t.default)(+e),h(),v):g},v.distance=function(e){return arguments.length?(s="function"==typeof e?e:(0,t.default)(+e),p(),v):s},v};var e=require("./constant"),t=u(e),n=require("./jiggle"),r=u(n),i=require("d3-collection");function u(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.index}function f(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}
|
|
},{"./constant":334,"./jiggle":338,"d3-collection":34}],100:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.x=r,exports.y=i,exports.default=function(r){var i,a=1,c=.001,l=1-Math.pow(c,1/300),f=0,h=.6,s=(0,t.map)(),v=(0,e.timer)(y),x=(0,n.dispatch)("tick","end");function y(){p(),x.call("tick",i),a<c&&(v.stop(),x.call("end",i))}function p(){var n,t,e=r.length;for(a+=(f-a)*l,s.each(function(n){n(a)}),n=0;n<e;++n)null==(t=r[n]).fx?t.x+=t.vx*=h:(t.x=t.fx,t.vx=0),null==t.fy?t.y+=t.vy*=h:(t.y=t.fy,t.vy=0)}function d(){for(var n,t=0,e=r.length;t<e;++t){if((n=r[t]).index=t,isNaN(n.x)||isNaN(n.y)){var i=u*Math.sqrt(t),a=t*o;n.x=i*Math.cos(a),n.y=i*Math.sin(a)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function g(n){return n.initialize&&n.initialize(r),n}return null==r&&(r=[]),d(),i={tick:p,restart:function(){return v.restart(y),i},stop:function(){return v.stop(),i},nodes:function(n){return arguments.length?(r=n,d(),s.each(g),i):r},alpha:function(n){return arguments.length?(a=+n,i):a},alphaMin:function(n){return arguments.length?(c=+n,i):c},alphaDecay:function(n){return arguments.length?(l=+n,i):+l},alphaTarget:function(n){return arguments.length?(f=+n,i):f},velocityDecay:function(n){return arguments.length?(h=1-n,i):1-h},force:function(n,t){return arguments.length>1?(null==t?s.remove(n):s.set(n,g(t)),i):s.get(n)},find:function(n,t,e){var i,u,o,a,c,l=0,f=r.length;for(null==e?e=1/0:e*=e,l=0;l<f;++l)(o=(i=n-(a=r[l]).x)*i+(u=t-a.y)*u)<e&&(c=a,e=o);return c},on:function(n,t){return arguments.length>1?(x.on(n,t),i):x.on(n)}}};var n=require("d3-dispatch"),t=require("d3-collection"),e=require("d3-timer");function r(n){return n.x}function i(n){return n.y}var u=10,o=Math.PI*(3-Math.sqrt(5));
|
|
},{"d3-dispatch":35,"d3-collection":34,"d3-timer":54}],99:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var t,n,i,f,l=(0,e.default)(-30),d=1,o=1/0,s=.81;function v(e){var a,f=t.length,l=(0,r.quadtree)(t,u.x,u.y).visitAfter(x);for(i=e,a=0;a<f;++a)n=t[a],l.visit(c)}function h(){if(t){var e,n,a=t.length;for(f=new Array(a),e=0;e<a;++e)n=t[e],f[n.index]=+l(n,e,t)}}function x(t){var e,n,a,r,u,i=0,l=0;if(t.length){for(a=r=u=0;u<4;++u)(e=t[u])&&(n=Math.abs(e.value))&&(i+=e.value,l+=n,a+=n*e.x,r+=n*e.y);t.x=a/l,t.y=r/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{i+=f[e.data.index]}while(e=e.next)}t.value=i}function c(t,e,r,u){if(!t.value)return!0;var l=t.x-n.x,v=t.y-n.y,h=u-e,x=l*l+v*v;if(h*h/s<x)return x<o&&(0===l&&(x+=(l=(0,a.default)())*l),0===v&&(x+=(v=(0,a.default)())*v),x<d&&(x=Math.sqrt(d*x)),n.vx+=l*t.value*i/x,n.vy+=v*t.value*i/x),!0;if(!(t.length||x>=o)){(t.data!==n||t.next)&&(0===l&&(x+=(l=(0,a.default)())*l),0===v&&(x+=(v=(0,a.default)())*v),x<d&&(x=Math.sqrt(d*x)));do{t.data!==n&&(h=f[t.data.index]*i/x,n.vx+=l*h,n.vy+=v*h)}while(t=t.next)}}return v.initialize=function(e){t=e,h()},v.strength=function(t){return arguments.length?(l="function"==typeof t?t:(0,e.default)(+t),h(),v):l},v.distanceMin=function(t){return arguments.length?(d=t*t,v):Math.sqrt(d)},v.distanceMax=function(t){return arguments.length?(o=t*t,v):Math.sqrt(o)},v.theta=function(t){return arguments.length?(s=t*t,v):Math.sqrt(s)},v};var t=require("./constant"),e=i(t),n=require("./jiggle"),a=i(n),r=require("d3-quadtree"),u=require("./simulation");function i(t){return t&&t.__esModule?t:{default:t}}
|
|
},{"./constant":334,"./jiggle":338,"d3-quadtree":44,"./simulation":100}],101:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t,e,r){var u,f,o,i=(0,n.default)(.1);function l(t){for(var n=0,i=u.length;n<i;++n){var l=u[n],a=l.x-e||1e-6,c=l.y-r||1e-6,s=Math.sqrt(a*a+c*c),d=(o[n]-s)*f[n]*t/s;l.vx+=a*d,l.vy+=c*d}}function a(){if(u){var n,e=u.length;for(f=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(u[n],n,u),f[n]=isNaN(o[n])?0:+i(u[n],n,u)}}return"function"!=typeof t&&(t=(0,n.default)(+t)),null==e&&(e=0),null==r&&(r=0),l.initialize=function(t){u=t,a()},l.strength=function(t){return arguments.length?(i="function"==typeof t?t:(0,n.default)(+t),a(),l):i},l.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),a(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l};var t=require("./constant"),n=e(t);function e(t){return t&&t.__esModule?t:{default:t}}
|
|
},{"./constant":334}],102:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){var e,r,u,f=(0,n.default)(.1);function o(t){for(var n,f=0,o=e.length;f<o;++f)(n=e[f]).vx+=(u[f]-n.x)*r[f]*t}function i(){if(e){var n,o=e.length;for(r=new Array(o),u=new Array(o),n=0;n<o;++n)r[n]=isNaN(u[n]=+t(e[n],n,e))?0:+f(e[n],n,e)}}return"function"!=typeof t&&(t=(0,n.default)(null==t?0:+t)),o.initialize=function(t){e=t,i()},o.strength=function(t){return arguments.length?(f="function"==typeof t?t:(0,n.default)(+t),i(),o):f},o.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),i(),o):t},o};var t=require("./constant"),n=e(t);function e(t){return t&&t.__esModule?t:{default:t}}
|
|
},{"./constant":334}],103:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){var e,r,u,f=(0,n.default)(.1);function o(t){for(var n,f=0,o=e.length;f<o;++f)(n=e[f]).vy+=(u[f]-n.y)*r[f]*t}function i(){if(e){var n,o=e.length;for(r=new Array(o),u=new Array(o),n=0;n<o;++n)r[n]=isNaN(u[n]=+t(e[n],n,e))?0:+f(e[n],n,e)}}return"function"!=typeof t&&(t=(0,n.default)(null==t?0:+t)),o.initialize=function(t){e=t,i()},o.strength=function(t){return arguments.length?(f="function"==typeof t?t:(0,n.default)(+t),i(),o):f},o.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),i(),o):t},o};var t=require("./constant"),n=e(t);function e(t){return t&&t.__esModule?t:{default:t}}
|
|
},{"./constant":334}],36:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/center");Object.defineProperty(exports,"forceCenter",{enumerable:!0,get:function(){return f(e).default}});var r=require("./src/collide");Object.defineProperty(exports,"forceCollide",{enumerable:!0,get:function(){return f(r).default}});var t=require("./src/link");Object.defineProperty(exports,"forceLink",{enumerable:!0,get:function(){return f(t).default}});var n=require("./src/manyBody");Object.defineProperty(exports,"forceManyBody",{enumerable:!0,get:function(){return f(n).default}});var u=require("./src/radial");Object.defineProperty(exports,"forceRadial",{enumerable:!0,get:function(){return f(u).default}});var o=require("./src/simulation");Object.defineProperty(exports,"forceSimulation",{enumerable:!0,get:function(){return f(o).default}});var c=require("./src/x");Object.defineProperty(exports,"forceX",{enumerable:!0,get:function(){return f(c).default}});var i=require("./src/y");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"forceY",{enumerable:!0,get:function(){return f(i).default}});
|
|
},{"./src/center":96,"./src/collide":97,"./src/link":98,"./src/manyBody":99,"./src/radial":101,"./src/simulation":100,"./src/x":102,"./src/y":103}],480:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,l=e.slice(0,n);return[l.length>1?l[0]+l.slice(2):l,+e.slice(n+1)]};
|
|
},{}],339:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return(e=(0,t.default)(Math.abs(e)))?e[1]:NaN};var e=require("./formatDecimal"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./formatDecimal":480}],341:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return function(r,n){for(var u=r.length,s=[],o=0,i=e[0],a=0;u>0&&i>0&&(a+i+1>n&&(i=Math.max(1,n-a)),s.push(r.substring(u-=i,u+i)),!((a+=i+1)>n));)i=e[o=(o+1)%e.length];return s.reverse().join(t)}};
|
|
},{}],342:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}};
|
|
},{}],481:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){e=e.toPrecision(r);e:for(var t,s=e.length,a=1,c=-1;a<s;++a)switch(e[a]){case".":c=t=a;break;case"0":0===c&&(c=a),t=a;break;case"e":break e;default:c>0&&(c=0)}return c>0?e.slice(0,c)+e.slice(t+1):e};
|
|
},{}],343:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.prefixExponent=void 0,exports.default=function(e,t){var o=(0,r.default)(e,t);if(!o)return e+"";var a=o[0],i=o[1],u=i-(exports.prefixExponent=n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,f=a.length;return u===f?a:u>f?a+new Array(u-f+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+(0,r.default)(e,Math.max(0,t+u-1))[0]};var e=require("./formatDecimal"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}var n=exports.prefixExponent=void 0;
|
|
},{"./formatDecimal":480}],482:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var n=(0,r.default)(e,t);if(!n)return e+"";var u=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+u:u.length>a+1?u.slice(0,a+1)+"."+u.slice(a+1):u+new Array(a-u.length+2).join("0")};var e=require("./formatDecimal"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./formatDecimal":480}],340:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./formatDefault"),r=i(t),n=require("./formatPrefixAuto"),e=i(n),u=require("./formatRounded"),o=i(u);function i(t){return t&&t.__esModule?t:{default:t}}exports.default={"":r.default,"%":function(t,r){return(100*t).toFixed(r)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,r){return t.toExponential(r)},f:function(t,r){return t.toFixed(r)},g:function(t,r){return t.toPrecision(r)},o:function(t){return Math.round(t).toString(8)},p:function(t,r){return(0,o.default)(100*t,r)},r:o.default,s:e.default,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};
|
|
},{"./formatDefault":481,"./formatPrefixAuto":343,"./formatRounded":482}],119:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var t=require("./formatTypes"),i=e(t);function e(t){return t&&t.__esModule?t:{default:t}}var s=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function r(t){return new o(t)}function o(t){if(!(e=s.exec(t)))throw new Error("invalid format: "+t);var e,r=e[1]||" ",o=e[2]||">",h=e[3]||"-",n=e[4]||"",l=!!e[5],a=e[6]&&+e[6],u=!!e[7],p=e[8]&&+e[8].slice(1),c=e[9]||"";"n"===c?(u=!0,c="g"):i.default[c]||(c=""),(l||"0"===r&&"="===o)&&(l=!0,r="0",o="="),this.fill=r,this.align=o,this.sign=h,this.symbol=n,this.zero=l,this.width=a,this.comma=u,this.precision=p,this.type=c}r.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};
|
|
},{"./formatTypes":340}],118:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=e.grouping&&e.thousands?(0,a.default)(e.grouping,e.thousands):d.default,n=e.currency,i=e.decimal,f=e.numerals?(0,u.default)(e.numerals):d.default,c=e.percent||"%";function h(e){var t=(e=(0,o.default)(e)).fill,a=e.align,u=e.sign,d=e.symbol,h=e.zero,p=e.width,g=e.comma,M=e.precision,x=e.type,v="$"===d?n[0]:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",y="$"===d?n[1]:/[%p]/.test(x)?c:"",b=l.default[x],q=!x||/[defgprs%]/.test(x);function k(e){var n,o,l,c=v,d=y;if("c"===x)d=b(e)+d,e="";else{var k=(e=+e)<0;if(e=b(Math.abs(e),M),k&&0==+e&&(k=!1),c=(k?"("===u?u:"-":"-"===u||"("===u?"":u)+c,d=("s"===x?m[8+s.prefixExponent/3]:"")+d+(k&&"("===u?")":""),q)for(n=-1,o=e.length;++n<o;)if(48>(l=e.charCodeAt(n))||l>57){d=(46===l?i+e.slice(n+1):e.slice(n))+d,e=e.slice(0,n);break}}g&&!h&&(e=r(e,1/0));var w=c.length+e.length+d.length,P=w<p?new Array(p-w+1).join(t):"";switch(g&&h&&(e=r(P+e,P.length?p-d.length:1/0),P=""),a){case"<":e=c+e+d+P;break;case"=":e=c+P+e+d;break;case"^":e=P.slice(0,w=P.length>>1)+c+e+d+P.slice(w);break;default:e=P+c+e+d}return f(e)}return M=null==M?x?6:12:/[gprs]/.test(x)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,r){var a=h(((e=(0,o.default)(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor((0,t.default)(r)/3))),u=Math.pow(10,-n),i=m[8+n/3];return function(e){return a(u*e)+i}}}};var e=require("./exponent"),t=h(e),r=require("./formatGroup"),a=h(r),n=require("./formatNumerals"),u=h(n),i=require("./formatSpecifier"),o=h(i),f=require("./formatTypes"),l=h(f),s=require("./formatPrefixAuto"),c=require("./identity"),d=h(c);function h(e){return e&&e.__esModule?e:{default:e}}var m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
|
|
},{"./exponent":339,"./formatGroup":341,"./formatNumerals":342,"./formatSpecifier":119,"./formatTypes":340,"./formatPrefixAuto":343,"./identity":335}],117:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatPrefix=exports.format=void 0,exports.default=u;var r,e=require("./locale"),t=o(e);function o(r){return r&&r.__esModule?r:{default:r}}var f=exports.format=void 0,a=exports.formatPrefix=void 0;function u(e){return r=(0,t.default)(e),exports.format=f=r.format,exports.formatPrefix=a=r.formatPrefix,r}u({decimal:".",thousands:",",grouping:[3],currency:["$",""]});
|
|
},{"./locale":118}],120:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return Math.max(0,-(0,t.default)(Math.abs(e)))};var e=require("./exponent"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./exponent":339}],121:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,t.default)(a)/3)))-(0,t.default)(Math.abs(e)))};var e=require("./exponent"),t=a(e);function a(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./exponent":339}],122:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,u){return e=Math.abs(e),u=Math.abs(u)-e,Math.max(0,(0,t.default)(u)-(0,t.default)(e))+1};var e=require("./exponent"),t=u(e);function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./exponent":339}],39:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/defaultLocale");Object.defineProperty(exports,"formatDefaultLocale",{enumerable:!0,get:function(){return u(e).default}}),Object.defineProperty(exports,"format",{enumerable:!0,get:function(){return e.format}}),Object.defineProperty(exports,"formatPrefix",{enumerable:!0,get:function(){return e.formatPrefix}});var r=require("./src/locale");Object.defineProperty(exports,"formatLocale",{enumerable:!0,get:function(){return u(r).default}});var t=require("./src/formatSpecifier");Object.defineProperty(exports,"formatSpecifier",{enumerable:!0,get:function(){return u(t).default}});var n=require("./src/precisionFixed");Object.defineProperty(exports,"precisionFixed",{enumerable:!0,get:function(){return u(n).default}});var o=require("./src/precisionPrefix");Object.defineProperty(exports,"precisionPrefix",{enumerable:!0,get:function(){return u(o).default}});var i=require("./src/precisionRound");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"precisionRound",{enumerable:!0,get:function(){return u(i).default}});
|
|
},{"./src/defaultLocale":117,"./src/locale":118,"./src/formatSpecifier":119,"./src/precisionFixed":120,"./src/precisionPrefix":121,"./src/precisionRound":122}],345:[function(require,module,exports) {
|
|
"use strict";function t(){this.reset()}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return new t},t.prototype={constructor:t,reset:function(){this.s=this.t=0},add:function(t){e(s,t,this.t),e(this,s.s,this.s),this.s?this.t+=s.t:this.s=s.t},valueOf:function(){return this.s}};var s=new t;function e(t,s,e){var i=t.s=s+e,n=i-s,r=i-n;t.t=s-r+(e-n)}
|
|
},{}],346:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.acos=v,exports.asin=w,exports.haversin=_;var t=exports.epsilon=1e-6,e=exports.epsilon2=1e-12,s=exports.pi=Math.PI,r=exports.halfPi=s/2,o=exports.quarterPi=s/4,a=exports.tau=2*s,p=exports.degrees=180/s,n=exports.radians=s/180,x=exports.abs=Math.abs,i=exports.atan=Math.atan,h=exports.atan2=Math.atan2,M=exports.cos=Math.cos,u=exports.ceil=Math.ceil,c=exports.exp=Math.exp,l=exports.floor=Math.floor,f=exports.log=Math.log,g=exports.pow=Math.pow,d=exports.sin=Math.sin,P=exports.sign=Math.sign||function(t){return t>0?1:t<0?-1:0},b=exports.sqrt=Math.sqrt,q=exports.tan=Math.tan;function v(t){return t>1?0:t<-1?s:Math.acos(t)}function w(t){return t>1?r:t<-1?-r:Math.asin(t)}function _(t){return(t=d(t/2))*t}
|
|
},{}],347:[function(require,module,exports) {
|
|
"use strict";function e(){}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
|
|
},{}],133:[function(require,module,exports) {
|
|
"use strict";function n(n,t){n&&o.hasOwnProperty(n.type)&&o[n.type](n,t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(o,e){o&&t.hasOwnProperty(o.type)?t[o.type](o,e):n(o,e)};var t={Feature:function(t,o){n(t.geometry,o)},FeatureCollection:function(t,o){for(var e=t.features,r=-1,i=e.length;++r<i;)n(e[r].geometry,o)}},o={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var o=n.coordinates,e=-1,r=o.length;++e<r;)n=o[e],t.point(n[0],n[1],n[2])},LineString:function(n,t){e(n.coordinates,t,0)},MultiLineString:function(n,t){for(var o=n.coordinates,r=-1,i=o.length;++r<i;)e(o[r],t,0)},Polygon:function(n,t){r(n.coordinates,t)},MultiPolygon:function(n,t){for(var o=n.coordinates,e=-1,i=o.length;++e<i;)r(o[e],t)},GeometryCollection:function(t,o){for(var e=t.geometries,r=-1,i=e.length;++r<i;)n(e[r],o)}};function e(n,t,o){var e,r=-1,i=n.length-o;for(t.lineStart();++r<i;)e=n[r],t.point(e[0],e[1],e[2]);t.lineEnd()}function r(n,t){var o=-1,r=n.length;for(t.polygonStart();++o<r;)e(n[o],t,1);t.polygonEnd()}
|
|
},{}],123:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.areaStream=exports.areaRingSum=void 0,exports.default=function(e){return S.reset(),(0,u.default)(e,m),2*S};var e=require("./adder"),t=o(e),a=require("./math"),n=require("./noop"),r=o(n),i=require("./stream"),u=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var d,s,l,f,p,c=exports.areaRingSum=(0,t.default)(),S=(0,t.default)(),m=exports.areaStream={point:r.default,lineStart:r.default,lineEnd:r.default,polygonStart:function(){c.reset(),m.lineStart=q,m.lineEnd=v},polygonEnd:function(){var e=+c;S.add(e<0?a.tau+e:e),this.lineStart=this.lineEnd=this.point=r.default},sphere:function(){S.add(a.tau)}};function q(){m.point=x}function v(){h(d,s)}function x(e,t){m.point=h,d=e,s=t,e*=a.radians,t*=a.radians,l=e,f=(0,a.cos)(t=t/2+a.quarterPi),p=(0,a.sin)(t)}function h(e,t){e*=a.radians,t=(t*=a.radians)/2+a.quarterPi;var n=e-l,r=n>=0?1:-1,i=r*n,u=(0,a.cos)(t),o=(0,a.sin)(t),d=p*o,s=f*u+d*(0,a.cos)(i),S=d*r*(0,a.sin)(i);c.add((0,a.atan2)(S,s)),l=e,f=u,p=o}
|
|
},{"./adder":345,"./math":346,"./noop":347,"./stream":133}],348:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.spherical=e,exports.cartesian=t,exports.cartesianDot=n,exports.cartesianCross=s,exports.cartesianAddInPlace=a,exports.cartesianScale=o,exports.cartesianNormalizeInPlace=c;var r=require("./math");function e(e){return[(0,r.atan2)(e[1],e[0]),(0,r.asin)(e[2])]}function t(e){var t=e[0],n=e[1],s=(0,r.cos)(n);return[s*(0,r.cos)(t),s*(0,r.sin)(t),(0,r.sin)(n)]}function n(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function s(r,e){return[r[1]*e[2]-r[2]*e[1],r[2]*e[0]-r[0]*e[2],r[0]*e[1]-r[1]*e[0]]}function a(r,e){r[0]+=e[0],r[1]+=e[1],r[2]+=e[2]}function o(r,e){return[r[0]*e,r[1]*e,r[2]*e]}function c(e){var t=(0,r.sqrt)(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}
|
|
},{"./math":346}],124:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var n,r,a,t,i,u,d;if(c=f=-(l=s=1/0),m=[],(0,o.default)(e,h),r=m.length){for(m.sort(P),n=1,i=[a=m[0]];n<r;++n)j(a,(t=m[n])[0])||j(a,t[1])?(M(a[0],t[1])>M(a[0],a[1])&&(a[1]=t[1]),M(t[0],a[1])>M(a[0],a[1])&&(a[0]=t[0])):i.push(a=t);for(u=-1/0,n=0,a=i[r=i.length-1];n<=r;a=t,++n)t=i[n],(d=M(a[1],t[0]))>u&&(u=d,l=t[0],f=a[1])}return m=N=null,l===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,s],[f,c]]};var e=require("./adder"),n=u(e),r=require("./area"),a=require("./cartesian"),t=require("./math"),i=require("./stream"),o=u(i);function u(e){return e&&e.__esModule?e:{default:e}}var l,s,f,c,d,p,S,g,m,N,v=(0,n.default)(),h={point:E,lineStart:y,lineEnd:b,polygonStart:function(){h.point=_,h.lineStart=x,h.lineEnd=C,v.reset(),r.areaStream.polygonStart()},polygonEnd:function(){r.areaStream.polygonEnd(),h.point=E,h.lineStart=y,h.lineEnd=b,r.areaRingSum<0?(l=-(f=180),s=-(c=90)):v>t.epsilon?c=90:v<-t.epsilon&&(s=-90),N[0]=l,N[1]=f}};function E(e,n){m.push(N=[l=e,f=e]),n<s&&(s=n),n>c&&(c=n)}function q(e,n){var r=(0,a.cartesian)([e*t.radians,n*t.radians]);if(g){var i=(0,a.cartesianCross)(g,r),o=[i[1],-i[0],0],u=(0,a.cartesianCross)(o,i);(0,a.cartesianNormalizeInPlace)(u),u=(0,a.spherical)(u);var p,S=e-d,v=S>0?1:-1,h=u[0]*t.degrees*v,E=(0,t.abs)(S)>180;E^(v*d<h&&h<v*e)?(p=u[1]*t.degrees)>c&&(c=p):E^(v*d<(h=(h+360)%360-180)&&h<v*e)?(p=-u[1]*t.degrees)<s&&(s=p):(n<s&&(s=n),n>c&&(c=n)),E?e<d?M(l,e)>M(l,f)&&(f=e):M(e,f)>M(l,f)&&(l=e):f>=l?(e<l&&(l=e),e>f&&(f=e)):e>d?M(l,e)>M(l,f)&&(f=e):M(e,f)>M(l,f)&&(l=e)}else m.push(N=[l=e,f=e]);n<s&&(s=n),n>c&&(c=n),g=r,d=e}function y(){h.point=q}function b(){N[0]=l,N[1]=f,h.point=E,g=null}function _(e,n){if(g){var a=e-d;v.add((0,t.abs)(a)>180?a+(a>0?360:-360):a)}else p=e,S=n;r.areaStream.point(e,n),q(e,n)}function x(){r.areaStream.lineStart()}function C(){_(p,S),r.areaStream.lineEnd(),(0,t.abs)(v)>t.epsilon&&(l=-(f=180)),N[0]=l,N[1]=f,g=null}function M(e,n){return(n-=e)<0?n+360:n}function P(e,n){return e[0]-n[0]}function j(e,n){return e[0]<=e[1]?e[0]<=n&&n<=e[1]:n<e[0]||e[1]<n}
|
|
},{"./adder":345,"./area":123,"./cartesian":348,"./math":346,"./stream":133}],125:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(f){n=i=s=t=a=o=r=e=u=c=d=0,(0,_.default)(f,h);var l=u,p=c,v=d,q=l*l+p*p+v*v;return q<g.epsilon2&&(l=o,p=r,v=e,i<g.epsilon&&(l=s,p=t,v=a),(q=l*l+p*p+v*v)<g.epsilon2)?[NaN,NaN]:[(0,g.atan2)(p,l)*g.degrees,(0,g.asin)(v/(0,g.sqrt)(q))*g.degrees]};var n,i,s,t,a,o,r,e,u,c,d,f,l,p,v,q,g=require("./math"),E=require("./noop"),N=y(E),S=require("./stream"),_=y(S);function y(n){return n&&n.__esModule?n:{default:n}}var h={sphere:N.default,point:m,lineStart:M,lineEnd:O,polygonStart:function(){h.lineStart=P,h.lineEnd=k},polygonEnd:function(){h.lineStart=M,h.lineEnd=O}};function m(n,i){n*=g.radians,i*=g.radians;var s=(0,g.cos)(i);x(s*(0,g.cos)(n),s*(0,g.sin)(n),(0,g.sin)(i))}function x(i,o,r){s+=(i-s)/++n,t+=(o-t)/n,a+=(r-a)/n}function M(){h.point=b}function b(n,i){n*=g.radians,i*=g.radians;var s=(0,g.cos)(i);p=s*(0,g.cos)(n),v=s*(0,g.sin)(n),q=(0,g.sin)(i),h.point=j,x(p,v,q)}function j(n,s){n*=g.radians,s*=g.radians;var t=(0,g.cos)(s),a=t*(0,g.cos)(n),u=t*(0,g.sin)(n),c=(0,g.sin)(s),d=(0,g.atan2)((0,g.sqrt)((d=v*c-q*u)*d+(d=q*a-p*c)*d+(d=p*u-v*a)*d),p*a+v*u+q*c);i+=d,o+=d*(p+(p=a)),r+=d*(v+(v=u)),e+=d*(q+(q=c)),x(p,v,q)}function O(){h.point=m}function P(){h.point=w}function k(){z(f,l),h.point=m}function w(n,i){f=n,l=i,n*=g.radians,i*=g.radians,h.point=z;var s=(0,g.cos)(i);p=s*(0,g.cos)(n),v=s*(0,g.sin)(n),q=(0,g.sin)(i),x(p,v,q)}function z(n,s){n*=g.radians,s*=g.radians;var t=(0,g.cos)(s),a=t*(0,g.cos)(n),f=t*(0,g.sin)(n),l=(0,g.sin)(s),E=v*l-q*f,N=q*a-p*l,S=p*f-v*a,_=(0,g.sqrt)(E*E+N*N+S*S),y=(0,g.asin)(_),h=_&&-y/_;u+=h*E,c+=h*N,d+=h*S,i+=y,o+=y*(p+(p=a)),r+=y*(v+(v=f)),e+=y*(q+(q=l)),x(p,v,q)}
|
|
},{"./math":346,"./noop":347,"./stream":133}],351:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){function r(r,n){return r=e(r,n),t(r[0],r[1])}return e.invert&&t.invert&&(r.invert=function(r,n){return(r=t.invert(r,n))&&e.invert(r[0],r[1])}),r};
|
|
},{}],132:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rotateRadians=a,exports.default=function(n){function r(r){return(r=n(r[0]*e.radians,r[1]*e.radians))[0]*=e.degrees,r[1]*=e.degrees,r}return n=a(n[0]*e.radians,n[1]*e.radians,n.length>2?n[2]*e.radians:0),r.invert=function(r){return(r=n.invert(r[0]*e.radians,r[1]*e.radians))[0]*=e.degrees,r[1]*=e.degrees,r},r};var n=require("./compose"),r=t(n),e=require("./math");function t(n){return n&&n.__esModule?n:{default:n}}function i(n,r){return[n>e.pi?n-e.tau:n<-e.pi?n+e.tau:n,r]}function a(n,t,a){return(n%=e.tau)?t||a?(0,r.default)(s(n),o(t,a)):s(n):t||a?o(t,a):i}function u(n){return function(r,t){return[(r+=n)>e.pi?r-e.tau:r<-e.pi?r+e.tau:r,t]}}function s(n){var r=u(n);return r.invert=u(-n),r}function o(n,r){var t=(0,e.cos)(n),i=(0,e.sin)(n),a=(0,e.cos)(r),u=(0,e.sin)(r);function s(n,r){var s=(0,e.cos)(r),o=(0,e.cos)(n)*s,c=(0,e.sin)(n)*s,d=(0,e.sin)(r),f=d*t+o*i;return[(0,e.atan2)(c*a-f*u,o*t-d*i),(0,e.asin)(f*a+c*u)]}return s.invert=function(n,r){var s=(0,e.cos)(r),o=(0,e.cos)(n)*s,c=(0,e.sin)(n)*s,d=(0,e.sin)(r),f=d*a-c*u;return[(0,e.atan2)(c*a+d*u,o*t+f*i),(0,e.asin)(f*t-o*i)]},s}i.invert=i;
|
|
},{"./compose":351,"./math":346}],126:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.circleStream=u,exports.default=function(){var e,t,i=(0,n.default)([0,0]),o=(0,n.default)(90),s=(0,n.default)(6),c={point:function(n,a){e.push(n=t(n,a)),n[0]*=r.degrees,n[1]*=r.degrees}};function l(){var n=i.apply(this,arguments),l=o.apply(this,arguments)*r.radians,f=s.apply(this,arguments)*r.radians;return e=[],t=(0,a.rotateRadians)(-n[0]*r.radians,-n[1]*r.radians,0).invert,u(c,l,f,1),n={type:"Polygon",coordinates:[e]},e=t=null,n}return l.center=function(e){return arguments.length?(i="function"==typeof e?e:(0,n.default)([+e[0],+e[1]]),l):i},l.radius=function(e){return arguments.length?(o="function"==typeof e?e:(0,n.default)(+e),l):o},l.precision=function(e){return arguments.length?(s="function"==typeof e?e:(0,n.default)(+e),l):s},l};var e=require("./cartesian"),t=require("./constant"),n=i(t),r=require("./math"),a=require("./rotation");function i(e){return e&&e.__esModule?e:{default:e}}function u(t,n,a,i,u,s){if(a){var c=(0,r.cos)(n),l=(0,r.sin)(n),f=i*a;null==u?(u=n+i*r.tau,s=n-f/2):(u=o(c,u),s=o(c,s),(i>0?u<s:u>s)&&(u+=i*r.tau));for(var d,p=u;i>0?p>s:p<s;p-=f)d=(0,e.spherical)([c,-l*(0,r.cos)(p),-l*(0,r.sin)(p)]),t.point(d[0],d[1])}}function o(t,n){(n=(0,e.cartesian)(n))[0]-=t,(0,e.cartesianNormalizeInPlace)(n);var a=(0,r.acos)(-n[1]);return((-n[2]<0?-a:a)+r.tau-r.epsilon)%r.tau}
|
|
},{"./cartesian":348,"./constant":334,"./math":346,"./rotation":132}],407:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e,t=[];return{point:function(n,t){e.push([n,t])},lineStart:function(){t.push(e=[])},lineEnd:n.default,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}};var e=require("../noop"),n=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../noop":347}],401:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,t){return(0,e.abs)(r[0]-t[0])<e.epsilon&&(0,e.abs)(r[1]-t[1])<e.epsilon};var e=require("./math");
|
|
},{"./math":346}],409:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,o,r,f){var u,s,h=[],p=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,l,o=e[0],r=e[t];if((0,n.default)(o,r)){for(f.lineStart(),u=0;u<t;++u)f.point((o=e[u])[0],o[1]);f.lineEnd()}else h.push(l=new i(o,e,null,!0)),p.push(l.o=new i(o,null,l,!1)),h.push(l=new i(r,e,null,!1)),p.push(l.o=new i(r,null,l,!0))}}),h.length){for(p.sort(t),l(h),l(p),u=0,s=p.length;u<s;++u)p[u].e=o=!o;for(var a,v,d=h[0];;){for(var c=d,x=!0;c.v;)if((c=c.n)===d)return;a=c.z,f.lineStart();do{if(c.v=c.o.v=!0,c.e){if(x)for(u=0,s=a.length;u<s;++u)f.point((v=a[u])[0],v[1]);else r(c.x,c.n.x,1,f);c=c.n}else{if(x)for(a=c.p.z,u=a.length-1;u>=0;--u)f.point((v=a[u])[0],v[1]);else r(c.x,c.p.x,-1,f);c=c.p}a=(c=c.o).z,x=!x}while(!c.v);f.lineEnd()}}};var e=require("../pointEqual"),n=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function i(e,n,t,i){this.x=e,this.z=n,this.o=t,this.e=i,this.v=!1,this.n=this.p=null}function l(e){if(n=e.length){for(var n,t,i=0,l=e[0];++i<n;)l.n=t=e[i],t.p=l,l=t;l.n=t=e[0],t.p=l}}
|
|
},{"../pointEqual":401}],350:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){var i=r[0],n=r[1],o=[(0,s.sin)(i),-(0,s.cos)(i),0],c=0,u=0;t.reset();for(var l=0,d=e.length;l<d;++l)if(v=(f=e[l]).length)for(var f,v,p=f[v-1],q=p[0],P=p[1]/2+s.quarterPi,_=(0,s.sin)(P),h=(0,s.cos)(P),m=0;m<v;++m,q=x,_=C,h=I,p=g){var g=f[m],x=g[0],z=g[1]/2+s.quarterPi,C=(0,s.sin)(z),I=(0,s.cos)(z),M=x-q,N=M>=0?1:-1,b=N*M,j=b>s.pi,y=_*C;if(t.add((0,s.atan2)(y*N*(0,s.sin)(b),h*I+y*(0,s.cos)(b))),c+=j?M+N*s.tau:M,j^q>=i^x>=i){var O=(0,a.cartesianCross)((0,a.cartesian)(p),(0,a.cartesian)(g));(0,a.cartesianNormalizeInPlace)(O);var k=(0,a.cartesianCross)(o,O);(0,a.cartesianNormalizeInPlace)(k);var w=(j^M>=0?-1:1)*(0,s.asin)(k[2]);(n>w||n===w&&(O[0]||O[1]))&&(u+=j^M>=0?1:-1)}}return(c<-s.epsilon||c<s.epsilon&&t<-s.epsilon)^1&u};var e=require("./adder"),r=i(e),a=require("./cartesian"),s=require("./math");function i(e){return e&&e.__esModule?e:{default:e}}var t=(0,r.default)();
|
|
},{"./adder":345,"./cartesian":348,"./math":346}],406:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n,e,l,o){return function(a){var c,d,s,h=e(a),g=(0,t.default)(),S=e(g),y=!1,E={point:q,lineStart:P,lineEnd:x,polygonStart:function(){E.point=_,E.lineStart=b,E.lineEnd=j,d=[],c=[]},polygonEnd:function(){E.point=q,E.lineStart=P,E.lineEnd=x,d=(0,u.merge)(d);var n=(0,r.default)(c,o);d.length?(y||(a.polygonStart(),y=!0),(0,i.default)(d,p,n,l,a)):n&&(y||(a.polygonStart(),y=!0),a.lineStart(),l(null,null,1,a),a.lineEnd()),y&&(a.polygonEnd(),y=!1),d=c=null},sphere:function(){a.polygonStart(),a.lineStart(),l(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function q(t,e){n(t,e)&&a.point(t,e)}function v(n,t){h.point(n,t)}function P(){E.point=v,h.lineStart()}function x(){E.point=q,h.lineEnd()}function _(n,t){s.push([n,t]),S.point(n,t)}function b(){S.lineStart(),s=[]}function j(){_(s[0][0],s[0][1]),S.lineEnd();var n,t,e,i,l=S.clean(),o=g.result(),r=o.length;if(s.pop(),c.push(s),s=null,r)if(1&l){if((t=(e=o[0]).length-1)>0){for(y||(a.polygonStart(),y=!0),a.lineStart(),n=0;n<t;++n)a.point((i=e[n])[0],i[1]);a.lineEnd()}}else r>1&&2&l&&o.push(o.pop().concat(o.shift())),d.push(o.filter(f))}return E}};var n=require("./buffer"),t=a(n),e=require("./rejoin"),i=a(e),l=require("../math"),o=require("../polygonContains"),r=a(o),u=require("d3-array");function a(n){return n&&n.__esModule?n:{default:n}}function f(n){return n.length>1}function p(n,t){return((n=n.x)[0]<0?n[1]-l.halfPi-l.epsilon:l.halfPi-n[1])-((t=t.x)[0]<0?t[1]-l.halfPi-l.epsilon:l.halfPi-t[1])}
|
|
},{"./buffer":407,"./rejoin":409,"../math":346,"../polygonContains":350,"d3-array":30}],254:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("./index"),n=e(i),t=require("../math");function e(i){return i&&i.__esModule?i:{default:i}}function p(i){var n,e=NaN,p=NaN,a=NaN;return{lineStart:function(){i.lineStart(),n=1},point:function(l,r){var s=l>0?t.pi:-t.pi,u=(0,t.abs)(l-e);(0,t.abs)(u-t.pi)<t.epsilon?(i.point(e,p=(p+r)/2>0?t.halfPi:-t.halfPi),i.point(a,p),i.lineEnd(),i.lineStart(),i.point(s,p),i.point(l,p),n=0):a!==s&&u>=t.pi&&((0,t.abs)(e-a)<t.epsilon&&(e-=a*t.epsilon),(0,t.abs)(l-s)<t.epsilon&&(l-=s*t.epsilon),p=o(e,p,l,r),i.point(a,p),i.lineEnd(),i.lineStart(),i.point(s,p),n=0),i.point(e=l,p=r),a=s},lineEnd:function(){i.lineEnd(),e=p=NaN},clean:function(){return 2-n}}}function o(i,n,e,p){var o,a,l=(0,t.sin)(i-e);return(0,t.abs)(l)>t.epsilon?(0,t.atan)(((0,t.sin)(n)*(a=(0,t.cos)(p))*(0,t.sin)(e)-(0,t.sin)(p)*(o=(0,t.cos)(n))*(0,t.sin)(i))/(o*a*l)):(n+p)/2}function a(i,n,e,p){var o;if(null==i)o=e*t.halfPi,p.point(-t.pi,o),p.point(0,o),p.point(t.pi,o),p.point(t.pi,0),p.point(t.pi,-o),p.point(0,-o),p.point(-t.pi,-o),p.point(-t.pi,0),p.point(-t.pi,o);else if((0,t.abs)(i[0]-n[0])>t.epsilon){var a=i[0]<n[0]?t.pi:-t.pi;o=e*a/2,p.point(-a,o),p.point(0,o),p.point(a,o)}else p.point(n[0],n[1])}exports.default=(0,n.default)(function(){return!0},p,a,[-t.pi,-t.halfPi]);
|
|
},{"./index":406,"../math":346}],255:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){var t=(0,i.cos)(r),s=6*i.radians,l=t>0,o=(0,i.abs)(t)>i.epsilon;function u(e,n){return(0,i.cos)(e)*(0,i.cos)(n)>t}function p(n,r,a){var c=(0,e.cartesian)(n),s=(0,e.cartesian)(r),l=[1,0,0],o=(0,e.cartesianCross)(c,s),u=(0,e.cartesianDot)(o,o),p=o[0],f=u-p*p;if(!f)return!a&&n;var d=t*u/f,v=-t*p/f,S=(0,e.cartesianCross)(l,o),q=(0,e.cartesianScale)(l,d),E=(0,e.cartesianScale)(o,v);(0,e.cartesianAddInPlace)(q,E);var b=S,D=(0,e.cartesianDot)(q,b),P=(0,e.cartesianDot)(b,b),_=D*D-P*((0,e.cartesianDot)(q,q)-1);if(!(_<0)){var h=(0,i.sqrt)(_),x=(0,e.cartesianScale)(b,(-D-h)/P);if((0,e.cartesianAddInPlace)(x,q),x=(0,e.spherical)(x),!a)return x;var A,I=n[0],m=r[0],C=n[1],M=r[1];m<I&&(A=I,I=m,m=A);var j=m-I,y=(0,i.abs)(j-i.pi)<i.epsilon,O=y||j<i.epsilon;if(!y&&M<C&&(A=C,C=M,M=A),O?y?C+M>0^x[1]<((0,i.abs)(x[0]-I)<i.epsilon?C:M):C<=x[1]&&x[1]<=M:j>i.pi^(I<=x[0]&&x[0]<=m)){var g=(0,e.cartesianScale)(b,(-D+h)/P);return(0,e.cartesianAddInPlace)(g,q),[x,(0,e.spherical)(g)]}}}function f(e,n){var a=l?r:i.pi-r,t=0;return e<-a?t|=1:e>a&&(t|=2),n<-a?t|=4:n>a&&(t|=8),t}return(0,c.default)(u,function(e){var n,r,t,c,s;return{lineStart:function(){c=t=!1,s=1},point:function(d,v){var S,q=[d,v],E=u(d,v),b=l?E?0:f(d,v):E?f(d+(d<0?i.pi:-i.pi),v):0;if(!n&&(c=t=E)&&e.lineStart(),E!==t&&(!(S=p(n,q))||(0,a.default)(n,S)||(0,a.default)(q,S))&&(q[0]+=i.epsilon,q[1]+=i.epsilon,E=u(q[0],q[1])),E!==t)s=0,E?(e.lineStart(),S=p(q,n),e.point(S[0],S[1])):(S=p(n,q),e.point(S[0],S[1]),e.lineEnd()),n=S;else if(o&&n&&l^E){var D;b&r||!(D=p(q,n,!0))||(s=0,l?(e.lineStart(),e.point(D[0][0],D[0][1]),e.point(D[1][0],D[1][1]),e.lineEnd()):(e.point(D[1][0],D[1][1]),e.lineEnd(),e.lineStart(),e.point(D[0][0],D[0][1])))}!E||n&&(0,a.default)(n,q)||e.point(q[0],q[1]),n=q,t=E,r=b},lineEnd:function(){t&&e.lineEnd(),n=null},clean:function(){return s|(c&&t)<<1}}},function(e,i,a,t){(0,n.circleStream)(t,r,s,a,e,i)},l?[0,-r]:[-i.pi,r-i.pi])};var e=require("../cartesian"),n=require("../circle"),i=require("../math"),r=require("../pointEqual"),a=s(r),t=require("./index"),c=s(t);function s(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../cartesian":348,"../circle":126,"../math":346,"../pointEqual":401,"./index":406}],408:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r,f,i,t,u){var n,s=e[0],l=e[1],o=0,a=1,c=r[0]-s,d=r[1]-l;if(n=f-s,c||!(n>0)){if(n/=c,c<0){if(n<o)return;n<a&&(a=n)}else if(c>0){if(n>a)return;n>o&&(o=n)}if(n=t-s,c||!(n<0)){if(n/=c,c<0){if(n>a)return;n>o&&(o=n)}else if(c>0){if(n<o)return;n<a&&(a=n)}if(n=i-l,d||!(n>0)){if(n/=d,d<0){if(n<o)return;n<a&&(a=n)}else if(d>0){if(n>a)return;n>o&&(o=n)}if(n=u-l,d||!(n<0)){if(n/=d,d<0){if(n>a)return;n>o&&(o=n)}else if(d>0){if(n<o)return;n<a&&(a=n)}return o>0&&(e[0]=s+o*c,e[1]=l+o*d),a<1&&(r[0]=s+a*c,r[1]=l+a*d),!0}}}}};
|
|
},{}],257:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=s;var n=require("../math"),t=require("./buffer"),e=l(t),r=require("./line"),i=l(r),o=require("./rejoin"),u=l(o),a=require("d3-array");function l(n){return n&&n.__esModule?n:{default:n}}var f=1e9,p=-f;function s(t,r,o,l){function s(n,e){return t<=n&&n<=o&&r<=e&&e<=l}function c(n,e,i,u){var a=0,f=0;if(null==n||(a=d(n,i))!==(f=d(e,i))||v(n,e)<0^i>0)do{u.point(0===a||3===a?t:o,a>1?l:r)}while((a=(a+i+4)%4)!==f);else u.point(e[0],e[1])}function d(e,i){return(0,n.abs)(e[0]-t)<n.epsilon?i>0?0:3:(0,n.abs)(e[0]-o)<n.epsilon?i>0?2:1:(0,n.abs)(e[1]-r)<n.epsilon?i>0?1:0:i>0?3:2}function h(n,t){return v(n.x,t.x)}function v(n,t){var e=d(n,1),r=d(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(n){var d,v,m,M,g,x,S,y,E,b,q,_=n,j=(0,e.default)(),N={point:w,lineStart:function(){N.point=O,v&&v.push(m=[]);b=!0,E=!1,S=y=NaN},lineEnd:function(){d&&(O(M,g),x&&E&&j.rejoin(),d.push(j.result()));N.point=w,E&&_.lineEnd()},polygonStart:function(){_=j,d=[],v=[],q=!0},polygonEnd:function(){var e=function(){for(var n=0,e=0,r=v.length;e<r;++e)for(var i,o,u=v[e],a=1,f=u.length,p=u[0],s=p[0],c=p[1];a<f;++a)i=s,o=c,p=u[a],s=p[0],c=p[1],o<=l?c>l&&(s-i)*(l-o)>(c-o)*(t-i)&&++n:c<=l&&(s-i)*(l-o)<(c-o)*(t-i)&&--n;return n}(),r=q&&e,i=(d=(0,a.merge)(d)).length;(r||i)&&(n.polygonStart(),r&&(n.lineStart(),c(null,null,1,n),n.lineEnd()),i&&(0,u.default)(d,h,e,c,n),n.polygonEnd());_=n,d=v=m=null}};function w(n,t){s(n,t)&&_.point(n,t)}function O(n,e){var u=s(n,e);if(v&&m.push([n,e]),b)M=n,g=e,x=u,b=!1,u&&(_.lineStart(),_.point(n,e));else if(u&&E)_.point(n,e);else{var a=[S=Math.max(p,Math.min(f,S)),y=Math.max(p,Math.min(f,y))],c=[n=Math.max(p,Math.min(f,n)),e=Math.max(p,Math.min(f,e))];(0,i.default)(a,c,t,r,o,l)?(E||(_.lineStart(),_.point(a[0],a[1])),_.point(c[0],c[1]),u||_.lineEnd(),q=!1):u&&(_.lineStart(),_.point(n,e),q=!1)}S=n,y=e,E=u}return N}}
|
|
},{"../math":346,"./buffer":407,"./line":408,"./rejoin":409,"d3-array":30}],256:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e,r,n,u=0,l=0,o=960,a=500;return n={stream:function(n){return e&&r===n?e:e=(0,t.default)(u,l,o,a)(r=n)},extent:function(t){return arguments.length?(u=+t[0][0],l=+t[0][1],o=+t[1][0],a=+t[1][1],e=r=null,n):[[u,l],[o,a]]}}};var e=require("./rectangle"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./rectangle":257}],131:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return f.reset(),(0,u.default)(e,c),+f};var e=require("./adder"),n=d(e),t=require("./math"),a=require("./noop"),r=d(a),i=require("./stream"),u=d(i);function d(e){return e&&e.__esModule?e:{default:e}}var o,s,l,f=(0,n.default)(),c={sphere:r.default,point:r.default,lineStart:p,lineEnd:r.default,polygonStart:r.default,polygonEnd:r.default};function p(){c.point=v,c.lineEnd=q}function q(){c.point=c.lineEnd=r.default}function v(e,n){e*=t.radians,n*=t.radians,o=e,s=(0,t.sin)(n),l=(0,t.cos)(n),c.point=E}function E(e,n){e*=t.radians,n*=t.radians;var a=(0,t.sin)(n),r=(0,t.cos)(n),i=(0,t.abs)(e-o),u=(0,t.cos)(i),d=r*(0,t.sin)(i),c=l*a-s*r*u,p=s*a+l*r*u;f.add((0,t.atan2)((0,t.sqrt)(d*d+c*c),p)),o=e,s=a,l=r}
|
|
},{"./adder":345,"./math":346,"./noop":347,"./stream":133}],128:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r){return u[0]=e,u[1]=r,(0,t.default)(n)};var e=require("./length"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var u=[null,null],n={type:"LineString",coordinates:u};
|
|
},{"./length":131}],127:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,n){return(r&&i.hasOwnProperty(r.type)?i[r.type]:a)(r,n)};var r=require("./polygonContains"),n=u(r),t=require("./distance"),e=u(t),o=require("./math");function u(r){return r&&r.__esModule?r:{default:r}}var i={Feature:function(r,n){return a(r.geometry,n)},FeatureCollection:function(r,n){for(var t=r.features,e=-1,o=t.length;++e<o;)if(a(t[e].geometry,n))return!0;return!1}},f={Sphere:function(){return!0},Point:function(r,n){return c(r.coordinates,n)},MultiPoint:function(r,n){for(var t=r.coordinates,e=-1,o=t.length;++e<o;)if(c(t[e],n))return!0;return!1},LineString:function(r,n){return l(r.coordinates,n)},MultiLineString:function(r,n){for(var t=r.coordinates,e=-1,o=t.length;++e<o;)if(l(t[e],n))return!0;return!1},Polygon:function(r,n){return s(r.coordinates,n)},MultiPolygon:function(r,n){for(var t=r.coordinates,e=-1,o=t.length;++e<o;)if(s(t[e],n))return!0;return!1},GeometryCollection:function(r,n){for(var t=r.geometries,e=-1,o=t.length;++e<o;)if(a(t[e],n))return!0;return!1}};function a(r,n){return!(!r||!f.hasOwnProperty(r.type))&&f[r.type](r,n)}function c(r,n){return 0===(0,e.default)(r,n)}function l(r,n){var t=(0,e.default)(r[0],r[1]);return(0,e.default)(r[0],n)+(0,e.default)(n,r[1])<=t+o.epsilon}function s(r,t){return!!(0,n.default)(r.map(d),p(t))}function d(r){return(r=r.map(p)).pop(),r}function p(r){return[r[0]*o.radians,r[1]*o.radians]}
|
|
},{"./polygonContains":350,"./distance":128,"./math":346}],129:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i,exports.graticule10=o;var n=require("d3-array"),e=require("./math");function t(t,r,i){var o=(0,n.range)(t,r-e.epsilon,i).concat(r);return function(n){return o.map(function(e){return[n,e]})}}function r(t,r,i){var o=(0,n.range)(t,r-e.epsilon,i).concat(r);return function(n){return o.map(function(e){return[e,n]})}}function i(){var i,o,u,c,a,s,l,p,f,g,M,x,h=10,m=h,d=90,v=360,j=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return(0,n.range)((0,e.ceil)(c/d)*d,u,d).map(M).concat((0,n.range)((0,e.ceil)(p/v)*v,l,v).map(x)).concat((0,n.range)((0,e.ceil)(o/h)*h,i,h).filter(function(n){return(0,e.abs)(n%d)>e.epsilon}).map(f)).concat((0,n.range)((0,e.ceil)(s/m)*m,a,m).filter(function(n){return(0,e.abs)(n%v)>e.epsilon}).map(g))}return y.lines=function(){return b().map(function(n){return{type:"LineString",coordinates:n}})},y.outline=function(){return{type:"Polygon",coordinates:[M(c).concat(x(l).slice(1),M(u).reverse().slice(1),x(p).reverse().slice(1))]}},y.extent=function(n){return arguments.length?y.extentMajor(n).extentMinor(n):y.extentMinor()},y.extentMajor=function(n){return arguments.length?(c=+n[0][0],u=+n[1][0],p=+n[0][1],l=+n[1][1],c>u&&(n=c,c=u,u=n),p>l&&(n=p,p=l,l=n),y.precision(j)):[[c,p],[u,l]]},y.extentMinor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],s=+n[0][1],a=+n[1][1],o>i&&(n=o,o=i,i=n),s>a&&(n=s,s=a,a=n),y.precision(j)):[[o,s],[i,a]]},y.step=function(n){return arguments.length?y.stepMajor(n).stepMinor(n):y.stepMinor()},y.stepMajor=function(n){return arguments.length?(d=+n[0],v=+n[1],y):[d,v]},y.stepMinor=function(n){return arguments.length?(h=+n[0],m=+n[1],y):[h,m]},y.precision=function(n){return arguments.length?(j=+n,f=t(s,a,90),g=r(o,i,j),M=t(p,l,90),x=r(c,u,j),y):j},y.extentMajor([[-180,-90+e.epsilon],[180,90-e.epsilon]]).extentMinor([[-180,-80-e.epsilon],[180,80+e.epsilon]])}function o(){return i()()}
|
|
},{"d3-array":30,"./math":346}],130:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(s,r){var n=s[0]*e.radians,a=s[1]*e.radians,i=r[0]*e.radians,t=r[1]*e.radians,d=(0,e.cos)(a),o=(0,e.sin)(a),u=(0,e.cos)(t),c=(0,e.sin)(t),v=d*(0,e.cos)(n),f=d*(0,e.sin)(n),g=u*(0,e.cos)(i),h=u*(0,e.sin)(i),l=2*(0,e.asin)((0,e.sqrt)((0,e.haversin)(t-a)+d*u*(0,e.haversin)(i-n))),p=(0,e.sin)(l),q=l?function(s){var r=(0,e.sin)(s*=l)/p,n=(0,e.sin)(l-s)/p,a=n*v+r*g,i=n*f+r*h,t=n*o+r*c;return[(0,e.atan2)(i,a)*e.degrees,(0,e.atan2)(t,(0,e.sqrt)(a*a+i*i))*e.degrees]}:function(){return[n*e.degrees,a*e.degrees]};return q.distance=l,q};var e=require("./math");
|
|
},{"./math":346}],410:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../adder"),t=i(e),n=require("../math"),r=require("../noop"),u=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var o,a,d,l,f=(0,t.default)(),c=(0,t.default)(),p={point:u.default,lineStart:u.default,lineEnd:u.default,polygonStart:function(){p.lineStart=s,p.lineEnd=S},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=u.default,f.add((0,n.abs)(c)),c.reset()},result:function(){var e=f/2;return f.reset(),e}};function s(){p.point=v}function v(e,t){p.point=E,o=d=e,a=l=t}function E(e,t){c.add(l*e-d*t),d=e,l=t}function S(){E(o,a)}exports.default=p;
|
|
},{"../adder":345,"../math":346,"../noop":347}],411:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../noop"),t=n(e);function n(e){return e&&e.__esModule?e:{default:e}}var r=1/0,u=r,o=-r,l=o,a={point:d,lineStart:t.default,lineEnd:t.default,polygonStart:t.default,polygonEnd:t.default,result:function(){var e=[[r,u],[o,l]];return o=l=-(u=r=1/0),e}};function d(e,t){e<r&&(r=e),e>o&&(o=e),t<u&&(u=t),t>l&&(l=t)}exports.default=a;
|
|
},{"../noop":347}],412:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n,t,i,o,e=require("../math"),r=0,u=0,c=0,f=0,a=0,l=0,p=0,s=0,d=0,v={point:E,lineStart:N,lineEnd:y,polygonStart:function(){v.lineStart=g,v.lineEnd=x},polygonEnd:function(){v.point=E,v.lineStart=N,v.lineEnd=y},result:function(){var n=d?[p/d,s/d]:l?[f/l,a/l]:c?[r/c,u/c]:[NaN,NaN];return r=u=c=f=a=l=p=s=d=0,n}};function E(n,t){r+=n,u+=t,++c}function N(){v.point=S}function S(n,t){v.point=q,E(i=n,o=t)}function q(n,t){var r=n-i,u=t-o,c=(0,e.sqrt)(r*r+u*u);f+=c*(i+n)/2,a+=c*(o+t)/2,l+=c,E(i=n,o=t)}function y(){v.point=E}function g(){v.point=_}function x(){b(n,t)}function _(e,r){v.point=b,E(n=i=e,t=o=r)}function b(n,t){var r=n-i,u=t-o,c=(0,e.sqrt)(r*r+u*u);f+=c*(i+n)/2,a+=c*(o+t)/2,l+=c,p+=(c=o*n-i*t)*(i+n),s+=c*(o+t),d+=3*c,E(i=n,o=t)}exports.default=v;
|
|
},{"../math":346}],413:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var t=require("../math"),i=require("../noop"),e=n(i);function n(t){return t&&t.__esModule?t:{default:t}}function o(t){this._context=t}o.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(i,e){switch(this._point){case 0:this._context.moveTo(i,e),this._point=1;break;case 1:this._context.lineTo(i,e);break;default:this._context.moveTo(i+this._radius,e),this._context.arc(i,e,this._radius,0,t.tau)}},result:e.default};
|
|
},{"../math":346,"../noop":347}],414:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../adder"),e=o(t),n=require("../math"),r=require("../noop"),u=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var i,l,a,d,f,c=(0,e.default)(),p={point:u.default,lineStart:function(){p.point=s},lineEnd:function(){i&&q(l,a),p.point=u.default},polygonStart:function(){i=!0},polygonEnd:function(){i=null},result:function(){var t=+c;return c.reset(),t}};function s(t,e){p.point=q,l=d=t,a=f=e}function q(t,e){d-=t,f-=e,c.add((0,n.sqrt)(d*d+f*f)),d=t,f=e}exports.default=p;
|
|
},{"../adder":345,"../math":346,"../noop":347}],415:[function(require,module,exports) {
|
|
"use strict";function t(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t,t.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};
|
|
},{}],258:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,u){var r,l,f=4.5;function d(e){return e&&("function"==typeof f&&l.pointRadius(+f.apply(this,arguments)),(0,n.default)(e,r(l))),l.result()}return d.area=function(e){return(0,n.default)(e,r(i.default)),i.default.result()},d.measure=function(e){return(0,n.default)(e,r(p.default)),p.default.result()},d.bounds=function(e){return(0,n.default)(e,r(o.default)),o.default.result()},d.centroid=function(e){return(0,n.default)(e,r(a.default)),a.default.result()},d.projection=function(u){return arguments.length?(r=null==u?(e=null,t.default):(e=u).stream,d):e},d.context=function(e){return arguments.length?(l=null==e?(u=null,new y.default):new s.default(u=e),"function"!=typeof f&&l.pointRadius(f),d):u},d.pointRadius=function(e){return arguments.length?(f="function"==typeof e?e:(l.pointRadius(+e),+e),d):f},d.projection(e).context(u)};var e=require("../identity"),t=x(e),u=require("../stream"),n=x(u),r=require("./area"),i=x(r),l=require("./bounds"),o=x(l),f=require("./centroid"),a=x(f),d=require("./context"),s=x(d),c=require("./measure"),p=x(c),q=require("./string"),y=x(q);function x(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"../identity":335,"../stream":133,"./area":410,"./bounds":411,"./centroid":412,"./context":413,"./measure":414,"./string":415}],134:[function(require,module,exports) {
|
|
"use strict";function t(t){return function(r){var e=new n;for(var o in t)e[o]=t[o];return e.stream=r,e}}function n(){}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n){return{stream:t(n)}},exports.transformer=t,n.prototype={constructor:n,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};
|
|
},{}],416:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fitExtent=l,exports.fitSize=i,exports.fitWidth=s,exports.fitHeight=c;var t=require("../stream"),e=u(t),n=require("../path/bounds"),r=u(n);function u(t){return t&&t.__esModule?t:{default:t}}function a(t,n,u){var a=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),(0,e.default)(u,t.stream(r.default)),n(r.default.result()),null!=a&&t.clipExtent(a),t}function l(t,e,n){return a(t,function(n){var r=e[1][0]-e[0][0],u=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),u/(n[1][1]-n[0][1])),l=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,i=+e[0][1]+(u-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([l,i])},n)}function i(t,e,n){return l(t,[[0,0],e],n)}function s(t,e,n){return a(t,function(n){var r=+e,u=r/(n[1][0]-n[0][0]),a=(r-u*(n[1][0]+n[0][0]))/2,l=-u*n[0][1];t.scale(150*u).translate([a,l])},n)}function c(t,e,n){return a(t,function(n){var r=+e,u=r/(n[1][1]-n[0][1]),a=-u*n[0][0],l=(r-u*(n[1][1]+n[0][1]))/2;t.scale(150*u).translate([a,l])},n)}
|
|
},{"../stream":133,"../path/bounds":411}],420:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(n,t){return+t?a(n,t):e(n)};var n=require("../cartesian"),t=require("../math"),i=require("../transform"),o=16,r=(0,t.cos)(30*t.radians);function e(n){return(0,i.transformer)({point:function(t,i){t=n(t,i),this.stream.point(t[0],t[1])}})}function a(i,e){function a(n,o,u,s,c,f,p,l,d,v,E,S,b,y){var g=p-n,m=l-o,q=g*g+m*m;if(q>4*e&&b--){var h=s+v,x=c+E,N=f+S,_=(0,t.sqrt)(h*h+x*x+N*N),j=(0,t.asin)(N/=_),M=(0,t.abs)((0,t.abs)(N)-1)<t.epsilon||(0,t.abs)(u-d)<t.epsilon?(u+d)/2:(0,t.atan2)(x,h),O=i(M,j),P=O[0],k=O[1],w=P-n,z=k-o,A=m*w-g*z;(A*A/q>e||(0,t.abs)((g*w+m*z)/q-.5)>.3||s*v+c*E+f*S<r)&&(a(n,o,u,s,c,f,P,k,M,h/=_,x/=_,N,b,y),y.point(P,k),a(P,k,M,h,x,N,p,l,d,v,E,S,b,y))}}return function(t){var r,e,u,s,c,f,p,l,d,v,E,S,b={point:y,lineStart:g,lineEnd:q,polygonStart:function(){t.polygonStart(),b.lineStart=h},polygonEnd:function(){t.polygonEnd(),b.lineStart=g}};function y(n,o){n=i(n,o),t.point(n[0],n[1])}function g(){l=NaN,b.point=m,t.lineStart()}function m(r,e){var u=(0,n.cartesian)([r,e]),s=i(r,e);a(l,d,p,v,E,S,l=s[0],d=s[1],p=r,v=u[0],E=u[1],S=u[2],o,t),t.point(l,d)}function q(){b.point=y,t.lineEnd()}function h(){g(),b.point=x,b.lineEnd=N}function x(n,t){m(r=n,t),e=l,u=d,s=v,c=E,f=S,b.point=m}function N(){a(l,d,p,v,E,S,e,u,r,s,c,f,o,t),b.lineEnd=q,q()}return b}}
|
|
},{"../cartesian":348,"../math":346,"../transform":134}],269:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=x,exports.projectionMutator=_;var e=require("../clip/antimeridian"),t=q(e),n=require("../clip/circle"),r=q(n),i=require("../clip/rectangle"),u=q(i),a=require("../compose"),l=q(a),o=require("../identity"),f=q(o),c=require("../math"),s=require("../rotation"),d=require("../transform"),p=require("./fit"),g=require("./resample"),h=q(g);function q(e){return e&&e.__esModule?e:{default:e}}var m=(0,d.transformer)({point:function(e,t){this.stream.point(e*c.radians,t*c.radians)}});function v(e){return(0,d.transformer)({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function x(e){return _(function(){return e})()}function _(e){var n,i,a,o,d,g,q,x,_,y,E=150,M=480,j=250,z=0,H=0,S=0,W=0,b=0,A=null,O=t.default,P=null,R=f.default,k=.5,w=(0,h.default)(D,k);function B(e){return[(e=d(e[0]*c.radians,e[1]*c.radians))[0]*E+i,a-e[1]*E]}function C(e){return(e=d.invert((e[0]-i)/E,(a-e[1])/E))&&[e[0]*c.degrees,e[1]*c.degrees]}function D(e,t){return[(e=n(e,t))[0]*E+i,a-e[1]*E]}function F(){d=(0,l.default)(o=(0,s.rotateRadians)(S,W,b),n);var e=n(z,H);return i=M-e[0]*E,a=j+e[1]*E,G()}function G(){return _=y=null,B}return B.stream=function(e){return _&&y===e?_:_=m(v(o)(O(w(R(y=e)))))},B.preclip=function(e){return arguments.length?(O=e,A=void 0,G()):O},B.postclip=function(e){return arguments.length?(R=e,P=g=q=x=null,G()):R},B.clipAngle=function(e){return arguments.length?(O=+e?(0,r.default)(A=e*c.radians):(A=null,t.default),G()):A*c.degrees},B.clipExtent=function(e){return arguments.length?(R=null==e?(P=g=q=x=null,f.default):(0,u.default)(P=+e[0][0],g=+e[0][1],q=+e[1][0],x=+e[1][1]),G()):null==P?null:[[P,g],[q,x]]},B.scale=function(e){return arguments.length?(E=+e,F()):E},B.translate=function(e){return arguments.length?(M=+e[0],j=+e[1],F()):[M,j]},B.center=function(e){return arguments.length?(z=e[0]%360*c.radians,H=e[1]%360*c.radians,F()):[z*c.degrees,H*c.degrees]},B.rotate=function(e){return arguments.length?(S=e[0]%360*c.radians,W=e[1]%360*c.radians,b=e.length>2?e[2]%360*c.radians:0,F()):[S*c.degrees,W*c.degrees,b*c.degrees]},B.precision=function(e){return arguments.length?(w=(0,h.default)(D,k=e*e),G()):(0,c.sqrt)(k)},B.fitExtent=function(e,t){return(0,p.fitExtent)(B,e,t)},B.fitSize=function(e,t){return(0,p.fitSize)(B,e,t)},B.fitWidth=function(e,t){return(0,p.fitWidth)(B,e,t)},B.fitHeight=function(e,t){return(0,p.fitHeight)(B,e,t)},function(){return n=e.apply(this,arguments),B.invert=n.invert&&C,F()}}
|
|
},{"../clip/antimeridian":254,"../clip/circle":255,"../clip/rectangle":257,"../compose":351,"../identity":335,"../math":346,"../rotation":132,"../transform":134,"./fit":416,"./resample":420}],418:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.conicProjection=t;var e=require("../math"),r=require("./index");function t(t){var n=0,i=e.pi/3,o=(0,r.projectionMutator)(t),a=o(n,i);return a.parallels=function(r){return arguments.length?o(n=r[0]*e.radians,i=r[1]*e.radians):[n*e.degrees,i*e.degrees]},a}
|
|
},{"../math":346,"./index":269}],419:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cylindricalEqualAreaRaw=e;var r=require("../math");function e(e){var n=(0,r.cos)(e);function t(e,t){return[e*n,(0,r.sin)(t)/n]}return t.invert=function(e,t){return[e/n,(0,r.asin)(t*n)]},t}
|
|
},{"../math":346}],264:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.conicEqualAreaRaw=i,exports.default=function(){return(0,e.conicProjection)(i).scale(155.424).center([0,33.6442])};var r=require("../math"),e=require("./conic"),n=require("./cylindricalEqualArea");function i(e,i){var a=(0,r.sin)(e),t=(a+(0,r.sin)(i))/2;if((0,r.abs)(t)<r.epsilon)return(0,n.cylindricalEqualAreaRaw)(e);var c=1+a*(2*t-a),s=(0,r.sqrt)(c)/t;function u(e,n){var i=(0,r.sqrt)(c-2*t*(0,r.sin)(n))/t;return[i*(0,r.sin)(e*=t),s-i*(0,r.cos)(e)]}return u.invert=function(e,n){var i=s-n;return[(0,r.atan2)(e,(0,r.abs)(i))/t*(0,r.sign)(i),(0,r.asin)((c-(e*e+i*i)*t*t)/(2*t))]},u}
|
|
},{"../math":346,"./conic":418,"./cylindricalEqualArea":419}],259:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return(0,t.default)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var e=require("./conicEqualArea"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./conicEqualArea":264}],260:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n,r,o,u,s,c,f=(0,e.default)(),p=(0,i.default)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),v=(0,i.default)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(t,n){c=[t,n]}};function h(t){var n=t[0],e=t[1];return c=null,o.point(n,e),c||(u.point(n,e),c)||(s.point(n,e),c)}function g(){return n=r=null,h}return h.invert=function(t){var n=f.scale(),e=f.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?p:i>=.166&&i<.234&&r>=-.214&&r<-.115?v:f).invert(t)},h.stream=function(t){return n&&r===t?n:n=l([f.stream(r=t),p.stream(t),v.stream(t)])},h.precision=function(t){return arguments.length?(f.precision(t),p.precision(t),v.precision(t),g()):f.precision()},h.scale=function(t){return arguments.length?(f.scale(t),p.scale(.35*t),v.scale(t),h.translate(f.translate())):f.scale()},h.translate=function(n){if(!arguments.length)return f.translate();var e=f.scale(),r=+n[0],i=+n[1];return o=f.translate(n).clipExtent([[r-.455*e,i-.238*e],[r+.455*e,i+.238*e]]).stream(d),u=p.translate([r-.307*e,i+.201*e]).clipExtent([[r-.425*e+t.epsilon,i+.12*e+t.epsilon],[r-.214*e-t.epsilon,i+.234*e-t.epsilon]]).stream(d),s=v.translate([r-.205*e,i+.212*e]).clipExtent([[r-.214*e+t.epsilon,i+.166*e+t.epsilon],[r-.115*e-t.epsilon,i+.234*e-t.epsilon]]).stream(d),g()},h.fitExtent=function(t,n){return(0,a.fitExtent)(h,t,n)},h.fitSize=function(t,n){return(0,a.fitSize)(h,t,n)},h.fitWidth=function(t,n){return(0,a.fitWidth)(h,t,n)},h.fitHeight=function(t,n){return(0,a.fitHeight)(h,t,n)},h.scale(1070)};var t=require("../math"),n=require("./albers"),e=o(n),r=require("./conicEqualArea"),i=o(r),a=require("./fit");function o(t){return t&&t.__esModule?t:{default:t}}function l(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}
|
|
},{"../math":346,"./albers":259,"./conicEqualArea":264,"./fit":416}],417:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.azimuthalRaw=t,exports.azimuthalInvert=n;var r=require("../math");function t(t){return function(n,e){var s=(0,r.cos)(n),u=(0,r.cos)(e),a=t(s*u);return[a*u*(0,r.sin)(n),a*(0,r.sin)(e)]}}function n(t){return function(n,e){var s=(0,r.sqrt)(n*n+e*e),u=t(s),a=(0,r.sin)(u),i=(0,r.cos)(u);return[(0,r.atan2)(n*a,s*i),(0,r.asin)(s&&e*a/s)]}}
|
|
},{"../math":346}],261:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.azimuthalEqualAreaRaw=void 0,exports.default=function(){return(0,a.default)(i).scale(124.75).clipAngle(179.999)};var e=require("../math"),r=require("./azimuthal"),t=require("./index"),a=u(t);function u(e){return e&&e.__esModule?e:{default:e}}var i=exports.azimuthalEqualAreaRaw=(0,r.azimuthalRaw)(function(r){return(0,e.sqrt)(2/(1+r))});i.invert=(0,r.azimuthalInvert)(function(r){return 2*(0,e.asin)(r/2)});
|
|
},{"../math":346,"./azimuthal":417,"./index":269}],262:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.azimuthalEquidistantRaw=void 0,exports.default=function(){return(0,u.default)(i).scale(79.4188).clipAngle(179.999)};var e=require("../math"),t=require("./azimuthal"),r=require("./index"),u=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var i=exports.azimuthalEquidistantRaw=(0,t.azimuthalRaw)(function(t){return(t=(0,e.acos)(t))&&t/(0,e.sin)(t)});i.invert=(0,t.azimuthalInvert)(function(e){return e});
|
|
},{"../math":346,"./azimuthal":417,"./index":269}],270:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mercatorRaw=l,exports.default=function(){return i(l).scale(961/t.tau)},exports.mercatorProjection=i;var t=require("../math"),e=require("../rotation"),n=a(e),r=require("./index"),u=a(r);function a(t){return t&&t.__esModule?t:{default:t}}function l(e,n){return[e,(0,t.log)((0,t.tan)((t.halfPi+n)/2))]}function i(e){var r,a,i,o=(0,u.default)(e),c=o.center,f=o.scale,s=o.translate,h=o.clipExtent,x=null;function p(){var u=t.pi*f(),c=o((0,n.default)(o.rotate()).invert([0,0]));return h(null==x?[[c[0]-u,c[1]-u],[c[0]+u,c[1]+u]]:e===l?[[Math.max(c[0]-u,x),r],[Math.min(c[0]+u,a),i]]:[[x,Math.max(c[1]-u,r)],[a,Math.min(c[1]+u,i)]])}return o.scale=function(t){return arguments.length?(f(t),p()):f()},o.translate=function(t){return arguments.length?(s(t),p()):s()},o.center=function(t){return arguments.length?(c(t),p()):c()},o.clipExtent=function(t){return arguments.length?(null==t?x=r=a=i=null:(x=+t[0][0],r=+t[0][1],a=+t[1][0],i=+t[1][1]),p()):null==x?null:[[x,r],[a,i]]},p()}l.invert=function(e,n){return[e,2*(0,t.atan)((0,t.exp)(n))-t.halfPi]};
|
|
},{"../math":346,"../rotation":132,"./index":269}],263:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.conicConformalRaw=i,exports.default=function(){return(0,e.conicProjection)(i).scale(109.5).parallels([30,30])};var r=require("../math"),e=require("./conic"),n=require("./mercator");function o(e){return(0,r.tan)((r.halfPi+e)/2)}function i(e,i){var t=(0,r.cos)(e),a=e===i?(0,r.sin)(e):(0,r.log)(t/(0,r.cos)(i))/(0,r.log)(o(i)/o(e)),s=t*(0,r.pow)(o(e),a)/a;if(!a)return n.mercatorRaw;function c(e,n){s>0?n<-r.halfPi+r.epsilon&&(n=-r.halfPi+r.epsilon):n>r.halfPi-r.epsilon&&(n=r.halfPi-r.epsilon);var i=s/(0,r.pow)(o(n),a);return[i*(0,r.sin)(a*e),s-i*(0,r.cos)(a*e)]}return c.invert=function(e,n){var o=s-n,i=(0,r.sign)(a)*(0,r.sqrt)(e*e+o*o);return[(0,r.atan2)(e,(0,r.abs)(o))/a*(0,r.sign)(o),2*(0,r.atan)((0,r.pow)(s/i,1/a))-r.halfPi]},c}
|
|
},{"../math":346,"./conic":418,"./mercator":270}],266:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.equirectangularRaw=u,exports.default=function(){return(0,r.default)(u).scale(152.63)};var e=require("./index"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function u(e,r){return[e,r]}u.invert=u;
|
|
},{"./index":269}],265:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.conicEquidistantRaw=t,exports.default=function(){return(0,e.conicProjection)(t).scale(131.154).center([0,13.9389])};var r=require("../math"),e=require("./conic"),n=require("./equirectangular");function t(e,t){var i=(0,r.cos)(e),u=e===t?(0,r.sin)(e):(i-(0,r.cos)(t))/(t-e),c=i/u+e;if((0,r.abs)(u)<r.epsilon)return n.equirectangularRaw;function a(e,n){var t=c-n,i=u*e;return[t*(0,r.sin)(i),c-t*(0,r.cos)(i)]}return a.invert=function(e,n){var t=c-n;return[(0,r.atan2)(e,(0,r.abs)(t))/u*(0,r.sign)(t),c-(0,r.sign)(u)*(0,r.sqrt)(e*e+t*t)]},a}
|
|
},{"../math":346,"./conic":418,"./equirectangular":266}],267:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.gnomonicRaw=i,exports.default=function(){return(0,n.default)(i).scale(144.049).clipAngle(60)};var e=require("../math"),r=require("./azimuthal"),t=require("./index"),n=u(t);function u(e){return e&&e.__esModule?e:{default:e}}function i(r,t){var n=(0,e.cos)(t),u=(0,e.cos)(r)*n;return[n*(0,e.sin)(r)/u,(0,e.sin)(t)/u]}i.invert=(0,r.azimuthalInvert)(e.atan);
|
|
},{"../math":346,"./azimuthal":417,"./index":269}],268:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var t,e,u,l,o,c,a=1,s=0,d=0,h=1,g=1,p=r.default,x=null,m=r.default;function q(){return l=o=null,c}return c={stream:function(t){return l&&o===t?l:l=p(m(o=t))},postclip:function(n){return arguments.length?(m=n,x=t=e=u=null,q()):m},clipExtent:function(i){return arguments.length?(m=null==i?(x=t=e=u=null,r.default):(0,n.default)(x=+i[0][0],t=+i[0][1],e=+i[1][0],u=+i[1][1]),q()):null==x?null:[[x,t],[e,u]]},scale:function(t){return arguments.length?(p=f((a=+t)*h,a*g,s,d),q()):a},translate:function(t){return arguments.length?(p=f(a*h,a*g,s=+t[0],d=+t[1]),q()):[s,d]},reflectX:function(t){return arguments.length?(p=f(a*(h=t?-1:1),a*g,s,d),q()):h<0},reflectY:function(t){return arguments.length?(p=f(a*h,a*(g=t?-1:1),s,d),q()):g<0},fitExtent:function(t,n){return(0,i.fitExtent)(c,t,n)},fitSize:function(t,n){return(0,i.fitSize)(c,t,n)},fitWidth:function(t,n){return(0,i.fitWidth)(c,t,n)},fitHeight:function(t,n){return(0,i.fitHeight)(c,t,n)}}};var t=require("../clip/rectangle"),n=l(t),e=require("../identity"),r=l(e),u=require("../transform"),i=require("./fit");function l(t){return t&&t.__esModule?t:{default:t}}function f(t,n,e,i){return 1===t&&1===n&&0===e&&0===i?r.default:(0,u.transformer)({point:function(r,u){this.stream.point(r*t+e,u*n+i)}})}
|
|
},{"../clip/rectangle":257,"../identity":335,"../transform":134,"./fit":416}],271:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.naturalEarth1Raw=n,exports.default=function(){return(0,r.default)(n).scale(175.295)};var e=require("./index"),r=u(e),t=require("../math");function u(e){return e&&e.__esModule?e:{default:e}}function n(e,r){var t=r*r,u=t*t;return[e*(.8707-.131979*t+u*(u*(.003971*t-.001529*u)-.013791)),r*(1.007226+t*(.015085+u*(.028874*t-.044475-.005916*u)))]}n.invert=function(e,r){var u,n=r,a=25;do{var i=n*n,o=i*i;n-=u=(n*(1.007226+i*(.015085+o*(.028874*i-.044475-.005916*o)))-r)/(1.007226+i*(.045255+o*(.259866*i-.311325-.005916*11*o)))}while((0,t.abs)(u)>t.epsilon&&--a>0);return[e/(.8707+(i=n*n)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),n]};
|
|
},{"./index":269,"../math":346}],272:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.orthographicRaw=u,exports.default=function(){return(0,i.default)(u).scale(249.5).clipAngle(90+e.epsilon)};var e=require("../math"),r=require("./azimuthal"),t=require("./index"),i=n(t);function n(e){return e&&e.__esModule?e:{default:e}}function u(r,t){return[(0,e.cos)(t)*(0,e.sin)(r),(0,e.sin)(t)]}u.invert=(0,r.azimuthalInvert)(e.asin);
|
|
},{"../math":346,"./azimuthal":417,"./index":269}],273:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stereographicRaw=i,exports.default=function(){return(0,n.default)(i).scale(250).clipAngle(142)};var e=require("../math"),r=require("./azimuthal"),t=require("./index"),n=u(t);function u(e){return e&&e.__esModule?e:{default:e}}function i(r,t){var n=(0,e.cos)(t),u=1+(0,e.cos)(r)*n;return[n*(0,e.sin)(r)/u,(0,e.sin)(t)/u]}i.invert=(0,r.azimuthalInvert)(function(r){return 2*(0,e.atan)(r)});
|
|
},{"../math":346,"./azimuthal":417,"./index":269}],274:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transverseMercatorRaw=t,exports.default=function(){var e=(0,r.mercatorProjection)(t),n=e.center,a=e.rotate;return e.center=function(e){return arguments.length?n([-e[1],e[0]]):[(e=n())[1],-e[0]]},e.rotate=function(e){return arguments.length?a([e[0],e[1],e.length>2?e[2]+90:90]):[(e=a())[0],e[1],e[2]-90]},a([0,0,90]).scale(159.155)};var e=require("../math"),r=require("./mercator");function t(r,t){return[(0,e.log)((0,e.tan)((e.halfPi+t)/2)),-r]}t.invert=function(r,t){return[-t,2*(0,e.atan)((0,e.exp)(r))-e.halfPi]};
|
|
},{"../math":346,"./mercator":270}],40:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/area");Object.defineProperty(exports,"geoArea",{enumerable:!0,get:function(){return _(e).default}});var r=require("./src/bounds");Object.defineProperty(exports,"geoBounds",{enumerable:!0,get:function(){return _(r).default}});var t=require("./src/centroid");Object.defineProperty(exports,"geoCentroid",{enumerable:!0,get:function(){return _(t).default}});var n=require("./src/circle");Object.defineProperty(exports,"geoCircle",{enumerable:!0,get:function(){return _(n).default}});var o=require("./src/clip/antimeridian");Object.defineProperty(exports,"geoClipAntimeridian",{enumerable:!0,get:function(){return _(o).default}});var u=require("./src/clip/circle");Object.defineProperty(exports,"geoClipCircle",{enumerable:!0,get:function(){return _(u).default}});var a=require("./src/clip/extent");Object.defineProperty(exports,"geoClipExtent",{enumerable:!0,get:function(){return _(a).default}});var i=require("./src/clip/rectangle");Object.defineProperty(exports,"geoClipRectangle",{enumerable:!0,get:function(){return _(i).default}});var c=require("./src/contains");Object.defineProperty(exports,"geoContains",{enumerable:!0,get:function(){return _(c).default}});var l=require("./src/distance");Object.defineProperty(exports,"geoDistance",{enumerable:!0,get:function(){return _(l).default}});var f=require("./src/graticule");Object.defineProperty(exports,"geoGraticule",{enumerable:!0,get:function(){return _(f).default}}),Object.defineProperty(exports,"geoGraticule10",{enumerable:!0,get:function(){return f.graticule10}});var p=require("./src/interpolate");Object.defineProperty(exports,"geoInterpolate",{enumerable:!0,get:function(){return _(p).default}});var s=require("./src/length");Object.defineProperty(exports,"geoLength",{enumerable:!0,get:function(){return _(s).default}});var g=require("./src/path/index");Object.defineProperty(exports,"geoPath",{enumerable:!0,get:function(){return _(g).default}});var d=require("./src/projection/albers");Object.defineProperty(exports,"geoAlbers",{enumerable:!0,get:function(){return _(d).default}});var b=require("./src/projection/albersUsa");Object.defineProperty(exports,"geoAlbersUsa",{enumerable:!0,get:function(){return _(b).default}});var m=require("./src/projection/azimuthalEqualArea");Object.defineProperty(exports,"geoAzimuthalEqualArea",{enumerable:!0,get:function(){return _(m).default}}),Object.defineProperty(exports,"geoAzimuthalEqualAreaRaw",{enumerable:!0,get:function(){return m.azimuthalEqualAreaRaw}});var j=require("./src/projection/azimuthalEquidistant");Object.defineProperty(exports,"geoAzimuthalEquidistant",{enumerable:!0,get:function(){return _(j).default}}),Object.defineProperty(exports,"geoAzimuthalEquidistantRaw",{enumerable:!0,get:function(){return j.azimuthalEquidistantRaw}});var q=require("./src/projection/conicConformal");Object.defineProperty(exports,"geoConicConformal",{enumerable:!0,get:function(){return _(q).default}}),Object.defineProperty(exports,"geoConicConformalRaw",{enumerable:!0,get:function(){return q.conicConformalRaw}});var x=require("./src/projection/conicEqualArea");Object.defineProperty(exports,"geoConicEqualArea",{enumerable:!0,get:function(){return _(x).default}}),Object.defineProperty(exports,"geoConicEqualAreaRaw",{enumerable:!0,get:function(){return x.conicEqualAreaRaw}});var P=require("./src/projection/conicEquidistant");Object.defineProperty(exports,"geoConicEquidistant",{enumerable:!0,get:function(){return _(P).default}}),Object.defineProperty(exports,"geoConicEquidistantRaw",{enumerable:!0,get:function(){return P.conicEquidistantRaw}});var y=require("./src/projection/equirectangular");Object.defineProperty(exports,"geoEquirectangular",{enumerable:!0,get:function(){return _(y).default}}),Object.defineProperty(exports,"geoEquirectangularRaw",{enumerable:!0,get:function(){return y.equirectangularRaw}});var O=require("./src/projection/gnomonic");Object.defineProperty(exports,"geoGnomonic",{enumerable:!0,get:function(){return _(O).default}}),Object.defineProperty(exports,"geoGnomonicRaw",{enumerable:!0,get:function(){return O.gnomonicRaw}});var v=require("./src/projection/identity");Object.defineProperty(exports,"geoIdentity",{enumerable:!0,get:function(){return _(v).default}});var h=require("./src/projection/index");Object.defineProperty(exports,"geoProjection",{enumerable:!0,get:function(){return _(h).default}}),Object.defineProperty(exports,"geoProjectionMutator",{enumerable:!0,get:function(){return h.projectionMutator}});var R=require("./src/projection/mercator");Object.defineProperty(exports,"geoMercator",{enumerable:!0,get:function(){return _(R).default}}),Object.defineProperty(exports,"geoMercatorRaw",{enumerable:!0,get:function(){return R.mercatorRaw}});var w=require("./src/projection/naturalEarth1");Object.defineProperty(exports,"geoNaturalEarth1",{enumerable:!0,get:function(){return _(w).default}}),Object.defineProperty(exports,"geoNaturalEarth1Raw",{enumerable:!0,get:function(){return w.naturalEarth1Raw}});var E=require("./src/projection/orthographic");Object.defineProperty(exports,"geoOrthographic",{enumerable:!0,get:function(){return _(E).default}}),Object.defineProperty(exports,"geoOrthographicRaw",{enumerable:!0,get:function(){return E.orthographicRaw}});var C=require("./src/projection/stereographic");Object.defineProperty(exports,"geoStereographic",{enumerable:!0,get:function(){return _(C).default}}),Object.defineProperty(exports,"geoStereographicRaw",{enumerable:!0,get:function(){return C.stereographicRaw}});var A=require("./src/projection/transverseMercator");Object.defineProperty(exports,"geoTransverseMercator",{enumerable:!0,get:function(){return _(A).default}}),Object.defineProperty(exports,"geoTransverseMercatorRaw",{enumerable:!0,get:function(){return A.transverseMercatorRaw}});var M=require("./src/rotation");Object.defineProperty(exports,"geoRotation",{enumerable:!0,get:function(){return _(M).default}});var z=require("./src/stream");Object.defineProperty(exports,"geoStream",{enumerable:!0,get:function(){return _(z).default}});var G=require("./src/transform");function _(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"geoTransform",{enumerable:!0,get:function(){return _(G).default}});
|
|
},{"./src/area":123,"./src/bounds":124,"./src/centroid":125,"./src/circle":126,"./src/clip/antimeridian":254,"./src/clip/circle":255,"./src/clip/extent":256,"./src/clip/rectangle":257,"./src/contains":127,"./src/distance":128,"./src/graticule":129,"./src/interpolate":130,"./src/length":131,"./src/path/index":258,"./src/projection/albers":259,"./src/projection/albersUsa":260,"./src/projection/azimuthalEqualArea":261,"./src/projection/azimuthalEquidistant":262,"./src/projection/conicConformal":263,"./src/projection/conicEqualArea":264,"./src/projection/conicEquidistant":265,"./src/projection/equirectangular":266,"./src/projection/gnomonic":267,"./src/projection/identity":268,"./src/projection/index":269,"./src/projection/mercator":270,"./src/projection/naturalEarth1":271,"./src/projection/orthographic":272,"./src/projection/stereographic":273,"./src/projection/transverseMercator":274,"./src/rotation":132,"./src/stream":133,"./src/transform":134}],143:[function(require,module,exports) {
|
|
"use strict";function n(n,r){return n.parent===r.parent?1:2}function r(n){return n.reduce(e,0)/n.length}function e(n,r){return n+r.x}function t(n){return 1+n.reduce(u,0)}function u(n,r){return Math.max(n,r.y)}function c(n){for(var r;r=n.children;)n=r[0];return n}function i(n){for(var r;r=n.children;)n=r[r.length-1];return n}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=n,u=1,o=1,f=!1;function a(n){var a,l=0;n.eachAfter(function(n){var u=n.children;u?(n.x=r(u),n.y=t(u)):(n.x=a?l+=e(n,a):0,n.y=0,a=n)});var x=c(n),h=i(n),y=x.x-e(x,h)/2,d=h.x+e(h,x)/2;return n.eachAfter(f?function(r){r.x=(r.x-n.x)*u,r.y=(n.y-r.y)*o}:function(r){r.x=(r.x-y)/(d-y)*u,r.y=(1-(n.y?r.y/n.y:1))*o})}return a.separation=function(n){return arguments.length?(e=n,a):e},a.size=function(n){return arguments.length?(f=!1,u=+n[0],o=+n[1],a):f?null:[u,o]},a.nodeSize=function(n){return arguments.length?(f=!0,u=+n[0],o=+n[1],a):f?[u,o]:null},a};
|
|
},{}],421:[function(require,module,exports) {
|
|
"use strict";function e(e){var t=0,r=e.children,u=r&&r.length;if(u)for(;--u>=0;)t+=r[u].value;else t=1;e.value=t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return this.eachAfter(e)};
|
|
},{}],422:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r,t,o,s,i=this,h=[i];do{for(r=h.reverse(),h=[];i=r.pop();)if(e(i),t=i.children)for(o=0,s=t.length;o<s;++o)h.push(t[o])}while(h.length);return this};
|
|
},{}],423:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r,o=this,s=[o];o=s.pop();)if(e(o),t=o.children)for(r=t.length-1;r>=0;--r)s.push(t[r]);return this};
|
|
},{}],424:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var r,t,o,p=this,s=[p],u=[];p=s.pop();)if(u.push(p),r=p.children)for(t=0,o=r.length;t<o;++t)s.push(r[t]);for(;p=u.pop();)e(p);return this};
|
|
},{}],425:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,u=t.children,a=u&&u.length;--a>=0;)r+=u[a].value;t.value=r})};
|
|
},{}],426:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})};
|
|
},{}],427:[function(require,module,exports) {
|
|
"use strict";function r(r,e){if(r===e)return r;var t=r.ancestors(),o=e.ancestors(),p=null;for(r=t.pop(),e=o.pop();r===e;)p=r,r=t.pop(),e=o.pop();return p}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t=this,o=r(t,e),p=[t];t!==o;)t=t.parent,p.push(t);for(var n=p.length;e!==o;)p.splice(n,0,e),e=e.parent;return p};
|
|
},{}],428:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t};
|
|
},{}],429:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=[];return this.each(function(t){e.push(t)}),e};
|
|
},{}],430:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e};
|
|
},{}],431:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t};
|
|
},{}],275:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=m,exports.computeHeight=b,exports.Node=j;var e=require("./count"),t=_(e),r=require("./each"),a=_(r),u=require("./eachBefore"),n=_(u),o=require("./eachAfter"),i=_(o),d=require("./sum"),l=_(d),h=require("./sort"),s=_(h),c=require("./path"),f=_(c),p=require("./ancestors"),q=_(p),v=require("./descendants"),g=_(v),y=require("./leaves"),w=_(y),x=require("./links"),B=_(x);function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var r,a,u,n,o,i=new j(e),d=+e.value&&(i.value=e.value),l=[i];for(null==t&&(t=k);r=l.pop();)if(d&&(r.value=+r.data.value),(u=t(r.data))&&(o=u.length))for(r.children=new Array(o),n=o-1;n>=0;--n)l.push(a=r.children[n]=new j(u[n])),a.parent=r,a.depth=r.depth+1;return i.eachBefore(b)}function A(){return m(this).eachBefore(M)}function k(e){return e.children}function M(e){e.data=e.data.data}function b(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=m.prototype={constructor:j,count:t.default,each:a.default,eachAfter:i.default,eachBefore:n.default,sum:l.default,sort:s.default,path:f.default,ancestors:q.default,descendants:g.default,leaves:w.default,links:B.default,copy:A};
|
|
},{"./count":421,"./each":422,"./eachBefore":423,"./eachAfter":424,"./sum":425,"./sort":426,"./path":427,"./ancestors":428,"./descendants":429,"./leaves":430,"./links":431}],404:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.shuffle=r;var e=exports.slice=Array.prototype.slice;function r(e){for(var r,t,o=e.length;o;)t=Math.random()*o--|0,r=e[o],e[o]=e[t],e[t]=r;return e}
|
|
},{}],278:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var u,o,a=0,i=(e=(0,r.shuffle)(r.slice.call(e))).length,c=[];a<i;)u=e[a],o&&n(o,u)?++a:(o=f(c=t(c,u)),a=0);return o};var r=require("../array");function t(r,t){var n,f;if(u(t,r))return[t];for(n=0;n<r.length;++n)if(e(t,r[n])&&u(a(r[n],t),r))return[r[n],t];for(n=0;n<r.length-1;++n)for(f=n+1;f<r.length;++f)if(e(a(r[n],r[f]),t)&&e(a(r[n],t),r[f])&&e(a(r[f],t),r[n])&&u(i(r[n],r[f],t),r))return[r[n],r[f],t];throw new Error}function e(r,t){var e=r.r-t.r,n=t.x-r.x,u=t.y-r.y;return e<0||e*e<n*n+u*u}function n(r,t){var e=r.r-t.r+1e-6,n=t.x-r.x,u=t.y-r.y;return e>0&&e*e>n*n+u*u}function u(r,t){for(var e=0;e<t.length;++e)if(!n(r,t[e]))return!1;return!0}function f(r){switch(r.length){case 1:return o(r[0]);case 2:return a(r[0],r[1]);case 3:return i(r[0],r[1],r[2])}}function o(r){return{x:r.x,y:r.y,r:r.r}}function a(r,t){var e=r.x,n=r.y,u=r.r,f=t.x,o=t.y,a=t.r,i=f-e,c=o-n,x=a-u,y=Math.sqrt(i*i+c*c);return{x:(e+f+i/y*x)/2,y:(n+o+c/y*x)/2,r:(y+u+a)/2}}function i(r,t,e){var n=r.x,u=r.y,f=r.r,o=t.x,a=t.y,i=t.r,c=e.x,x=e.y,y=e.r,l=n-o,s=n-c,h=u-a,v=u-x,g=i-f,d=y-f,p=n*n+u*u-f*f,q=p-o*o-a*a+i*i,w=p-c*c-x*x+y*y,M=s*h-l*v,_=(h*w-v*q)/(2*M)-n,b=(v*g-h*d)/M,j=(s*q-l*w)/(2*M)-u,E=(l*d-s*g)/M,O=b*b+E*E-1,P=2*(f+_*b+j*E),k=_*_+j*j-f*f,m=-(O?(P+Math.sqrt(P*P-4*O*k))/(2*O):k/P);return{x:n+_+b*m,y:u+j+E*m,r:m}}
|
|
},{"../array":404}],277:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packEnclose=x,exports.default=function(e){return x(e),e};var e=require("./enclose"),r=n(e);function n(e){return e&&e.__esModule?e:{default:e}}function t(e,r,n){var t=e.x,u=e.y,i=r.r+n.r,o=e.r+n.r,x=r.x-t,s=r.y-u,f=x*x+s*s;if(f){var _=.5+((o*=o)-(i*=i))/(2*f),v=Math.sqrt(Math.max(0,2*i*(o+f)-(o-=f)*o-i*i))/(2*f);n.x=t+_*x+v*s,n.y=u+_*s-v*x}else n.x=t+o,n.y=u}function u(e,r){var n=r.x-e.x,t=r.y-e.y,u=e.r+r.r;return u*u-1e-6>n*n+t*t}function i(e){var r=e._,n=e.next._,t=r.r+n.r,u=(r.x*n.r+n.x*r.r)/t,i=(r.y*n.r+n.y*r.r)/t;return u*u+i*i}function o(e){this._=e,this.next=null,this.previous=null}function x(e){if(!(f=e.length))return 0;var n,x,s,f,_,v,l,p,a,c,y;if((n=e[0]).x=0,n.y=0,!(f>1))return n.r;if(x=e[1],n.x=-x.r,x.x=n.r,x.y=0,!(f>2))return n.r+x.r;t(x,n,s=e[2]),n=new o(n),x=new o(x),s=new o(s),n.next=s.previous=x,x.next=n.previous=s,s.next=x.previous=n;e:for(l=3;l<f;++l){t(n._,x._,s=e[l]),s=new o(s),p=x.next,a=n.previous,c=x._.r,y=n._.r;do{if(c<=y){if(u(p._,s._)){x=p,n.next=x,x.previous=n,--l;continue e}c+=p._.r,p=p.next}else{if(u(a._,s._)){(n=a).next=x,x.previous=n,--l;continue e}y+=a._.r,a=a.previous}}while(p!==a.next);for(s.previous=n,s.next=x,n.next=x.previous=x=s,_=i(n);(s=s.next)!==x;)(v=i(s))<_&&(n=s,_=v);x=n.next}for(n=[x._],s=x;(s=s.next)!==x;)n.push(s._);for(s=(0,r.default)(n),l=0;l<f;++l)(n=e[l]).x-=s.x,n.y-=s.y;return s.r}
|
|
},{"./enclose":278}],355:[function(require,module,exports) {
|
|
"use strict";function e(e){return null==e?null:r(e)}function r(e){if("function"!=typeof e)throw new Error;return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.optional=e,exports.required=r;
|
|
},{}],403:[function(require,module,exports) {
|
|
"use strict";function e(){return 0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.constantZero=e,exports.default=function(e){return function(){return e}};
|
|
},{}],276:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=null,u=1,a=1,l=r.constantZero;function s(n){return n.x=u/2,n.y=a/2,e?n.eachBefore(c(e)).eachAfter(i(l,.5)).eachBefore(f(1)):n.eachBefore(c(o)).eachAfter(i(r.constantZero,1)).eachAfter(i(l,n.r/Math.min(u,a))).eachBefore(f(Math.min(u,a)/(2*n.r))),n}return s.radius=function(r){return arguments.length?(e=(0,n.optional)(r),s):e},s.size=function(e){return arguments.length?(u=+e[0],a=+e[1],s):[u,a]},s.padding=function(e){return arguments.length?(l="function"==typeof e?e:(0,t.default)(+e),s):l},s};var e=require("./siblings"),n=require("../accessors"),r=require("../constant"),t=u(r);function u(e){return e&&e.__esModule?e:{default:e}}function o(e){return Math.sqrt(e.value)}function c(e){return function(n){n.children||(n.r=Math.max(0,+e(n)||0))}}function i(n,r){return function(t){if(u=t.children){var u,o,c,i=u.length,f=n(t)*r||0;if(f)for(o=0;o<i;++o)u[o].r+=f;if(c=(0,e.packEnclose)(u),f)for(o=0;o<i;++o)u[o].r-=f;t.r=c+f}}}function f(e){return function(n){var r=n.parent;n.r*=e,r&&(n.x=r.x+e*n.x,n.y=r.y+e*n.y)}}
|
|
},{"./siblings":277,"../accessors":355,"../constant":403}],398:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)};
|
|
},{}],281:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,l,r,u){for(var a,o=e.children,n=-1,s=o.length,v=e.value&&(r-t)/e.value;++n<s;)(a=o[n]).y0=l,a.y1=u,a.x0=t,a.x1=t+=a.value*v};
|
|
},{}],144:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=1,t=1,u=0,i=!1;function o(o){var d=o.height+1;return o.x0=o.y0=u,o.x1=e,o.y1=t/d,o.eachBefore(function(e,r){return function(t){t.children&&(0,n.default)(t,t.x0,e*(t.depth+1)/r,t.x1,e*(t.depth+2)/r);var i=t.x0,o=t.y0,d=t.x1-u,f=t.y1-u;d<i&&(i=d=(i+d)/2),f<o&&(o=f=(o+f)/2),t.x0=i,t.y0=o,t.x1=d,t.y1=f}}(t,d)),i&&o.eachBefore(r.default),o}return o.round=function(e){return arguments.length?(i=!!e,o):i},o.size=function(r){return arguments.length?(e=+r[0],t=+r[1],o):[e,t]},o.padding=function(e){return arguments.length?(u=+e,o):u},o};var e=require("./treemap/round"),r=u(e),t=require("./treemap/dice"),n=u(t);function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./treemap/round":398,"./treemap/dice":281}],145:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var c=i,h=u;function f(r){var i,u,f,l,d,a,p,s=r.length,w=new Array(s),g={};for(u=0;u<s;++u)i=r[u],d=w[u]=new e.Node(i),null!=(a=c(i,u,r))&&(a+="")&&(g[p=n+(d.id=a)]=p in g?o:d);for(u=0;u<s;++u)if(d=w[u],null!=(a=h(r[u],u,r))&&(a+="")){if(!(l=g[n+a]))throw new Error("missing: "+a);if(l===o)throw new Error("ambiguous: "+a);l.children?l.children.push(d):l.children=[d],d.parent=l}else{if(f)throw new Error("multiple roots");f=d}if(!f)throw new Error("no root");if(f.parent=t,f.eachBefore(function(r){r.depth=r.parent.depth+1,--s}).eachBefore(e.computeHeight),f.parent=null,s>0)throw new Error("cycle");return f}return f.id=function(e){return arguments.length?(c=(0,r.required)(e),f):c},f.parentId=function(e){return arguments.length?(h=(0,r.required)(e),f):h},f};var r=require("./accessors"),e=require("./hierarchy/index"),n="$",t={depth:-1},o={};function i(r){return r.id}function u(r){return r.parentId}
|
|
},{"./accessors":355,"./hierarchy/index":275}],146:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n=e,a=1,l=1,o=null;function f(e){var t=h(e);if(t.eachAfter(p),t.parent.m=-t.z,t.eachBefore(s),o)e.eachBefore(d);else{var r=e,i=e,u=e;e.eachBefore(function(n){n.x<r.x&&(r=n),n.x>i.x&&(i=n),n.depth>u.depth&&(u=n)});var c=r===i?1:n(r,i)/2,f=c-r.x,m=a/(i.x+c+f),z=l/(u.depth||1);e.eachBefore(function(n){n.x=(n.x+f)*m,n.y=n.depth*z})}return e}function p(e){var a=e.children,h=e.parent.children,l=e.i?h[e.i-1]:null;if(a){u(e);var o=(a[0].z+a[a.length-1].z)/2;l?(e.z=l.z+n(e._,l._),e.m=e.z-o):e.z=o}else l&&(e.z=l.z+n(e._,l._));e.parent.A=function(e,u,a){if(u){for(var h,l=e,o=e,f=u,p=l.parent.children[0],s=l.m,d=o.m,m=f.m,z=p.m;f=r(f),l=t(l),f&&l;)p=t(p),(o=r(o)).a=e,(h=f.z+m-l.z-s+n(f._,l._))>0&&(i(c(f,e,a),e,h),s+=h,d+=h),m+=f.m,s+=l.m,z+=p.m,d+=o.m;f&&!r(o)&&(o.t=f,o.m+=m-d),l&&!t(p)&&(p.t=l,p.m+=s-z,a=e)}return a}(e,l,e.parent.A||h[0])}function s(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function d(n){n.x*=a,n.y=n.depth*l}return f.separation=function(e){return arguments.length?(n=e,f):n},f.size=function(n){return arguments.length?(o=!1,a=+n[0],l=+n[1],f):o?null:[a,l]},f.nodeSize=function(n){return arguments.length?(o=!0,a=+n[0],l=+n[1],f):o?[a,l]:null},f};var n=require("./hierarchy/index");function e(n,e){return n.parent===e.parent?1:2}function t(n){var e=n.children;return e?e[0]:n.t}function r(n){var e=n.children;return e?e[e.length-1]:n.t}function i(n,e,t){var r=t/(e.i-n.i);e.c-=r,e.s+=t,n.c+=r,e.z+=t,e.m+=t}function u(n){for(var e,t=0,r=0,i=n.children,u=i.length;--u>=0;)(e=i[u]).z+=t,e.m+=t,t+=e.s+(r+=e.c)}function c(n,e,t){return n.a.parent===e.parent?n.a:t}function a(n,e){this._=n,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=e}function h(n){for(var e,t,r,i,u,c=new a(n,0),h=[c];e=h.pop();)if(r=e._.children)for(e.children=new Array(u=r.length),i=u-1;i>=0;--i)h.push(t=e.children[i]=new a(r[i],i)),t.parent=e;return(c.parent=new a(null,0)).children=[c],c}a.prototype=Object.create(n.Node.prototype);
|
|
},{"./hierarchy/index":275}],282:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,l,r,u){for(var a,o=e.children,n=-1,s=o.length,v=e.value&&(u-l)/e.value;++n<s;)(a=o[n]).x0=t,a.x1=r,a.y0=l,a.y1=l+=a.value*v};
|
|
},{}],284:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.phi=void 0,exports.squarifyRatio=o;var e=require("./dice"),r=i(e),t=require("./slice"),u=i(t);function i(e){return e&&e.__esModule?e:{default:e}}var a=exports.phi=(1+Math.sqrt(5))/2;function o(e,t,i,a,o,n){for(var l,c,d,f,s,h,p,v,x,M,q,_=[],m=t.children,b=0,y=0,g=m.length,j=t.value;b<g;){d=o-i,f=n-a;do{s=m[y++].value}while(!s&&y<g);for(h=p=s,q=s*s*(M=Math.max(f/d,d/f)/(j*e)),x=Math.max(p/q,q/h);y<g;++y){if(s+=c=m[y].value,c<h&&(h=c),c>p&&(p=c),q=s*s*M,(v=Math.max(p/q,q/h))>x){s-=c;break}x=v}_.push(l={value:s,dice:d<f,children:m.slice(b,y)}),l.dice?(0,r.default)(l,i,a,o,j?a+=f*s/j:n):(0,u.default)(l,i,a,j?i+=d*s/j:o,n),j-=s,b=y}return _}exports.default=function e(r){function t(e,t,u,i,a){o(r,e,t,u,i,a)}return t.ratio=function(r){return e((r=+r)>1?r:1)},t}(a);
|
|
},{"./dice":281,"./slice":282}],279:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n=r.default,e=!1,i=1,f=1,a=[0],c=o.constantZero,p=o.constantZero,g=o.constantZero,l=o.constantZero,h=o.constantZero;function s(n){return n.x0=n.y0=0,n.x1=i,n.y1=f,n.eachBefore(y),a=[0],e&&n.eachBefore(t.default),n}function y(t){var e=a[t.depth],r=t.x0+e,u=t.y0+e,o=t.x1-e,d=t.y1-e;o<r&&(r=o=(r+o)/2),d<u&&(u=d=(u+d)/2),t.x0=r,t.y0=u,t.x1=o,t.y1=d,t.children&&(e=a[t.depth+1]=c(t)/2,r+=h(t)-e,u+=p(t)-e,o-=g(t)-e,d-=l(t)-e,o<r&&(r=o=(r+o)/2),d<u&&(u=d=(u+d)/2),n(t,r,u,o,d))}return s.round=function(n){return arguments.length?(e=!!n,s):e},s.size=function(n){return arguments.length?(i=+n[0],f=+n[1],s):[i,f]},s.tile=function(t){return arguments.length?(n=(0,u.required)(t),s):n},s.padding=function(n){return arguments.length?s.paddingInner(n).paddingOuter(n):s.paddingInner()},s.paddingInner=function(n){return arguments.length?(c="function"==typeof n?n:(0,d.default)(+n),s):c},s.paddingOuter=function(n){return arguments.length?s.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):s.paddingTop()},s.paddingTop=function(n){return arguments.length?(p="function"==typeof n?n:(0,d.default)(+n),s):p},s.paddingRight=function(n){return arguments.length?(g="function"==typeof n?n:(0,d.default)(+n),s):g},s.paddingBottom=function(n){return arguments.length?(l="function"==typeof n?n:(0,d.default)(+n),s):l},s.paddingLeft=function(n){return arguments.length?(h="function"==typeof n?n:(0,d.default)(+n),s):h},s};var n=require("./round"),t=i(n),e=require("./squarify"),r=i(e),u=require("../accessors"),o=require("../constant"),d=i(o);function i(n){return n&&n.__esModule?n:{default:n}}
|
|
},{"./round":398,"./squarify":284,"../accessors":355,"../constant":403}],280:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,r,a,t,v){var n,o,u=e.children,f=u.length,i=new Array(f+1);for(i[0]=o=n=0;n<f;++n)i[n+1]=o+=u[n].value;!function e(r,a,t,v,n,o,f){if(r>=a-1){var l=u[r];return l.x0=v,l.y0=n,l.x1=o,void(l.y1=f)}var s=i[r],c=t/2+s,d=r+1,x=a-1;for(;d<x;){var y=d+x>>>1;i[y]<c?d=y+1:x=y}c-i[d-1]<i[d]-c&&r+1<d&&--d;var p=i[d]-s,h=t-p;if(o-v>f-n){var _=(v*h+o*p)/t;e(r,d,p,v,n,_,f),e(d,a,h,_,n,o,f)}else{var b=(n*h+f*p)/t;e(r,d,p,v,n,o,b),e(d,a,h,v,b,o,f)}}(0,f,e.value,r,a,t,v)};
|
|
},{}],283:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,u,d,i,l){(1&e.depth?r.default:t.default)(e,u,d,i,l)};var e=require("./dice"),t=d(e),u=require("./slice"),r=d(u);function d(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./dice":281,"./slice":282}],285:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./dice"),r=a(e),u=require("./slice"),i=a(u),t=require("./squarify");function a(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(u){function a(e,a,l,f,n){if((o=e._squarify)&&o.ratio===u)for(var o,s,c,d,v,q=-1,_=o.length,y=e.value;++q<_;){for(c=(s=o[q]).children,d=s.value=0,v=c.length;d<v;++d)s.value+=c[d].value;s.dice?(0,r.default)(s,a,l,f,l+=(n-l)*s.value/y):(0,i.default)(s,a,l,a+=(f-a)*s.value/y,n),y-=s.value}else e._squarify=o=(0,t.squarifyRatio)(u,e,a,l,f,n),o.ratio=u}return a.ratio=function(r){return e((r=+r)>1?r:1)},a}(t.phi);
|
|
},{"./dice":281,"./slice":282,"./squarify":284}],43:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/cluster");Object.defineProperty(exports,"cluster",{enumerable:!0,get:function(){return m(e).default}});var r=require("./src/hierarchy/index");Object.defineProperty(exports,"hierarchy",{enumerable:!0,get:function(){return m(r).default}});var t=require("./src/pack/index");Object.defineProperty(exports,"pack",{enumerable:!0,get:function(){return m(t).default}});var n=require("./src/pack/siblings");Object.defineProperty(exports,"packSiblings",{enumerable:!0,get:function(){return m(n).default}});var u=require("./src/pack/enclose");Object.defineProperty(exports,"packEnclose",{enumerable:!0,get:function(){return m(u).default}});var a=require("./src/partition");Object.defineProperty(exports,"partition",{enumerable:!0,get:function(){return m(a).default}});var i=require("./src/stratify");Object.defineProperty(exports,"stratify",{enumerable:!0,get:function(){return m(i).default}});var c=require("./src/tree");Object.defineProperty(exports,"tree",{enumerable:!0,get:function(){return m(c).default}});var f=require("./src/treemap/index");Object.defineProperty(exports,"treemap",{enumerable:!0,get:function(){return m(f).default}});var o=require("./src/treemap/binary");Object.defineProperty(exports,"treemapBinary",{enumerable:!0,get:function(){return m(o).default}});var p=require("./src/treemap/dice");Object.defineProperty(exports,"treemapDice",{enumerable:!0,get:function(){return m(p).default}});var s=require("./src/treemap/slice");Object.defineProperty(exports,"treemapSlice",{enumerable:!0,get:function(){return m(s).default}});var l=require("./src/treemap/sliceDice");Object.defineProperty(exports,"treemapSliceDice",{enumerable:!0,get:function(){return m(l).default}});var d=require("./src/treemap/squarify");Object.defineProperty(exports,"treemapSquarify",{enumerable:!0,get:function(){return m(d).default}});var b=require("./src/treemap/resquarify");function m(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"treemapResquarify",{enumerable:!0,get:function(){return m(b).default}});
|
|
},{"./src/cluster":143,"./src/hierarchy/index":275,"./src/pack/index":276,"./src/pack/siblings":277,"./src/pack/enclose":278,"./src/partition":144,"./src/stratify":145,"./src/tree":146,"./src/treemap/index":279,"./src/treemap/binary":280,"./src/treemap/dice":281,"./src/treemap/slice":282,"./src/treemap/sliceDice":283,"./src/treemap/squarify":284,"./src/treemap/resquarify":285}],138:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r=-1,o=e.length,u=e[o-1],n=0;++r<o;)t=u,u=e[r],n+=t[1]*u[0]-t[0]*u[1];return n/2};
|
|
},{}],139:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r,o=-1,u=e.length,n=0,s=0,f=e[u-1],l=0;++o<u;)t=f,f=e[o],l+=r=t[0]*f[1]-f[0]*t[1],n+=(t[0]+f[0])*r,s+=(t[1]+f[1])*r;return[n/(l*=3),s/l]};
|
|
},{}],354:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(t[1]-e[1])*(r[0]-e[0])};
|
|
},{}],140:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r){if((t=r.length)<3)return null;var e,t,o=new Array(t),f=new Array(t);for(e=0;e<t;++e)o[e]=[+r[e][0],+r[e][1],e];for(o.sort(n),e=0;e<t;++e)f[e]=[o[e][0],-o[e][1]];var l=u(o),s=u(f),a=s[0]===l[0],i=s[s.length-1]===l[l.length-1],c=[];for(e=l.length-1;e>=0;--e)c.push(r[o[l[e]][2]]);for(e=+a;e<s.length-i;++e)c.push(r[o[s[e]][2]]);return c};var r=require("./cross"),e=t(r);function t(r){return r&&r.__esModule?r:{default:r}}function n(r,e){return r[0]-e[0]||r[1]-e[1]}function u(r){for(var t=r.length,n=[0,1],u=2,o=2;o<t;++o){for(;u>1&&(0,e.default)(r[n[u-2]],r[n[u-1]],r[o])<=0;)--u;n[u++]=o}return n.slice(0,u)}
|
|
},{"./cross":354}],141:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){for(var r,o,u=e.length,n=e[u-1],s=t[0],f=t[1],l=n[0],a=n[1],c=!1,d=0;d<u;++d)r=(n=e[d])[0],(o=n[1])>f!=a>f&&s<(l-r)*(f-o)/(a-o)+r&&(c=!c),l=r,a=o;return c};
|
|
},{}],142:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r,o=-1,s=e.length,u=e[s-1],n=u[0],a=u[1],f=0;++o<s;)t=n,r=a,t-=n=(u=e[o])[0],r-=a=u[1],f+=Math.sqrt(t*t+r*r);return f};
|
|
},{}],42:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/area");Object.defineProperty(exports,"polygonArea",{enumerable:!0,get:function(){return u(e).default}});var r=require("./src/centroid");Object.defineProperty(exports,"polygonCentroid",{enumerable:!0,get:function(){return u(r).default}});var t=require("./src/hull");Object.defineProperty(exports,"polygonHull",{enumerable:!0,get:function(){return u(t).default}});var n=require("./src/contains");Object.defineProperty(exports,"polygonContains",{enumerable:!0,get:function(){return u(n).default}});var o=require("./src/length");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"polygonLength",{enumerable:!0,get:function(){return u(o).default}});
|
|
},{"./src/area":138,"./src/centroid":139,"./src/hull":140,"./src/contains":141,"./src/length":142}],369:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.slice=[].slice;
|
|
},{}],148:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var t=require("./array"),i={};function r(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function a(t){if(!t._start)try{n(t)}catch(i){if(t._tasks[t._ended+t._active-1])s(t,i);else if(!t._data)throw i}}function n(t){for(;t._start=t._waiting&&t._active<t._size;){var r=t._ended+t._active,a=t._tasks[r],n=a.length-1,s=a[n];a[n]=e(t,r),--t._waiting,++t._active,a=s.apply(null,a),t._tasks[r]&&(t._tasks[r]=a||i)}}function e(t,i){return function(r,n){t._tasks[i]&&(--t._active,++t._ended,t._tasks[i]=null,null==t._error&&(null!=r?s(t,r):(t._data[i]=n,t._waiting?a(t):l(t))))}}function s(t,i){var r,a=t._tasks.length;for(t._error=i,t._data=void 0,t._waiting=NaN;--a>=0;)if((r=t._tasks[a])&&(t._tasks[a]=null,r.abort))try{r.abort()}catch(i){}t._active=NaN,l(t)}function l(t){if(!t._active&&t._call){var i=t._data;t._data=void 0,t._call(t._error,i)}}function o(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new r(t)}r.prototype=o.prototype={constructor:r,defer:function(i){if("function"!=typeof i)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var r=t.slice.call(arguments,1);return r.push(i),++this._waiting,this._tasks.push(r),a(this),this},abort:function(){return null==this._error&&s(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(i,r){t.apply(null,[i].concat(r))},l(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,l(this),this}};
|
|
},{"./array":369}],45:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/queue");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"queue",{enumerable:!0,get:function(){return r(e).default}});
|
|
},{"./src/queue":148}],368:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return Math.random()};
|
|
},{}],149:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),u=t(e);function t(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(u){function t(e,t){return e=null==e?0:+e,t=null==t?1:+t,1===arguments.length?(t=e,e=0):t-=e,function(){return u()*t+e}}return t.source=e,t}(u.default);
|
|
},{"./defaultSource":368}],150:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),u=r(e);function r(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(u){function r(e,r){var t,l;return e=null==e?0:+e,r=null==r?1:+r,function(){var n;if(null!=t)n=t,t=null;else do{t=2*u()-1,n=2*u()-1,l=t*t+n*n}while(!l||l>1);return e+r*n*Math.sqrt(-2*Math.log(l)/l)}}return r.source=e,r}(u.default);
|
|
},{"./defaultSource":368}],151:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),r=n(e),u=require("./normal"),t=n(u);function n(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(r){function u(){var e=t.default.source(r).apply(this,arguments);return function(){return Math.exp(e())}}return u.source=e,u}(r.default);
|
|
},{"./defaultSource":368,"./normal":150}],153:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),r=u(e);function u(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(r){function u(e){return function(){for(var u=0,t=0;t<e;++t)u+=r();return u}}return u.source=e,u}(r.default);
|
|
},{"./defaultSource":368}],152:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),r=n(e),u=require("./irwinHall"),t=n(u);function n(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(r){function u(e){var u=t.default.source(r)(e);return function(){return u()/e}}return u.source=e,u}(r.default);
|
|
},{"./defaultSource":368,"./irwinHall":153}],154:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./defaultSource"),t=u(e);function u(e){return e&&e.__esModule?e:{default:e}}exports.default=function e(t){function u(e){return function(){return-Math.log(1-t())/e}}return u.source=e,u}(t.default);
|
|
},{"./defaultSource":368}],46:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/uniform");Object.defineProperty(exports,"randomUniform",{enumerable:!0,get:function(){return a(e).default}});var r=require("./src/normal");Object.defineProperty(exports,"randomNormal",{enumerable:!0,get:function(){return a(r).default}});var t=require("./src/logNormal");Object.defineProperty(exports,"randomLogNormal",{enumerable:!0,get:function(){return a(t).default}});var n=require("./src/bates");Object.defineProperty(exports,"randomBates",{enumerable:!0,get:function(){return a(n).default}});var o=require("./src/irwinHall");Object.defineProperty(exports,"randomIrwinHall",{enumerable:!0,get:function(){return a(o).default}});var u=require("./src/exponential");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"randomExponential",{enumerable:!0,get:function(){return a(u).default}});
|
|
},{"./src/uniform":149,"./src/normal":150,"./src/logNormal":151,"./src/bates":152,"./src/irwinHall":153,"./src/exponential":154}],157:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(o,l){var u,s,i,a,c=(0,n.dispatch)("beforesend","progress","load","error"),f=(0,e.map)(),p=new XMLHttpRequest,d=null,h=null,g=0;function y(e){var n,t=p.status;if(!t&&r(p)||t>=200&&t<300||304===t){if(i)try{n=i.call(u,p)}catch(e){return void c.call("error",u,e)}else n=p;c.call("load",u,n)}else c.call("error",u,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in p||!/^(http(s)?:)?\/\//.test(o)||(p=new XDomainRequest),"onload"in p?p.onload=p.onerror=p.ontimeout=y:p.onreadystatechange=function(e){p.readyState>3&&y(e)},p.onprogress=function(e){c.call("progress",u,e)},u={header:function(e,n){return e=(e+"").toLowerCase(),arguments.length<2?f.get(e):(null==n?f.remove(e):f.set(e,n+""),u)},mimeType:function(e){return arguments.length?(s=null==e?null:e+"",u):s},responseType:function(e){return arguments.length?(a=e,u):a},timeout:function(e){return arguments.length?(g=+e,u):g},user:function(e){return arguments.length<1?d:(d=null==e?null:e+"",u)},password:function(e){return arguments.length<1?h:(h=null==e?null:e+"",u)},response:function(e){return i=e,u},get:function(e,n){return u.send("GET",e,n)},post:function(e,n){return u.send("POST",e,n)},send:function(e,n,r){return p.open(e,o,!0,d,h),null==s||f.has("accept")||f.set("accept",s+",*/*"),p.setRequestHeader&&f.each(function(e,n){p.setRequestHeader(n,e)}),null!=s&&p.overrideMimeType&&p.overrideMimeType(s),null!=a&&(p.responseType=a),g>0&&(p.timeout=g),null==r&&"function"==typeof n&&(r=n,n=null),null!=r&&1===r.length&&(r=t(r)),null!=r&&u.on("error",r).on("load",function(e){r(null,e)}),c.call("beforesend",u,p),p.send(null==n?null:n),u},abort:function(){return p.abort(),u},on:function(){var e=c.on.apply(c,arguments);return e===c?u:e}},null!=l){if("function"!=typeof l)throw new Error("invalid callback: "+l);return u.get(l)}return u};var e=require("d3-collection"),n=require("d3-dispatch");function t(e){return function(n,t){e(null==n?t:null)}}function r(e){var n=e.responseType;return n&&"text"!==n?e.response:e.responseText}
|
|
},{"d3-collection":34,"d3-dispatch":35}],373:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return function(u,n){var o=(0,r.default)(u).mimeType(e).response(t);if(null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return o.get(n)}return o}};var e=require("./request"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./request":157}],158:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./type"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,t.default)("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)});
|
|
},{"./type":373}],159:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./type"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,t.default)("application/json",function(e){return JSON.parse(e.responseText)});
|
|
},{"./type":373}],160:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./type"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,t.default)("text/plain",function(e){return e.responseText});
|
|
},{"./type":373}],161:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./type"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,r.default)("application/xml",function(e){var r=e.responseXML;if(!r)throw new Error("parse error");return r});
|
|
},{"./type":373}],374:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return function(u,o,s){arguments.length<3&&(s=o,o=null);var f=(0,r.default)(u).mimeType(e);return f.row=function(e){return arguments.length?f.response(n(t,o=e)):o},f.row(o),s?f.get(s):f}};var e=require("./request"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function n(e,r){return function(t){return e(t.responseText,r)}}
|
|
},{"./request":157}],162:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-dsv"),r=require("./dsv"),t=s(r);function s(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,t.default)("text/csv",e.csvParse);
|
|
},{"d3-dsv":37,"./dsv":374}],163:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-dsv"),t=require("./dsv"),r=s(t);function s(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,r.default)("text/tab-separated-values",e.tsvParse);
|
|
},{"d3-dsv":37,"./dsv":374}],48:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/request");Object.defineProperty(exports,"request",{enumerable:!0,get:function(){return c(e).default}});var r=require("./src/html");Object.defineProperty(exports,"html",{enumerable:!0,get:function(){return c(r).default}});var t=require("./src/json");Object.defineProperty(exports,"json",{enumerable:!0,get:function(){return c(t).default}});var u=require("./src/text");Object.defineProperty(exports,"text",{enumerable:!0,get:function(){return c(u).default}});var n=require("./src/xml");Object.defineProperty(exports,"xml",{enumerable:!0,get:function(){return c(n).default}});var o=require("./src/csv");Object.defineProperty(exports,"csv",{enumerable:!0,get:function(){return c(o).default}});var s=require("./src/tsv");function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"tsv",{enumerable:!0,get:function(){return c(s).default}});
|
|
},{"./src/request":157,"./src/html":158,"./src/json":159,"./src/text":160,"./src/xml":161,"./src/csv":162,"./src/tsv":163}],375:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Array.prototype,r=exports.map=e.map,t=exports.slice=e.slice;
|
|
},{}],168:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.implicit=void 0,exports.default=t;var e=require("d3-collection"),n=require("./array"),r=exports.implicit={name:"implicit"};function t(i){var u=(0,e.map)(),l=[],o=r;function c(e){var n=e+"",t=u.get(n);if(!t){if(o!==r)return o;u.set(n,t=l.push(e))}return i[(t-1)%i.length]}return i=null==i?[]:n.slice.call(i),c.domain=function(n){if(!arguments.length)return l.slice();l=[],u=(0,e.map)();for(var r,t,i=-1,o=n.length;++i<o;)u.has(t=(r=n[i])+"")||u.set(t,l.push(r));return c},c.range=function(e){return arguments.length?(i=n.slice.call(e),c):i.slice()},c.unknown=function(e){return arguments.length?(o=e,c):o},c.copy=function(){return t().domain(l).range(i).unknown(o)},c}
|
|
},{"d3-collection":34,"./array":375}],164:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u,exports.point=i;var n=require("d3-array"),t=require("./ordinal"),r=e(t);function e(n){return n&&n.__esModule?n:{default:n}}function u(){var t,e,a=(0,r.default)().unknown(void 0),i=a.domain,d=a.range,o=[0,1],g=!1,c=0,f=0,l=.5;function h(){var r=i().length,u=o[1]<o[0],a=o[u-0],h=o[1-u];t=(h-a)/Math.max(1,r-c+2*f),g&&(t=Math.floor(t)),a+=(h-a-t*(r-c))*l,e=t*(1-c),g&&(a=Math.round(a),e=Math.round(e));var p=(0,n.range)(r).map(function(n){return a+t*n});return d(u?p.reverse():p)}return delete a.unknown,a.domain=function(n){return arguments.length?(i(n),h()):i()},a.range=function(n){return arguments.length?(o=[+n[0],+n[1]],h()):o.slice()},a.rangeRound=function(n){return o=[+n[0],+n[1]],g=!0,h()},a.bandwidth=function(){return e},a.step=function(){return t},a.round=function(n){return arguments.length?(g=!!n,h()):g},a.padding=function(n){return arguments.length?(c=f=Math.max(0,Math.min(1,n)),h()):c},a.paddingInner=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),h()):c},a.paddingOuter=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),h()):f},a.align=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),h()):l},a.copy=function(){return u().domain(i()).range(o).round(g).paddingInner(c).paddingOuter(f).align(l)},h()}function a(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return a(t())},n}function i(){return a(u().paddingInner(1))}
|
|
},{"d3-array":30,"./ordinal":168}],376:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return+e};
|
|
},{}],377:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.deinterpolateLinear=l,exports.copy=g,exports.default=v;var n=require("d3-array"),r=require("d3-interpolate"),e=require("./array"),t=require("./constant"),u=a(t),i=require("./number"),o=a(i);function a(n){return n&&n.__esModule?n:{default:n}}var c=[0,1];function l(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:(0,u.default)(r)}function f(n){return function(r,e){var t=n(r=+r,e=+e);return function(n){return n<=r?0:n>=e?1:t(n)}}}function s(n){return function(r,e){var t=n(r=+r,e=+e);return function(n){return n<=0?r:n>=1?e:t(n)}}}function p(n,r,e,t){var u=n[0],i=n[1],o=r[0],a=r[1];return i<u?(u=e(i,u),o=t(a,o)):(u=e(u,i),o=t(o,a)),function(n){return o(u(n))}}function d(r,e,t,u){var i=Math.min(r.length,e.length)-1,o=new Array(i),a=new Array(i),c=-1;for(r[i]<r[0]&&(r=r.slice().reverse(),e=e.slice().reverse());++c<i;)o[c]=t(r[c],r[c+1]),a[c]=u(e[c],e[c+1]);return function(e){var t=(0,n.bisect)(r,e,1,i)-1;return a[t](o[t](e))}}function g(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function v(n,t){var u,i,a,g=c,v=c,h=r.interpolate,m=!1;function y(){return u=Math.min(g.length,v.length)>2?d:p,i=a=null,q}function q(r){return(i||(i=u(g,v,m?f(n):n,h)))(+r)}return q.invert=function(n){return(a||(a=u(v,g,l,m?s(t):t)))(+n)},q.domain=function(n){return arguments.length?(g=e.map.call(n,o.default),y()):g.slice()},q.range=function(n){return arguments.length?(v=e.slice.call(n),y()):v.slice()},q.rangeRound=function(n){return v=e.slice.call(n),h=r.interpolateRound,y()},q.clamp=function(n){return arguments.length?(m=!!n,y()):m},q.interpolate=function(n){return arguments.length?(h=n,y()):h},y()}
|
|
},{"d3-array":30,"d3-interpolate":55,"./array":375,"./constant":334,"./number":376}],378:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(a,i,s){var t,c=a[0],n=a[a.length-1],o=(0,e.tickStep)(c,n,null==i?10:i);switch((s=(0,r.formatSpecifier)(null==s?",f":s)).type){case"s":var p=Math.max(Math.abs(c),Math.abs(n));return null!=s.precision||isNaN(t=(0,r.precisionPrefix)(o,p))||(s.precision=t),(0,r.formatPrefix)(s,p);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(t=(0,r.precisionRound)(o,Math.max(Math.abs(c),Math.abs(n))))||(s.precision=t-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(t=(0,r.precisionFixed)(o))||(s.precision=t-2*("%"===s.type))}return(0,r.format)(s)};var e=require("d3-array"),r=require("d3-format");
|
|
},{"d3-array":30,"d3-format":39}],166:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linearish=a,exports.default=c;var e=require("d3-array"),t=require("d3-interpolate"),r=require("./continuous"),n=u(r),i=require("./tickFormat"),o=u(i);function u(e){return e&&e.__esModule?e:{default:e}}function a(t){var r=t.domain;return t.ticks=function(t){var n=r();return(0,e.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(e,t){return(0,o.default)(r(),e,t)},t.nice=function(n){null==n&&(n=10);var i,o=r(),u=0,a=o.length-1,c=o[u],l=o[a];return l<c&&(i=c,c=l,l=i,i=u,u=a,a=i),(i=(0,e.tickIncrement)(c,l,n))>0?(c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i,i=(0,e.tickIncrement)(c,l,n)):i<0&&(c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i,i=(0,e.tickIncrement)(c,l,n)),i>0?(o[u]=Math.floor(c/i)*i,o[a]=Math.ceil(l/i)*i,r(o)):i<0&&(o[u]=Math.ceil(c*i)/i,o[a]=Math.floor(l*i)/i,r(o)),t},t}function c(){var e=(0,n.default)(r.deinterpolateLinear,t.interpolateNumber);return e.copy=function(){return(0,r.copy)(e,c())},a(e)}
|
|
},{"d3-array":30,"d3-interpolate":55,"./continuous":377,"./tickFormat":378}],165:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=require("./array"),r=require("./linear"),n=require("./number"),t=u(n);function u(e){return e&&e.__esModule?e:{default:e}}function i(){var n=[0,1];function u(e){return+e}return u.invert=u,u.domain=u.range=function(r){return arguments.length?(n=e.map.call(r,t.default),u):n.slice()},u.copy=function(){return i().domain(n)},(0,r.linearish)(u)}
|
|
},{"./array":375,"./linear":166,"./number":376}],380:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var r,l=0,o=(e=e.slice()).length-1,s=e[l],u=e[o];return u<s&&(r=l,l=o,o=r,r=s,s=u,u=r),e[l]=t.floor(s),e[o]=t.ceil(u),e};
|
|
},{}],167:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=p;var t=require("d3-array"),n=require("d3-format"),r=require("./constant"),e=f(r),u=require("./nice"),o=f(u),i=require("./continuous"),a=f(i);function f(t){return t&&t.__esModule?t:{default:t}}function c(t,n){return(n=Math.log(n/t))?function(r){return Math.log(r/t)/n}:(0,e.default)(n)}function l(t,n){return t<0?function(r){return-Math.pow(-n,r)*Math.pow(-t,1-r)}:function(r){return Math.pow(n,r)*Math.pow(t,1-r)}}function h(t){return isFinite(t)?+("1e"+t):t<0?0:t}function M(t){return 10===t?h:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function s(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function d(t){return function(n){return-t(-n)}}function p(){var r=(0,a.default)(c,l).domain([1,10]),e=r.domain,u=10,f=s(10),h=M(10);function g(){return f=s(u),h=M(u),e()[0]<0&&(f=d(f),h=d(h)),r}return r.base=function(t){return arguments.length?(u=+t,g()):u},r.domain=function(t){return arguments.length?(e(t),g()):e()},r.ticks=function(n){var r,o=e(),i=o[0],a=o[o.length-1];(r=a<i)&&(s=i,i=a,a=s);var c,l,M,s=f(i),d=f(a),p=null==n?10:+n,g=[];if(!(u%1)&&d-s<p){if(s=Math.round(s)-1,d=Math.round(d)+1,i>0){for(;s<d;++s)for(l=1,c=h(s);l<u;++l)if(!((M=c*l)<i)){if(M>a)break;g.push(M)}}else for(;s<d;++s)for(l=u-1,c=h(s);l>=1;--l)if(!((M=c*l)<i)){if(M>a)break;g.push(M)}}else g=(0,t.ticks)(s,d,Math.min(d-s,p)).map(h);return r?g.reverse():g},r.tickFormat=function(t,e){if(null==e&&(e=10===u?".0e":","),"function"!=typeof e&&(e=(0,n.format)(e)),t===1/0)return e;null==t&&(t=10);var o=Math.max(1,u*t/r.ticks().length);return function(t){var n=t/h(Math.round(f(t)));return n*u<u-.5&&(n*=u),n<=o?e(t):""}},r.nice=function(){return e((0,o.default)(e(),{floor:function(t){return h(Math.floor(f(t)))},ceil:function(t){return h(Math.ceil(f(t)))}}))},r.copy=function(){return(0,i.copy)(r,p().base(u))},r}
|
|
},{"d3-array":30,"d3-format":39,"./constant":334,"./nice":380,"./continuous":377}],169:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=c,exports.sqrt=f;var n=require("./constant"),e=o(n),t=require("./linear"),r=require("./continuous"),u=o(r);function o(n){return n&&n.__esModule?n:{default:n}}function i(n,e){return n<0?-Math.pow(-n,e):Math.pow(n,e)}function c(){var n=1,o=(0,u.default)(function(t,r){return(r=i(r,n)-(t=i(t,n)))?function(e){return(i(e,n)-t)/r}:(0,e.default)(r)},function(e,t){return t=i(t,n)-(e=i(e,n)),function(r){return i(e+t*r,1/n)}}),f=o.domain;return o.exponent=function(e){return arguments.length?(n=+e,f(f())):n},o.copy=function(){return(0,r.copy)(o,c().exponent(n))},(0,t.linearish)(o)}function f(){return c().exponent(.5)}
|
|
},{"./constant":334,"./linear":166,"./continuous":377}],170:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var n=require("d3-array"),e=require("./array");function r(){var t=[],i=[],u=[];function a(){var e=0,r=Math.max(1,i.length);for(u=new Array(r-1);++e<r;)u[e-1]=(0,n.quantile)(t,e/r);return l}function l(e){if(!isNaN(e=+e))return i[(0,n.bisect)(u,e)]}return l.invertExtent=function(n){var e=i.indexOf(n);return e<0?[NaN,NaN]:[e>0?u[e-1]:t[0],e<u.length?u[e]:t[t.length-1]]},l.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var r,i=0,u=e.length;i<u;++i)null==(r=e[i])||isNaN(r=+r)||t.push(r);return t.sort(n.ascending),a()},l.range=function(n){return arguments.length?(i=e.slice.call(n),a()):i.slice()},l.quantiles=function(){return u.slice()},l.copy=function(){return r().domain(t).range(i)},l}
|
|
},{"d3-array":30,"./array":375}],171:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var r=require("d3-array"),e=require("./array"),n=require("./linear");function t(){var i=0,u=1,a=1,o=[.5],c=[0,1];function f(e){if(e<=e)return c[(0,r.bisect)(o,e,0,a)]}function l(){var r=-1;for(o=new Array(a);++r<a;)o[r]=((r+1)*u-(r-a)*i)/(a+1);return f}return f.domain=function(r){return arguments.length?(i=+r[0],u=+r[1],l()):[i,u]},f.range=function(r){return arguments.length?(a=(c=e.slice.call(r)).length-1,l()):c.slice()},f.invertExtent=function(r){var e=c.indexOf(r);return e<0?[NaN,NaN]:e<1?[i,o[0]]:e>=a?[o[a-1],u]:[o[e-1],o[e]]},f.copy=function(){return t().domain([i,u]).range(c)},(0,n.linearish)(f)}
|
|
},{"d3-array":30,"./array":375,"./linear":166}],172:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("d3-array"),n=require("./array");function r(){var t=[.5],i=[0,1],u=1;function a(n){if(n<=n)return i[(0,e.bisect)(t,n,0,u)]}return a.domain=function(e){return arguments.length?(t=n.slice.call(e),u=Math.min(t.length,i.length-1),a):t.slice()},a.range=function(e){return arguments.length?(i=n.slice.call(e),u=Math.min(t.length,i.length-1),a):i.slice()},a.invertExtent=function(e){var n=i.indexOf(e);return[t[n-1],t[n]]},a.copy=function(){return r().domain(t).range(i)},a}
|
|
},{"d3-array":30,"./array":375}],207:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=new Date,n=new Date;function t(r,o,u,f){function i(e){return r(e=new Date(+e)),e}return i.floor=i,i.ceil=function(e){return r(e=new Date(e-1)),o(e,1),r(e),e},i.round=function(e){var n=i(e),t=i.ceil(e);return e-n<t-e?n:t},i.offset=function(e,n){return o(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(e,n,t){var u,f=[];if(e=i.ceil(e),t=null==t?1:Math.floor(t),!(e<n&&t>0))return f;do{f.push(u=new Date(+e)),o(e,t),r(e)}while(u<e&&e<n);return f},i.filter=function(e){return t(function(n){if(n>=n)for(;r(n),!e(n);)n.setTime(n-1)},function(n,t){if(n>=n)if(t<0)for(;++t<=0;)for(;o(n,-1),!e(n););else for(;--t>=0;)for(;o(n,1),!e(n););})},u&&(i.count=function(t,o){return e.setTime(+t),n.setTime(+o),r(e),r(n),Math.floor(u(e,n))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(f?function(n){return f(n)%e==0}:function(n){return i.count(0,n)%e==0}):i:null}),i}
|
|
},{}],208:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.milliseconds=void 0;var e=require("./interval"),t=n(e);function n(e){return e&&e.__esModule?e:{default:e}}var r=(0,t.default)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,t.default)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):r:null},exports.default=r;var i=exports.milliseconds=r.range;
|
|
},{"./interval":207}],389:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.durationSecond=1e3,r=exports.durationMinute=6e4,t=exports.durationHour=36e5,o=exports.durationDay=864e5,u=exports.durationWeek=6048e5;
|
|
},{}],209:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.seconds=void 0;var e=require("./interval"),t=r(e),n=require("./duration");function r(e){return e&&e.__esModule?e:{default:e}}var o=(0,t.default)(function(e){e.setTime(Math.floor(e/n.durationSecond)*n.durationSecond)},function(e,t){e.setTime(+e+t*n.durationSecond)},function(e,t){return(t-e)/n.durationSecond},function(e){return e.getUTCSeconds()});exports.default=o;var u=exports.seconds=o.range;
|
|
},{"./interval":207,"./duration":389}],210:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.minutes=void 0;var e=require("./interval"),t=n(e),u=require("./duration");function n(e){return e&&e.__esModule?e:{default:e}}var r=(0,t.default)(function(e){e.setTime(Math.floor(e/u.durationMinute)*u.durationMinute)},function(e,t){e.setTime(+e+t*u.durationMinute)},function(e,t){return(t-e)/u.durationMinute},function(e){return e.getMinutes()});exports.default=r;var i=exports.minutes=r.range;
|
|
},{"./interval":207,"./duration":389}],211:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hours=void 0;var r=require("./interval"),e=u(r),t=require("./duration");function u(r){return r&&r.__esModule?r:{default:r}}var o=(0,e.default)(function(r){var e=r.getTimezoneOffset()*t.durationMinute%t.durationHour;e<0&&(e+=t.durationHour),r.setTime(Math.floor((+r-e)/t.durationHour)*t.durationHour+e)},function(r,e){r.setTime(+r+e*t.durationHour)},function(r,e){return(e-r)/t.durationHour},function(r){return r.getHours()});exports.default=o;var n=exports.hours=o.range;
|
|
},{"./interval":207,"./duration":389}],212:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.days=void 0;var e=require("./interval"),t=n(e),r=require("./duration");function n(e){return e&&e.__esModule?e:{default:e}}var u=(0,t.default)(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*r.durationMinute)/r.durationDay},function(e){return e.getDate()-1});exports.default=u;var o=exports.days=u.range;
|
|
},{"./interval":207,"./duration":389}],213:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.saturdays=exports.fridays=exports.thursdays=exports.wednesdays=exports.tuesdays=exports.mondays=exports.sundays=exports.saturday=exports.friday=exports.thursday=exports.wednesday=exports.tuesday=exports.monday=exports.sunday=void 0;var e=require("./interval"),t=r(e),s=require("./duration");function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(0,t.default)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*s.durationMinute)/s.durationWeek})}var o=exports.sunday=a(0),d=exports.monday=a(1),n=exports.tuesday=a(2),u=exports.wednesday=a(3),p=exports.thursday=a(4),y=exports.friday=a(5),x=exports.saturday=a(6),i=exports.sundays=o.range,f=exports.mondays=d.range,g=exports.tuesdays=n.range,c=exports.wednesdays=u.range,l=exports.thursdays=p.range,m=exports.fridays=y.range,v=exports.saturdays=x.range;
|
|
},{"./interval":207,"./duration":389}],214:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.months=void 0;var t=require("./interval"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}var r=(0,e.default)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});exports.default=r;var o=exports.months=r.range;
|
|
},{"./interval":207}],215:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.years=void 0;var e=require("./interval"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var u=(0,t.default)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});u.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,t.default)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},exports.default=u;var l=exports.years=u.range;
|
|
},{"./interval":207}],216:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcMinutes=void 0;var e=require("./interval"),t=n(e),u=require("./duration");function n(e){return e&&e.__esModule?e:{default:e}}var r=(0,t.default)(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*u.durationMinute)},function(e,t){return(t-e)/u.durationMinute},function(e){return e.getUTCMinutes()});exports.default=r;var i=exports.utcMinutes=r.range;
|
|
},{"./interval":207,"./duration":389}],217:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcHours=void 0;var e=require("./interval"),r=u(e),t=require("./duration");function u(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)(function(e){e.setUTCMinutes(0,0,0)},function(e,r){e.setTime(+e+r*t.durationHour)},function(e,r){return(r-e)/t.durationHour},function(e){return e.getUTCHours()});exports.default=o;var n=exports.utcHours=o.range;
|
|
},{"./interval":207,"./duration":389}],218:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcDays=void 0;var e=require("./interval"),t=u(e),r=require("./duration");function u(e){return e&&e.__esModule?e:{default:e}}var n=(0,t.default)(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/r.durationDay},function(e){return e.getUTCDate()-1});exports.default=n;var a=exports.utcDays=n.range;
|
|
},{"./interval":207,"./duration":389}],219:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcSaturdays=exports.utcFridays=exports.utcThursdays=exports.utcWednesdays=exports.utcTuesdays=exports.utcMondays=exports.utcSundays=exports.utcSaturday=exports.utcFriday=exports.utcThursday=exports.utcWednesday=exports.utcTuesday=exports.utcMonday=exports.utcSunday=void 0;var t=require("./interval"),e=s(t),r=require("./duration");function s(t){return t&&t.__esModule?t:{default:t}}function u(t){return(0,e.default)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/r.durationWeek})}var a=exports.utcSunday=u(0),o=exports.utcMonday=u(1),d=exports.utcTuesday=u(2),n=exports.utcWednesday=u(3),c=exports.utcThursday=u(4),p=exports.utcFriday=u(5),y=exports.utcSaturday=u(6),x=exports.utcSundays=a.range,i=exports.utcMondays=o.range,T=exports.utcTuesdays=d.range,g=exports.utcWednesdays=n.range,f=exports.utcThursdays=c.range,S=exports.utcFridays=p.range,l=exports.utcSaturdays=y.range;
|
|
},{"./interval":207,"./duration":389}],220:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcMonths=void 0;var t=require("./interval"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}var r=(0,e.default)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});exports.default=r;var o=exports.utcMonths=r.range;
|
|
},{"./interval":207}],221:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcYears=void 0;var e=require("./interval"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var u=(0,t.default)(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});u.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,t.default)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},exports.default=u;var l=exports.utcYears=u.range;
|
|
},{"./interval":207}],52:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/interval");Object.defineProperty(exports,"timeInterval",{enumerable:!0,get:function(){return m(e).default}});var t=require("./src/millisecond");Object.defineProperty(exports,"timeMillisecond",{enumerable:!0,get:function(){return m(t).default}}),Object.defineProperty(exports,"timeMilliseconds",{enumerable:!0,get:function(){return t.milliseconds}}),Object.defineProperty(exports,"utcMillisecond",{enumerable:!0,get:function(){return m(t).default}}),Object.defineProperty(exports,"utcMilliseconds",{enumerable:!0,get:function(){return t.milliseconds}});var r=require("./src/second");Object.defineProperty(exports,"timeSecond",{enumerable:!0,get:function(){return m(r).default}}),Object.defineProperty(exports,"timeSeconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(exports,"utcSecond",{enumerable:!0,get:function(){return m(r).default}}),Object.defineProperty(exports,"utcSeconds",{enumerable:!0,get:function(){return r.seconds}});var n=require("./src/minute");Object.defineProperty(exports,"timeMinute",{enumerable:!0,get:function(){return m(n).default}}),Object.defineProperty(exports,"timeMinutes",{enumerable:!0,get:function(){return n.minutes}});var u=require("./src/hour");Object.defineProperty(exports,"timeHour",{enumerable:!0,get:function(){return m(u).default}}),Object.defineProperty(exports,"timeHours",{enumerable:!0,get:function(){return u.hours}});var o=require("./src/day");Object.defineProperty(exports,"timeDay",{enumerable:!0,get:function(){return m(o).default}}),Object.defineProperty(exports,"timeDays",{enumerable:!0,get:function(){return o.days}});var c=require("./src/week");Object.defineProperty(exports,"timeWeek",{enumerable:!0,get:function(){return c.sunday}}),Object.defineProperty(exports,"timeWeeks",{enumerable:!0,get:function(){return c.sundays}}),Object.defineProperty(exports,"timeSunday",{enumerable:!0,get:function(){return c.sunday}}),Object.defineProperty(exports,"timeSundays",{enumerable:!0,get:function(){return c.sundays}}),Object.defineProperty(exports,"timeMonday",{enumerable:!0,get:function(){return c.monday}}),Object.defineProperty(exports,"timeMondays",{enumerable:!0,get:function(){return c.mondays}}),Object.defineProperty(exports,"timeTuesday",{enumerable:!0,get:function(){return c.tuesday}}),Object.defineProperty(exports,"timeTuesdays",{enumerable:!0,get:function(){return c.tuesdays}}),Object.defineProperty(exports,"timeWednesday",{enumerable:!0,get:function(){return c.wednesday}}),Object.defineProperty(exports,"timeWednesdays",{enumerable:!0,get:function(){return c.wednesdays}}),Object.defineProperty(exports,"timeThursday",{enumerable:!0,get:function(){return c.thursday}}),Object.defineProperty(exports,"timeThursdays",{enumerable:!0,get:function(){return c.thursdays}}),Object.defineProperty(exports,"timeFriday",{enumerable:!0,get:function(){return c.friday}}),Object.defineProperty(exports,"timeFridays",{enumerable:!0,get:function(){return c.fridays}}),Object.defineProperty(exports,"timeSaturday",{enumerable:!0,get:function(){return c.saturday}}),Object.defineProperty(exports,"timeSaturdays",{enumerable:!0,get:function(){return c.saturdays}});var i=require("./src/month");Object.defineProperty(exports,"timeMonth",{enumerable:!0,get:function(){return m(i).default}}),Object.defineProperty(exports,"timeMonths",{enumerable:!0,get:function(){return i.months}});var s=require("./src/year");Object.defineProperty(exports,"timeYear",{enumerable:!0,get:function(){return m(s).default}}),Object.defineProperty(exports,"timeYears",{enumerable:!0,get:function(){return s.years}});var a=require("./src/utcMinute");Object.defineProperty(exports,"utcMinute",{enumerable:!0,get:function(){return m(a).default}}),Object.defineProperty(exports,"utcMinutes",{enumerable:!0,get:function(){return a.utcMinutes}});var d=require("./src/utcHour");Object.defineProperty(exports,"utcHour",{enumerable:!0,get:function(){return m(d).default}}),Object.defineProperty(exports,"utcHours",{enumerable:!0,get:function(){return d.utcHours}});var f=require("./src/utcDay");Object.defineProperty(exports,"utcDay",{enumerable:!0,get:function(){return m(f).default}}),Object.defineProperty(exports,"utcDays",{enumerable:!0,get:function(){return f.utcDays}});var y=require("./src/utcWeek");Object.defineProperty(exports,"utcWeek",{enumerable:!0,get:function(){return y.utcSunday}}),Object.defineProperty(exports,"utcWeeks",{enumerable:!0,get:function(){return y.utcSundays}}),Object.defineProperty(exports,"utcSunday",{enumerable:!0,get:function(){return y.utcSunday}}),Object.defineProperty(exports,"utcSundays",{enumerable:!0,get:function(){return y.utcSundays}}),Object.defineProperty(exports,"utcMonday",{enumerable:!0,get:function(){return y.utcMonday}}),Object.defineProperty(exports,"utcMondays",{enumerable:!0,get:function(){return y.utcMondays}}),Object.defineProperty(exports,"utcTuesday",{enumerable:!0,get:function(){return y.utcTuesday}}),Object.defineProperty(exports,"utcTuesdays",{enumerable:!0,get:function(){return y.utcTuesdays}}),Object.defineProperty(exports,"utcWednesday",{enumerable:!0,get:function(){return y.utcWednesday}}),Object.defineProperty(exports,"utcWednesdays",{enumerable:!0,get:function(){return y.utcWednesdays}}),Object.defineProperty(exports,"utcThursday",{enumerable:!0,get:function(){return y.utcThursday}}),Object.defineProperty(exports,"utcThursdays",{enumerable:!0,get:function(){return y.utcThursdays}}),Object.defineProperty(exports,"utcFriday",{enumerable:!0,get:function(){return y.utcFriday}}),Object.defineProperty(exports,"utcFridays",{enumerable:!0,get:function(){return y.utcFridays}}),Object.defineProperty(exports,"utcSaturday",{enumerable:!0,get:function(){return y.utcSaturday}}),Object.defineProperty(exports,"utcSaturdays",{enumerable:!0,get:function(){return y.utcSaturdays}});var p=require("./src/utcMonth");Object.defineProperty(exports,"utcMonth",{enumerable:!0,get:function(){return m(p).default}}),Object.defineProperty(exports,"utcMonths",{enumerable:!0,get:function(){return p.utcMonths}});var b=require("./src/utcYear");function m(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"utcYear",{enumerable:!0,get:function(){return m(b).default}}),Object.defineProperty(exports,"utcYears",{enumerable:!0,get:function(){return b.utcYears}});
|
|
},{"./src/interval":207,"./src/millisecond":208,"./src/second":209,"./src/minute":210,"./src/hour":211,"./src/day":212,"./src/week":213,"./src/month":214,"./src/year":215,"./src/utcMinute":216,"./src/utcHour":217,"./src/utcDay":218,"./src/utcWeek":219,"./src/utcMonth":220,"./src/utcYear":221}],223:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var n=require("d3-time");function t(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function e(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function r(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function u(u){var i=u.dateTime,o=u.date,a=u.time,f=u.periods,l=u.days,vn=u.shortDays,mn=u.months,Cn=u.shortMonths,Dn=g(f),Tn=s(f),xn=g(l),Mn=s(l),Un=g(vn),wn=s(vn),Yn=g(mn),Hn=s(mn),pn=g(Cn),Sn=s(Cn),Ln={a:function(n){return vn[n.getDay()]},A:function(n){return l[n.getDay()]},b:function(n){return Cn[n.getMonth()]},B:function(n){return mn[n.getMonth()]},c:null,d:F,e:F,f:X,H:V,I:W,j:j,L:Q,m:b,M:B,p:function(n){return f[+(n.getHours()>=12)]},Q:yn,s:dn,S:I,u:_,U:O,V:P,w:$,W:q,x:null,X:null,y:z,Y:E,Z:R,"%":hn},An={a:function(n){return vn[n.getUTCDay()]},A:function(n){return l[n.getUTCDay()]},b:function(n){return Cn[n.getUTCMonth()]},B:function(n){return mn[n.getUTCMonth()]},c:null,d:k,e:k,f:nn,H:G,I:J,j:K,L:N,m:tn,M:en,p:function(n){return f[+(n.getUTCHours()>=12)]},Q:yn,s:dn,S:rn,u:un,U:cn,V:on,w:an,W:fn,x:null,X:null,y:ln,Y:gn,Z:sn,"%":hn},Zn={a:function(n,t,e){var r=Un.exec(t.slice(e));return r?(n.w=wn[r[0].toLowerCase()],e+r[0].length):-1},A:function(n,t,e){var r=xn.exec(t.slice(e));return r?(n.w=Mn[r[0].toLowerCase()],e+r[0].length):-1},b:function(n,t,e){var r=pn.exec(t.slice(e));return r?(n.m=Sn[r[0].toLowerCase()],e+r[0].length):-1},B:function(n,t,e){var r=Yn.exec(t.slice(e));return r?(n.m=Hn[r[0].toLowerCase()],e+r[0].length):-1},c:function(n,t,e){return Wn(n,i,t,e)},d:M,e:M,f:S,H:w,I:w,j:U,L:p,m:x,M:Y,p:function(n,t,e){var r=Dn.exec(t.slice(e));return r?(n.p=Tn[r[0].toLowerCase()],e+r[0].length):-1},Q:A,s:Z,S:H,u:y,U:d,V:v,w:h,W:m,x:function(n,t,e){return Wn(n,o,t,e)},X:function(n,t,e){return Wn(n,a,t,e)},y:D,Y:C,Z:T,"%":L};function Fn(n,t){return function(e){var r,u,i,o=[],a=-1,f=0,l=n.length;for(e instanceof Date||(e=new Date(+e));++a<l;)37===n.charCodeAt(a)&&(o.push(n.slice(f,a)),null!=(u=c[r=n.charAt(++a)])?r=n.charAt(++a):u="e"===r?" ":"0",(i=t[r])&&(r=i(e,u)),o.push(r),f=a+1);return o.push(n.slice(f,a)),o.join("")}}function Vn(t,u){return function(c){var i,o,a=r(1900);if(Wn(a,t,c+="",0)!=c.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(o=(i=e(r(a.y))).getUTCDay())>4||0===o?n.utcMonday.ceil(i):(0,n.utcMonday)(i),i=n.utcDay.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(i=(o=(i=u(r(a.y))).getDay())>4||0===o?n.timeMonday.ceil(i):(0,n.timeMonday)(i),i=n.timeDay.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.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),o="Z"in a?e(r(a.y)).getUTCDay():u(r(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,e(a)):u(a)}}function Wn(n,t,e,r){for(var u,i,o=0,a=t.length,f=e.length;o<a;){if(r>=f)return-1;if(37===(u=t.charCodeAt(o++))){if(u=t.charAt(o++),!(i=Zn[u in c?t.charAt(o++):u])||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}return Ln.x=Fn(o,Ln),Ln.X=Fn(a,Ln),Ln.c=Fn(i,Ln),An.x=Fn(o,An),An.X=Fn(a,An),An.c=Fn(i,An),{format:function(n){var t=Fn(n+="",Ln);return t.toString=function(){return n},t},parse:function(n){var e=Vn(n+="",t);return e.toString=function(){return n},e},utcFormat:function(n){var t=Fn(n+="",An);return t.toString=function(){return n},t},utcParse:function(n){var t=Vn(n,e);return t.toString=function(){return n},t}}}var c={"-":"",_:" ",0:"0"},i=/^\s*\d+/,o=/^%/,a=/[\\^$*+?|[\]().{}]/g;function f(n,t,e){var r=n<0?"-":"",u=(r?-n:n)+"",c=u.length;return r+(c<e?new Array(e-c+1).join(t)+u:u)}function l(n){return n.replace(a,"\\$&")}function g(n){return new RegExp("^(?:"+n.map(l).join("|")+")","i")}function s(n){for(var t={},e=-1,r=n.length;++e<r;)t[n[e].toLowerCase()]=e;return t}function h(n,t,e){var r=i.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function y(n,t,e){var r=i.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function d(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function v(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function m(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function C(n,t,e){var r=i.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function D(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function T(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function x(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function M(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function U(n,t,e){var r=i.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function w(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function Y(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function H(n,t,e){var r=i.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function p(n,t,e){var r=i.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function S(n,t,e){var r=i.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function L(n,t,e){var r=o.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function A(n,t,e){var r=i.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function Z(n,t,e){var r=i.exec(t.slice(e));return r?(n.Q=1e3*+r[0],e+r[0].length):-1}function F(n,t){return f(n.getDate(),t,2)}function V(n,t){return f(n.getHours(),t,2)}function W(n,t){return f(n.getHours()%12||12,t,2)}function j(t,e){return f(1+n.timeDay.count((0,n.timeYear)(t),t),e,3)}function Q(n,t){return f(n.getMilliseconds(),t,3)}function X(n,t){return Q(n,t)+"000"}function b(n,t){return f(n.getMonth()+1,t,2)}function B(n,t){return f(n.getMinutes(),t,2)}function I(n,t){return f(n.getSeconds(),t,2)}function _(n){var t=n.getDay();return 0===t?7:t}function O(t,e){return f(n.timeSunday.count((0,n.timeYear)(t),t),e,2)}function P(t,e){var r=t.getDay();return t=r>=4||0===r?(0,n.timeThursday)(t):n.timeThursday.ceil(t),f(n.timeThursday.count((0,n.timeYear)(t),t)+(4===(0,n.timeYear)(t).getDay()),e,2)}function $(n){return n.getDay()}function q(t,e){return f(n.timeMonday.count((0,n.timeYear)(t),t),e,2)}function z(n,t){return f(n.getFullYear()%100,t,2)}function E(n,t){return f(n.getFullYear()%1e4,t,4)}function R(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function k(n,t){return f(n.getUTCDate(),t,2)}function G(n,t){return f(n.getUTCHours(),t,2)}function J(n,t){return f(n.getUTCHours()%12||12,t,2)}function K(t,e){return f(1+n.utcDay.count((0,n.utcYear)(t),t),e,3)}function N(n,t){return f(n.getUTCMilliseconds(),t,3)}function nn(n,t){return N(n,t)+"000"}function tn(n,t){return f(n.getUTCMonth()+1,t,2)}function en(n,t){return f(n.getUTCMinutes(),t,2)}function rn(n,t){return f(n.getUTCSeconds(),t,2)}function un(n){var t=n.getUTCDay();return 0===t?7:t}function cn(t,e){return f(n.utcSunday.count((0,n.utcYear)(t),t),e,2)}function on(t,e){var r=t.getUTCDay();return t=r>=4||0===r?(0,n.utcThursday)(t):n.utcThursday.ceil(t),f(n.utcThursday.count((0,n.utcYear)(t),t)+(4===(0,n.utcYear)(t).getUTCDay()),e,2)}function an(n){return n.getUTCDay()}function fn(t,e){return f(n.utcMonday.count((0,n.utcYear)(t),t),e,2)}function ln(n,t){return f(n.getUTCFullYear()%100,t,2)}function gn(n,t){return f(n.getUTCFullYear()%1e4,t,4)}function sn(){return"+0000"}function hn(){return"%"}function yn(n){return+n}function dn(n){return Math.floor(+n/1e3)}
|
|
},{"d3-time":52}],222:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.utcParse=exports.utcFormat=exports.timeParse=exports.timeFormat=void 0,exports.default=i;var e,t=require("./locale"),r=a(t);function a(e){return e&&e.__esModule?e:{default:e}}var o=exports.timeFormat=void 0,s=exports.timeParse=void 0,u=exports.utcFormat=void 0,d=exports.utcParse=void 0;function i(t){return e=(0,r.default)(t),exports.timeFormat=o=e.format,exports.timeParse=s=e.parse,exports.utcFormat=u=e.utcFormat,exports.utcParse=d=e.utcParse,e}i({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"]});
|
|
},{"./locale":223}],224:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isoSpecifier=void 0;var e=require("./defaultLocale"),t=exports.isoSpecifier="%Y-%m-%dT%H:%M:%S.%LZ";function r(e){return e.toISOString()}var o=Date.prototype.toISOString?r:(0,e.utcFormat)(t);exports.default=o;
|
|
},{"./defaultLocale":222}],225:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./isoFormat"),r=require("./defaultLocale");function t(e){var r=new Date(e);return isNaN(r)?null:r}var a=+new Date("2000-01-01T00:00:00.000Z")?t:(0,r.utcParse)(e.isoSpecifier);exports.default=a;
|
|
},{"./isoFormat":224,"./defaultLocale":222}],53:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/defaultLocale");Object.defineProperty(exports,"timeFormatDefaultLocale",{enumerable:!0,get:function(){return u(e).default}}),Object.defineProperty(exports,"timeFormat",{enumerable:!0,get:function(){return e.timeFormat}}),Object.defineProperty(exports,"timeParse",{enumerable:!0,get:function(){return e.timeParse}}),Object.defineProperty(exports,"utcFormat",{enumerable:!0,get:function(){return e.utcFormat}}),Object.defineProperty(exports,"utcParse",{enumerable:!0,get:function(){return e.utcParse}});var r=require("./src/locale");Object.defineProperty(exports,"timeFormatLocale",{enumerable:!0,get:function(){return u(r).default}});var t=require("./src/isoFormat");Object.defineProperty(exports,"isoFormat",{enumerable:!0,get:function(){return u(t).default}});var o=require("./src/isoParse");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"isoParse",{enumerable:!0,get:function(){return u(o).default}});
|
|
},{"./src/defaultLocale":222,"./src/locale":223,"./src/isoFormat":224,"./src/isoParse":225}],173:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calendar=q,exports.default=function(){return q(r.timeYear,r.timeMonth,r.timeWeek,r.timeDay,r.timeHour,r.timeMinute,r.timeSecond,r.timeMillisecond,n.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])};var e=require("d3-array"),t=require("d3-interpolate"),r=require("d3-time"),n=require("d3-time-format"),i=require("./array"),u=require("./continuous"),a=l(u),o=require("./nice"),c=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var f=1e3,m=60*f,d=60*m,p=24*d,s=7*p,v=30*p,h=365*p;function y(e){return new Date(e)}function M(e){return e instanceof Date?+e:+new Date(+e)}function q(r,n,o,l,D,b,g,k,w){var x=(0,a.default)(u.deinterpolateLinear,t.interpolateNumber),S=x.invert,_=x.domain,F=w(".%L"),I=w(":%S"),L=w("%I:%M"),Y=w("%I %p"),j=w("%a %d"),B=w("%b %d"),H=w("%B"),N=w("%Y"),O=[[g,1,f],[g,5,5*f],[g,15,15*f],[g,30,30*f],[b,1,m],[b,5,5*m],[b,15,15*m],[b,30,30*m],[D,1,d],[D,3,3*d],[D,6,6*d],[D,12,12*d],[l,1,p],[l,2,2*p],[o,1,s],[n,1,v],[n,3,3*v],[r,1,h]];function P(e){return(g(e)<e?F:b(e)<e?I:D(e)<e?L:l(e)<e?Y:n(e)<e?o(e)<e?j:B:r(e)<e?H:N)(e)}function W(t,n,i,u){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(i-n)/t,o=(0,e.bisector)(function(e){return e[2]}).right(O,a);o===O.length?(u=(0,e.tickStep)(n/h,i/h,t),t=r):o?(u=(o=O[a/O[o-1][2]<O[o][2]/a?o-1:o])[1],t=o[0]):(u=Math.max((0,e.tickStep)(n,i,t),1),t=k)}return null==u?t:t.every(u)}return x.invert=function(e){return new Date(S(e))},x.domain=function(e){return arguments.length?_(i.map.call(e,M)):_().map(y)},x.ticks=function(e,t){var r,n=_(),i=n[0],u=n[n.length-1],a=u<i;return a&&(r=i,i=u,u=r),r=(r=W(e,i,u,t))?r.range(i,u+1):[],a?r.reverse():r},x.tickFormat=function(e,t){return null==t?P:w(t)},x.nice=function(e,t){var r=_();return(e=W(e,r[0],r[r.length-1],t))?_((0,c.default)(r,e)):x},x.copy=function(){return(0,u.copy)(x,q(r,n,o,l,D,b,g,k,w))},x}
|
|
},{"d3-array":30,"d3-interpolate":55,"d3-time":52,"d3-time-format":53,"./array":375,"./continuous":377,"./nice":380}],174:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return(0,e.calendar)(u.utcYear,u.utcMonth,u.utcWeek,u.utcDay,u.utcHour,u.utcMinute,u.utcSecond,u.utcMillisecond,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};var e=require("./time"),t=require("d3-time-format"),u=require("d3-time");
|
|
},{"./time":173,"d3-time-format":53,"d3-time":52}],381:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})};
|
|
},{}],175:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./colors"),f=r(e);function r(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,f.default)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
|
|
},{"./colors":381}],176:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./colors"),d=c(e);function c(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,d.default)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");
|
|
},{"./colors":381}],177:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./colors"),d=a(e);function a(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,d.default)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");
|
|
},{"./colors":381}],178:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./colors"),f=c(e);function c(e){return e&&e.__esModule?e:{default:e}}exports.default=(0,f.default)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");
|
|
},{"./colors":381}],179:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-color"),r=require("d3-interpolate");exports.default=(0,r.interpolateCubehelixLong)((0,e.cubehelix)(300,.5,0),(0,e.cubehelix)(-240,.5,1));
|
|
},{"d3-color":41,"d3-interpolate":55}],180:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cool=exports.warm=void 0,exports.default=function(e){(e<0||e>1)&&(e-=Math.floor(e));var r=Math.abs(e-.5);return l.h=360*e-100,l.s=1.5-1.5*r,l.l=.8-.9*r,l+""};var e=require("d3-color"),r=require("d3-interpolate"),o=exports.warm=(0,r.interpolateCubehelixLong)((0,e.cubehelix)(-100,.75,.35),(0,e.cubehelix)(80,1.5,.8)),t=exports.cool=(0,r.interpolateCubehelixLong)((0,e.cubehelix)(260,.75,.35),(0,e.cubehelix)(80,1.5,.8)),l=(0,e.cubehelix)();
|
|
},{"d3-color":41,"d3-interpolate":55}],181:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.plasma=exports.inferno=exports.magma=void 0;var f=require("./colors"),e=a(f);function a(f){return f&&f.__esModule?f:{default:f}}function d(f){var e=f.length;return function(a){return f[Math.max(0,Math.min(e-1,Math.floor(a*e)))]}}exports.default=d((0,e.default)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var c=exports.magma=d((0,e.default)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),b=exports.inferno=d((0,e.default)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),t=exports.plasma=d((0,e.default)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
|
},{"./colors":381}],182:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var n=require("./linear");function r(t){var e=0,u=1,i=!1;function a(n){var r=(n-e)/(u-e);return t(i?Math.max(0,Math.min(1,r)):r)}return a.domain=function(n){return arguments.length?(e=+n[0],u=+n[1],a):[e,u]},a.clamp=function(n){return arguments.length?(i=!!n,a):i},a.interpolator=function(n){return arguments.length?(t=n,a):t},a.copy=function(){return r(t).domain([e,u]).clamp(i)},(0,n.linearish)(a)}
|
|
},{"./linear":166}],49:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/band");Object.defineProperty(exports,"scaleBand",{enumerable:!0,get:function(){return x(e).default}}),Object.defineProperty(exports,"scalePoint",{enumerable:!0,get:function(){return e.point}});var r=require("./src/identity");Object.defineProperty(exports,"scaleIdentity",{enumerable:!0,get:function(){return x(r).default}});var t=require("./src/linear");Object.defineProperty(exports,"scaleLinear",{enumerable:!0,get:function(){return x(t).default}});var n=require("./src/log");Object.defineProperty(exports,"scaleLog",{enumerable:!0,get:function(){return x(n).default}});var u=require("./src/ordinal");Object.defineProperty(exports,"scaleOrdinal",{enumerable:!0,get:function(){return x(u).default}}),Object.defineProperty(exports,"scaleImplicit",{enumerable:!0,get:function(){return u.implicit}});var a=require("./src/pow");Object.defineProperty(exports,"scalePow",{enumerable:!0,get:function(){return x(a).default}}),Object.defineProperty(exports,"scaleSqrt",{enumerable:!0,get:function(){return a.sqrt}});var o=require("./src/quantile");Object.defineProperty(exports,"scaleQuantile",{enumerable:!0,get:function(){return x(o).default}});var i=require("./src/quantize");Object.defineProperty(exports,"scaleQuantize",{enumerable:!0,get:function(){return x(i).default}});var c=require("./src/threshold");Object.defineProperty(exports,"scaleThreshold",{enumerable:!0,get:function(){return x(c).default}});var l=require("./src/time");Object.defineProperty(exports,"scaleTime",{enumerable:!0,get:function(){return x(l).default}});var f=require("./src/utcTime");Object.defineProperty(exports,"scaleUtc",{enumerable:!0,get:function(){return x(f).default}});var s=require("./src/category10");Object.defineProperty(exports,"schemeCategory10",{enumerable:!0,get:function(){return x(s).default}});var p=require("./src/category20b");Object.defineProperty(exports,"schemeCategory20b",{enumerable:!0,get:function(){return x(p).default}});var b=require("./src/category20c");Object.defineProperty(exports,"schemeCategory20c",{enumerable:!0,get:function(){return x(b).default}});var d=require("./src/category20");Object.defineProperty(exports,"schemeCategory20",{enumerable:!0,get:function(){return x(d).default}});var m=require("./src/cubehelix");Object.defineProperty(exports,"interpolateCubehelixDefault",{enumerable:!0,get:function(){return x(m).default}});var g=require("./src/rainbow");Object.defineProperty(exports,"interpolateRainbow",{enumerable:!0,get:function(){return x(g).default}}),Object.defineProperty(exports,"interpolateWarm",{enumerable:!0,get:function(){return g.warm}}),Object.defineProperty(exports,"interpolateCool",{enumerable:!0,get:function(){return g.cool}});var y=require("./src/viridis");Object.defineProperty(exports,"interpolateViridis",{enumerable:!0,get:function(){return x(y).default}}),Object.defineProperty(exports,"interpolateMagma",{enumerable:!0,get:function(){return y.magma}}),Object.defineProperty(exports,"interpolateInferno",{enumerable:!0,get:function(){return y.inferno}}),Object.defineProperty(exports,"interpolatePlasma",{enumerable:!0,get:function(){return y.plasma}});var P=require("./src/sequential");function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"scaleSequential",{enumerable:!0,get:function(){return x(P).default}});
|
|
},{"./src/band":164,"./src/identity":165,"./src/linear":166,"./src/log":167,"./src/ordinal":168,"./src/pow":169,"./src/quantile":170,"./src/quantize":171,"./src/threshold":172,"./src/time":173,"./src/utcTime":174,"./src/category10":175,"./src/category20b":176,"./src/category20c":177,"./src/category20":178,"./src/cubehelix":179,"./src/rainbow":180,"./src/viridis":181,"./src/sequential":182}],385:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.acos=M,exports.asin=c;var t=exports.abs=Math.abs,s=exports.atan2=Math.atan2,a=exports.cos=Math.cos,e=exports.max=Math.max,r=exports.min=Math.min,o=exports.sin=Math.sin,p=exports.sqrt=Math.sqrt,n=exports.epsilon=1e-12,x=exports.pi=Math.PI,i=exports.halfPi=x/2,h=exports.tau=2*x;function M(t){return t>1?0:t<-1?x:Math.acos(t)}function c(t){return t>=1?i:t<=-1?-i:Math.asin(t)}
|
|
},{}],198:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var t=r,i=o,f=(0,e.default)(0),y=null,x=c,d=u,h=l,v=null;function g(){var e,r,o=+t.apply(this,arguments),c=+i.apply(this,arguments),u=x.apply(this,arguments)-a.halfPi,l=d.apply(this,arguments)-a.halfPi,g=(0,a.abs)(l-u),m=l>u;if(v||(v=e=(0,n.path)()),c<o&&(r=c,c=o,o=r),c>a.epsilon)if(g>a.tau-a.epsilon)v.moveTo(c*(0,a.cos)(u),c*(0,a.sin)(u)),v.arc(0,0,c,u,l,!m),o>a.epsilon&&(v.moveTo(o*(0,a.cos)(l),o*(0,a.sin)(l)),v.arc(0,0,o,l,u,m));else{var q,T,A=u,R=l,P=u,_=l,b=g,M=g,j=h.apply(this,arguments)/2,O=j>a.epsilon&&(y?+y.apply(this,arguments):(0,a.sqrt)(o*o+c*c)),k=(0,a.min)((0,a.abs)(c-o)/2,+f.apply(this,arguments)),w=k,z=k;if(O>a.epsilon){var B=(0,a.asin)(O/o*(0,a.sin)(j)),C=(0,a.asin)(O/c*(0,a.sin)(j));(b-=2*B)>a.epsilon?(P+=B*=m?1:-1,_-=B):(b=0,P=_=(u+l)/2),(M-=2*C)>a.epsilon?(A+=C*=m?1:-1,R-=C):(M=0,A=R=(u+l)/2)}var D=c*(0,a.cos)(A),E=c*(0,a.sin)(A),F=o*(0,a.cos)(_),G=o*(0,a.sin)(_);if(k>a.epsilon){var H=c*(0,a.cos)(R),I=c*(0,a.sin)(R),J=o*(0,a.cos)(P),K=o*(0,a.sin)(P);if(g<a.pi){var L=b>a.epsilon?s(D,E,J,K,H,I,F,G):[F,G],N=D-L[0],Q=E-L[1],S=H-L[0],U=I-L[1],V=1/(0,a.sin)((0,a.acos)((N*S+Q*U)/((0,a.sqrt)(N*N+Q*Q)*(0,a.sqrt)(S*S+U*U)))/2),W=(0,a.sqrt)(L[0]*L[0]+L[1]*L[1]);w=(0,a.min)(k,(o-W)/(V-1)),z=(0,a.min)(k,(c-W)/(V+1))}}M>a.epsilon?z>a.epsilon?(q=p(J,K,D,E,c,z,m),T=p(H,I,F,G,c,z,m),v.moveTo(q.cx+q.x01,q.cy+q.y01),z<k?v.arc(q.cx,q.cy,z,(0,a.atan2)(q.y01,q.x01),(0,a.atan2)(T.y01,T.x01),!m):(v.arc(q.cx,q.cy,z,(0,a.atan2)(q.y01,q.x01),(0,a.atan2)(q.y11,q.x11),!m),v.arc(0,0,c,(0,a.atan2)(q.cy+q.y11,q.cx+q.x11),(0,a.atan2)(T.cy+T.y11,T.cx+T.x11),!m),v.arc(T.cx,T.cy,z,(0,a.atan2)(T.y11,T.x11),(0,a.atan2)(T.y01,T.x01),!m))):(v.moveTo(D,E),v.arc(0,0,c,A,R,!m)):v.moveTo(D,E),o>a.epsilon&&b>a.epsilon?w>a.epsilon?(q=p(F,G,H,I,o,-w,m),T=p(D,E,J,K,o,-w,m),v.lineTo(q.cx+q.x01,q.cy+q.y01),w<k?v.arc(q.cx,q.cy,w,(0,a.atan2)(q.y01,q.x01),(0,a.atan2)(T.y01,T.x01),!m):(v.arc(q.cx,q.cy,w,(0,a.atan2)(q.y01,q.x01),(0,a.atan2)(q.y11,q.x11),!m),v.arc(0,0,o,(0,a.atan2)(q.cy+q.y11,q.cx+q.x11),(0,a.atan2)(T.cy+T.y11,T.cx+T.x11),m),v.arc(T.cx,T.cy,w,(0,a.atan2)(T.y11,T.x11),(0,a.atan2)(T.y01,T.x01),!m))):v.arc(0,0,o,_,P,m):v.lineTo(F,G)}else v.moveTo(0,0);if(v.closePath(),e)return v=null,e+""||null}return g.centroid=function(){var n=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,e=(+x.apply(this,arguments)+ +d.apply(this,arguments))/2-a.pi/2;return[(0,a.cos)(e)*n,(0,a.sin)(e)*n]},g.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:(0,e.default)(+n),g):t},g.outerRadius=function(n){return arguments.length?(i="function"==typeof n?n:(0,e.default)(+n),g):i},g.cornerRadius=function(n){return arguments.length?(f="function"==typeof n?n:(0,e.default)(+n),g):f},g.padRadius=function(n){return arguments.length?(y=null==n?null:"function"==typeof n?n:(0,e.default)(+n),g):y},g.startAngle=function(n){return arguments.length?(x="function"==typeof n?n:(0,e.default)(+n),g):x},g.endAngle=function(n){return arguments.length?(d="function"==typeof n?n:(0,e.default)(+n),g):d},g.padAngle=function(n){return arguments.length?(h="function"==typeof n?n:(0,e.default)(+n),g):h},g.context=function(n){return arguments.length?(v=null==n?null:n,g):v},g};var n=require("d3-path"),t=require("./constant"),e=i(t),a=require("./math");function i(n){return n&&n.__esModule?n:{default:n}}function r(n){return n.innerRadius}function o(n){return n.outerRadius}function c(n){return n.startAngle}function u(n){return n.endAngle}function l(n){return n&&n.padAngle}function s(n,t,e,a,i,r,o,c){var u=e-n,l=a-t,s=o-i,p=c-r,f=(s*(t-r)-p*(n-i))/(p*u-s*l);return[n+f*u,t+f*l]}function p(n,t,e,i,r,o,c){var u=n-e,l=t-i,s=(c?o:-o)/(0,a.sqrt)(u*u+l*l),p=s*l,f=-s*u,y=n+p,x=t+f,d=e+p,h=i+f,v=(y+d)/2,g=(x+h)/2,m=d-y,q=h-x,T=m*m+q*q,A=r-o,R=y*h-d*x,P=(q<0?-1:1)*(0,a.sqrt)((0,a.max)(0,A*A*T-R*R)),_=(R*q-m*P)/T,b=(-R*m-q*P)/T,M=(R*q+m*P)/T,j=(-R*m+q*P)/T,O=_-v,k=b-g,w=M-v,z=j-g;return O*O+k*k>w*w+z*z&&(_=M,b=j),{cx:_,cy:b,x01:-p,y01:-f,x11:_*(r/A-1),y11:b*(r/A-1)}}
|
|
},{"d3-path":57,"./constant":334,"./math":385}],308:[function(require,module,exports) {
|
|
"use strict";function t(t){this._context=t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(i){return new t(i)},t.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}};
|
|
},{}],384:[function(require,module,exports) {
|
|
"use strict";function e(e){return e[0]}function t(e){return e[1]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.x=e,exports.y=t;
|
|
},{}],200:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=l.x,u=l.y,f=(0,t.default)(!0),i=null,o=r.default,c=null;function a(t){var r,l,a,d=t.length,p=!1;for(null==i&&(c=o(a=(0,n.path)())),r=0;r<=d;++r)!(r<d&&f(l=t[r],r,t))===p&&((p=!p)?c.lineStart():c.lineEnd()),p&&c.point(+e(l,r,t),+u(l,r,t));if(a)return c=null,a+""||null}return a.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,t.default)(+n),a):e},a.y=function(n){return arguments.length?(u="function"==typeof n?n:(0,t.default)(+n),a):u},a.defined=function(n){return arguments.length?(f="function"==typeof n?n:(0,t.default)(!!n),a):f},a.curve=function(n){return arguments.length?(o=n,null!=i&&(c=o(i)),a):o},a.context=function(n){return arguments.length?(null==n?i=c=null:c=o(i=n),a):i},a};var n=require("d3-path"),e=require("./constant"),t=f(e),u=require("./curve/linear"),r=f(u),l=require("./point");function f(n){return n&&n.__esModule?n:{default:n}}
|
|
},{"d3-path":57,"./constant":334,"./curve/linear":308,"./point":384}],199:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var e=i.x,u=null,r=(0,t.default)(0),o=i.y,c=(0,t.default)(!0),a=null,d=l.default,y=null;function p(t){var l,f,i,p,h,x=t.length,g=!1,s=new Array(x),v=new Array(x);for(null==a&&(y=d(h=(0,n.path)())),l=0;l<=x;++l){if(!(l<x&&c(p=t[l],l,t))===g)if(g=!g)f=l,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),i=l-1;i>=f;--i)y.point(s[i],v[i]);y.lineEnd(),y.areaEnd()}g&&(s[l]=+e(p,l,t),v[l]=+r(p,l,t),y.point(u?+u(p,l,t):s[l],o?+o(p,l,t):v[l]))}if(h)return y=null,h+""||null}function h(){return(0,f.default)().defined(c).curve(d).context(a)}return p.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,t.default)(+n),u=null,p):e},p.x0=function(n){return arguments.length?(e="function"==typeof n?n:(0,t.default)(+n),p):e},p.x1=function(n){return arguments.length?(u=null==n?null:"function"==typeof n?n:(0,t.default)(+n),p):u},p.y=function(n){return arguments.length?(r="function"==typeof n?n:(0,t.default)(+n),o=null,p):r},p.y0=function(n){return arguments.length?(r="function"==typeof n?n:(0,t.default)(+n),p):r},p.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:(0,t.default)(+n),p):o},p.lineX0=p.lineY0=function(){return h().x(e).y(r)},p.lineY1=function(){return h().x(e).y(o)},p.lineX1=function(){return h().x(u).y(r)},p.defined=function(n){return arguments.length?(c="function"==typeof n?n:(0,t.default)(!!n),p):c},p.curve=function(n){return arguments.length?(d=n,null!=a&&(y=d(a)),p):d},p.context=function(n){return arguments.length?(null==n?a=y=null:y=d(a=n),p):a},p};var n=require("d3-path"),e=require("./constant"),t=o(e),u=require("./curve/linear"),l=o(u),r=require("./line"),f=o(r),i=require("./point");function o(n){return n&&n.__esModule?n:{default:n}}
|
|
},{"d3-path":57,"./constant":334,"./curve/linear":308,"./line":200,"./point":384}],201:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var t=l.default,e=u.default,r=null,f=(0,n.default)(0),o=(0,n.default)(a.tau),i=(0,n.default)(0);function d(n){var u,l,d,c,s,h=n.length,p=0,g=new Array(h),y=new Array(h),A=+f.apply(this,arguments),v=Math.min(a.tau,Math.max(-a.tau,o.apply(this,arguments)-A)),M=Math.min(Math.abs(v)/h,i.apply(this,arguments)),m=M*(v<0?-1:1);for(u=0;u<h;++u)(s=y[g[u]=u]=+t(n[u],u,n))>0&&(p+=s);for(null!=e?g.sort(function(t,n){return e(y[t],y[n])}):null!=r&&g.sort(function(t,e){return r(n[t],n[e])}),u=0,d=p?(v-h*m)/p:0;u<h;++u,A=c)l=g[u],c=A+((s=y[l])>0?s*d:0)+m,y[l]={data:n[l],index:u,value:s,startAngle:A,endAngle:c,padAngle:M};return y}return d.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),d):t},d.sortValues=function(t){return arguments.length?(e=t,r=null,d):e},d.sort=function(t){return arguments.length?(r=t,e=null,d):r},d.startAngle=function(t){return arguments.length?(f="function"==typeof t?t:(0,n.default)(+t),d):f},d.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,n.default)(+t),d):o},d.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,n.default)(+t),d):i},d};var t=require("./constant"),n=f(t),e=require("./descending"),u=f(e),r=require("./identity"),l=f(r),a=require("./math");function f(t){return t&&t.__esModule?t:{default:t}}
|
|
},{"./constant":334,"./descending":69,"./identity":335,"./math":385}],399:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.curveRadialLinear=void 0,exports.default=u;var e=require("./linear"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var n=exports.curveRadialLinear=u(t.default);function i(e){this._curve=e}function u(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};
|
|
},{"./linear":308}],203:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.lineRadial=a,exports.default=function(){return a((0,t.default)().curve(e.curveRadialLinear))};var e=require("./curve/radial"),r=n(e),u=require("./line"),t=n(u);function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var u=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?u((0,r.default)(e)):u()._curve},e}
|
|
},{"./curve/radial":399,"./line":200}],202:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var l=(0,i.default)().curve(e.curveRadialLinear),t=l.curve,u=l.lineX0,a=l.lineX1,d=l.lineY0,c=l.lineY1;return l.angle=l.x,delete l.x,l.startAngle=l.x0,delete l.x0,l.endAngle=l.x1,delete l.x1,l.radius=l.y,delete l.y,l.innerRadius=l.y0,delete l.y0,l.outerRadius=l.y1,delete l.y1,l.lineStartAngle=function(){return(0,r.lineRadial)(u())},delete l.lineX0,l.lineEndAngle=function(){return(0,r.lineRadial)(a())},delete l.lineX1,l.lineInnerRadius=function(){return(0,r.lineRadial)(d())},delete l.lineY0,l.lineOuterRadius=function(){return(0,r.lineRadial)(c())},delete l.lineY1,l.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},l};var e=require("./curve/radial"),n=t(e),l=require("./area"),i=t(l),r=require("./lineRadial");function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./curve/radial":399,"./area":199,"./lineRadial":203}],204:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]};
|
|
},{}],289:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkHorizontal=y,exports.linkVertical=h,exports.linkRadial=v;var e=require("d3-path"),t=require("../array"),n=require("../constant"),r=o(n),u=require("../point"),i=require("../pointRadial"),l=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.source}function f(e){return e.target}function c(n){var i=a,l=f,o=u.x,c=u.y,p=null;function s(){var r,u=t.slice.call(arguments),a=i.apply(this,u),f=l.apply(this,u);if(p||(p=r=(0,e.path)()),n(p,+o.apply(this,(u[0]=a,u)),+c.apply(this,u),+o.apply(this,(u[0]=f,u)),+c.apply(this,u)),r)return p=null,r+""||null}return s.source=function(e){return arguments.length?(i=e,s):i},s.target=function(e){return arguments.length?(l=e,s):l},s.x=function(e){return arguments.length?(o="function"==typeof e?e:(0,r.default)(+e),s):o},s.y=function(e){return arguments.length?(c="function"==typeof e?e:(0,r.default)(+e),s):c},s.context=function(e){return arguments.length?(p=null==e?null:e,s):p},s}function p(e,t,n,r,u){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,u,r,u)}function s(e,t,n,r,u){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+u)/2,r,n,r,u)}function d(e,t,n,r,u){var i=(0,l.default)(t,n),o=(0,l.default)(t,n=(n+u)/2),a=(0,l.default)(r,n),f=(0,l.default)(r,u);e.moveTo(i[0],i[1]),e.bezierCurveTo(o[0],o[1],a[0],a[1],f[0],f[1])}function y(){return c(p)}function h(){return c(s)}function v(){var e=c(d);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}
|
|
},{"d3-path":57,"../array":325,"../constant":334,"../point":384,"../pointRadial":204}],290:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../math");exports.default={draw:function(r,t){var a=Math.sqrt(t/e.pi);r.moveTo(a,0),r.arc(0,0,a,0,e.tau)}};
|
|
},{"../math":385}],291:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={draw:function(e,o){var l=Math.sqrt(o/5)/2;e.moveTo(-3*l,-l),e.lineTo(-l,-l),e.lineTo(-l,-3*l),e.lineTo(l,-3*l),e.lineTo(l,-l),e.lineTo(3*l,-l),e.lineTo(3*l,l),e.lineTo(l,l),e.lineTo(l,3*l),e.lineTo(-l,3*l),e.lineTo(-l,l),e.lineTo(-3*l,l),e.closePath()}};
|
|
},{}],292:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Math.sqrt(1/3),t=2*e;exports.default={draw:function(o,r){var a=Math.sqrt(r/t),s=a*e;o.moveTo(0,-a),o.lineTo(s,0),o.lineTo(0,a),o.lineTo(-s,0),o.closePath()}};
|
|
},{}],294:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../math"),a=.8908130915292852,e=Math.sin(t.pi/10)/Math.sin(7*t.pi/10),o=Math.sin(t.tau/10)*e,r=-Math.cos(t.tau/10)*e;exports.default={draw:function(e,i){var s=Math.sqrt(i*a),n=o*s,h=r*s;e.moveTo(0,-s),e.lineTo(n,h);for(var u=1;u<5;++u){var M=t.tau*u/5,l=Math.cos(M),c=Math.sin(M);e.lineTo(c*s,-l*s),e.lineTo(l*n-c*h,c*n+l*h)}e.closePath()}};
|
|
},{"../math":385}],293:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={draw:function(e,t){var r=Math.sqrt(t),s=-r/2;e.rect(s,s,r,r)}};
|
|
},{}],295:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Math.sqrt(3);exports.default={draw:function(t,o){var r=-Math.sqrt(o/(3*e));t.moveTo(0,2*r),t.lineTo(-e*r,-r),t.lineTo(e*r,-r),t.closePath()}};
|
|
},{}],296:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=-.5,o=Math.sqrt(3)/2,t=1/Math.sqrt(12),l=3*(t/2+1);exports.default={draw:function(i,n){var r=Math.sqrt(n/l),a=r/2,s=r*t,T=a,u=r*t+r,c=-T,d=u;i.moveTo(a,s),i.lineTo(T,u),i.lineTo(c,d),i.lineTo(e*a-o*s,o*a+e*s),i.lineTo(e*T-o*u,o*T+e*u),i.lineTo(e*c-o*d,o*c+e*d),i.lineTo(e*a+o*s,e*s-o*a),i.lineTo(e*T+o*u,e*u-o*T),i.lineTo(e*c+o*d,e*d-o*c),i.closePath()}};
|
|
},{}],205:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.symbols=void 0,exports.default=function(){var t=(0,m.default)(r.default),u=(0,m.default)(64),l=null;function n(){var r;if(l||(l=r=(0,e.path)()),t.apply(this,arguments).draw(l,+u.apply(this,arguments)),r)return l=null,r+""||null}return n.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,m.default)(e),n):t},n.size=function(e){return arguments.length?(u="function"==typeof e?e:(0,m.default)(+e),n):u},n.context=function(e){return arguments.length?(l=null==e?null:e,n):l},n};var e=require("d3-path"),t=require("./symbol/circle"),r=q(t),u=require("./symbol/cross"),l=q(u),n=require("./symbol/diamond"),o=q(n),a=require("./symbol/star"),i=q(a),s=require("./symbol/square"),f=q(s),d=require("./symbol/triangle"),y=q(d),c=require("./symbol/wye"),p=q(c),b=require("./constant"),m=q(b);function q(e){return e&&e.__esModule?e:{default:e}}var h=exports.symbols=[r.default,l.default,o.default,f.default,i.default,y.default,p.default];
|
|
},{"d3-path":57,"./symbol/circle":290,"./symbol/cross":291,"./symbol/diamond":292,"./symbol/star":294,"./symbol/square":293,"./symbol/triangle":295,"./symbol/wye":296,"./constant":334}],405:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){};
|
|
},{}],299:[function(require,module,exports) {
|
|
"use strict";function t(t,i,s){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+i)/6,(t._y0+4*t._y1+s)/6)}function i(t){this._context=t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.point=t,exports.Basis=i,exports.default=function(t){return new i(t)},i.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:t(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(i,s){switch(i=+i,s=+s,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);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:t(this,i,s)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=s}};
|
|
},{}],297:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return new _(t)};var t=require("../noop"),i=h(t),s=require("./basis");function h(t){return t&&t.__esModule?t:{default:t}}function _(t){this._context=t}_.prototype={areaStart:i.default,areaEnd:i.default,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:(0,s.point)(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};
|
|
},{"../noop":405,"./basis":299}],298:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return new i(t)};var t=require("./basis");function i(t){this._context=t}i.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(i,s){switch(i=+i,s=+s,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+i)/6,n=(this._y0+4*this._y1+s)/6;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 3:this._point=4;default:(0,t.point)(this,i,s)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=s}};
|
|
},{"./basis":299}],300:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./basis");function i(i,s){this._basis=new t.Basis(i),this._beta=s}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,s=t.length-1;if(s>0)for(var e,n=t[0],a=i[0],h=t[s]-n,r=i[s]-a,_=-1;++_<=s;)e=_/s,this._basis.point(this._beta*t[_]+(1-this._beta)*(n+e*h),this._beta*i[_]+(1-this._beta)*(a+e*r));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}},exports.default=function s(e){function n(s){return 1===e?new t.Basis(s):new i(s,e)}return n.beta=function(t){return s(+t)},n}(.85);
|
|
},{"./basis":299}],303:[function(require,module,exports) {
|
|
"use strict";function t(t,i,_){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-i),t._y2+t._k*(t._y1-_),t._x2,t._y2)}function i(t,i){this._context=t,this._k=(1-i)/6}Object.defineProperty(exports,"__esModule",{value:!0}),exports.point=t,exports.Cardinal=i,i.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:t(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,_){switch(i=+i,_=+_,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,_):this._context.moveTo(i,_);break;case 1:this._point=2,this._x1=i,this._y1=_;break;case 2:this._point=3;default:t(this,i,_)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=_}},exports.default=function t(_){function s(t){return new i(t,_)}return s.tension=function(i){return t(+i)},s}(0);
|
|
},{}],301:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardinalClosed=e;var t=require("../noop"),i=h(t),s=require("./cardinal");function h(t){return t&&t.__esModule?t:{default:t}}function e(t,i){this._context=t,this._k=(1-i)/6}e.prototype={areaStart:i.default,areaEnd:i.default,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:(0,s.point)(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}},exports.default=function t(i){function s(t){return new e(t,i)}return s.tension=function(i){return t(+i)},s}(0);
|
|
},{"../noop":405,"./cardinal":303}],302:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardinalOpen=i;var t=require("./cardinal");function i(t,i){this._context=t,this._k=(1-i)/6}i.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(i,n){switch(i=+i,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:(0,t.point)(this,i,n)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=n}},exports.default=function t(n){function s(t){return new i(t,n)}return s.tension=function(i){return t(+i)},s}(0);
|
|
},{"./cardinal":303}],306:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.point=i;var _=require("../math"),t=require("./cardinal");function i(t,i,s){var a=t._x1,h=t._y1,l=t._x2,n=t._y2;if(t._l01_a>_.epsilon){var e=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,o=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*e-t._x0*t._l12_2a+t._x2*t._l01_2a)/o,h=(h*e-t._y0*t._l12_2a+t._y2*t._l01_2a)/o}if(t._l23_a>_.epsilon){var r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);l=(l*r+t._x1*t._l23_2a-i*t._l12_2a)/c,n=(n*r+t._y1*t._l23_2a-s*t._l12_2a)/c}t._context.bezierCurveTo(a,h,l,n,t._x2,t._y2)}function s(_,t){this._context=_,this._alpha=t}s.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){if(_=+_,t=+t,this._point){var s=this._x2-_,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(_,t):this._context.moveTo(_,t);break;case 1:this._point=2;break;case 2:this._point=3;default:i(this,_,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=_,this._y0=this._y1,this._y1=this._y2,this._y2=t}},exports.default=function _(i){function a(_){return i?new s(_,i):new t.Cardinal(_,0)}return a.alpha=function(t){return _(+t)},a}(.5);
|
|
},{"../math":385,"./cardinal":303}],304:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./cardinalClosed"),i=require("../noop"),s=h(i),_=require("./catmullRom");function h(t){return t&&t.__esModule?t:{default:t}}function e(t,i){this._context=t,this._alpha=i}e.prototype={areaStart:s.default,areaEnd:s.default,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,i){if(t=+t,i=+i,this._point){var s=this._x2-t,h=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+h*h,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:(0,_.point)(this,t,i)}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=i}},exports.default=function i(s){function _(i){return s?new e(i,s):new t.CardinalClosed(i,0)}return _.alpha=function(t){return i(+t)},_}(.5);
|
|
},{"./cardinalClosed":301,"../noop":405,"./catmullRom":306}],305:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./cardinalOpen"),i=require("./catmullRom");function _(t,i){this._context=t,this._alpha=i}_.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,_){if(t=+t,_=+_,this._point){var s=this._x2-t,h=this._y2-_;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+h*h,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:(0,i.point)(this,t,_)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=_}},exports.default=function i(s){function h(i){return s?new _(i,s):new t.CardinalOpen(i,0)}return h.alpha=function(t){return i(+t)},h}(.5);
|
|
},{"./cardinalOpen":302,"./catmullRom":306}],307:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(t){return new o(t)};var t=require("../noop"),e=n(t);function n(t){return t&&t.__esModule?t:{default:t}}function o(t){this._context=t}o.prototype={areaStart:e.default,areaEnd:e.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};
|
|
},{"../noop":405}],309:[function(require,module,exports) {
|
|
"use strict";function t(t){return t<0?-1:1}function i(i,n,e){var o=i._x1-i._x0,s=n-i._x1,h=(i._y1-i._y0)/(o||s<0&&-0),_=(e-i._y1)/(s||o<0&&-0),c=(h*s+_*o)/(o+s);return(t(h)+t(_))*Math.min(Math.abs(h),Math.abs(_),.5*Math.abs(c))||0}function n(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function e(t,i,n){var e=t._x0,o=t._y0,s=t._x1,h=t._y1,_=(s-e)/3;t._context.bezierCurveTo(e+_,o+_*i,s-_,h-_*n,s,h)}function o(t){this._context=t}function s(t){this._context=new h(t)}function h(t){this._context=t}function _(t){return new o(t)}function c(t){return new s(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.monotoneX=_,exports.monotoneY=c,o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:e(this,this._t0,n(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,o){var s=NaN;if(o=+o,(t=+t)!==this._x1||o!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,o):this._context.moveTo(t,o);break;case 1:this._point=2;break;case 2:this._point=3,e(this,n(this,s=i(this,t,o)),s);break;default:e(this,this._t0,s=i(this,t,o))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=o,this._t0=s}}},(s.prototype=Object.create(o.prototype)).point=function(t,i){o.prototype.point.call(this,i,t)},h.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,e,o,s){this._context.bezierCurveTo(i,t,e,n,s,o)}};
|
|
},{}],310:[function(require,module,exports) {
|
|
"use strict";function t(t){this._context=t}function e(t){var e,i,n=t.length-1,o=new Array(n),r=new Array(n),s=new Array(n);for(o[0]=0,r[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,r[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,r[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=o[e]/r[e-1],r[e]-=i,s[e]-=i*s[e-1];for(o[n-1]=s[n-1]/r[n-1],e=n-2;e>=0;--e)o[e]=(s[e]-o[e+1])/r[e];for(r[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)r[e]=2*t[e+1]-o[e+1];return[o,r]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return new t(e)},t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var o=e(t),r=e(i),s=0,h=1;h<n;++s,++h)this._context.bezierCurveTo(o[0][s],r[0][s],o[1][s],r[1][s],t[h],i[h]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};
|
|
},{}],311:[function(require,module,exports) {
|
|
"use strict";function t(t,i){this._context=t,this._t=i}function i(i){return new t(i,0)}function e(i){return new t(i,1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(i){return new t(i,.5)},exports.stepBefore=i,exports.stepAfter=e,t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,i)}}this._x=t,this._y=i}};
|
|
},{}],314:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((f=e.length)>1)for(var r,o,f,s=1,i=e[t[0]],l=i.length;s<f;++s)for(o=i,i=e[t[s]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]};
|
|
},{}],320:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t};
|
|
},{}],206:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var t=(0,n.default)([]),r=l.default,f=u.default,o=a;function i(e){var n,u,l=t.apply(this,arguments),a=e.length,i=l.length,c=new Array(i);for(n=0;n<i;++n){for(var d,s=l[n],y=c[n]=new Array(a),p=0;p<a;++p)y[p]=d=[0,+o(e[p],s,p,e)],d.data=e[p];y.key=s}for(n=0,u=r(c);n<i;++n)c[u[n]].index=n;return f(c,u),c}return i.keys=function(r){return arguments.length?(t="function"==typeof r?r:(0,n.default)(e.slice.call(r)),i):t},i.value=function(e){return arguments.length?(o="function"==typeof e?e:(0,n.default)(+e),i):o},i.order=function(t){return arguments.length?(r=null==t?l.default:"function"==typeof t?t:(0,n.default)(e.slice.call(t)),i):r},i.offset=function(e){return arguments.length?(f=null==e?u.default:e,i):f},i};var e=require("./array"),t=require("./constant"),n=o(t),r=require("./offset/none"),u=o(r),f=require("./order/none"),l=o(f);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e[t]}
|
|
},{"./array":325,"./constant":334,"./offset/none":314,"./order/none":320}],312:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((o=e.length)>0){for(var f,o,u,n=0,l=e[0].length;n<l;++n){for(u=f=0;f<o;++f)u+=e[f][n][1]||0;if(u)for(f=0;f<o;++f)e[f][n][1]/=u}(0,r.default)(e,t)}};var e=require("./none"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./none":314}],313:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((s=e.length)>1)for(var r,o,f,l,n,s,u=0,i=e[t[0]].length;u<i;++u)for(l=n=0,r=0;r<s;++r)(f=(o=e[t[r]][u])[1]-o[0])>=0?(o[0]=l,o[1]=l+=f):f<0?(o[1]=n,o[0]=n+=f):o[0]=l};
|
|
},{}],315:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((u=e.length)>0){for(var u,n=0,o=e[t[0]],f=o.length;n<f;++n){for(var l=0,a=0;l<u;++l)a+=e[l][n][1]||0;o[n][1]+=o[n][0]=-a/2}(0,r.default)(e,t)}};var e=require("./none"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./none":314}],316:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){if((f=e.length)>0&&(u=(o=e[t[0]]).length)>0){for(var o,u,f,n=0,a=1;a<u;++a){for(var l=0,d=0,i=0;l<f;++l){for(var s=e[t[l]],v=s[a][1]||0,c=(v-(s[a-1][1]||0))/2,_=0;_<l;++_){var p=e[t[_]];c+=(p[a][1]||0)-(p[a-1][1]||0)}d+=v,i+=c*v}o[a-1][1]+=o[a-1][0]=n,d&&(n-=i/d)}o[a-1][1]+=o[a-1][0]=n,(0,r.default)(e,t)}};var e=require("./none"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./none":314}],317:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var t=e.map(u);return(0,r.default)(e).sort(function(e,r){return t[e]-t[r]})},exports.sum=u;var e=require("./none"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}function u(e){for(var r,t=0,u=-1,n=e.length;++u<n;)(r=+e[u][1])&&(t+=r);return t}
|
|
},{"./none":320}],318:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return(0,r.default)(e).reverse()};var e=require("./ascending"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./ascending":317}],319:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var u,n,o=e.length,s=e.map(t.sum),a=(0,r.default)(e).sort(function(e,r){return s[r]-s[e]}),c=0,f=0,i=[],d=[];for(u=0;u<o;++u)n=a[u],c<f?(c+=s[n],i.push(n)):(f+=s[n],d.push(n));return d.reverse().concat(i)};var e=require("./none"),r=u(e),t=require("./ascending");function u(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./none":320,"./ascending":317}],321:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return(0,r.default)(e).reverse()};var e=require("./none"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}
|
|
},{"./none":320}],51:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/arc");Object.defineProperty(exports,"arc",{enumerable:!0,get:function(){return Y(e).default}});var r=require("./src/area");Object.defineProperty(exports,"area",{enumerable:!0,get:function(){return Y(r).default}});var t=require("./src/line");Object.defineProperty(exports,"line",{enumerable:!0,get:function(){return Y(t).default}});var n=require("./src/pie");Object.defineProperty(exports,"pie",{enumerable:!0,get:function(){return Y(n).default}});var u=require("./src/areaRadial");Object.defineProperty(exports,"areaRadial",{enumerable:!0,get:function(){return Y(u).default}}),Object.defineProperty(exports,"radialArea",{enumerable:!0,get:function(){return Y(u).default}});var o=require("./src/lineRadial");Object.defineProperty(exports,"lineRadial",{enumerable:!0,get:function(){return Y(o).default}}),Object.defineProperty(exports,"radialLine",{enumerable:!0,get:function(){return Y(o).default}});var a=require("./src/pointRadial");Object.defineProperty(exports,"pointRadial",{enumerable:!0,get:function(){return Y(a).default}});var i=require("./src/link/index");Object.defineProperty(exports,"linkHorizontal",{enumerable:!0,get:function(){return i.linkHorizontal}}),Object.defineProperty(exports,"linkVertical",{enumerable:!0,get:function(){return i.linkVertical}}),Object.defineProperty(exports,"linkRadial",{enumerable:!0,get:function(){return i.linkRadial}});var c=require("./src/symbol");Object.defineProperty(exports,"symbol",{enumerable:!0,get:function(){return Y(c).default}}),Object.defineProperty(exports,"symbols",{enumerable:!0,get:function(){return c.symbols}});var l=require("./src/symbol/circle");Object.defineProperty(exports,"symbolCircle",{enumerable:!0,get:function(){return Y(l).default}});var s=require("./src/symbol/cross");Object.defineProperty(exports,"symbolCross",{enumerable:!0,get:function(){return Y(s).default}});var f=require("./src/symbol/diamond");Object.defineProperty(exports,"symbolDiamond",{enumerable:!0,get:function(){return Y(f).default}});var d=require("./src/symbol/square");Object.defineProperty(exports,"symbolSquare",{enumerable:!0,get:function(){return Y(d).default}});var b=require("./src/symbol/star");Object.defineProperty(exports,"symbolStar",{enumerable:!0,get:function(){return Y(b).default}});var p=require("./src/symbol/triangle");Object.defineProperty(exports,"symbolTriangle",{enumerable:!0,get:function(){return Y(p).default}});var m=require("./src/symbol/wye");Object.defineProperty(exports,"symbolWye",{enumerable:!0,get:function(){return Y(m).default}});var v=require("./src/curve/basisClosed");Object.defineProperty(exports,"curveBasisClosed",{enumerable:!0,get:function(){return Y(v).default}});var y=require("./src/curve/basisOpen");Object.defineProperty(exports,"curveBasisOpen",{enumerable:!0,get:function(){return Y(y).default}});var O=require("./src/curve/basis");Object.defineProperty(exports,"curveBasis",{enumerable:!0,get:function(){return Y(O).default}});var g=require("./src/curve/bundle");Object.defineProperty(exports,"curveBundle",{enumerable:!0,get:function(){return Y(g).default}});var x=require("./src/curve/cardinalClosed");Object.defineProperty(exports,"curveCardinalClosed",{enumerable:!0,get:function(){return Y(x).default}});var j=require("./src/curve/cardinalOpen");Object.defineProperty(exports,"curveCardinalOpen",{enumerable:!0,get:function(){return Y(j).default}});var P=require("./src/curve/cardinal");Object.defineProperty(exports,"curveCardinal",{enumerable:!0,get:function(){return Y(P).default}});var q=require("./src/curve/catmullRomClosed");Object.defineProperty(exports,"curveCatmullRomClosed",{enumerable:!0,get:function(){return Y(q).default}});var k=require("./src/curve/catmullRomOpen");Object.defineProperty(exports,"curveCatmullRomOpen",{enumerable:!0,get:function(){return Y(k).default}});var C=require("./src/curve/catmullRom");Object.defineProperty(exports,"curveCatmullRom",{enumerable:!0,get:function(){return Y(C).default}});var R=require("./src/curve/linearClosed");Object.defineProperty(exports,"curveLinearClosed",{enumerable:!0,get:function(){return Y(R).default}});var B=require("./src/curve/linear");Object.defineProperty(exports,"curveLinear",{enumerable:!0,get:function(){return Y(B).default}});var S=require("./src/curve/monotone");Object.defineProperty(exports,"curveMonotoneX",{enumerable:!0,get:function(){return S.monotoneX}}),Object.defineProperty(exports,"curveMonotoneY",{enumerable:!0,get:function(){return S.monotoneY}});var A=require("./src/curve/natural");Object.defineProperty(exports,"curveNatural",{enumerable:!0,get:function(){return Y(A).default}});var M=require("./src/curve/step");Object.defineProperty(exports,"curveStep",{enumerable:!0,get:function(){return Y(M).default}}),Object.defineProperty(exports,"curveStepAfter",{enumerable:!0,get:function(){return M.stepAfter}}),Object.defineProperty(exports,"curveStepBefore",{enumerable:!0,get:function(){return M.stepBefore}});var _=require("./src/stack");Object.defineProperty(exports,"stack",{enumerable:!0,get:function(){return Y(_).default}});var D=require("./src/offset/expand");Object.defineProperty(exports,"stackOffsetExpand",{enumerable:!0,get:function(){return Y(D).default}});var L=require("./src/offset/diverging");Object.defineProperty(exports,"stackOffsetDiverging",{enumerable:!0,get:function(){return Y(L).default}});var N=require("./src/offset/none");Object.defineProperty(exports,"stackOffsetNone",{enumerable:!0,get:function(){return Y(N).default}});var h=require("./src/offset/silhouette");Object.defineProperty(exports,"stackOffsetSilhouette",{enumerable:!0,get:function(){return Y(h).default}});var w=require("./src/offset/wiggle");Object.defineProperty(exports,"stackOffsetWiggle",{enumerable:!0,get:function(){return Y(w).default}});var z=require("./src/order/ascending");Object.defineProperty(exports,"stackOrderAscending",{enumerable:!0,get:function(){return Y(z).default}});var H=require("./src/order/descending");Object.defineProperty(exports,"stackOrderDescending",{enumerable:!0,get:function(){return Y(H).default}});var V=require("./src/order/insideOut");Object.defineProperty(exports,"stackOrderInsideOut",{enumerable:!0,get:function(){return Y(V).default}});var W=require("./src/order/none");Object.defineProperty(exports,"stackOrderNone",{enumerable:!0,get:function(){return Y(W).default}});var X=require("./src/order/reverse");function Y(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"stackOrderReverse",{enumerable:!0,get:function(){return Y(X).default}});
|
|
},{"./src/arc":198,"./src/area":199,"./src/line":200,"./src/pie":201,"./src/areaRadial":202,"./src/lineRadial":203,"./src/pointRadial":204,"./src/link/index":289,"./src/symbol":205,"./src/symbol/circle":290,"./src/symbol/cross":291,"./src/symbol/diamond":292,"./src/symbol/square":293,"./src/symbol/star":294,"./src/symbol/triangle":295,"./src/symbol/wye":296,"./src/curve/basisClosed":297,"./src/curve/basisOpen":298,"./src/curve/basis":299,"./src/curve/bundle":300,"./src/curve/cardinalClosed":301,"./src/curve/cardinalOpen":302,"./src/curve/cardinal":303,"./src/curve/catmullRomClosed":304,"./src/curve/catmullRomOpen":305,"./src/curve/catmullRom":306,"./src/curve/linearClosed":307,"./src/curve/linear":308,"./src/curve/monotone":309,"./src/curve/natural":310,"./src/curve/step":311,"./src/stack":206,"./src/offset/expand":312,"./src/offset/diverging":313,"./src/offset/none":314,"./src/offset/silhouette":315,"./src/offset/wiggle":316,"./src/order/ascending":317,"./src/order/descending":318,"./src/order/insideOut":319,"./src/order/none":320,"./src/order/reverse":321}],488:[function(require,module,exports) {
|
|
"use strict";function C(){this._=null}function t(C){C.U=C.C=C.L=C.R=C.P=C.N=null}function i(C,t){var i=t,L=t.R,R=i.U;R?R.L===i?R.L=L:R.R=L:C._=L,L.U=R,i.U=L,i.R=L.L,i.R&&(i.R.U=i),L.L=i}function L(C,t){var i=t,L=t.L,R=i.U;R?R.L===i?R.L=L:R.R=L:C._=L,L.U=R,i.U=L,i.L=L.R,i.L&&(i.L.U=i),L.R=i}function R(C){for(;C.L;)C=C.L;return C}Object.defineProperty(exports,"__esModule",{value:!0}),exports.RedBlackNode=t,C.prototype={constructor:C,insert:function(C,t){var e,s,n;if(C){if(t.P=C,t.N=C.N,C.N&&(C.N.P=t),C.N=t,C.R){for(C=C.R;C.L;)C=C.L;C.L=t}else C.R=t;e=C}else this._?(C=R(this._),t.P=null,t.N=C,C.P=C.L=t,e=C):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,C=t;e&&e.C;)e===(s=e.U).L?(n=s.R)&&n.C?(e.C=n.C=!1,s.C=!0,C=s):(C===e.R&&(i(this,e),e=(C=e).U),e.C=!1,s.C=!0,L(this,s)):(n=s.L)&&n.C?(e.C=n.C=!1,s.C=!0,C=s):(C===e.L&&(L(this,e),e=(C=e).U),e.C=!1,s.C=!0,i(this,s)),e=C.U;this._.C=!1},remove:function(C){C.N&&(C.N.P=C.P),C.P&&(C.P.N=C.N),C.N=C.P=null;var t,e,s,n=C.U,l=C.L,r=C.R;if(e=l?r?R(r):l:r,n?n.L===C?n.L=e:n.R=e:this._=e,l&&r?(s=e.C,e.C=C.C,e.L=l,l.U=e,e!==r?(n=e.U,e.U=C.U,C=e.R,n.L=C,e.R=r,r.U=e):(e.U=n,n=e,C=e.R)):(s=C.C,C=e),C&&(C.U=n),!s)if(C&&C.C)C.C=!1;else{do{if(C===this._)break;if(C===n.L){if((t=n.R).C&&(t.C=!1,n.C=!0,i(this,n),t=n.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,L(this,t),t=n.R),t.C=n.C,n.C=t.R.C=!1,i(this,n),C=this._;break}}else if((t=n.L).C&&(t.C=!1,n.C=!0,L(this,n),t=n.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,i(this,t),t=n.L),t.C=n.C,n.C=t.L.C=!1,L(this,n),C=this._;break}t.C=!0,C=n,n=n.U}while(!C.C);C&&(C.C=!1)}}},exports.default=C;
|
|
},{}],487:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createEdge=r,exports.createBorderEdge=i,exports.setEdgeEnd=f,exports.clipEdges=s;var e=require("./Diagram");function r(r,i,t,n){var s=[null,null],l=e.edges.push(s)-1;return s.left=r,s.right=i,t&&f(s,r,i,t),n&&f(s,i,r,n),e.cells[r.index].halfedges.push(l),e.cells[i.index].halfedges.push(l),s}function i(e,r,i){var f=[r,i];return f.left=e,f}function f(e,r,i,f){e[0]||e[1]?e.left===i?e[1]=f:e[0]=f:(e[0]=f,e.left=r,e.right=i)}function t(e,r,i,f,t){var n,s=e[0],l=e[1],u=s[0],a=s[1],d=0,o=1,g=l[0]-u,c=l[1]-a;if(n=r-u,g||!(n>0)){if(n/=g,g<0){if(n<d)return;n<o&&(o=n)}else if(g>0){if(n>o)return;n>d&&(d=n)}if(n=f-u,g||!(n<0)){if(n/=g,g<0){if(n>o)return;n>d&&(d=n)}else if(g>0){if(n<d)return;n<o&&(o=n)}if(n=i-a,c||!(n>0)){if(n/=c,c<0){if(n<d)return;n<o&&(o=n)}else if(c>0){if(n>o)return;n>d&&(d=n)}if(n=t-a,c||!(n<0)){if(n/=c,c<0){if(n>o)return;n>d&&(d=n)}else if(c>0){if(n<d)return;n<o&&(o=n)}return!(d>0||o<1)||(d>0&&(e[0]=[u+d*g,a+d*c]),o<1&&(e[1]=[u+o*g,a+o*c]),!0)}}}}}function n(e,r,i,f,t){var n=e[1];if(n)return!0;var s,l,u=e[0],a=e.left,d=e.right,o=a[0],g=a[1],c=d[0],p=d[1],h=(o+c)/2,v=(g+p)/2;if(p===g){if(h<r||h>=f)return;if(o>c){if(u){if(u[1]>=t)return}else u=[h,i];n=[h,t]}else{if(u){if(u[1]<i)return}else u=[h,t];n=[h,i]}}else if(l=v-(s=(o-c)/(p-g))*h,s<-1||s>1)if(o>c){if(u){if(u[1]>=t)return}else u=[(i-l)/s,i];n=[(t-l)/s,t]}else{if(u){if(u[1]<i)return}else u=[(t-l)/s,t];n=[(i-l)/s,i]}else if(g<p){if(u){if(u[0]>=f)return}else u=[r,s*r+l];n=[f,s*f+l]}else{if(u){if(u[0]<r)return}else u=[f,s*f+l];n=[r,s*r+l]}return e[0]=u,e[1]=n,!0}function s(r,i,f,s){for(var l,u=e.edges.length;u--;)n(l=e.edges[u],r,i,f,s)&&t(l,r,i,f,s)&&(Math.abs(l[0][0]-l[1][0])>e.epsilon||Math.abs(l[0][1]-l[1][1])>e.epsilon)||delete e.edges[u]}
|
|
},{"./Diagram":394}],485:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createCell=l,exports.cellHalfedgeStart=t,exports.cellHalfedgeEnd=a,exports.sortCellHalfedges=n,exports.clipCells=o;var e=require("./Edge"),s=require("./Diagram");function l(e){return s.cells[e.index]={site:e,halfedges:[]}}function r(e,s){var l=e.site,r=s.left,t=s.right;return l===t&&(t=r,r=l),t?Math.atan2(t[1]-r[1],t[0]-r[0]):(l===r?(r=s[1],t=s[0]):(r=s[0],t=s[1]),Math.atan2(r[0]-t[0],t[1]-r[1]))}function t(e,s){return s[+(s.left!==e.site)]}function a(e,s){return s[+(s.left===e.site)]}function n(){for(var e,l,t,a,n=0,o=s.cells.length;n<o;++n)if((e=s.cells[n])&&(a=(l=e.halfedges).length)){var i=new Array(a),d=new Array(a);for(t=0;t<a;++t)i[t]=t,d[t]=r(e,s.edges[l[t]]);for(i.sort(function(e,s){return d[s]-d[e]}),t=0;t<a;++t)d[t]=l[i[t]];for(t=0;t<a;++t)l[t]=d[t]}}function o(l,r,n,o){var i,d,f,g,h,p,c,u,M,b,v,x,E=s.cells.length,B=!0;for(i=0;i<E;++i)if(d=s.cells[i]){for(f=d.site,g=(h=d.halfedges).length;g--;)s.edges[h[g]]||h.splice(g,1);for(g=0,p=h.length;g<p;)v=(b=a(d,s.edges[h[g]]))[0],x=b[1],u=(c=t(d,s.edges[h[++g%p]]))[0],M=c[1],(Math.abs(v-u)>s.epsilon||Math.abs(x-M)>s.epsilon)&&(h.splice(g,0,s.edges.push((0,e.createBorderEdge)(f,b,Math.abs(v-l)<s.epsilon&&o-x>s.epsilon?[l,Math.abs(u-l)<s.epsilon?M:o]:Math.abs(x-o)<s.epsilon&&n-v>s.epsilon?[Math.abs(M-o)<s.epsilon?u:n,o]:Math.abs(v-n)<s.epsilon&&x-r>s.epsilon?[n,Math.abs(u-n)<s.epsilon?M:r]:Math.abs(x-r)<s.epsilon&&v-l>s.epsilon?[Math.abs(M-r)<s.epsilon?u:l,r]:null))-1),++p);p&&(B=!1)}if(B){var y,C,H,q=1/0;for(i=0,B=null;i<E;++i)(d=s.cells[i])&&(H=(y=(f=d.site)[0]-l)*y+(C=f[1]-r)*C)<q&&(q=H,B=d);if(B){var w=[l,r],A=[l,o],_=[n,o],j=[n,r];B.halfedges.push(s.edges.push((0,e.createBorderEdge)(f=B.site,w,A))-1,s.edges.push((0,e.createBorderEdge)(f,A,_))-1,s.edges.push((0,e.createBorderEdge)(f,_,j))-1,s.edges.push((0,e.createBorderEdge)(f,j,w))-1)}}for(i=0;i<E;++i)(d=s.cells[i])&&(d.halfedges.length||delete s.cells[i])}
|
|
},{"./Edge":487,"./Diagram":394}],486:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.firstCircle=void 0,exports.attachCircle=c,exports.detachCircle=l;var e=require("./RedBlackTree"),r=require("./Diagram"),i=[],t=exports.firstCircle=void 0;function s(){(0,e.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function c(e){var c=e.P,l=e.N;if(c&&l){var a=c.site,o=e.site,f=l.site;if(a!==f){var n=o[0],p=o[1],u=a[0]-n,v=a[1]-p,x=f[0]-n,d=f[1]-p,h=2*(u*d-v*x);if(!(h>=-r.epsilon2)){var y=u*u+v*v,C=x*x+d*d,k=(d*y-v*C)/h,R=(u*C-x*y)/h,N=i.pop()||new s;N.arc=e,N.site=o,N.x=k+n,N.y=(N.cy=R+p)+Math.sqrt(k*k+R*R),e.circle=N;for(var P=null,b=r.circles._;b;)if(N.y<b.y||N.y===b.y&&N.x<=b.x){if(!b.L){P=b.P;break}b=b.L}else{if(!b.R){P=b;break}b=b.R}r.circles.insert(P,N),P||(exports.firstCircle=t=N)}}}}function l(s){var c=s.circle;c&&(c.P||(exports.firstCircle=t=c.N),r.circles.remove(c),i.push(c),(0,e.RedBlackNode)(c),s.circle=null)}
|
|
},{"./RedBlackTree":488,"./Diagram":394}],484:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeBeach=d,exports.addBeach=h;var e=require("./RedBlackTree"),r=require("./Cell"),i=require("./Circle"),t=require("./Edge"),c=require("./Diagram"),a=[];function s(){(0,e.RedBlackNode)(this),this.edge=this.site=this.circle=null}function l(e){var r=a.pop()||new s;return r.site=e,r}function n(r){(0,i.detachCircle)(r),c.beaches.remove(r),a.push(r),(0,e.RedBlackNode)(r)}function d(e){var r=e.circle,a=r.x,s=r.cy,l=[a,s],d=e.P,h=e.N,u=[e];n(e);for(var o=d;o.circle&&Math.abs(a-o.circle.x)<c.epsilon&&Math.abs(s-o.circle.cy)<c.epsilon;)d=o.P,u.unshift(o),n(o),o=d;u.unshift(o),(0,i.detachCircle)(o);for(var f=h;f.circle&&Math.abs(a-f.circle.x)<c.epsilon&&Math.abs(s-f.circle.cy)<c.epsilon;)h=f.N,u.push(f),n(f),f=h;u.push(f),(0,i.detachCircle)(f);var g,v=u.length;for(g=1;g<v;++g)f=u[g],o=u[g-1],(0,t.setEdgeEnd)(f.edge,o.site,f.site,l);o=u[0],(f=u[v-1]).edge=(0,t.createEdge)(o.site,f.site,null,l),(0,i.attachCircle)(o),(0,i.attachCircle)(f)}function h(e){for(var a,s,n,d,h=e[0],f=e[1],g=c.beaches._;g;)if((n=u(g,f)-h)>c.epsilon)g=g.L;else{if(!((d=h-o(g,f))>c.epsilon)){n>-c.epsilon?(a=g.P,s=g):d>-c.epsilon?(a=g,s=g.N):a=s=g;break}if(!g.R){a=g;break}g=g.R}(0,r.createCell)(e);var v=l(e);if(c.beaches.insert(a,v),a||s){if(a===s)return(0,i.detachCircle)(a),s=l(a.site),c.beaches.insert(v,s),v.edge=s.edge=(0,t.createEdge)(a.site,v.site),(0,i.attachCircle)(a),void(0,i.attachCircle)(s);if(s){(0,i.detachCircle)(a),(0,i.detachCircle)(s);var p=a.site,C=p[0],b=p[1],E=e[0]-C,q=e[1]-b,x=s.site,M=x[0]-C,N=x[1]-b,k=2*(E*N-q*M),B=E*E+q*q,P=M*M+N*N,R=[(N*B-q*P)/k+C,(E*P-M*B)/k+b];(0,t.setEdgeEnd)(s.edge,p,x,R),v.edge=(0,t.createEdge)(p,e,null,R),s.edge=(0,t.createEdge)(e,x,null,R),(0,i.attachCircle)(a),(0,i.attachCircle)(s)}else v.edge=(0,t.createEdge)(a.site,v.site)}}function u(e,r){var i=e.site,t=i[0],c=i[1],a=c-r;if(!a)return t;var s=e.P;if(!s)return-1/0;var l=(i=s.site)[0],n=i[1],d=n-r;if(!d)return l;var h=l-t,u=1/a-1/d,o=h/d;return u?(-o+Math.sqrt(o*o-2*u*(h*h/(-2*d)-n+d/2+c-a/2)))/u+t:(t+l)/2}function o(e,r){var i=e.N;if(i)return u(i,r);var t=e.site;return t[1]===r?t[0]:1/0}
|
|
},{"./RedBlackTree":488,"./Cell":485,"./Circle":486,"./Edge":487,"./Diagram":394}],394:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.edges=exports.circles=exports.cells=exports.beaches=exports.epsilon2=exports.epsilon=void 0,exports.default=g;var e=require("./Beach"),r=require("./Cell"),t=require("./Circle"),s=require("./Edge"),l=require("./RedBlackTree"),i=o(l);function o(e){return e&&e.__esModule?e:{default:e}}var n=exports.epsilon=1e-6,a=exports.epsilon2=1e-12,c=exports.beaches=void 0,u=exports.cells=void 0,f=exports.circles=void 0,d=exports.edges=void 0;function p(e,r,t){return(e[0]-t[0])*(r[1]-e[1])-(e[0]-r[0])*(t[1]-e[1])}function h(e,r){return r[1]-e[1]||r[0]-e[0]}function g(l,o){var n,a,p,g=l.sort(h).pop();for(exports.edges=d=[],exports.cells=u=new Array(l.length),exports.beaches=c=new i.default,exports.circles=f=new i.default;;)if(p=t.firstCircle,g&&(!p||g[1]<p.y||g[1]===p.y&&g[0]<p.x))g[0]===n&&g[1]===a||((0,e.addBeach)(g),n=g[0],a=g[1]),g=l.pop();else{if(!p)break;(0,e.removeBeach)(p.arc)}if((0,r.sortCellHalfedges)(),o){var x=+o[0][0],v=+o[0][1],b=+o[1][0],y=+o[1][1];(0,s.clipEdges)(x,v,b,y),(0,r.clipCells)(x,v,b,y)}this.edges=d,this.cells=u,exports.beaches=c=exports.circles=f=exports.edges=d=exports.cells=u=null}g.prototype={constructor:g,polygons:function(){var e=this.edges;return this.cells.map(function(t){var s=t.halfedges.map(function(s){return(0,r.cellHalfedgeStart)(t,e[s])});return s.data=t.site.data,s})},triangles:function(){var e=[],r=this.edges;return this.cells.forEach(function(t,s){if(i=(l=t.halfedges).length)for(var l,i,o,n=t.site,a=-1,c=r[l[i-1]],u=c.left===n?c.right:c.left;++a<i;)o=u,u=(c=r[l[a]]).left===n?c.right:c.left,o&&u&&s<o.index&&s<u.index&&p(n,o,u)<0&&e.push([n.data,o.data,u.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,r,t){for(var s,l,i=this,o=i._found||0,n=i.cells.length;!(l=i.cells[o]);)if(++o>=n)return null;var a=e-l.site[0],c=r-l.site[1],u=a*a+c*c;do{l=i.cells[s=o],o=null,l.halfedges.forEach(function(t){var s=i.edges[t],n=s.left;if(n!==l.site&&n||(n=s.right)){var a=e-n[0],c=r-n[1],f=a*a+c*c;f<u&&(u=f,o=n.index)}})}while(null!==o);return i._found=s,null==t||u<=t*t?l.site:null}};
|
|
},{"./Beach":484,"./Cell":485,"./Circle":486,"./Edge":487,"./RedBlackTree":488}],247:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var n=t.x,l=t.y,o=null;function i(e){return new r.default(e.map(function(t,r){var o=[Math.round(n(t,r,e)/u.epsilon)*u.epsilon,Math.round(l(t,r,e)/u.epsilon)*u.epsilon];return o.index=r,o.data=t,o}),o)}return i.polygons=function(n){return i(n).polygons()},i.links=function(n){return i(n).links()},i.triangles=function(n){return i(n).triangles()},i.x=function(t){return arguments.length?(n="function"==typeof t?t:(0,e.default)(+t),i):n},i.y=function(n){return arguments.length?(l="function"==typeof n?n:(0,e.default)(+n),i):l},i.extent=function(n){return arguments.length?(o=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],i):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},i.size=function(n){return arguments.length?(o=null==n?null:[[0,0],[+n[0],+n[1]]],i):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},i};var n=require("./constant"),e=l(n),t=require("./point"),u=require("./Diagram"),r=l(u);function l(n){return n&&n.__esModule?n:{default:n}}
|
|
},{"./constant":334,"./point":384,"./Diagram":394}],58:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/voronoi");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"voronoi",{enumerable:!0,get:function(){return r(e).default}});
|
|
},{"./src/voronoi":247}],396:[function(require,module,exports) {
|
|
"use strict";function t(t,e,s){this.target=t,this.type=e,this.transform=s}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
|
|
},{}],250:[function(require,module,exports) {
|
|
"use strict";function t(t,i,n){this.k=t,this.x=i,this.y=n}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Transform=t,exports.default=n,t.prototype={constructor:t,scale:function(i){return 1===i?this:new t(this.k*i,this.x,this.y)},translate:function(i,n){return 0===i&0===n?this:new t(this.k,this.x+this.k*i,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 i=exports.identity=new t(1,0,0);function n(t){return t.__zoom||i}n.prototype=t.prototype;
|
|
},{}],249:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){var u,h,f=m,_=p,g=z,w=v,x=y,T=[0,1/0],k=[[-1/0,-1/0],[1/0,1/0]],M=250,b=n.interpolateZoom,q=[],E=(0,t.dispatch)("start","zoom","end"),Y=500,V=150,X=0;function D(t){t.property("__zoom",d).on("wheel.zoom",O).on("mousedown.zoom",P).on("dblclick.zoom",W).filter(x).on("touchstart.zoom",Z).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function B(t,e){return(e=Math.max(T[0],Math.min(T[1],e)))===t.k?t:new c.Transform(e,t.x,t.y)}function G(t,e,n){var o=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return o===t.x&&i===t.y?t:new c.Transform(t.k,o,i)}function S(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function j(t,e,n){t.on("start.zoom",function(){H(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).end()}).tween("zoom",function(){var t=arguments,o=H(this,t),i=_.apply(this,t),u=n||S(i),r=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),h=this.__zoom,s="function"==typeof e?e.apply(this,t):e,a=b(h.invert(u).concat(r/h.k),s.invert(u).concat(r/s.k));return function(t){if(1===t)t=s;else{var e=a(t),n=r/e[2];t=new c.Transform(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}})}function H(t,e){for(var n,o=0,i=q.length;o<i;++o)if((n=q[o]).that===t)return n;return new K(t,e)}function K(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=_.apply(t,e)}function O(){if(f.apply(this,arguments)){var t=H(this,arguments),e=this.__zoom,n=Math.max(T[0],Math.min(T[1],e.k*Math.pow(2,w.apply(this,arguments)))),u=(0,o.mouse)(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=e.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(e.k===n)return;t.mouse=[u,e.invert(u)],(0,i.interrupt)(this),t.start()}(0,l.default)(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},V),t.zoom("mouse",g(G(B(e,n),t.mouse[0],t.mouse[1]),t.extent,k))}}function P(){if(!h&&f.apply(this,arguments)){var t=H(this,arguments),n=(0,o.select)(o.event.view).on("mousemove.zoom",function(){if((0,l.default)(),!t.moved){var e=o.event.clientX-r,n=o.event.clientY-s;t.moved=e*e+n*n>X}t.zoom("mouse",g(G(t.that.__zoom,t.mouse[0]=(0,o.mouse)(t.that),t.mouse[1]),t.extent,k))},!0).on("mouseup.zoom",function(){n.on("mousemove.zoom mouseup.zoom",null),(0,e.dragEnable)(o.event.view,t.moved),(0,l.default)(),t.end()},!0),u=(0,o.mouse)(this),r=o.event.clientX,s=o.event.clientY;(0,e.dragDisable)(o.event.view),(0,a.nopropagation)(),t.mouse=[u,this.__zoom.invert(u)],(0,i.interrupt)(this),t.start()}}function W(){if(f.apply(this,arguments)){var t=this.__zoom,e=(0,o.mouse)(this),n=t.invert(e),i=t.k*(o.event.shiftKey?.5:2),u=g(G(B(t,i),e,n),_.apply(this,arguments),k);(0,l.default)(),M>0?(0,o.select)(this).transition().duration(M).call(j,u,e):(0,o.select)(this).call(D.transform,u)}}function Z(){if(f.apply(this,arguments)){var t,e,n,r,h=H(this,arguments),s=o.event.changedTouches,c=s.length;for((0,a.nopropagation)(),e=0;e<c;++e)n=s[e],r=[r=(0,o.touch)(this,s,n.identifier),this.__zoom.invert(r),n.identifier],h.touch0?h.touch1||(h.touch1=r):(h.touch0=r,t=!0);if(u&&(u=clearTimeout(u),!h.touch1))return h.end(),void((r=(0,o.select)(this).on("dblclick.zoom"))&&r.apply(this,arguments));t&&(u=setTimeout(function(){u=null},Y),(0,i.interrupt)(this),h.start())}}function A(){var t,e,n,i,r=H(this,arguments),h=o.event.changedTouches,s=h.length;for((0,l.default)(),u&&(u=clearTimeout(u)),t=0;t<s;++t)e=h[t],n=(0,o.touch)(this,h,e.identifier),r.touch0&&r.touch0[2]===e.identifier?r.touch0[0]=n:r.touch1&&r.touch1[2]===e.identifier&&(r.touch1[0]=n);if(e=r.that.__zoom,r.touch1){var c=r.touch0[0],a=r.touch0[1],f=r.touch1[0],m=r.touch1[1],p=(p=f[0]-c[0])*p+(p=f[1]-c[1])*p,d=(d=m[0]-a[0])*d+(d=m[1]-a[1])*d;e=B(e,Math.sqrt(p/d)),n=[(c[0]+f[0])/2,(c[1]+f[1])/2],i=[(a[0]+m[0])/2,(a[1]+m[1])/2]}else{if(!r.touch0)return;n=r.touch0[0],i=r.touch0[1]}r.zoom("touch",g(G(e,n,i),r.extent,k))}function C(){var t,e,n=H(this,arguments),i=o.event.changedTouches,u=i.length;for((0,a.nopropagation)(),h&&clearTimeout(h),h=setTimeout(function(){h=null},Y),t=0;t<u;++t)e=i[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.identifier&&delete n.touch1;n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0?n.touch0[1]=this.__zoom.invert(n.touch0[0]):n.end()}return D.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",d),t!==n?j(t,e):n.interrupt().each(function(){H(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},D.scaleBy=function(t,e){D.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},D.scaleTo=function(t,e){D.transform(t,function(){var t=_.apply(this,arguments),n=this.__zoom,o=S(t),i=n.invert(o),u="function"==typeof e?e.apply(this,arguments):e;return g(G(B(n,u),o,i),t,k)})},D.translateBy=function(t,e,n){D.transform(t,function(){return g(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),_.apply(this,arguments),k)})},D.translateTo=function(t,e,n){D.transform(t,function(){var t=_.apply(this,arguments),o=this.__zoom,i=S(t);return g(c.identity.translate(i[0],i[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,k)})},K.prototype={start:function(){return 1==++this.active&&(this.index=q.push(this)-1,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(q.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){(0,o.customEvent)(new s.default(D,t,this.that.__zoom),E.apply,E,[t,this.that,this.args])}},D.wheelDelta=function(t){return arguments.length?(w="function"==typeof t?t:(0,r.default)(+t),D):w},D.filter=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.default)(!!t),D):f},D.touchable=function(t){return arguments.length?(x="function"==typeof t?t:(0,r.default)(!!t),D):x},D.extent=function(t){return arguments.length?(_="function"==typeof t?t:(0,r.default)([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),D):_},D.scaleExtent=function(t){return arguments.length?(T[0]=+t[0],T[1]=+t[1],D):[T[0],T[1]]},D.translateExtent=function(t){return arguments.length?(k[0][0]=+t[0][0],k[1][0]=+t[1][0],k[0][1]=+t[0][1],k[1][1]=+t[1][1],D):[[k[0][0],k[0][1]],[k[1][0],k[1][1]]]},D.constrain=function(t){return arguments.length?(g=t,D):g},D.duration=function(t){return arguments.length?(M=+t,D):M},D.interpolate=function(t){return arguments.length?(b=t,D):b},D.on=function(){var t=E.on.apply(E,arguments);return t===E?D:t},D.clickDistance=function(t){return arguments.length?(X=(t=+t)*t,D):Math.sqrt(X)},D};var t=require("d3-dispatch"),e=require("d3-drag"),n=require("d3-interpolate"),o=require("d3-selection"),i=require("d3-transition"),u=require("./constant"),r=f(u),h=require("./event"),s=f(h),c=require("./transform"),a=require("./noevent"),l=f(a);function f(t){return t&&t.__esModule?t:{default:t}}function m(){return!o.event.button}function p(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function d(){return this.__zoom||c.identity}function v(){return-o.event.deltaY*(o.event.deltaMode?120:1)/500}function y(){return"ontouchstart"in this}function z(t,e,n){var o=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],u=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1];return t.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),r>u?(u+r)/2:Math.min(0,u)||Math.max(0,r))}
|
|
},{"d3-dispatch":35,"d3-drag":47,"d3-interpolate":55,"d3-selection":50,"d3-transition":56,"./constant":334,"./event":396,"./transform":250,"./noevent":370}],59:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/zoom");Object.defineProperty(exports,"zoom",{enumerable:!0,get:function(){return t(e).default}});var r=require("./src/transform");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"zoomTransform",{enumerable:!0,get:function(){return t(r).default}}),Object.defineProperty(exports,"zoomIdentity",{enumerable:!0,get:function(){return r.identity}});
|
|
},{"./src/zoom":249,"./src/transform":250}],3:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./build/package");Object.defineProperty(exports,"version",{enumerable:!0,get:function(){return e.version}});var r=require("d3-array");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("d3-axis");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});var n=require("d3-brush");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});var u=require("d3-chord");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})});var o=require("d3-collection");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})});var c=require("d3-color");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})});var f=require("d3-dispatch");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return f[e]}})});var a=require("d3-drag");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})});var i=require("d3-dsv");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i[e]}})});var d=require("d3-ease");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return d[e]}})});var s=require("d3-force");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return s[e]}})});var l=require("d3-format");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})});var b=require("d3-geo");Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return b[e]}})});var p=require("d3-hierarchy");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return p[e]}})});var y=require("d3-interpolate");Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return y[e]}})});var j=require("d3-path");Object.keys(j).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return j[e]}})});var O=require("d3-polygon");Object.keys(O).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return O[e]}})});var _=require("d3-quadtree");Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _[e]}})});var m=require("d3-queue");Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return m[e]}})});var h=require("d3-random");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return h[e]}})});var v=require("d3-request");Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return v[e]}})});var g=require("d3-scale");Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return g[e]}})});var q=require("d3-selection");Object.keys(q).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return q[e]}})});var x=require("d3-shape");Object.keys(x).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return x[e]}})});var P=require("d3-time");Object.keys(P).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return P[e]}})});var k=require("d3-time-format");Object.keys(k).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return k[e]}})});var M=require("d3-timer");Object.keys(M).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return M[e]}})});var E=require("d3-transition");Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return E[e]}})});var z=require("d3-voronoi");Object.keys(z).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return z[e]}})});var w=require("d3-zoom");Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return w[e]}})});
|
|
},{"./build/package":28,"d3-array":30,"d3-axis":31,"d3-brush":32,"d3-chord":33,"d3-collection":34,"d3-color":41,"d3-dispatch":35,"d3-drag":47,"d3-dsv":37,"d3-ease":38,"d3-force":36,"d3-format":39,"d3-geo":40,"d3-hierarchy":43,"d3-interpolate":55,"d3-path":57,"d3-polygon":42,"d3-quadtree":44,"d3-queue":45,"d3-random":46,"d3-request":48,"d3-scale":49,"d3-selection":50,"d3-shape":51,"d3-time":52,"d3-time-format":53,"d3-timer":54,"d3-transition":56,"d3-voronoi":58,"d3-zoom":59}],60:[function(require,module,exports) {
|
|
|
|
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(t){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
|
|
},{}],29:[function(require,module,exports) {
|
|
var global = (1,eval)("this");
|
|
var process = require("process");
|
|
var e=(0,eval)("this"),t=require("process");!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in y)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.3.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&b.isPlainObject(n)?n:{},a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!v||!v.test(e))){if(1!==T)m=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+ye(h[s]);y=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(y)try{return L.apply(r,m.querySelectorAll(y)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",W)}),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function we(e,t,n,r,i,o){return r&&!r[b]&&(r=we(r)),i&&!i[b]&&(i=we(i,o)),se(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:be(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=be(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=be(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):L.apply(a,y)})}function Te(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me(xe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return we(u>1&&xe(p),u>1&&ye(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Te(e.slice(u,i)),i<o&&Te(e=e.slice(i)),i<o&&ye(e))}p.push(n)}return xe(p)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=_.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):k(e,u).slice(0)},s=oe.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=j.call(u));b=be(b)}L.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}(o,i))).selector=e}return s},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=V.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ye(u)))return L.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return g(t)?b.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?b.grep(e,function(e){return e===t!==n}):"string"!=typeof t?b.grep(e,function(e){return u.call(t,e)>-1!==n}):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,function(e){return 1===e.nodeType}))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter(function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),N.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return D(e,"iframe")?e.contentDocument:(D(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}});var P=/[^\x20\t\r\n\f]+/g;function M(e){return e}function R(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],function(e,n){t[n]=!0}),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred(function(t){b.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,M,i),a(o,n,R,i)):(o++,l.call(e,a(o,n,M,i),a(o,n,R,i),a(o,n,M,n.notifyWith))):(r!==M&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==R&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:M,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:M)),n[2][3].add(a(0,e,g(r)?r:R))}).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n--;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout(function(){throw t})};var $=b.Deferred();function B(){r.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),b.ready()}b.fn.ready=function(e){return $.then(e).catch(function(e){b.readyException(e)}),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var F=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)F(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function U(e){return e.replace(_,"ms-").replace(z,X)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[U(t)]=n;else for(r in t)i[U(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in r?[t]:t.match(P)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=U(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Q.set(this,e)}):F(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))?n:void 0!==(n=Z(o,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){b.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each(function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&b.contains(e.ownerDocument,e)&&"none"===b.css(e,"display")},ie=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function oe(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ae={};function se(e){var t,n=e.ownerDocument,r=e.nodeName,i=ae[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ae[r]=i,i)}function ue(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&re(r)&&(i[o]=se(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?b(this).show():b(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,fe=/^$|^module$|\/(?:java|ecma)script/i,pe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?b.merge([e],n):n}function he(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td;var ge,ve,ye=/<|&#?\w+;/;function me(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))b.merge(p,o.nodeType?[o]:o);else if(ye.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ce.exec(o)||["",""])[1].toLowerCase(),u=pe[s]||pe._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=b.contains(o.ownerDocument,o),a=de(f.appendChild(o),"script"),l&&he(a),n)for(c=0;o=a[c++];)fe.test(o.type||"")&&n.push(o);return f}ge=r.createDocumentFragment().appendChild(r.createElement("div")),(ve=r.createElement("input")).setAttribute("type","radio"),ve.setAttribute("checked","checked"),ve.setAttribute("name","t"),ge.appendChild(ve),h.checkClone=ge.cloneNode(!0).cloneNode(!0).lastChild.checked,ge.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ge.cloneNode(!0).lastChild.defaultValue;var xe=r.documentElement,be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function ke(){try{return r.activeElement}catch(e){}}function Se(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each(function(){b.event.add(this,t,i,r,n)})}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(xe,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l--;)d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l--;)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ke()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ke()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(e){return D(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||b.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),b.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){b.event.remove(this,e,n,t)})}});var De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ne=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Pe(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Ae.test(v))return e.each(function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),Pe(o,t,n,r)});if(p&&(o=(i=me(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(de(i,"script"),Le)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,de(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,He),f=0;f<u;f++)l=s[f],fe.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&b._evalUrl(l.src):m(l.textContent.replace(je,""),c,l))}return e}function Me(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(de(r)),r.parentNode&&(n&&b.contains(r.ownerDocument,r)&&he(de(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(De,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=b.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=de(c),r=0,i=(o=de(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&le.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||de(e),a=a||de(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return(a=de(c,"script")).length>0&&he(a,!f&&de(e,"script")),c},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return F(this,function(e){return void 0===e?b.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return F(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!pe[(ce.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Pe(this,arguments,function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(de(this)),n&&n.replaceChild(t,this))},e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Re=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},We=new RegExp(ne.join("|"),"i");function $e(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||b.contains(e.ownerDocument,e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Re.test(a)&&We.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Be(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=36===c.offsetWidth||"absolute",xe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Fe=/^(none|table(?!-c[ea]).+)/,_e=/^--/,ze={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","Moz","ms"],Ve=r.createElement("div").style;function Ge(e){var t=b.cssProps[e];return t||(t=b.cssProps[e]=function(e){if(e in Ve)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Ve)return e}(e)||e),t}function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function Je(e,t,n){var r=Ie(e),i=$e(e,t,r),o="border-box"===b.css(e,"boxSizing",!1,r),a=o;if(Re.test(i)){if(!n)return i;i="auto"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===b.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Qe(e,t,n||(o?"border":"content"),a,r,i)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=U(t),u=_e.test(t),l=e.style;if(u||(t=Ge(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=oe(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=U(t);return _e.test(t)||(t=Ge(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=$e(e,t,r)),"normal"===i&&t in Xe&&(i=Xe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Fe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,t,r):ie(e,ze,function(){return Je(e,t,r)})},set:function(e,n,r){var i,o=Ie(e),a="border-box"===b.css(e,"boxSizing",!1,o),s=r&&Qe(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),s&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),Ye(0,n,s)}}}),b.cssHooks.marginLeft=Be(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=Ye)}),b.fn.extend({css:function(e,t){return F(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)},e,t,arguments.length>1)}}),b.Tween=Ke,Ke.prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}},Ke.prototype.init.prototype=Ke.prototype,Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[b.cssProps[e.prop]]&&!b.cssHooks[e.prop]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},Ke.propHooks.scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=Ke.prototype.init,b.fx.step={};var Ze,et,tt=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function rt(){et&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,b.fx.interval),b.fx.tick())}function it(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function ot(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function at(e,t,n){for(var r,i=(st.tweeners[t]||[]).concat(st.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function st(e,t,n){var r,i,o=0,a=st.prefilters.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Ze||it(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||it(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=U(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=st.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,at,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return oe(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&re(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,b.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],tt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(ue([e],!0),l=e.style.display||l,c=b.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&ue([e],!0),p.done(function(){for(r in g||ue([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])})),u=at(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=st(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&nt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,r,i)}}),b.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),Ze=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){et||(et=!0,rt())},b.fx.stop=function(){et=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var ut,lt=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return F(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||b.find.attr;lt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=lt[a],lt[a]=i,i=null!=n(e,t,r)?a:null,lt[a]=o),i}});var ct=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function pt(e){return(e.match(P)||[]).join(" ")}function dt(e){return e.getAttribute&&e.getAttribute("class")||""}function ht(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return F(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[b.propFix[e]||e]})}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){b(this).addClass(e.call(this,t,dt(this)))});if((t=ht(e)).length)for(;n=this[u++];)if(i=dt(n),r=1===n.nodeType&&" "+pt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=pt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){b(this).removeClass(e.call(this,t,dt(this)))});if(!arguments.length)return this.attr("class","");if((t=ht(e)).length)for(;n=this[u++];)if(i=dt(n),r=1===n.nodeType&&" "+pt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=pt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,dt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=ht(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=dt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+pt(dt(n))+" ").indexOf(t)>-1)return!0;return!1}});var gt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,function(e){return null==e?"":e+""})),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(gt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:pt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a--;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var vt=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!vt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(m=(x=m.split(".")).shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,vt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,yt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,yt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}});var mt=e.location,xt=Date.now(),bt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var wt=/\[\]$/,Tt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,function(t,i){n||wt.test(e)?r(e,i):kt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)kt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){i(this.name,this.value)});else for(n in e)kt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var St=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,qt=/^\/\//,Lt={},Ht={},Ot="*/".concat("*"),Pt=r.createElement("a");function Mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Rt(e,t,n,r){var i={},o=e===Ht;function a(s){var u;return i[s]=!0,b.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function It(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}Pt.href=mt.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,b.ajaxSettings),t):It(b.ajaxSettings,e)},ajaxPrefilter:Mt(Lt),ajaxTransport:Mt(Ht),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=At.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||mt.href)+"").replace(qt,mt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Pt.protocol+"//"+Pt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Rt(Lt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!jt.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(St,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(bt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),d=(bt.test(o)?"&":"?")+"_="+xt+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ot+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Rt(Ht,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),--b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}}),b._evalUrl=function(e){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},$t=b.ajaxSettings.xhr();h.cors=!!$t&&"withCredentials"in $t,h.ajax=$t=!!$t,b.ajaxTransport(function(t){var n,r;if(h.cors||$t&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),b.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),b.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,o){t=b("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Bt,Ft=[],_t=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ft.pop()||b.expando+"_"+xt++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(_t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_t.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(_t,"$1"+i):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ft.push(i)),a&&g(o)&&o(a[0]),a=o=void 0}),"script"}),h.createHTMLDocument=((Bt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Bt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),o=N.exec(e),a=!n&&[],o?[t.createElement(o[1])]:(o=me([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.expr.pseudos.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){b.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||xe})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return F(this,function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),b.each(["top","left"],function(e,t){b.cssHooks[t]=Be(h.pixelPosition,function(e,n){if(n)return n=$e(e,t),Re.test(n)?b(e).position()[t]+"px":n})}),b.each({Height:"height",Width:"width"},function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return F(this,function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)},t,a?i:void 0,a)}})}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=D,b.isFunction=g,b.isWindow=v,b.camelCase=U,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return b});var zt=e.jQuery,Xt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Xt),t&&e.jQuery===b&&(e.jQuery=zt),b},t||(e.jQuery=e.$=b),b});
|
|
},{"process":60}],10:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorGenerator=exports.EventListenerManager=exports.HooksManager=exports.GenericCanvas=exports.ElemContainer=exports.CanvasManager=e;var t="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};exports.default=r,exports.jqPlot=_;var e,s=require("jquery"),i=a(s);function a(t){return t&&t.__esModule?t:{default:t}}function r(t,e,s){var a=null,n=null;3===arguments.length?(a=e,n=s):2===arguments.length&&(i.default.isArray(e)?a=e:i.default.isPlainObject(e)&&(n=e)),null===a&&null!==n&&n.data&&(a=n.data);var o=new _;if((0,i.default)("#"+t).removeClass("jqplot-error"),!r.config.catchErrors)return o.init(t,a,n),o.draw(),o.themeEngine.init.call(o),o;try{return o.init(t,a,n),o.draw(),o.themeEngine.init.call(o),o}catch(e){var h=r.config.errorMessage||e.message;(0,i.default)("#"+t).append('<div class="jqplot-error-message">'+h+"</div>"),(0,i.default)("#"+t).addClass("jqplot-error"),document.getElementById(t).style.background=r.config.errorBackground,document.getElementById(t).style.border=r.config.errorBorder,document.getElementById(t).style.fontFamily=r.config.errorFontFamily,document.getElementById(t).style.fontSize=r.config.errorFontSize,document.getElementById(t).style.fontStyle=r.config.errorFontStyle,document.getElementById(t).style.fontWeight=r.config.errorFontWeight}}i.default.fn.emptyForce=function(){for(var t,e=0;null!=(t=(0,i.default)(this)[e]);e++){if(1===t.nodeType&&i.default.cleanData(t.getElementsByTagName("*")),r.use_excanvas)t.outerHTML="";else for(;t.firstChild;)t.removeChild(t.firstChild);t=null}return(0,i.default)(this)},i.default.fn.removeChildForce=function(t){for(;t.firstChild;)this.removeChildForce(t.firstChild),t.removeChild(t.firstChild)},i.default.fn.jqplot=function(){for(var t=[],s=[],a=0,n=arguments.length;a<n;a++)i.default.isArray(arguments[a])?t.push(arguments[a]):i.default.isPlainObject(arguments[a])&&s.push(arguments[a]);return this.each(function(a){var n,o,h,l,d=(0,i.default)(this),g=t.length,p=s.length;h=a<g?t[a]:g?t[g-1]:null,l=a<p?s[a]:p?s[p-1]:null,(n=d.attr("id"))===e&&(n="jqplot_target_"+r.targetCounter++,d.attr("id",n)),o=r(n,h,l),d.data("./jqplot.core",o)})},r.version="@VERSION",r.revision="@REVISION",r.targetCounter=1;var n=exports.CanvasManager=r.CanvasManager=function(){void 0===r.CanvasManager.canvases&&(r.CanvasManager.canvases=[],r.CanvasManager.free=[]);var t=[];this.getCanvas=function(){var e,s=!0;if(!r.use_excanvas)for(var i=0,a=r.CanvasManager.canvases.length;i<a;i++)if(!0===r.CanvasManager.free[i]){s=!1,e=r.CanvasManager.canvases[i],r.CanvasManager.free[i]=!1,t.push(i);break}return s&&(e=document.createElement("canvas"),t.push(r.CanvasManager.canvases.length),r.CanvasManager.canvases.push(e),r.CanvasManager.free.push(!1)),e},this.initCanvas=function(t){if(r.use_excanvas)return window.G_vmlCanvasManager.initElement(t);var s=t.getContext("2d"),i=1;window.devicePixelRatio>1&&(s.webkitBackingStorePixelRatio===e||s.webkitBackingStorePixelRatio<2)&&(i=window.devicePixelRatio);var a=t.width,n=t.height;return t.width=i*t.width,t.height=i*t.height,t.style.width=a+"px",t.style.height=n+"px",s.save(),s.scale(i,i),t},this.freeAllCanvases=function(){for(var e=0,s=t.length;e<s;e++)this.freeCanvas(t[e]);t=[]},this.freeCanvas=function(t){if(r.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==e)window.G_vmlCanvasManager.uninitElement(r.CanvasManager.canvases[t]),r.CanvasManager.canvases[t]=null;else{var s=r.CanvasManager.canvases[t];s.getContext("2d").clearRect(0,0,s.width,s.height),(0,i.default)(s).unbind().removeAttr("class").removeAttr("style"),(0,i.default)(s).css({left:"",top:"",position:""}),s.width=0,s.height=0,r.CanvasManager.free[t]=!0}}};r.log=function(){window.console&&window.console.log.apply(window.console,arguments)},r.config={addDomReference:!1,enablePlugins:!1,defaultHeight:300,defaultWidth:400,UTCAdjust:!1,timezoneOffset:new Date(6e4*(new Date).getTimezoneOffset()),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:!1,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"},r.arrayMax=function(t){return Math.max.apply(Math,t)},r.arrayMin=function(t){return Math.min.apply(Math,t)},r.enablePlugins=r.config.enablePlugins,r.support_canvas=function(){return void 0===r.support_canvas.result&&(r.support_canvas.result=!!document.createElement("canvas").getContext),r.support_canvas.result},r.support_canvas_text=function(){return void 0===r.support_canvas_text.result&&(window.G_vmlCanvasManager!==e&&window.G_vmlCanvasManager._version>887?r.support_canvas_text.result=!0:r.support_canvas_text.result=!(!document.createElement("canvas").getContext||"function"!=typeof document.createElement("canvas").getContext("2d").fillText)),r.support_canvas_text.result},r.use_excanvas=!(i.default.support.boxModel&&i.default.support.objectAll&&$support.leadingWhitespace||r.support_canvas()),r.preInitHooks=[],r.postInitHooks=[],r.preParseOptionsHooks=[],r.postParseOptionsHooks=[],r.preDrawHooks=[],r.postDrawHooks=[],r.preDrawSeriesHooks=[],r.postDrawSeriesHooks=[],r.preDrawLegendHooks=[],r.addLegendRowHooks=[],r.preSeriesInitHooks=[],r.postSeriesInitHooks=[],r.preParseSeriesOptionsHooks=[],r.postParseSeriesOptionsHooks=[],r.eventListenerHooks=[],r.preDrawSeriesShadowHooks=[],r.postDrawSeriesShadowHooks=[];var o=exports.ElemContainer=r.ElemContainer=function(){this._elem,this._plotWidth,this._plotHeight,this._plotDimensions={height:null,width:null}};function h(t){r.ElemContainer.call(this),this.name=t,this._series=[],this.show=!1,this.tickRenderer=r.AxisTickRenderer,this.tickOptions={},this.labelRenderer=r.AxisLabelRenderer,this.labelOptions={},this.label=null,this.showLabel=!0,this.min=null,this.max=null,this.autoscale=!1,this.pad=1.2,this.padMax=null,this.padMin=null,this.ticks=[],this.numberTicks,this.tickInterval,this.renderer=r.LinearAxisRenderer,this.rendererOptions={},this.showTicks=!0,this.showTickMarks=!0,this.showMinorTicks=!0,this.drawMajorGridlines=!0,this.drawMinorGridlines=!1,this.drawMajorTickMarks=!0,this.drawMinorTickMarks=!0,this.useSeriesColor=!1,this.borderWidth=null,this.borderColor=null,this.scaleToHiddenSeries=!1,this._dataBounds={min:null,max:null},this._intervalStats=[],this._offsets={min:null,max:null},this._ticks=[],this._label=null,this.syncTicks=null,this.tickSpacing=75,this._min=null,this._max=null,this._tickInterval=null,this._numberTicks=null,this.__ticks=null,this._options={}}function l(t){r.ElemContainer.call(this),this.show=!1,this.location="ne",this.labels=[],this.showLabels=!0,this.showSwatches=!0,this.placement="insideGrid",this.xoffset=0,this.yoffset=0,this.border,this.background,this.textColor,this.fontFamily,this.fontSize,this.rowSpacing="0.5em",this.renderer=r.TableLegendRenderer,this.rendererOptions={},this.preDraw=!1,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.escapeHtml=!1,this._series=[],i.default.extend(!0,this,t)}function d(t){r.ElemContainer.call(this),this.text=t,this.show=!0,this.fontFamily,this.fontSize,this.textAlign,this.textColor,this.renderer=r.DivTitleRenderer,this.rendererOptions={},this.escapeHtml=!1}function g(t){t=t||{},r.ElemContainer.call(this),this.show=!0,this.xaxis="xaxis",this._xaxis,this.yaxis="yaxis",this._yaxis,this.gridBorderWidth=2,this.renderer=r.LineRenderer,this.rendererOptions={},this.data=[],this.gridData=[],this.label="",this.showLabel=!0,this.color,this.negativeColor,this.lineWidth=2.5,this.lineJoin="round",this.lineCap="round",this.linePattern="solid",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.25,this.shadowDepth=3,this.shadowAlpha="0.1",this.breakOnNull=!1,this.markerRenderer=r.MarkerRenderer,this.markerOptions={},this.showLine=!0,this.showMarker=!0,this.index,this.fill=!1,this.fillColor,this.fillAlpha,this.fillAndStroke=!1,this.disableStack=!1,this._stack=!1,this.neighborThreshold=4,this.fillToZero=!1,this.fillToValue=0,this.fillAxis="y",this.useNegativeColors=!0,this._stackData=[],this._plotData=[],this._plotValues={x:[],y:[]},this._intervals={x:{},y:{}},this._prevPlotData=[],this._prevGridData=[],this._stackAxis="y",this._primaryAxis="_xaxis",this.canvas=new r.GenericCanvas,this.shadowCanvas=new r.GenericCanvas,this.plugins={},this._sumy=0,this._sumx=0,this._type="",this.step=!1}function p(){r.ElemContainer.call(this),this.drawGridlines=!0,this.gridLineColor="#cccccc",this.gridLineWidth=1,this.background="#fffdf6",this.borderColor="#999999",this.borderWidth=2,this.drawBorder=!0,this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.5,this.shadowWidth=3,this.shadowDepth=3,this.shadowColor=null,this.shadowAlpha="0.07",this._left,this._top,this._right,this._bottom,this._width,this._height,this._axes=[],this.renderer=r.CanvasGridRenderer,this.rendererOptions={},this._offsets={top:null,bottom:null,left:null,right:null}}r.ElemContainer.prototype.createElement=function(t,e,s,a,r){this._offsets=e;var n=s||"./jqplot.core",o=document.createElement(t);return this._elem=(0,i.default)(o),this._elem.addClass(n),this._elem.css(a),this._elem.attr(r),o=null,this._elem},r.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(!0):null},r.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(!0):null},r.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}},r.ElemContainer.prototype.getTop=function(){return this.getPosition().top},r.ElemContainer.prototype.getLeft=function(){return this.getPosition().left},r.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")},r.ElemContainer.prototype.getRight=function(){return this._elem.css("right")},h.prototype=new r.ElemContainer,h.prototype.constructor=h,h.prototype.init=function(){i.default.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.tickOptions.axis=this.name,null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTicks),null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTickMarks),null==this.tickOptions.showLabel&&(this.tickOptions.showLabel=this.showTicks),null==this.label||""==this.label?this.showLabel=!1:this.labelOptions.label=this.label,0==this.showLabel&&(this.labelOptions.show=!1),0==this.pad&&(this.pad=1),0==this.padMax&&(this.padMax=1),0==this.padMin&&(this.padMin=1),null==this.padMax&&(this.padMax=(this.pad-1)/2+1),null==this.padMin&&(this.padMin=(this.pad-1)/2+1),this.pad=this.padMax+this.padMin-1,null==this.min&&null==this.max||(this.autoscale=!1),null==this.syncTicks&&this.name.indexOf("y")>-1?this.syncTicks=!0:null==this.syncTicks&&(this.syncTicks=!1),this.renderer.init.call(this,this.rendererOptions)},h.prototype.draw=function(t,e){return this.__ticks&&(this.__ticks=null),this.renderer.draw.call(this,t,e)},h.prototype.set=function(){this.renderer.set.call(this)},h.prototype.pack=function(t,e){this.show&&this.renderer.pack.call(this,t,e),null==this._min&&(this._min=this.min,this._max=this.max,this._tickInterval=this.tickInterval,this._numberTicks=this.numberTicks,this.__ticks=this._ticks)},h.prototype.reset=function(){this.renderer.reset.call(this)},h.prototype.resetScale=function(t){i.default.extend(!0,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},t),this.resetDataBounds()},h.prototype.resetDataBounds=function(){var t,e,s=this._dataBounds;s.min=null,s.max=null;for(var i=!!this.show,a=0;a<this._series.length;a++)if((t=this._series[a]).show||this.scaleToHiddenSeries){e=t._plotData,"line"===t._type&&t.renderer.bands.show&&"x"!==this.name.charAt(0)&&(e=[[0,t.renderer.bands._min],[1,t.renderer.bands._max]]);var n=1,o=1;null!=t._type&&"ohlc"==t._type&&(n=3,o=2);for(var h=0,l=e.length;h<l;h++)"xaxis"==this.name||"x2axis"==this.name?((null!=e[h][0]&&e[h][0]<s.min||null==s.min)&&(s.min=e[h][0]),(null!=e[h][0]&&e[h][0]>s.max||null==s.max)&&(s.max=e[h][0])):((null!=e[h][n]&&e[h][n]<s.min||null==s.min)&&(s.min=e[h][n]),(null!=e[h][o]&&e[h][o]>s.max||null==s.max)&&(s.max=e[h][o]));i&&t.renderer.constructor!==r.BarRenderer?i=!1:i&&this._options.hasOwnProperty("forceTickAt0")&&0==this._options.forceTickAt0?i=!1:i&&t.renderer.constructor===r.BarRenderer&&("vertical"==t.barDirection&&"xaxis"!=this.name&&"x2axis"!=this.name?null==this._options.pad&&null==this._options.padMin||(i=!1):"horizontal"!=t.barDirection||"xaxis"!=this.name&&"x2axis"!=this.name||null==this._options.pad&&null==this._options.padMin||(i=!1))}i&&this.renderer.constructor===r.LinearAxisRenderer&&s.min>=0&&(this.padMin=1,this.forceTickAt0=!0)},l.prototype=new r.ElemContainer,l.prototype.constructor=l,l.prototype.setOptions=function(t){if(i.default.extend(!0,this,t),"inside"==this.placement&&(this.placement="insideGrid"),this.xoffset>0){if("insideGrid"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px";break;case"ne":case"e":case"se":default:null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px"}else if("outside"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px";break;case"ne":case"e":case"se":default:null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px"}this.xoffset=0}if(this.yoffset>0){if("outside"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px";break;case"ne":case"n":case"nw":default:null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px"}else if("insideGrid"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px";break;case"ne":case"n":case"nw":default:null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px"}this.yoffset=0}},l.prototype.init=function(){i.default.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},l.prototype.draw=function(t,e){for(var s=0;s<r.preDrawLegendHooks.length;s++)r.preDrawLegendHooks[s].call(this,t);return this.renderer.draw.call(this,t,e)},l.prototype.pack=function(t){this.renderer.pack.call(this,t)},d.prototype=new r.ElemContainer,d.prototype.constructor=d,d.prototype.init=function(){i.default.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},d.prototype.draw=function(t){return this.renderer.draw.call(this,t)},d.prototype.pack=function(){this.renderer.pack.call(this)},g.prototype=new r.ElemContainer,g.prototype.constructor=g,g.prototype.init=function(t,e,s){this.index=t,this.gridBorderWidth=e;var a,n,o=this.data,h=[];for(a=0,n=o.length;a<n;a++)if(this.breakOnNull)h.push(o[a]);else{if(null==o[a]||null==o[a][0]||null==o[a][1])continue;h.push(o[a])}if(this.data=h,this.color||(this.color=s.colorGenerator.get(this.index)),this.negativeColor||(this.negativeColor=s.negativeColorGenerator.get(this.index)),this.fillColor||(this.fillColor=this.color),this.fillAlpha){var l=r.normalize2rgb(this.fillColor);l=r.getColorComponents(l);this.fillColor="rgba("+l[0]+","+l[1]+","+l[2]+","+this.fillAlpha+")"}i.default.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions,s),this.markerRenderer=new this.markerRenderer,this.markerOptions.color||(this.markerOptions.color=this.color),null==this.markerOptions.show&&(this.markerOptions.show=this.showMarker),this.showMarker=this.markerOptions.show,this.markerRenderer.init(this.markerOptions)},g.prototype.draw=function(t,s,a){var n,o,h,l=s==e?{}:s;for(t=t==e?this.canvas._ctx:t,n=0;n<r.preDrawSeriesHooks.length;n++)r.preDrawSeriesHooks[n].call(this,t,l);for(this.show&&(this.renderer.setGridData.call(this,a),l.preventJqPlotSeriesDrawTrigger||(0,i.default)(t.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]),o=[],o=l.data?l.data:this._stack?this._plotData:this.data,h=l.gridData||this.renderer.makeGridData.call(this,o,a),"line"===this._type&&this.renderer.smooth&&this.renderer._smoothedData.length&&(h=this.renderer._smoothedData),this.renderer.draw.call(this,t,h,l,a)),n=0;n<r.postDrawSeriesHooks.length;n++)r.postDrawSeriesHooks[n].call(this,t,l,a);t=s=a=n=o=h=null},g.prototype.drawShadow=function(t,s,i){var a,n,o,h=s==e?{}:s;for(t=t==e?this.shadowCanvas._ctx:t,a=0;a<r.preDrawSeriesShadowHooks.length;a++)r.preDrawSeriesShadowHooks[a].call(this,t,h);for(this.shadow&&(this.renderer.setGridData.call(this,i),n=[],n=h.data?h.data:this._stack?this._plotData:this.data,o=h.gridData||this.renderer.makeGridData.call(this,n,i),this.renderer.drawShadow.call(this,t,o,h,i)),a=0;a<r.postDrawSeriesShadowHooks.length;a++)r.postDrawSeriesShadowHooks[a].call(this,t,h);t=s=i=a=n=o=null},g.prototype.toggleDisplay=function(t,e){var s,i;s=t.data.series?t.data.series:this,t.data.speed&&(i=t.data.speed),i?s.canvas._elem.is(":hidden")||!s.show?(s.show=!0,s.canvas._elem.removeClass("jqplot-series-hidden"),s.shadowCanvas._elem&&s.shadowCanvas._elem.fadeIn(i),s.canvas._elem.fadeIn(i,e),s.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+s.index).fadeIn(i)):(s.show=!1,s.canvas._elem.addClass("jqplot-series-hidden"),s.shadowCanvas._elem&&s.shadowCanvas._elem.fadeOut(i),s.canvas._elem.fadeOut(i,e),s.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+s.index).fadeOut(i)):s.canvas._elem.is(":hidden")||!s.show?(s.show=!0,s.canvas._elem.removeClass("jqplot-series-hidden"),s.shadowCanvas._elem&&s.shadowCanvas._elem.show(),s.canvas._elem.show(0,e),s.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+s.index).show()):(s.show=!1,s.canvas._elem.addClass("jqplot-series-hidden"),s.shadowCanvas._elem&&s.shadowCanvas._elem.hide(),s.canvas._elem.hide(0,e),s.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+s.index).hide())},p.prototype=new r.ElemContainer,p.prototype.constructor=p,p.prototype.init=function(){i.default.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},p.prototype.createElement=function(t,e){return this._offsets=t,this.renderer.createElement.call(this,e)},p.prototype.draw=function(){this.renderer.draw.call(this)};var c=exports.GenericCanvas=r.GenericCanvas=function(){r.ElemContainer.call(this),this._ctx};r.GenericCanvas.prototype=new r.ElemContainer,r.GenericCanvas.prototype.constructor=r.GenericCanvas,r.GenericCanvas.prototype.createElement=function(t,s,a,r){this._offsets=t;var n,o="./jqplot.core";return s!=e&&(o=s),n=r.canvasManager.getCanvas(),null!=a&&(this._plotDimensions=a),n.width=this._plotDimensions.width-this._offsets.left-this._offsets.right,n.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom,this._elem=(0,i.default)(n),this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top}),this._elem.addClass(o),n=r.canvasManager.initCanvas(n),n=null,this._elem},r.GenericCanvas.prototype.setContext=function(){return this._ctx=this._elem.get(0).getContext("2d"),this._ctx},r.GenericCanvas.prototype.resetCanvas=function(){this._elem&&(r.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==e&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce()),this._ctx=null};var u=exports.HooksManager=r.HooksManager=function(){this.hooks=[],this.args=[]};r.HooksManager.prototype.addOnce=function(t,e){e=e||[];for(var s=!1,i=0,a=this.hooks.length;i<a;i++)this.hooks[i]==t&&(s=!0);s||(this.hooks.push(t),this.args.push(e))},r.HooksManager.prototype.add=function(t,e){e=e||[],this.hooks.push(t),this.args.push(e)};var f=exports.EventListenerManager=r.EventListenerManager=function(){this.hooks=[]};r.EventListenerManager.prototype.addOnce=function(t,e){for(var s,i=!1,a=0,r=this.hooks.length;a<r;a++)(s=this.hooks[a])[0]==t&&s[1]==e&&(i=!0);i||this.hooks.push([t,e])},r.EventListenerManager.prototype.add=function(t,e){this.hooks.push([t,e])};var m=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];function _(){this.animate=!1,this.animateReplot=!1,this.axes={xaxis:new h("xaxis"),yaxis:new h("yaxis"),x2axis:new h("x2axis"),y2axis:new h("y2axis"),y3axis:new h("y3axis"),y4axis:new h("y4axis"),y5axis:new h("y5axis"),y6axis:new h("y6axis"),y7axis:new h("y7axis"),y8axis:new h("y8axis"),y9axis:new h("y9axis"),yMidAxis:new h("yMidAxis")},this.baseCanvas=new r.GenericCanvas,this.captureRightClick=!1,this.data=[],this.dataRenderer,this.dataRendererOptions,this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]},this.defaultAxisStart=1,this.drawIfHidden=!1,this.eventCanvas=new r.GenericCanvas,this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:!0},this.fontFamily,this.fontSize,this.grid=new p,this.legend=new l,this.noDataIndicator={show:!1,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:!0},yaxis:{min:0,max:12,tickInterval:3,show:!0}}},this.negativeSeriesColors=r.config.defaultNegativeColors,this.options={},this.previousSeriesStack=[],this.plugins={},this.series=[],this.seriesStack=[],this.seriesColors=r.config.defaultColors,this.sortData=!0,this.stackSeries=!1,this.syncXTicks=!0,this.syncYTicks=!0,this.target=null,this.targetId=null,this.textColor,this.title=new d,this._drawCount=0,this._sumy=0,this._sumx=0,this._stackData=[],this._plotData=[],this._width=null,this._height=null,this._plotDimensions={height:null,width:null},this._gridPadding={top:null,right:null,bottom:null,left:null},this._defaultGridPadding={top:10,right:10,bottom:23,left:10},this._addDomReference=r.config.addDomReference,this.preInitHooks=new r.HooksManager,this.postInitHooks=new r.HooksManager,this.preParseOptionsHooks=new r.HooksManager,this.postParseOptionsHooks=new r.HooksManager,this.preDrawHooks=new r.HooksManager,this.postDrawHooks=new r.HooksManager,this.preDrawSeriesHooks=new r.HooksManager,this.postDrawSeriesHooks=new r.HooksManager,this.preDrawLegendHooks=new r.HooksManager,this.addLegendRowHooks=new r.HooksManager,this.preSeriesInitHooks=new r.HooksManager,this.postSeriesInitHooks=new r.HooksManager,this.preParseSeriesOptionsHooks=new r.HooksManager,this.postParseSeriesOptionsHooks=new r.HooksManager,this.eventListenerHooks=new r.EventListenerManager,this.preDrawSeriesShadowHooks=new r.HooksManager,this.postDrawSeriesShadowHooks=new r.HooksManager,this.colorGenerator=new r.ColorGenerator,this.negativeColorGenerator=new r.ColorGenerator,this.canvasManager=new r.CanvasManager,this.themeEngine=new r.ThemeEngine;var s,a;function n(t){for(var e,s=0;s<t.length;s++)for(var i,a=[t[s].data,t[s]._stackData,t[s]._plotData,t[s]._prevPlotData],r=0;r<4;r++)if(i=!0,e=a[r],"x"==t[s]._stackAxis){for(var n=0;n<e.length;n++)if("number"!=typeof e[n][1]){i=!1;break}i&&e.sort(function(t,e){return t[1]-e[1]})}else{for(n=0;n<e.length;n++)if("number"!=typeof e[n][0]){i=!1;break}i&&e.sort(function(t,e){return t[0]-e[0]})}}function o(t){var e,s,i=t.data.plot,a=i.eventCanvas._elem.offset(),r={x:t.pageX-a.left,y:t.pageY-a.top},n={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},o=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],h=i.axes;for(e=11;e>0;e--)h[s=o[e-1]].show&&(n[s]=h[s].series_p2u(r[s.charAt(0)]));return{offsets:a,gridPos:r,dataPos:n}}function c(t,e){var s,i,a,n,o,h,l,d,g,p,c,u,f,m,_,v,x,k,w=e.series;for(i=e.seriesStack.length-1;i>=0;i--)switch(v=(a=w[s=e.seriesStack[i]])._highlightThreshold,a.renderer.constructor){case r.BarRenderer:for(o=t.x,h=t.y,y=0;y<a._barPoints.length;y++)if(_=a._barPoints[y],m=a.gridData[y],o>_[0][0]&&o<_[2][0]&&(h>_[2][1]&&h<_[0][1]||h<_[2][1]&&h>_[0][1]))return{seriesIndex:a.index,pointIndex:y,gridData:m,data:a.data[y],points:a._barPoints[y]};break;case r.PyramidRenderer:for(o=t.x,h=t.y,y=0;y<a._barPoints.length;y++)if(_=a._barPoints[y],m=a.gridData[y],o>_[0][0]+v[0][0]&&o<_[2][0]+v[2][0]&&h>_[2][1]&&h<_[0][1])return{seriesIndex:a.index,pointIndex:y,gridData:m,data:a.data[y],points:a._barPoints[y]};break;case r.DonutRenderer:if(g=a.startAngle/180*Math.PI,o=t.x-a._center[0],h=t.y-a._center[1],n=Math.sqrt(Math.pow(o,2)+Math.pow(h,2)),o>0&&-h>=0?l=2*Math.PI-Math.atan(-h/o):o>0&&-h<0?l=-Math.atan(-h/o):o<0?l=Math.PI-Math.atan(-h/o):0==o&&-h>0?l=3*Math.PI/2:0==o&&-h<0?l=Math.PI/2:0==o&&0==h&&(l=0),g&&((l-=g)<0?l+=2*Math.PI:l>2*Math.PI&&(l-=2*Math.PI)),d=a.sliceMargin/180*Math.PI,n<a._radius&&n>a._innerRadius)for(y=0;y<a.gridData.length;y++)if(p=y>0?a.gridData[y-1][1]+d:d,c=a.gridData[y][1],l>p&&l<c)return{seriesIndex:a.index,pointIndex:y,gridData:[t.x,t.y],data:a.data[y]};break;case r.PieRenderer:if(g=a.startAngle/180*Math.PI,o=t.x-a._center[0],h=t.y-a._center[1],n=Math.sqrt(Math.pow(o,2)+Math.pow(h,2)),o>0&&-h>=0?l=2*Math.PI-Math.atan(-h/o):o>0&&-h<0?l=-Math.atan(-h/o):o<0?l=Math.PI-Math.atan(-h/o):0==o&&-h>0?l=3*Math.PI/2:0==o&&-h<0?l=Math.PI/2:0==o&&0==h&&(l=0),g&&((l-=g)<0?l+=2*Math.PI:l>2*Math.PI&&(l-=2*Math.PI)),d=a.sliceMargin/180*Math.PI,n<a._radius)for(y=0;y<a.gridData.length;y++)if(p=y>0?a.gridData[y-1][1]+d:d,c=a.gridData[y][1],l>p&&l<c)return{seriesIndex:a.index,pointIndex:y,gridData:[t.x,t.y],data:a.data[y]};break;case r.BubbleRenderer:o=t.x,h=t.y;var b=null;if(a.show){for(var y=0;y<a.gridData.length;y++)m=a.gridData[y],(f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=m[2]&&(f<=u||null==u)&&(u=f,b={seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]});if(null!=b)return b}break;case r.FunnelRenderer:o=t.x,h=t.y;var C,D,S,M=a._vertices,H=M[0],I=M[M.length-1],P=function(t,e,s){var i=(e[1]-s[1])/(e[0]-s[0]),a=e[1]-i*e[0],r=t+e[1];return[(r-a)/i,r]};for(C=P(h,H[0],I[3]),D=P(h,H[1],I[2]),y=0;y<M.length;y++)if(h>=(S=M[y])[0][1]&&h<=S[3][1]&&o>=C[0]&&o<=D[0])return{seriesIndex:a.index,pointIndex:y,gridData:null,data:a.data[y]};break;case r.LineRenderer:if(o=t.x,h=t.y,n=a.renderer,a.show){if(!(!(a.fill||a.renderer.bands.show&&a.renderer.bands.fill)||e.plugins.highlighter&&e.plugins.highlighter.show)){var O=!1;if(o>a._boundingBox[0][0]&&o<a._boundingBox[1][0]&&h>a._boundingBox[1][1]&&h<a._boundingBox[0][1])for(var E=a._areaPoints.length,R=(y=E-1,0);R<E;R++){var A=[a._areaPoints[R][0],a._areaPoints[R][1]],q=[a._areaPoints[y][0],a._areaPoints[y][1]];(A[1]<h&&q[1]>=h||q[1]<h&&A[1]>=h)&&A[0]+(h-A[1])/(q[1]-A[1])*(q[0]-A[0])<o&&(O=!O),y=R}if(O)return{seriesIndex:s,pointIndex:null,gridData:a.gridData,data:a.data,points:a._areaPoints};break}x=(k=a.markerRenderer.size/2+a.neighborThreshold)>0?k:0;for(y=0;y<a.gridData.length;y++)if(m=a.gridData[y],n.constructor==r.OHLCRenderer)if(n.candleStick){var j=a._yaxis.series_u2p;if(o>=m[0]-n._bodyWidth/2&&o<=m[0]+n._bodyWidth/2&&h>=j(a.data[y][2])&&h<=j(a.data[y][3]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else if(n.hlc){j=a._yaxis.series_u2p;if(o>=m[0]-n._tickLength&&o<=m[0]+n._tickLength&&h>=j(a.data[y][1])&&h<=j(a.data[y][2]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else{var j=a._yaxis.series_u2p;if(o>=m[0]-n._tickLength&&o<=m[0]+n._tickLength&&h>=j(a.data[y][2])&&h<=j(a.data[y][3]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else if(null!=m[0]&&null!=m[1]&&(f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=x&&(f<=u||null==u))return u=f,{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}break;default:if(o=t.x,h=t.y,n=a.renderer,a.show){x=(k=a.markerRenderer.size/2+a.neighborThreshold)>0?k:0;for(y=0;y<a.gridData.length;y++)if(m=a.gridData[y],n.constructor==r.OHLCRenderer)if(n.candleStick){j=a._yaxis.series_u2p;if(o>=m[0]-n._bodyWidth/2&&o<=m[0]+n._bodyWidth/2&&h>=j(a.data[y][2])&&h<=j(a.data[y][3]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else if(n.hlc){j=a._yaxis.series_u2p;if(o>=m[0]-n._tickLength&&o<=m[0]+n._tickLength&&h>=j(a.data[y][1])&&h<=j(a.data[y][2]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else{j=a._yaxis.series_u2p;if(o>=m[0]-n._tickLength&&o<=m[0]+n._tickLength&&h>=j(a.data[y][2])&&h<=j(a.data[y][3]))return{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}else if((f=Math.sqrt((o-m[0])*(o-m[0])+(h-m[1])*(h-m[1])))<=x&&(f<=u||null==u))return u=f,{seriesIndex:s,pointIndex:y,gridData:m,data:a.data[y]}}}return null}this.init=function(t,e,s){s=s||{};for(var a=0;a<r.preInitHooks.length;a++)r.preInitHooks[a].call(this,t,e,s);for(a=0;a<this.preInitHooks.hooks.length;a++)this.preInitHooks.hooks[a].call(this,t,e,s);if(this.targetId="#"+t,this.target=(0,i.default)("#"+t),this._addDomReference&&this.target.data("./jqplot.core",this),this.target.removeClass("jqplot-error"),!this.target.get(0))throw new Error("No plot target specified");var o,l,d,g;("static"==this.target.css("position")&&this.target.css("position","relative"),this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target"),this.target.height())?this._height=o=this.target.height():(o=s&&s.height?parseInt(s.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(r.config.defaultHeight,10),this._height=o,this.target.css("height",o+"px"));this.target.width()?this._width=l=this.target.width():(l=s&&s.width?parseInt(s.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(r.config.defaultWidth,10),this._width=l,this.target.css("width",l+"px"));a=0;for(var p=m.length;a<p;a++)this.axes[m[a]]=new h(m[a]);if(this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Canvas dimension not set");if(s.dataRenderer&&i.default.isFunction(s.dataRenderer)&&(s.dataRendererOptions&&(this.dataRendererOptions=s.dataRendererOptions),this.dataRenderer=s.dataRenderer,e=this.dataRenderer(e,this,this.dataRendererOptions)),s.noDataIndicator&&i.default.isPlainObject(s.noDataIndicator)&&i.default.extend(!0,this.noDataIndicator,s.noDataIndicator),null==e||0==i.default.isArray(e)||0==e.length||0==i.default.isArray(e[0])||0==e[0].length){if(0==this.noDataIndicator.show)throw new Error("No data specified");for(var c in this.noDataIndicator.axes)for(var u in this.noDataIndicator.axes[c])this.axes[c][u]=this.noDataIndicator.axes[c][u];this.postDrawHooks.add(function(){var t=this.eventCanvas.getHeight(),e=this.eventCanvas.getWidth(),s=(0,i.default)('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(s),s.height(t),s.width(e),s.css("top",this.eventCanvas._offsets.top),s.css("left",this.eventCanvas._offsets.left);var a=(0,i.default)('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');s.append(a),a.html(this.noDataIndicator.indicator);var r=a.height(),n=a.width();a.height(r),a.width(n),a.css("top",(t-r)/2+"px")})}this.data=i.default.extend(!0,[],e),this.parseOptions(s),this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.computePlotData();for(a=0;a<this.series.length;a++){this.seriesStack.push(a),this.previousSeriesStack.push(a),this.series[a].shadowCanvas._plotDimensions=this._plotDimensions,this.series[a].canvas._plotDimensions=this._plotDimensions;for(var f=0;f<r.preSeriesInitHooks.length;f++)r.preSeriesInitHooks[f].call(this.series[a],t,this.data,this.options.seriesDefaults,this.options.series[a],this);for(f=0;f<this.preSeriesInitHooks.hooks.length;f++)this.preSeriesInitHooks.hooks[f].call(this.series[a],t,this.data,this.options.seriesDefaults,this.options.series[a],this);this.series[a]._plotDimensions=this._plotDimensions,this.series[a].init(a,this.grid.borderWidth,this);for(f=0;f<r.postSeriesInitHooks.length;f++)r.postSeriesInitHooks[f].call(this.series[a],t,this.data,this.options.seriesDefaults,this.options.series[a],this);for(f=0;f<this.postSeriesInitHooks.hooks.length;f++)this.postSeriesInitHooks.hooks[f].call(this.series[a],t,this.data,this.options.seriesDefaults,this.options.series[a],this);this._sumy+=this.series[a]._sumy,this._sumx+=this.series[a]._sumx}for(a=0,p=m.length;a<p;a++)d=m[a],(g=this.axes[d])._plotDimensions=this._plotDimensions,g.init(),null==this.axes[d].borderColor&&("x"!==d.charAt(0)&&!0===g.useSeriesColor&&g.show?g.borderColor=g._series[0].color:g.borderColor=this.grid.borderColor);this.sortData&&n(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(a=0;a<r.postInitHooks.length;a++)r.postInitHooks[a].call(this,t,this.data,s);for(a=0;a<this.postInitHooks.hooks.length;a++)this.postInitHooks.hooks[a].call(this,t,this.data,s)},this.resetAxesScale=function(e,s){var a=s||{},r=e||this.axes;if(!0===r&&(r=this.axes),i.default.isArray(r))for(var n=0;n<r.length;n++)this.axes[r[n]].resetScale(a[r[n]]);else if("object"===(void 0===r?"undefined":t(r)))for(var o in r)this.axes[o].resetScale(a[o])},this.reInitialize=function(t,s){for(var a,o,l,d=i.default.extend(!0,{},this.options,s),g=this.targetId.substr(1),p=null==t?this.data:t,c=0;c<r.preInitHooks.length;c++)r.preInitHooks[c].call(this,g,p,d);for(c=0;c<this.preInitHooks.hooks.length;c++)this.preInitHooks.hooks[c].call(this,g,p,d);if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions;c=0;for(var u=m.length;c<u;c++){a=m[c];for(var f=0,_=(o=(l=this.axes[a])._ticks).length;f<_;f++){var v=o[f]._elem;v&&(r.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==e&&window.G_vmlCanvasManager.uninitElement(v.get(0)),v.emptyForce(),v=null,o._elem=null)}o=null,delete l.ticks,delete l._ticks,this.axes[a]=new h(a),this.axes[a]._plotWidth=this._width,this.axes[a]._plotHeight=this._height}t&&(d.dataRenderer&&i.default.isFunction(d.dataRenderer)&&(d.dataRendererOptions&&(this.dataRendererOptions=d.dataRendererOptions),this.dataRenderer=d.dataRenderer,t=this.dataRenderer(t,this,this.dataRendererOptions)),this.data=i.default.extend(!0,[],t)),s&&this.parseOptions(d),this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.seriesStack=[],this.previousSeriesStack=[],this.computePlotData();for(c=0,u=this.series.length;c<u;c++){this.seriesStack.push(c),this.previousSeriesStack.push(c),this.series[c].shadowCanvas._plotDimensions=this._plotDimensions,this.series[c].canvas._plotDimensions=this._plotDimensions;for(f=0;f<r.preSeriesInitHooks.length;f++)r.preSeriesInitHooks[f].call(this.series[c],g,this.data,this.options.seriesDefaults,this.options.series[c],this);for(f=0;f<this.preSeriesInitHooks.hooks.length;f++)this.preSeriesInitHooks.hooks[f].call(this.series[c],g,this.data,this.options.seriesDefaults,this.options.series[c],this);this.series[c]._plotDimensions=this._plotDimensions,this.series[c].init(c,this.grid.borderWidth,this);for(f=0;f<r.postSeriesInitHooks.length;f++)r.postSeriesInitHooks[f].call(this.series[c],g,this.data,this.options.seriesDefaults,this.options.series[c],this);for(f=0;f<this.postSeriesInitHooks.hooks.length;f++)this.postSeriesInitHooks.hooks[f].call(this.series[c],g,this.data,this.options.seriesDefaults,this.options.series[c],this);this._sumy+=this.series[c]._sumy,this._sumx+=this.series[c]._sumx}for(c=0,u=m.length;c<u;c++)a=m[c],(l=this.axes[a])._plotDimensions=this._plotDimensions,l.init(),null==l.borderColor&&("x"!==a.charAt(0)&&!0===l.useSeriesColor&&l.show?l.borderColor=l._series[0].color:l.borderColor=this.grid.borderColor);this.sortData&&n(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series;for(c=0,u=r.postInitHooks.length;c<u;c++)r.postInitHooks[c].call(this,g,this.data,d);for(c=0,u=this.postInitHooks.hooks.length;c<u;c++)this.postInitHooks.hooks[c].call(this,g,this.data,d)},this.quickInit=function(){if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");for(var t in this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this.axes)this.axes[t]._plotWidth=this._width,this.axes[t]._plotHeight=this._height;this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this._sumy=0,this._sumx=0,this.computePlotData();for(var s=0;s<this.series.length;s++)"line"===this.series[s]._type&&this.series[s].renderer.bands.show&&this.series[s].renderer.initBands.call(this.series[s],this.series[s].renderer.options,this),this.series[s]._plotDimensions=this._plotDimensions,this.series[s].canvas._plotDimensions=this._plotDimensions,this._sumy+=this.series[s]._sumy,this._sumx+=this.series[s]._sumx;for(var i,a=0;a<12;a++){i=m[a];var o=this.axes[i]._ticks;for(s=0;s<o.length;s++){var h=o[s]._elem;h&&(r.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==e&&window.G_vmlCanvasManager.uninitElement(h.get(0)),h.emptyForce(),h=null,o._elem=null)}o=null,this.axes[i]._plotDimensions=this._plotDimensions,this.axes[i]._ticks=[]}this.sortData&&n(this.series),this.grid._axes=this.axes,this.legend._series=this.series},this.computePlotData=function(){var t,e,s;for(this._plotData=[],this._stackData=[],e=0,s=this.series.length;e<s;e++){t=this.series[e],this._plotData.push([]),this._stackData.push([]);var a=t.data;this._plotData[e]=i.default.extend(!0,[],a),this._stackData[e]=i.default.extend(!0,[],a),t._plotData=this._plotData[e],t._stackData=this._stackData[e];var r={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var n="x"===t._stackAxis?0:1,o=0,h=a.length;o<h;o++){var l=a[o][n];if(null==l&&(l=0),this._plotData[e][o][n]=l,this._stackData[e][o][n]=l,e>0)for(var d=e;d--;){var g=this._plotData[d][o][n];if(l*g>=0){this._plotData[e][o][n]+=g,this._stackData[e][o][n]+=g;break}}}}else{for(var p=0;p<t.data.length;p++)r.x.push(t.data[p][0]),r.y.push(t.data[p][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=r}for(e>0&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,p=t.data.length-1;p>-1;p--)t._sumy+=t.data[p][1],t._sumx+=t.data[p][0]}},this.populatePlotData=function(t,e){this._plotData=[],this._stackData=[],t._stackData=[],t._plotData=[];var s={x:[],y:[]};if(this.stackSeries&&!t.disableStack){t._stack=!0;for(var a,r,n,o,h="x"===t._stackAxis?0:1,l=i.default.extend(!0,[],t.data),d=i.default.extend(!0,[],t.data),g=0;g<e;g++)for(var p=this.series[g].data,c=0;c<p.length;c++)a=null!=(n=p[c])[0]?n[0]:0,r=null!=n[1]?n[1]:0,l[c][0]+=a,l[c][1]+=r,o=h?r:a,t.data[c][h]*o>=0&&(d[c][h]+=o);for(var u=0;u<d.length;u++)s.x.push(d[u][0]),s.y.push(d[u][1]);this._plotData.push(d),this._stackData.push(l),t._stackData=l,t._plotData=d,t._plotValues=s}else{for(u=0;u<t.data.length;u++)s.x.push(t.data[u][0]),s.y.push(t.data[u][1]);this._stackData.push(t.data),this.series[e]._stackData=t.data,this._plotData.push(t.data),t._plotData=t.data,t._plotValues=s}for(e>0&&(t._prevPlotData=this.series[e-1]._plotData),t._sumy=0,t._sumx=0,u=t.data.length-1;u>-1;u--)t._sumy+=t.data[u][1],t._sumx+=t.data[u][0]},this.getNextSeriesColor=(s=0,a=this.seriesColors,function(){return s<a.length?a[s++]:(s=0,a[s++])}),this.parseOptions=function(e){for(var s=0;s<this.preParseOptionsHooks.hooks.length;s++)this.preParseOptionsHooks.hooks[s].call(this,e);for(s=0;s<r.preParseOptionsHooks.length;s++)r.preParseOptionsHooks[s].call(this,e);this.options=i.default.extend(!0,{},this.defaults,e);var a=this.options;if(this.animate=a.animate,this.animateReplot=a.animateReplot,this.stackSeries=a.stackSeries,i.default.isPlainObject(a.fillBetween)){s=0;for(var n,o=(p=["series1","series2","color","baseSeries","fill"]).length;s<o;s++)n=p[s],null!=a.fillBetween[n]&&(this.fillBetween[n]=a.fillBetween[n])}a.seriesColors&&(this.seriesColors=a.seriesColors),a.negativeSeriesColors&&(this.negativeSeriesColors=a.negativeSeriesColors),a.captureRightClick&&(this.captureRightClick=a.captureRightClick),this.defaultAxisStart=e&&null!=e.defaultAxisStart?e.defaultAxisStart:this.defaultAxisStart,this.colorGenerator.setColors(this.seriesColors),this.negativeColorGenerator.setColors(this.negativeSeriesColors),i.default.extend(!0,this._gridPadding,a.gridPadding),this.sortData=null!=a.sortData?a.sortData:this.sortData;for(s=0;s<12;s++){var h=m[s];(f=this.axes[h])._options=i.default.extend(!0,{},a.axesDefaults,a.axes[h]),i.default.extend(!0,f,a.axesDefaults,a.axes[h]),f._plotWidth=this._width,f._plotHeight=this._height}var l=function(t,e,s){var a,r,n=[];if(e=e||"vertical",i.default.isArray(t[0]))i.default.extend(!0,n,t);else for(a=0,r=t.length;a<r;a++)"vertical"==e?n.push([s+a,t[a]]):n.push([t[a],s+a]);return n};this.series=[];for(s=0;s<this.data.length;s++){for(var d=i.default.extend(!0,{index:s},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[s],{rendererOptions:{animation:{show:this.animate}}}),p=new g(d),c=0;c<r.preParseSeriesOptionsHooks.length;c++)r.preParseSeriesOptionsHooks[c].call(p,this.options.seriesDefaults,this.options.series[s]);for(c=0;c<this.preParseSeriesOptionsHooks.hooks.length;c++)this.preParseSeriesOptionsHooks.hooks[c].call(p,this.options.seriesDefaults,this.options.series[s]);i.default.extend(!0,p,d);var u="vertical";switch(p.renderer===r.BarRenderer&&p.rendererOptions&&"horizontal"==p.rendererOptions.barDirection&&(u="horizontal",p._stackAxis="x",p._primaryAxis="_yaxis"),p.data=l(this.data[s],u,this.defaultAxisStart),p.xaxis){case"xaxis":p._xaxis=this.axes.xaxis;break;case"x2axis":p._xaxis=this.axes.x2axis}p._yaxis=this.axes[p.yaxis],p._xaxis._series.push(p),p._yaxis._series.push(p),p.show?(p._xaxis.show=!0,p._yaxis.show=!0):(p._xaxis.scaleToHiddenSeries&&(p._xaxis.show=!0),p._yaxis.scaleToHiddenSeries&&(p._yaxis.show=!0)),p.label||(p.label="Series "+(s+1).toString()),this.series.push(p);for(c=0;c<r.postParseSeriesOptionsHooks.length;c++)r.postParseSeriesOptionsHooks[c].call(this.series[s],this.options.seriesDefaults,this.options.series[s]);for(c=0;c<this.postParseSeriesOptionsHooks.hooks.length;c++)this.postParseSeriesOptionsHooks.hooks[c].call(this.series[s],this.options.seriesDefaults,this.options.series[s])}i.default.extend(!0,this.grid,this.options.grid);for(s=0,o=m.length;s<o;s++){var f;h=m[s];null==(f=this.axes[h]).borderWidth&&(f.borderWidth=this.grid.borderWidth)}"string"==typeof this.options.title?this.title.text=this.options.title:"object"==t(this.options.title)&&i.default.extend(!0,this.title,this.options.title),this.title._plotWidth=this._width,this.legend.setOptions(this.options.legend);for(s=0;s<r.postParseOptionsHooks.length;s++)r.postParseOptionsHooks[s].call(this,e);for(s=0;s<this.postParseOptionsHooks.hooks.length;s++)this.postParseOptionsHooks.hooks[s].call(this,e)},this.destroy=function(){this.canvasManager.freeAllCanvases(),this.eventCanvas&&this.eventCanvas._elem&&this.eventCanvas._elem.unbind(),this.target.empty(),this.target[0].innerHTML=""},this.replot=function(t){var e=t||{},s=e.data||null,a=!1!==e.clear,r=e.resetAxes||!1;delete e.data,delete e.clear,delete e.resetAxes,this.target.trigger("jqplotPreReplot"),a&&this.destroy(),s||!i.default.isEmptyObject(e)?this.reInitialize(s,e):this.quickInit(),r&&this.resetAxesScale(r,e.axes),this.draw(),this.target.trigger("jqplotPostReplot")},this.redraw=function(t){for(var e in t=null==t||t,this.target.trigger("jqplotPreRedraw"),t&&(this.canvasManager.freeAllCanvases(),this.eventCanvas._elem.unbind(),this.target.empty()),this.axes)this.axes[e]._ticks=[];this.computePlotData(),this._sumy=0,this._sumx=0;for(var s=0,i=this.series.length;s<i;s++)this._sumy+=this.series[s]._sumy,this._sumx+=this.series[s]._sumx;this.draw(),this.target.trigger("jqplotPostRedraw")},this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){var t;for(this.target.trigger("jqplotPreDraw"),w=0,b=r.preDrawHooks.length;w<b;w++)r.preDrawHooks[w].call(this);for(w=0,b=this.preDrawHooks.hooks.length;w<b;w++)this.preDrawHooks.hooks[w].apply(this,this.preDrawSeriesHooks.args[w]);this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this)),this.baseCanvas.setContext(),this.target.append(this.title.draw()),this.title.pack({top:0,left:0});var e=this.legend.draw({},this),s={top:0,left:0,bottom:0,right:0};if("outsideGrid"==this.legend.placement){switch(this.target.append(e),this.legend.location){case"n":s.top+=this.legend.getHeight();break;case"s":s.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":s.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":s.left+=this.legend.getWidth();break;default:s.right+=this.legend.getWidth()}e=e.detach()}var a,n=this.axes;for(w=0;w<12;w++)a=m[w],this.target.append(n[a].draw(this.baseCanvas._ctx,this)),n[a].set();n.yaxis.show&&(s.left+=n.yaxis.getWidth());var o=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"],h=[0,0,0,0,0,0,0,0],l=0;for(f=0;f<8;f++)n[o[f]].show&&(l+=n[o[f]].getWidth(),h[f]=l);if(s.right+=l,n.x2axis.show&&(s.top+=n.x2axis.getHeight()),this.title.show&&(s.top+=this.title.getHeight()),n.xaxis.show&&(s.bottom+=n.xaxis.getHeight()),this.options.gridDimensions&&i.default.isPlainObject(this.options.gridDimensions)){var d=parseInt(this.options.gridDimensions.width,10)||0,g=parseInt(this.options.gridDimensions.height,10)||0,p=(this._width-s.left-s.right-d)/2,c=(this._height-s.top-s.bottom-g)/2;c>=0&&p>=0&&(s.top+=c,s.bottom+=c,s.left+=p,s.right+=p)}var u=["top","bottom","left","right"];for(var f in u)null==this._gridPadding[u[f]]&&s[u[f]]>0?this._gridPadding[u[f]]=s[u[f]]:null==this._gridPadding[u[f]]&&(this._gridPadding[u[f]]=this._defaultGridPadding[u[f]]);var _=this._gridPadding;for("outsideGrid"===this.legend.placement&&(_={top:this.title.getHeight(),left:0,right:0,bottom:0}),n.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-n.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),n.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-n.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),n.x2axis.pack({position:"absolute",top:this._gridPadding.top-n.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),w=8;w>0;w--)n[o[w-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-h[w-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});var v=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-n.yMidAxis.getWidth()/2;n.yMidAxis.pack({position:"absolute",top:0,left:v,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),this.target.append(this.grid.createElement(this._gridPadding,this)),this.grid.draw();var x=this.series,k=x.length;for(w=0,b=k;w<b;w++)t=this.seriesStack[w],this.target.append(x[t].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this)),x[t].shadowCanvas.setContext(),x[t].shadowCanvas._elem.data("seriesIndex",t);for(w=0,b=k;w<b;w++)t=this.seriesStack[w],this.target.append(x[t].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this)),x[t].canvas.setContext(),x[t].canvas._elem.data("seriesIndex",t);this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this)),this.eventCanvas.setContext(),this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)",this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height),this.bindCustomEvents(),this.legend.preDraw?(this.eventCanvas._elem.before(e),this.legend.pack(_),this.legend._elem?this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}}):this.drawSeries()):(this.drawSeries(),k&&(0,i.default)(x[k-1].canvas._elem).after(e),this.legend.pack(_));for(var w=0,b=r.eventListenerHooks.length;w<b;w++)this.eventCanvas._elem.bind(r.eventListenerHooks[w][0],{plot:this},r.eventListenerHooks[w][1]);for(w=0,b=this.eventListenerHooks.hooks.length;w<b;w++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[w][0],{plot:this},this.eventListenerHooks.hooks[w][1]);var y,C,D,S,M=this.fillBetween;if("number"==typeof M.series1)M.fill&&M.series1!==M.series2&&M.series1<k&&M.series2<k&&"line"===x[M.series1]._type&&"line"===x[M.series2]._type&&this.doFillBetweenLines();else if(null!=M.series1&&null!=M.series2){var H=!1;if(M.series1.length===M.series2.length)for(var I=0,P=0,O=0;O<M.series1.length;O++){if(!((I=M.series1[O])!==(P=M.series2[O])&&I<k&&P<k&&"line"===x[I]._type&&"line"===x[P]._type)){H=!1;break}H=!0}M.fill&&H&&this.doFillBetweenLines()}for(w=0,b=r.postDrawHooks.length;w<b;w++)r.postDrawHooks[w].call(this);for(w=0,b=this.postDrawHooks.hooks.length;w<b;w++)this.postDrawHooks.hooks[w].apply(this,this.postDrawHooks.args[w]);for(this.target.is(":visible")&&(this._drawCount+=1),w=0,b=k;w<b;w++)D=".jqplot-point-label.jqplot-series-"+w,(C=(y=x[w]).renderer).animation&&C.animation._supported&&C.animation.show&&(this._drawCount<2||this.animateReplot)&&((S=this.target.find(D)).stop(!0,!0).hide(),y.canvas._elem.stop(!0,!0).hide(),y.shadowCanvas._elem.stop(!0,!0).hide(),y.canvas._elem.jqplotEffect("blind",{mode:"show",direction:C.animation.direction},C.animation.speed),y.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:C.animation.direction},C.animation.speed),S.fadeIn(.8*C.animation.speed));S=null,this.target.trigger("jqplotPostDraw",[this])}},_.prototype.doFillBetweenLines=function(){var t=this.fillBetween,e=this.series,s=t.series1,i=t.series2;function a(s,i){var a=e[s],r=e[i];if(r.renderer.smooth)var n=r.renderer._smoothedData.slice(0).reverse();else n=r.gridData.slice(0).reverse();if(a.renderer.smooth)var o=a.renderer._smoothedData.concat(n);else o=a.gridData.concat(n);var h=null!==t.color?t.color:e[s].fillColor,l=null!==t.baseSeries?t.baseSeries:s,d={fillStyle:h,fill:!0,closePath:!0};e[l].renderer.shapeRenderer.draw(a.shadowCanvas._ctx,o,d)}if("number"==typeof s&&"number"==typeof i)a(s<i?s:i,i>s?i:s);else for(var r=0;r<s.length;r++)a(s[r]<i[r]?s[r]:i[r],i[r]>s[r]?i[r]:s[r])},this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick),this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick),this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown),this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove),this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter),this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave),this.captureRightClick?(this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick),this.eventCanvas._elem.get(0).oncontextmenu=function(){return!1}):this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)},this.onClick=function(t){var e=o(t),s=t.data.plot,a=c(e.gridPos,s),r=i.default.Event("jqplotClick");r.pageX=t.pageX,r.pageY=t.pageY,(0,i.default)(this).trigger(r,[e.gridPos,e.dataPos,a,s])},this.onDblClick=function(t){var e=o(t),s=t.data.plot,a=c(e.gridPos,s),r=i.default.Event("jqplotDblClick");r.pageX=t.pageX,r.pageY=t.pageY,(0,i.default)(this).trigger(r,[e.gridPos,e.dataPos,a,s])},this.onMouseDown=function(t){var e=o(t),s=t.data.plot,a=c(e.gridPos,s),r=i.default.Event("jqplotMouseDown");r.pageX=t.pageX,r.pageY=t.pageY,(0,i.default)(this).trigger(r,[e.gridPos,e.dataPos,a,s])},this.onMouseUp=function(t){var e=o(t),s=i.default.Event("jqplotMouseUp");s.pageX=t.pageX,s.pageY=t.pageY,(0,i.default)(this).trigger(s,[e.gridPos,e.dataPos,null,t.data.plot])},this.onRightClick=function(t){var e,s=o(t),a=t.data.plot,r=c(s.gridPos,a);a.captureRightClick&&(3==t.which?((e=i.default.Event("jqplotRightClick")).pageX=t.pageX,e.pageY=t.pageY,(0,i.default)(this).trigger(e,[s.gridPos,s.dataPos,r,a])):((e=i.default.Event("jqplotMouseUp")).pageX=t.pageX,e.pageY=t.pageY,(0,i.default)(this).trigger(e,[s.gridPos,s.dataPos,r,a])))},this.onMouseMove=function(t){var e=o(t),s=t.data.plot,a=c(e.gridPos,s),r=i.default.Event("jqplotMouseMove");r.pageX=t.pageX,r.pageY=t.pageY,(0,i.default)(this).trigger(r,[e.gridPos,e.dataPos,a,s])},this.onMouseEnter=function(t){var e=o(t),s=t.data.plot,a=i.default.Event("jqplotMouseEnter");a.pageX=t.pageX,a.pageY=t.pageY,a.relatedTarget=t.relatedTarget,(0,i.default)(this).trigger(a,[e.gridPos,e.dataPos,null,s])},this.onMouseLeave=function(t){var e=o(t),s=t.data.plot,a=i.default.Event("jqplotMouseLeave");a.pageX=t.pageX,a.pageY=t.pageY,a.relatedTarget=t.relatedTarget,(0,i.default)(this).trigger(a,[e.gridPos,e.dataPos,null,s])},this.drawSeries=function(s,i){var a,n,o;if(i="number"==typeof s&&null==i?s:i,s="object"===(void 0===s?"undefined":t(s))?s:{},i!=e)(o=(n=this.series[i]).shadowCanvas._ctx).clearRect(0,0,o.canvas.width,o.canvas.height),n.drawShadow(o,s,this),(o=n.canvas._ctx).clearRect(0,0,o.canvas.width,o.canvas.height),n.draw(o,s,this),n.renderer.constructor==r.BezierCurveRenderer&&i<this.series.length-1&&this.drawSeries(i+1);else for(a=0;a<this.series.length;a++)(o=(n=this.series[a]).shadowCanvas._ctx).clearRect(0,0,o.canvas.width,o.canvas.height),n.drawShadow(o,s,this),(o=n.canvas._ctx).clearRect(0,0,o.canvas.width,o.canvas.height),n.draw(o,s,this);s=i=a=n=o=null},this.moveSeriesToFront=function(t){t=parseInt(t,10);var e=i.default.inArray(t,this.seriesStack);if(-1!=e)if(e!=this.seriesStack.length-1){var s=this.seriesStack[this.seriesStack.length-1],a=this.series[t].canvas._elem.detach(),r=this.series[t].shadowCanvas._elem.detach();this.series[s].shadowCanvas._elem.after(r),this.series[s].canvas._elem.after(a),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.push(t)}else this.previousSeriesStack=this.seriesStack.slice(0)},this.moveSeriesToBack=function(t){t=parseInt(t,10);var e=i.default.inArray(t,this.seriesStack);if(0!=e&&-1!=e){var s=this.seriesStack[0],a=this.series[t].canvas._elem.detach(),r=this.series[t].shadowCanvas._elem.detach();this.series[s].shadowCanvas._elem.before(r),this.series[s].canvas._elem.before(a),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(e,1),this.seriesStack.unshift(t)}},this.restorePreviousSeriesOrder=function(){var t,e,s,i,a,r;if(this.seriesStack!=this.previousSeriesStack){for(t=1;t<this.previousSeriesStack.length;t++)a=this.previousSeriesStack[t],r=this.previousSeriesStack[t-1],e=this.series[a].canvas._elem.detach(),s=this.series[a].shadowCanvas._elem.detach(),this.series[r].shadowCanvas._elem.after(s),this.series[r].canvas._elem.after(e);i=this.seriesStack.slice(0),this.seriesStack=this.previousSeriesStack.slice(0),this.previousSeriesStack=i}},this.restoreOriginalSeriesOrder=function(){var t,e,s,i=[];for(t=0;t<this.series.length;t++)i.push(t);if(this.seriesStack!=i)for(this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack=i,t=1;t<this.seriesStack.length;t++)e=this.series[t].canvas._elem.detach(),s=this.series[t].shadowCanvas._elem.detach(),this.series[t-1].shadowCanvas._elem.after(s),this.series[t-1].canvas._elem.after(e)},this.activateTheme=function(t){this.themeEngine.activate(this,t)}}r.computeHighlightColors=function(t){var e;if(i.default.isArray(t)){e=[];for(var s=0;s<t.length;s++){for(var a=(h=[(o=r.getColorComponents(t[s]))[0],o[1],o[2]])[0]+h[1]+h[2],n=0;n<3;n++)h[n]=a>660?.85*h[n]:.73*h[n]+90,h[n]=parseInt(h[n],10),h[n]>255||h[n];h[3]=.3+.35*o[3],e.push("rgba("+h[0]+","+h[1]+","+h[2]+","+h[3]+")")}}else{var o,h;for(a=(h=[(o=r.getColorComponents(t))[0],o[1],o[2]])[0]+h[1]+h[2],n=0;n<3;n++)h[n]=a>660?.85*h[n]:.73*h[n]+90,h[n]=parseInt(h[n],10),h[n]>255||h[n];h[3]=.3+.35*o[3],e="rgba("+h[0]+","+h[1]+","+h[2]+","+h[3]+")"}return e};var v=exports.ColorGenerator=r.ColorGenerator=function(t){t=t||r.config.defaultColors;var e=0;this.next=function(){return e<t.length?t[e++]:(e=0,t[e++])},this.previous=function(){return e>0?t[e--]:(e=t.length-1,t[e])},this.get=function(e){var s=e-t.length*Math.floor(e/t.length);return t[s]},this.setColors=function(e){t=e},this.reset=function(){e=0},this.getIndex=function(){return e},this.setIndex=function(t){e=t}};r.hex2rgb=function(t,e){var s;return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),s="rgba("+parseInt(t.slice(0,2),16)+", "+parseInt(t.slice(2,4),16)+", "+parseInt(t.slice(4,6),16),e&&(s+=", "+e),s+=")"},r.rgb2hex=function(t){for(var e=t.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/),s="#",i=1;i<4;i++){var a;-1!=e[i].search(/%/)?1==(a=parseInt(255*e[i]/100,10).toString(16)).length&&(a="0"+a):1==(a=parseInt(e[i],10).toString(16)).length&&(a="0"+a),s+=a}return s},r.normalize2rgb=function(t,e){if(-1!=t.search(/^ *rgba?\(/))return t;if(-1!=t.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/))return r.hex2rgb(t,e);throw new Error("Invalid color spec")},r.getColorComponents=function(t){t=r.colorKeywordMap[t]||t;for(var e=r.normalize2rgb(t).match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/),s=[],i=1;i<4;i++)-1!=e[i].search(/%/)?s[i-1]=parseInt(255*e[i]/100,10):s[i-1]=parseInt(e[i],10);return s[3]=parseFloat(e[4])?parseFloat(e[4]):1,s},r.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"};
|
|
},{"jquery":29}],11:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AxisLabelRenderer=void 0;var e=require("jquery"),t=s(e),l=require("./jqplot.core"),i=s(l);function s(e){return e&&e.__esModule?e:{default:e}}var r=exports.AxisLabelRenderer=i.default.AxisLabelRenderer=function(e){i.default.ElemContainer.call(this),this.axis,this.show=!0,this.label="",this.fontFamily=null,this.fontSize=null,this.textColor=null,this._elem,this.escapeHTML=!1,t.default.extend(!0,this,e)};i.default.AxisLabelRenderer.prototype=new i.default.ElemContainer,i.default.AxisLabelRenderer.prototype.constructor=i.default.AxisLabelRenderer,i.default.AxisLabelRenderer.prototype.init=function(e){t.default.extend(!0,this,e)},i.default.AxisLabelRenderer.prototype.draw=function(e,l){return this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=(0,t.default)('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>'),Number(this.label)&&this._elem.css("white-space","nowrap"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._elem},i.default.AxisLabelRenderer.prototype.pack=function(){};
|
|
},{"jquery":29,"./jqplot.core":10}],12:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PercentTickFormatter=exports.DefaultTickFormatter=exports.AxisTickRenderer=void 0;var t=require("jquery"),e=r(t),i=require("./jqplot.core"),s=r(i);function r(t){return t&&t.__esModule?t:{default:t}}var l=exports.AxisTickRenderer=s.default.AxisTickRenderer=function(t){s.default.ElemContainer.call(this),this.mark="outside",this.axis,this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.size=4,this.markSize=6,this.show=!0,this.showLabel=!0,this.label=null,this.value=null,this._styles={},this.formatter=s.default.DefaultTickFormatter,this.prefix="",this.suffix="",this.formatString="",this.fontFamily,this.fontSize,this.textColor,this.escapeHTML=!1,this._elem,this._breakTick=!1,e.default.extend(!0,this,t)};s.default.AxisTickRenderer.prototype.init=function(t){e.default.extend(!0,this,t)},s.default.AxisTickRenderer.prototype=new s.default.ElemContainer,s.default.AxisTickRenderer.prototype.constructor=s.default.AxisTickRenderer,s.default.AxisTickRenderer.prototype.setTick=function(t,e,i){return this.value=t,this.axis=e,i&&(this.isMinorTick=!0),this},s.default.AxisTickRenderer.prototype.draw=function(){null===this.label&&(this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix);var t={position:"absolute"};for(var i in Number(this.label)&&(t.whitSpace="nowrap"),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=(0,e.default)(document.createElement("div")),this._elem.addClass("jqplot-"+this.axis+"-tick"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this._elem.css(t),this._styles)this._elem.css(i,this._styles[i]);return this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._breakTick&&this._elem.addClass("jqplot-breakTick"),this._elem};var o=exports.DefaultTickFormatter=s.default.DefaultTickFormatter=function(t,e){return"number"==typeof e?(t||(t=s.default.config.defaultTickFormatString),s.default.sprintf(t,e)):String(e)},a=exports.PercentTickFormatter=s.default.PercentTickFormatter=function(t,e){return"number"==typeof e?(e*=100,t||(t=s.default.config.defaultTickFormatString),s.default.sprintf(t,e)):String(e)};s.default.AxisTickRenderer.prototype.pack=function(){};
|
|
},{"jquery":29,"./jqplot.core":10}],13:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CanvasGridRenderer=void 0;var i=require("jquery"),t=r(i),e=require("./jqplot.core"),s=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var h=exports.CanvasGridRenderer=s.default.CanvasGridRenderer=function(){this.shadowRenderer=new s.default.ShadowRenderer};s.default.CanvasGridRenderer.prototype.init=function(i){this._ctx,t.default.extend(!0,this,i);var e={lineJoin:"miter",lineCap:"round",fill:!1,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:!1,strokeStyle:this.shadowColor};this.renderer.shadowRenderer.init(e)},s.default.CanvasGridRenderer.prototype.createElement=function(i){var e;this._elem&&(s.default.use_excanvas&&void 0!==window.G_vmlCanvasManager.uninitElement&&(e=this._elem.get(0),window.G_vmlCanvasManager.uninitElement(e),e=null),this._elem.emptyForce(),this._elem=null),e=i.canvasManager.getCanvas();var r=this._plotDimensions.width,h=this._plotDimensions.height;return e.width=r,e.height=h,this._elem=(0,t.default)(e),this._elem.addClass("jqplot-grid-canvas"),this._elem.css({position:"absolute",left:0,top:0}),e=i.canvasManager.initCanvas(e),this._top=this._offsets.top,this._bottom=h-this._offsets.bottom,this._left=this._offsets.left,this._right=r-this._offsets.right,this._width=this._right-this._left,this._height=this._bottom-this._top,e=null,this._elem},s.default.CanvasGridRenderer.prototype.draw=function(){this._ctx=this._elem.get(0).getContext("2d");var i,e,s,r,h=this._ctx,o=this._axes;h.save(),h.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height),h.fillStyle=this.backgroundColor||this.background,h.fillRect(this._left,this._top,this._width,this._height),h.save(),h.lineJoin="miter",h.lineCap="butt",h.lineWidth=this.gridLineWidth,h.strokeStyle=this.gridLineColor;for(var a=["xaxis","yaxis","x2axis","y2axis"],d=4;d>0;d--){var n=a[d-1],l=(u=(k=o[n])._ticks).length;if(k.show){if(k.drawBaseline){var _={};switch(null!==k.baselineWidth&&(_.lineWidth=k.baselineWidth),null!==k.baselineColor&&(_.strokeStyle=k.baselineColor),n){case"xaxis":M(this._left,this._bottom,this._right,this._bottom,_);break;case"yaxis":M(this._left,this._bottom,this._left,this._top,_);break;case"x2axis":M(this._left,this._bottom,this._right,this._bottom,_);break;case"y2axis":M(this._right,this._bottom,this._right,this._top,_)}}for(var c=l;c>0;c--){if((m=u[c-1]).show){var f=Math.round(k.u2p(m.value))+.5;switch(n){case"xaxis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines)&&M(f,this._top,f,this._bottom),m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){s=m.markSize,r=m.mark;f=Math.round(k.u2p(m.value))+.5;switch(r){case"outside":i=this._bottom,e=this._bottom+s;break;case"inside":i=this._bottom-s,e=this._bottom;break;case"cross":i=this._bottom-s,e=this._bottom+s;break;default:i=this._bottom,e=this._bottom+s}this.shadow&&this.renderer.shadowRenderer.draw(h,[[f,i],[f,e]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),M(f,i,f,e)}break;case"yaxis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines)&&M(this._right,f,this._left,f),m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){s=m.markSize,r=m.mark;f=Math.round(k.u2p(m.value))+.5;switch(r){case"outside":i=this._left-s,e=this._left;break;case"inside":i=this._left,e=this._left+s;break;case"cross":i=this._left-s,e=this._left+s;break;default:i=this._left-s,e=this._left}this.shadow&&this.renderer.shadowRenderer.draw(h,[[i,f],[e,f]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),M(i,f,e,f,{strokeStyle:k.borderColor})}break;case"x2axis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines)&&M(f,this._bottom,f,this._top),m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){s=m.markSize,r=m.mark;f=Math.round(k.u2p(m.value))+.5;switch(r){case"outside":i=this._top-s,e=this._top;break;case"inside":i=this._top,e=this._top+s;break;case"cross":i=this._top-s,e=this._top+s;break;default:i=this._top-s,e=this._top}this.shadow&&this.renderer.shadowRenderer.draw(h,[[f,i],[f,e]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),M(f,i,f,e)}break;case"y2axis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines)&&M(this._left,f,this._right,f),m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){s=m.markSize,r=m.mark;f=Math.round(k.u2p(m.value))+.5;switch(r){case"outside":i=this._right,e=this._right+s;break;case"inside":i=this._right-s,e=this._right;break;case"cross":i=this._right-s,e=this._right+s;break;default:i=this._right,e=this._right+s}this.shadow&&this.renderer.shadowRenderer.draw(h,[[i,f],[e,f]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),M(i,f,e,f,{strokeStyle:k.borderColor})}}}}m=null}k=null,u=null}a=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];for(d=7;d>0;d--){var k,u=(k=o[a[d-1]])._ticks;if(k.show){var w=u[k.numberTicks-1],b=u[0],p=k.getLeft(),g=[[p,w.getTop()+w.getHeight()/2],[p,b.getTop()+b.getHeight()/2+1]];this.shadow&&this.renderer.shadowRenderer.draw(h,g,{lineCap:"butt",fill:!1,closePath:!1}),M(g[0][0],g[0][1],g[1][0],g[1][1],{lineCap:"butt",strokeStyle:k.borderColor,lineWidth:k.borderWidth});for(c=u.length;c>0;c--){var m;s=(m=u[c-1]).markSize,r=m.mark;f=Math.round(k.u2p(m.value))+.5;if(m.showMark&&m.mark){switch(r){case"outside":i=p,e=p+s;break;case"inside":i=p-s,e=p;break;case"cross":i=p-s,e=p+s;break;default:i=p,e=p+s}g=[[i,f],[e,f]],this.shadow&&this.renderer.shadowRenderer.draw(h,g,{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),M(i,f,e,f,{strokeStyle:k.borderColor})}m=null}b=null}k=null,u=null}function M(i,e,s,r,o){h.save(),null!=(o=o||{}).lineWidth&&0==o.lineWidth||(t.default.extend(!0,h,o),h.beginPath(),h.moveTo(i,e),h.lineTo(s,r),h.stroke(),h.restore())}if(h.restore(),this.shadow){g=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(h,g)}0!=this.borderWidth&&this.drawBorder&&(M(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:o.x2axis.borderColor,lineWidth:o.x2axis.borderWidth}),M(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:o.y2axis.borderColor,lineWidth:o.y2axis.borderWidth}),M(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:o.xaxis.borderColor,lineWidth:o.xaxis.borderWidth}),M(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:o.yaxis.borderColor,lineWidth:o.yaxis.borderWidth})),h.restore(),h=null,o=null};
|
|
},{"jquery":29,"./jqplot.core":10}],14:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DivTitleRenderer=void 0;var t=require("jquery"),e=o(t),i=require("./jqplot.core"),l=o(i);function o(t){return t&&t.__esModule?t:{default:t}}var s=exports.DivTitleRenderer=l.default.DivTitleRenderer=function(){};l.default.DivTitleRenderer.prototype.init=function(t){e.default.extend(!0,this,t)},l.default.DivTitleRenderer.prototype.draw=function(){this._elem&&(this._elem.emptyForce(),this._elem=null);this.renderer;var t=document.createElement("div");if(this._elem=(0,e.default)(t),this._elem.addClass("jqplot-title"),this.text){if(this.text){var i;this.color?i=this.color:this.textColor&&(i=this.textColor);var l={position:"absolute",top:"0px",left:"0px"};this._plotWidth&&(l.width=this._plotWidth+"px"),this.fontSize&&(l.fontSize=this.fontSize),"string"==typeof this.textAlign?l.textAlign=this.textAlign:l.textAlign="center",i&&(l.color=i),this.paddingBottom&&(l.paddingBottom=this.paddingBottom),this.fontFamily&&(l.fontFamily=this.fontFamily),this._elem.css(l),this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)}}else this.show=!1,this._elem.height(0),this._elem.width(0);return t=null,this._elem},l.default.DivTitleRenderer.prototype.pack=function(){};
|
|
},{"jquery":29,"./jqplot.core":10}],15:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinePattern=void 0;var e=require("jquery"),t=i(e),n=require("./jqplot.core"),o=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var r=.1,a=exports.LinePattern=o.default.LinePattern=function(e,t){var n={dotted:[r,o.default.config.dotGapLength],dashed:[o.default.config.dashLength,o.default.config.gapLength],solid:null};if("string"==typeof t)if("."===t[0]||"-"===t[0]){var i=t;t=[];for(var a=0,f=i.length;a<f;a++){if("."===i[a])t.push(r);else{if("-"!==i[a])continue;t.push(o.default.config.dashLength)}t.push(o.default.config.gapLength)}}else t=n[t];if(!t||!t.length)return e;var u=0,l=t[0],d=0,h=0,s=0,g=0,c=function(n,o){var i=e.lineWidth,r=n-d,a=o-h,f=Math.sqrt(r*r+a*a);if(f>0&&i>0)for(r/=f,a/=f;;){var s=i*l;if(!(s<f)){d=n,h=o,0==(1&u)?e.lineTo(d,h):e.moveTo(d,h),l-=f/i;break}d+=s*r,h+=s*a,0==(1&u)?e.lineTo(d,h):e.moveTo(d,h),f-=s,++u>=t.length&&(u=0),l=t[u]}};return{moveTo:function(t,n){e.moveTo(t,n),d=t,h=n,s=t,g=n},lineTo:c,beginPath:function(){e.beginPath()},closePath:function(){c(s,g)}}};
|
|
},{"jquery":29,"./jqplot.core":10}],5:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LineRenderer=void 0;var e=require("jquery"),t=a(e),i=require("./jqplot.core"),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var h=exports.LineRenderer=r.default.LineRenderer=function(){this.shapeRenderer=new r.default.ShapeRenderer,this.shadowRenderer=new r.default.ShadowRenderer};function s(e,t){return(3.4182054+t)*Math.pow(e,-.3534992)}function n(e,t){var i=Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2));return 5.7648*Math.log(i)+7.4456}function l(e){return(Math.exp(2*e)-1)/(Math.exp(2*e)+1)}function o(e){var t=this.renderer.smooth,i=this.canvas.getWidth(),r=this._xaxis.series_p2u,a=this._yaxis.series_p2u,h=null,n=e.length/i,l=[],o=[];h=isNaN(parseFloat(t))?s(n,.5):parseFloat(t);for(var d,u,g,p,_=[],f=[],w=0,c=e.length;w<c;w++)_.push(e[w][1]),f.push(e[w][0]);function D(e,t){return e-t==0?Math.pow(10,10):e-t}for(var v=e.length-1,x=1,m=e.length;x<m;x++){for(var R=[],M=[],y=0;y<2;y++){0==(w=x-1+y)||w==v?R[y]=Math.pow(10,10):_[w+1]-_[w]==0||_[w]-_[w-1]==0?R[y]=0:(f[w+1]-f[w])/(_[w+1]-_[w])+(f[w]-f[w-1])/(_[w]-_[w-1])==0?R[y]=0:(_[w+1]-_[w])*(_[w]-_[w-1])<0?R[y]=0:R[y]=2/(D(f[w+1],f[w])/(_[w+1]-_[w])+D(f[w],f[w-1])/(_[w]-_[w-1]))}1==x?R[0]=1.5*(_[1]-_[0])/D(f[1],f[0])-R[1]/2:x==v&&(R[1]=1.5*(_[v]-_[v-1])/D(f[v],f[v-1])-R[0]/2),M[0]=-2*(R[1]+2*R[0])/D(f[x],f[x-1])+6*(_[x]-_[x-1])/Math.pow(D(f[x],f[x-1]),2),M[1]=2*(2*R[1]+R[0])/D(f[x],f[x-1])-6*(_[x]-_[x-1])/Math.pow(D(f[x],f[x-1]),2),p=1/6*(M[1]-M[0])/D(f[x],f[x-1]),g=.5*(f[x]*M[0]-f[x-1]*M[1])/D(f[x],f[x-1]),u=(_[x]-_[x-1]-g*(Math.pow(f[x],2)-Math.pow(f[x-1],2))-p*(Math.pow(f[x],3)-Math.pow(f[x-1],3)))/D(f[x],f[x-1]),d=_[x-1]-u*f[x-1]-g*Math.pow(f[x-1],2)-p*Math.pow(f[x-1],3);var C,B,S=(f[x]-f[x-1])/h;for(y=0,c=h;y<c;y++)C=[],B=f[x-1]+y*S,C.push(B),C.push(d+u*B+g*Math.pow(B,2)+p*Math.pow(B,3)),l.push(C),o.push([r(C[0]),a(C[1])])}return l.push(e[w]),o.push([r(e[w][0]),a(e[w][1])]),[l,o]}function d(e){var t,i,r,a,h,n,o,d,u,g,p,_,f,w,c,D,v,x=this.renderer.smooth,m=this.renderer.tension,R=this.canvas.getWidth(),M=this._xaxis.series_p2u,y=this._yaxis.series_p2u,C=null,B=null,S=null,b=null,k=null,P=e.length/R,G=[],O=[];C=isNaN(parseFloat(x))?s(P,.5):parseFloat(x),isNaN(parseFloat(m))||(m=parseFloat(m));for(var I=0,L=e.length-1;I<L;I++)for(null===m?(b=Math.abs((e[I+1][1]-e[I][1])/(e[I+1][0]-e[I][0])),S=(c=(.6-(w=.3))/2)*l(b/(D=2.5)+(v=-1.4))-c*l(v)+w,I>0&&(k=Math.abs((e[I][1]-e[I-1][1])/(e[I][0]-e[I-1][0]))),B=(S+(c*l(k/D+v)-c*l(v)+w))/2):B=m,t=0;t<C;t++)r=(1+2*(i=t/C))*Math.pow(1-i,2),a=i*Math.pow(1-i,2),h=Math.pow(i,2)*(3-2*i),n=Math.pow(i,2)*(i-1),e[I-1]?(o=B*(e[I+1][0]-e[I-1][0]),d=B*(e[I+1][1]-e[I-1][1])):(o=B*(e[I+1][0]-e[I][0]),d=B*(e[I+1][1]-e[I][1])),e[I+2]?(u=B*(e[I+2][0]-e[I][0]),g=B*(e[I+2][1]-e[I][1])):(u=B*(e[I+1][0]-e[I][0]),g=B*(e[I+1][1]-e[I][1])),f=[p=r*e[I][0]+h*e[I+1][0]+a*o+n*u,_=r*e[I][1]+h*e[I+1][1]+a*d+n*g],G.push(f),O.push([M(p),y(_)]);return G.push(e[L]),O.push([M(e[L][0]),y(e[L][1])]),[G,O]}function u(e,t,i){for(var a=0;a<this.series.length;a++)this.series[a].renderer.constructor==r.default.LineRenderer&&this.series[a].highlightMouseOver&&(this.series[a].highlightMouseDown=!1)}function g(){this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas&&(this.plugins.lineRenderer.highlightCanvas.resetCanvas(),this.plugins.lineRenderer.highlightCanvas=null),this.plugins.lineRenderer.highlightedSeriesIndex=null,this.plugins.lineRenderer.highlightCanvas=new r.default.GenericCanvas,this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.lineRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(e){_(e.data.plot)})}function p(e,t,i,r){var a=e.series[t],h=e.plugins.lineRenderer.highlightCanvas;h._ctx.clearRect(0,0,h._ctx.canvas.width,h._ctx.canvas.height),a._highlightedPoint=i,e.plugins.lineRenderer.highlightedSeriesIndex=t;var s={fillStyle:a.highlightColor};"line"===a.type&&a.renderer.bands.show&&(s.fill=!0,s.closePath=!0),a.renderer.shapeRenderer.draw(h._ctx,r,s),h=null}function _(e){var t=e.plugins.lineRenderer.highlightCanvas;t._ctx.clearRect(0,0,t._ctx.canvas.width,t._ctx.canvas.height);for(var i=0;i<e.series.length;i++)e.series[i]._highlightedPoint=null;e.plugins.lineRenderer.highlightedSeriesIndex=null,e.target.trigger("jqplotDataUnhighlight"),t=null}function f(e,i,r,a,h){if(a){var s=[a.seriesIndex,a.pointIndex,a.data],n=t.default.Event("jqplotDataMouseOver");if(n.pageX=e.pageX,n.pageY=e.pageY,h.target.trigger(n,s),h.series[s[0]].highlightMouseOver&&s[0]!=h.plugins.lineRenderer.highlightedSeriesIndex){var l=t.default.Event("jqplotDataHighlight");l.which=e.which,l.pageX=e.pageX,l.pageY=e.pageY,h.target.trigger(l,s),p(h,a.seriesIndex,a.pointIndex,a.points)}}else null==a&&_(h)}function w(e,i,r,a,h){if(a){var s=[a.seriesIndex,a.pointIndex,a.data];if(h.series[s[0]].highlightMouseDown&&s[0]!=h.plugins.lineRenderer.highlightedSeriesIndex){var n=t.default.Event("jqplotDataHighlight");n.which=e.which,n.pageX=e.pageX,n.pageY=e.pageY,h.target.trigger(n,s),p(h,a.seriesIndex,a.pointIndex,a.points)}}else null==a&&_(h)}function c(e,t,i,r,a){var h=a.plugins.lineRenderer.highlightedSeriesIndex;null!=h&&a.series[h].highlightMouseDown&&_(a)}function D(e,i,r,a,h){if(a){var s=[a.seriesIndex,a.pointIndex,a.data],n=t.default.Event("jqplotDataClick");n.which=e.which,n.pageX=e.pageX,n.pageY=e.pageY,h.target.trigger(n,s)}}function v(e,i,r,a,h){if(a){var s=[a.seriesIndex,a.pointIndex,a.data],n=h.plugins.lineRenderer.highlightedSeriesIndex;null!=n&&h.series[n].highlightMouseDown&&_(h);var l=t.default.Event("jqplotDataRightClick");l.which=e.which,l.pageX=e.pageX,l.pageY=e.pageY,h.target.trigger(l,s)}}r.default.LineRenderer.prototype.init=function(e,i){e=e||{},this._type="line",this.renderer.animation={show:!1,direction:"left",speed:2500,_supported:!0},this.renderer.smooth=!1,this.renderer.tension=null,this.renderer.constrainSmoothing=!0,this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],this.renderer.bandData=[],this.renderer.bands={show:!1,hiData:[],lowData:[],color:this.color,showLines:!1,fill:!0,fillColor:null,_min:null,_max:null,interval:"3%"};var a={highlightMouseOver:e.highlightMouseOver,highlightMouseDown:e.highlightMouseDown,highlightColor:e.highlightColor};delete e.highlightMouseOver,delete e.highlightMouseDown,delete e.highlightColor,t.default.extend(!0,this.renderer,e),this.renderer.options=e,this.renderer.bandData.length>1&&(!e.bands||null==e.bands.show)?this.renderer.bands.show=!0:e.bands&&null==e.bands.show&&null!=e.bands.interval&&(this.renderer.bands.show=!0),this.fill&&(this.renderer.bands.show=!1),this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,i),this._stack&&(this.renderer.smooth=!1);var h={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shapeRenderer.init(h);var s=e.shadowOffset;null==s&&(s=this.lineWidth>2.5?1.25*(1+.6*(Math.atan(this.lineWidth/2.5)/.785398163-1)):1.25*Math.atan(this.lineWidth/2.5)/.785398163);var n={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,angle:this.shadowAngle,offset:s,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};if(this.renderer.shadowRenderer.init(n),this._areaPoints=[],this._boundingBox=[[],[]],!this.isTrendline&&this.fill||this.renderer.bands.show){if(this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColor=null,a.highlightMouseDown&&null==a.highlightMouseOver&&(a.highlightMouseOver=!1),t.default.extend(!0,this,{highlightMouseOver:a.highlightMouseOver,highlightMouseDown:a.highlightMouseDown,highlightColor:a.highlightColor}),!this.highlightColor){var l=this.renderer.bands.show?this.renderer.bands.fillColor:this.fillColor;this.highlightColor=r.default.computeHighlightColors(l)}this.highlighter&&(this.highlighter.show=!1)}!this.isTrendline&&i&&(i.plugins.lineRenderer={},i.postInitHooks.addOnce(u),i.postDrawHooks.addOnce(g),i.eventListenerHooks.addOnce("jqplotMouseMove",f),i.eventListenerHooks.addOnce("jqplotMouseDown",w),i.eventListenerHooks.addOnce("jqplotMouseUp",c),i.eventListenerHooks.addOnce("jqplotClick",D),i.eventListenerHooks.addOnce("jqplotRightClick",v))},r.default.LineRenderer.prototype.initBands=function(e,i){var a=e.bandData||[],h=this.renderer.bands;h.hiData=[],h.lowData=[];var s=this.data;if(h._max=null,h._min=null,2==a.length)if(t.default.isArray(a[0][0])){for(var n,l=0,o=0,d=0,u=a[0].length;d<u;d++)(null!=(n=a[0][d])[1]&&n[1]>h._max||null==h._max)&&(h._max=n[1]),(null!=n[1]&&n[1]<h._min||null==h._min)&&(h._min=n[1]);for(d=0,u=a[1].length;d<u;d++)(null!=(n=a[1][d])[1]&&n[1]>h._max||null==h._max)&&(h._max=n[1],o=1),(null!=n[1]&&n[1]<h._min||null==h._min)&&(h._min=n[1],l=1);o===l&&(h.show=!1),h.hiData=a[o],h.lowData=a[l]}else if(a[0].length===s.length&&a[1].length===s.length){var g=(p=a[0][0]>a[1][0]?0:1)?0:1;for(d=0,u=s.length;d<u;d++)h.hiData.push([s[d][0],a[p][d]]),h.lowData.push([s[d][0],a[g][d]])}else h.show=!1;else if(a.length>2&&!t.default.isArray(a[0][0])){var p;for(g=(p=a[0][0]>a[0][1]?0:1)?0:1,d=0,u=a.length;d<u;d++)h.hiData.push([s[d][0],a[d][p]]),h.lowData.push([s[d][0],a[d][g]])}else{var _=h.interval,f=null,w=null,c=null,D=null;if(t.default.isArray(_)?(f=_[0],w=_[1]):f=_,isNaN(f)?"%"===f.charAt(f.length-1)&&(c="multiply",f=parseFloat(f)/100+1):(f=parseFloat(f),c="add"),null!==w&&isNaN(w)?"%"===w.charAt(w.length-1)&&(D="multiply",w=parseFloat(w)/100+1):null!==w&&(w=parseFloat(w),D="add"),null!==f){if(null===w&&(w=-f,"multiply"===(D=c)&&(w+=2)),f<w){var v=f;f=w,w=v,v=c,c=D,D=v}for(d=0,u=s.length;d<u;d++){switch(c){case"add":h.hiData.push([s[d][0],s[d][1]+f]);break;case"multiply":h.hiData.push([s[d][0],s[d][1]*f])}switch(D){case"add":h.lowData.push([s[d][0],s[d][1]+w]);break;case"multiply":h.lowData.push([s[d][0],s[d][1]*w])}}}else h.show=!1}var x=h.hiData,m=h.lowData;for(d=0,u=x.length;d<u;d++)(null!=x[d][1]&&x[d][1]>h._max||null==h._max)&&(h._max=x[d][1]);for(d=0,u=m.length;d<u;d++)(null!=m[d][1]&&m[d][1]<h._min||null==h._min)&&(h._min=m[d][1]);if(null===h.fillColor){var R=r.default.getColorComponents(h.color);R[3]=.5*R[3],h.fillColor="rgba("+R[0]+", "+R[1]+", "+R[2]+", "+R[3]+")"}},r.default.LineRenderer.prototype.setGridData=function(e){var t=this._xaxis.series_u2p,i=this._yaxis.series_u2p,r=this._plotData,a=this._prevPlotData;this.gridData=[],this._prevGridData=[],this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var h,s=this.renderer.bands,n=!1,l=0,u=r.length;l<u;l++)null!=r[l][0]&&null!=r[l][1]?this.gridData.push([t.call(this._xaxis,r[l][0]),i.call(this._yaxis,r[l][1])]):null==r[l][0]?(n=!0,this.gridData.push([null,i.call(this._yaxis,r[l][1])])):null==r[l][1]&&(n=!0,this.gridData.push([t.call(this._xaxis,r[l][0]),null])),null!=a[l]&&null!=a[l][0]&&null!=a[l][1]?this._prevGridData.push([t.call(this._xaxis,a[l][0]),i.call(this._yaxis,a[l][1])]):null!=a[l]&&null==a[l][0]?this._prevGridData.push([null,i.call(this._yaxis,a[l][1])]):null!=a[l]&&null!=a[l][0]&&null==a[l][1]&&this._prevGridData.push([t.call(this._xaxis,a[l][0]),null]);if(n&&(this.renderer.smooth=!1,"line"===this._type&&(s.show=!1)),"line"===this._type&&s.show){for(l=0,u=s.hiData.length;l<u;l++)this.renderer._hiBandGridData.push([t.call(this._xaxis,s.hiData[l][0]),i.call(this._yaxis,s.hiData[l][1])]);for(l=0,u=s.lowData.length;l<u;l++)this.renderer._lowBandGridData.push([t.call(this._xaxis,s.lowData[l][0]),i.call(this._yaxis,s.lowData[l][1])])}"line"===this._type&&this.renderer.smooth&&this.gridData.length>2&&(this.renderer.constrainSmoothing?(h=o.call(this,this.gridData),this.renderer._smoothedData=h[0],this.renderer._smoothedPlotData=h[1],s.show&&(h=o.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=h[0],h=o.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=h[0]),h=null):(h=d.call(this,this.gridData),this.renderer._smoothedData=h[0],this.renderer._smoothedPlotData=h[1],s.show&&(h=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=h[0],h=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=h[0]),h=null))},r.default.LineRenderer.prototype.makeGridData=function(e,t){var i=this._xaxis.series_u2p,r=this._yaxis.series_u2p,a=[];this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var h,s=this.renderer.bands,n=!1,l=0;l<e.length;l++)null!=e[l][0]&&null!=e[l][1]?(this.step&&l>0&&a.push([i.call(this._xaxis,e[l][0]),r.call(this._yaxis,e[l-1][1])]),a.push([i.call(this._xaxis,e[l][0]),r.call(this._yaxis,e[l][1])])):null==e[l][0]?(n=!0,a.push([null,r.call(this._yaxis,e[l][1])])):null==e[l][1]&&(n=!0,a.push([i.call(this._xaxis,e[l][0]),null]));if(n&&(this.renderer.smooth=!1,"line"===this._type&&(s.show=!1)),"line"===this._type&&s.show){l=0;for(var u=s.hiData.length;l<u;l++)this.renderer._hiBandGridData.push([i.call(this._xaxis,s.hiData[l][0]),r.call(this._yaxis,s.hiData[l][1])]);for(l=0,u=s.lowData.length;l<u;l++)this.renderer._lowBandGridData.push([i.call(this._xaxis,s.lowData[l][0]),r.call(this._yaxis,s.lowData[l][1])])}"line"===this._type&&this.renderer.smooth&&a.length>2&&(this.renderer.constrainSmoothing?(h=o.call(this,a),this.renderer._smoothedData=h[0],this.renderer._smoothedPlotData=h[1],s.show&&(h=o.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=h[0],h=o.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=h[0]),h=null):(h=d.call(this,a),this.renderer._smoothedData=h[0],this.renderer._smoothedPlotData=h[1],s.show&&(h=d.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=h[0],h=d.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=h[0]),h=null));return a},r.default.LineRenderer.prototype.draw=function(e,i,r,a){var h,s,n,l=t.default.extend(!0,{},r),o=void 0!=l.shadow?l.shadow:this.shadow,d=void 0!=l.showLine?l.showLine:this.showLine,u=void 0!=l.fill?l.fill:this.fill,g=void 0!=l.fillAndStroke?l.fillAndStroke:this.fillAndStroke;if(e.save(),i.length){if(d)if(u){if(this.fillToZero){var p=this.negativeColor;this.useNegativeColors||(p=l.fillStyle);var _=l.fillStyle;if(g)var f=i.slice(0);if(0!=this.index&&this._stack){for(v=(m=this._prevGridData).length;v>0;v--)i.push(m[v-1]);o&&this.renderer.shadowRenderer.draw(e,i,l),this._areaPoints=i,this.renderer.shapeRenderer.draw(e,i,l)}else{var w=[],c=this.renderer.smooth?this.renderer._smoothedPlotData:this._plotData;this._areaPoints=[];var D=this._yaxis.series_u2p(this.fillToValue);this._xaxis.series_u2p(this.fillToValue);if(l.closePath=!0,"y"==this.fillAxis){w.push([i[0][0],D]),this._areaPoints.push([i[0][0],D]);for(var v=0;v<i.length-1;v++)if(w.push(i[v]),this._areaPoints.push(i[v]),c[v][1]*c[v+1][1]<=0){c[v][1]<0?(!0,l.fillStyle=p):(!1,l.fillStyle=_);var x=i[v][0]+(i[v+1][0]-i[v][0])*(D-i[v][1])/(i[v+1][1]-i[v][1]);w.push([x,D]),this._areaPoints.push([x,D]),o&&this.renderer.shadowRenderer.draw(e,w,l),this.renderer.shapeRenderer.draw(e,w,l),w=[[x,D]]}c[i.length-1][1]<0?(!0,l.fillStyle=p):(!1,l.fillStyle=_),w.push(i[i.length-1]),this._areaPoints.push(i[i.length-1]),w.push([i[i.length-1][0],D]),this._areaPoints.push([i[i.length-1][0],D])}o&&this.renderer.shadowRenderer.draw(e,w,l),this.renderer.shapeRenderer.draw(e,w,l)}}else{if(g)f=i.slice(0);if(0!=this.index&&this._stack){var m;for(v=(m=this._prevGridData).length;v>0;v--)i.push(m[v-1])}else{var R=e.canvas.height;i.unshift([i[0][0],R]);var M=i.length;i.push([i[M-1][0],R])}this._areaPoints=i,o&&this.renderer.shadowRenderer.draw(e,i,l),this.renderer.shapeRenderer.draw(e,i,l)}if(g){var y=t.default.extend(!0,{},l,{fill:!1,closePath:!1});if(this.renderer.shapeRenderer.draw(e,f,y),this.markerRenderer.show)for(this.renderer.smooth&&(f=this.gridData),v=0;v<f.length;v++){var C=l.markerOptions||{};this.markerOptionsCallback&&(C=t.default.extend(!0,C,this.markerOptionsCallback(a,this,v,this.data[v],i[v])||{})),this.markerRenderer.draw(f[v][0],f[v][1],e,C)}}}else{if(this.renderer.bands.show){var B,S=t.default.extend(!0,{},l);this.renderer.bands.showLines&&(B=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData,this.renderer.shapeRenderer.draw(e,B,l),B=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData,this.renderer.shapeRenderer.draw(e,B,S)),this.renderer.bands.fill&&(B=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse()),this._areaPoints=B,S.closePath=!0,S.fill=!0,S.fillStyle=this.renderer.bands.fillColor,this.renderer.shapeRenderer.draw(e,B,S))}o&&this.renderer.shadowRenderer.draw(e,i,l),this.renderer.shapeRenderer.draw(e,i,l)}var b=s=h=n=null;for(v=0;v<this._areaPoints.length;v++){var k=this._areaPoints[v];(b>k[0]||null==b)&&(b=k[0]),(n<k[1]||null==n)&&(n=k[1]),(s<k[0]||null==s)&&(s=k[0]),(h>k[1]||null==h)&&(h=k[1])}if("line"===this.type&&this.renderer.bands.show&&(n=this._yaxis.series_u2p(this.renderer.bands._min),h=this._yaxis.series_u2p(this.renderer.bands._max)),this._boundingBox=[[b,n],[s,h]],this.markerRenderer.show&&!u)for(this.renderer.smooth&&(i=this.gridData),v=0;v<i.length;v++){C=l.markerOptions||{};this.markerOptionsCallback&&(C=t.default.extend(!0,C,this.markerOptionsCallback(a,this,v,this.data[v],i[v])||{})),null!=i[v][0]&&null!=i[v][1]&&this.markerRenderer.draw(i[v][0],i[v][1],e,C)}}e.restore()},r.default.LineRenderer.prototype.drawShadow=function(e,t,i){};
|
|
},{"jquery":29,"./jqplot.core":10}],16:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinearAxisRenderer=void 0;var t=require("jquery"),i=a(t),e=require("./jqplot.core"),s=a(e);function a(t){return t&&t.__esModule?t:{default:t}}var h=exports.LinearAxisRenderer=s.default.LinearAxisRenderer=function(){};s.default.LinearAxisRenderer.prototype.init=function(t){this.breakPoints=null,this.breakTickLabel="≈",this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.forceTickAt0=!1,this.forceTickAt100=!1,this.tickInset=0,this.minorTicks=0,this.alignTicks=!1,this._autoFormatString="",this._overrideFormatString=!1,this._scalefact=1,i.default.extend(!0,this,t),this.breakPoints&&(i.default.isArray(this.breakPoints)?(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])&&(this.breakPoints=null):this.breakPoints=null),null!=this.numberTicks&&this.numberTicks<2&&(this.numberTicks=2),this.resetDataBounds()},s.default.LinearAxisRenderer.prototype.draw=function(t,e){if(this.show){this.renderer.createTicks.call(this,e);if(this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=(0,i.default)(document.createElement("div")),this._elem.addClass("jqplot-axis jqplot-"+this.name),this._elem.css("position","absolute"),"xaxis"==this.name||"x2axis"==this.name?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height),this.labelOptions.axis=this.name,this._label=new this.labelRenderer(this.labelOptions),this._label.show){var s=this._label.draw(t,e);s.appendTo(this._elem),s=null}for(var a,h=this._ticks,n=0;n<h.length;n++)(a=h[n]).show&&a.showLabel&&(!a.isMinorTick||this.showMinorTicks)&&this._elem.append(a.draw(t,e));a=null,h=null}return this._elem},s.default.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString="")},s.default.LinearAxisRenderer.prototype.set=function(){var t,i=0,e=0,a=0,h=null!=this._label&&this._label.show;if(this.show){for(var n,r=this._ticks,l=0;l<r.length;l++)(n=r[l])._breakTick||!n.show||!n.showLabel||n.isMinorTick&&!this.showMinorTicks||(t="xaxis"==this.name||"x2axis"==this.name?n._elem.outerHeight(!0):n._elem.outerWidth(!0))>i&&(i=t);n=null,r=null,h&&(e=this._label._elem.outerWidth(!0),a=this._label._elem.outerHeight(!0)),"xaxis"==this.name?(i+=a,this._elem.css({height:i+"px",left:"0px",bottom:"0px"})):"x2axis"==this.name?(i+=a,this._elem.css({height:i+"px",left:"0px",top:"0px"})):"yaxis"==this.name?(i+=e,this._elem.css({width:i+"px",left:"0px",top:"0px"}),h&&this._label.constructor==s.default.AxisLabelRenderer&&this._label._elem.css("width",e+"px")):(i+=e,this._elem.css({width:i+"px",right:"0px",top:"0px"}),h&&this._label.constructor==s.default.AxisLabelRenderer&&this._label._elem.css("width",e+"px"))}},s.default.LinearAxisRenderer.prototype.createTicks=function(t){this._ticks;var e,a,h,n=this.ticks,r=this.name,l=this._dataBounds,o="x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height,c=this.min,m=this.max,u=this.numberTicks,k=this.tickInterval;if(this._scalefact=(Math.max(o,31)-30)/300,n.length){for(F=0;F<n.length;F++){var x=n[F],d=new this.tickRenderer(this.tickOptions);i.default.isArray(x)?(d.value=x[0],this.breakPoints?x[0]==this.breakPoints[0]?(d.label=this.breakTickLabel,d._breakTick=!0,d.showGridline=!1,d.showMark=!1):x[0]>this.breakPoints[0]&&x[0]<=this.breakPoints[1]?(d.show=!1,d.showGridline=!1,d.label=x[1]):d.label=x[1]:d.label=x[1],d.setTick(x[0],this.name),this._ticks.push(d)):i.default.isPlainObject(x)?(i.default.extend(!0,d,x),d.axis=this.name,this._ticks.push(d)):(d.value=x,this.breakPoints&&(x==this.breakPoints[0]?(d.label=this.breakTickLabel,d._breakTick=!0,d.showGridline=!1,d.showMark=!1):x>this.breakPoints[0]&&x<=this.breakPoints[1]&&(d.show=!1,d.showGridline=!1)),d.setTick(x,this.name),this._ticks.push(d))}this.numberTicks=n.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{o="xaxis"==r||"x2axis"==r?this._plotDimensions.width:this._plotDimensions.height;var f=this.numberTicks;this.alignTicks&&("x2axis"===this.name&&t.axes.xaxis.show?f=t.axes.xaxis.numberTicks:"y"===this.name.charAt(0)&&"yaxis"!==this.name&&"yMidAxis"!==this.name&&t.axes.yaxis.show&&(f=t.axes.yaxis.numberTicks)),e=null!=this.min?this.min:l.min;var b,_,p,g=(a=null!=this.max?this.max:l.max)-e;if(null!=this.tickOptions&&this.tickOptions.formatString||(this._overrideFormatString=!0),null==this.min||null==this.max&&null==this.tickInterval&&!this.autoscale){this.forceTickAt0&&(e>0&&(e=0),a<0&&(a=0)),this.forceTickAt100&&(e>100&&(e=100),a<100&&(a=100));var v=!1,M=!1;null!=this.min?v=!0:null!=this.max&&(M=!0);var T=s.default.LinearTickGenerator(e,a,this._scalefact,f,v,M),w=null!=this.min?e:e+g*(this.padMin-1),I=null!=this.max?a:a-g*(this.padMax-1);(e<w||a>I)&&(w=null!=this.min?e:e-g*(this.padMin-1),I=null!=this.max?a:a+g*(this.padMax-1),T=s.default.LinearTickGenerator(w,I,this._scalefact,f,v,M)),this.min=T[0],this.max=T[1],this.numberTicks=T[2],this._autoFormatString=T[3],this.tickInterval=T[4]}else{if(e==a){var P=.05;e>0&&(P=Math.max(Math.log(e)/Math.LN10,.05)),e-=P,a+=P}if(this.autoscale&&null==this.min&&null==this.max){for(var R,L,A,S=!1,y=!1,F=0;F<this._series.length;F++){var O=this._series[F],B="x"==O.fillAxis?O._xaxis.name:O._yaxis.name;if(this.name==B){for(var D=O._plotValues[O.fillAxis],G=D[0],W=D[0],H=1;H<D.length;H++)D[H]<G?G=D[H]:D[H]>W&&(W=D[H]);var j=(W-G)/W;O.renderer.constructor==s.default.BarRenderer?G>=0&&(O.fillToZero||j>.1)?S=!0:(S=!1,y=!!(O.fill&&O.fillToZero&&G<0&&W>0)):O.fill?G>=0&&(O.fillToZero||j>.1)?S=!0:G<0&&W>0&&O.fillToZero?(S=!1,y=!0):(S=!1,y=!1):G<0&&(S=!1)}}if(S)this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing),this.min=0,c=0,(L=a/(this.numberTicks-1))/(N=Math.pow(10,Math.abs(Math.floor(Math.log(L)/Math.LN10))))==parseInt(L/N,10)&&(L+=N),this.tickInterval=Math.ceil(L/N)*N,this.max=this.tickInterval*(this.numberTicks-1);else if(y){this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing);var q=Math.ceil(Math.abs(e)/g*(this.numberTicks-1)),C=this.numberTicks-1-q;L=Math.max(Math.abs(e/q),Math.abs(a/C)),N=Math.pow(10,Math.abs(Math.floor(Math.log(L)/Math.LN10))),this.tickInterval=Math.ceil(L/N)*N,this.max=this.tickInterval*C,this.min=-this.tickInterval*q}else null==this.numberTicks&&(this.tickInterval?this.numberTicks=3+Math.ceil(g/this.tickInterval):this.numberTicks=2+Math.ceil((o-(this.tickSpacing-1))/this.tickSpacing)),null==this.tickInterval?(N=(L=g/(this.numberTicks-1))<1?Math.pow(10,Math.abs(Math.floor(Math.log(L)/Math.LN10))):1,this.tickInterval=Math.ceil(L*N*this.pad)/N):N=1/this.tickInterval,A=((R=this.tickInterval*(this.numberTicks-1))-g)/2,null==this.min&&(this.min=Math.floor(N*(e-A))/N),null==this.max&&(this.max=this.min+R);if((Z=s.default.getSignificantFigures(this.tickInterval)).digitsLeft>=Z.significantDigits)E="%d";else{var N=Math.max(0,5-Z.digitsLeft);E="%."+(N=Math.min(N,Z.digitsRight))+"f"}this._autoFormatString=E}else{var Z,E;if(b=null!=this.min?this.min:e-g*(this.padMin-1),g=(_=null!=this.max?this.max:a+g*(this.padMax-1))-b,null==this.numberTicks&&(null!=this.tickInterval?this.numberTicks=Math.ceil((_-b)/this.tickInterval)+1:this.numberTicks=o>100?parseInt(3+(o-100)/75,10):2),null==this.tickInterval&&(this.tickInterval=g/(this.numberTicks-1)),null==this.max&&(_=b+this.tickInterval*(this.numberTicks-1)),null==this.min&&(b=_-this.tickInterval*(this.numberTicks-1)),(Z=s.default.getSignificantFigures(this.tickInterval)).digitsLeft>=Z.significantDigits)E="%d";else{N=Math.max(0,5-Z.digitsLeft);E="%."+(N=Math.min(N,Z.digitsRight))+"f"}this._autoFormatString=E,this.min=b,this.max=_}if(this.renderer.constructor==s.default.LinearAxisRenderer&&""==this._autoFormatString){g=this.max-this.min;var V,z=0;if(V=(V=new this.tickRenderer(this.tickOptions).formatString||s.default.config.defaultTickFormatString).match(s.default.sprintf.regex)[0]){if(V.search(/[fFeEgGpP]/)>-1){var J=V.match(/\%\.(\d{0,})?[eEfFgGpP]/);z=J?parseInt(J[1],10):6}else V.search(/[di]/)>-1&&(z=0);var K=Math.pow(10,-z);if(this.tickInterval<K)if(null==u&&null==k)if(this.tickInterval=K,null==m&&null==c)this.min=Math.floor(this._dataBounds.min/K)*K,this.min==this._dataBounds.min&&(this.min=this._dataBounds.min-this.tickInterval),this.max=Math.ceil(this._dataBounds.max/K)*K,this.max==this._dataBounds.max&&(this.max=this._dataBounds.max+this.tickInterval),Q=(Q=(this.max-this.min)/this.tickInterval).toFixed(11),Q=Math.ceil(Q),this.numberTicks=Q+1;else if(null==m){Q=(Q=(this._dataBounds.max-this.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(Q)+2,this.max=this.min+this.tickInterval*(this.numberTicks-1)}else if(null==c){var Q;Q=(Q=(this.max-this._dataBounds.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(Q)+2,this.min=this.max-this.tickInterval*(this.numberTicks-1)}else this.numberTicks=Math.ceil((m-c)/this.tickInterval)+1,this.min=Math.floor(c*Math.pow(10,z))/Math.pow(10,z),this.max=Math.ceil(m*Math.pow(10,z))/Math.pow(10,z),this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}this._overrideFormatString&&""!=this._autoFormatString&&(this.tickOptions=this.tickOptions||{},this.tickOptions.formatString=this._autoFormatString);for(F=0;F<this.numberTicks;F++){if(h=this.min+F*this.tickInterval,(d=new this.tickRenderer(this.tickOptions)).setTick(h,this.name),this._ticks.push(d),F<this.numberTicks-1)for(H=0;H<this.minorTicks;H++)h+=this.tickInterval/(this.minorTicks+1),p=i.default.extend(!0,{},this.tickOptions,{name:this.name,value:h,label:"",isMinorTick:!0}),d=new this.tickRenderer(p),this._ticks.push(d);d=null}}this.tickInset&&(this.min=this.min-this.tickInset*this.tickInterval,this.max=this.max+this.tickInset*this.tickInterval)},s.default.LinearAxisRenderer.prototype.resetTickValues=function(t){if(i.default.isArray(t)&&t.length==this._ticks.length){for(var e,a=0;a<t.length;a++)(e=this._ticks[a]).value=t[a],e.label=e.formatter(e.formatString,t[a]),e.label=e.prefix+e.label,e._elem.html(e.label);e=null,this.min=s.default.arrayMin(t),this.max=s.default.arrayMax(t),this.pack()}},s.default.LinearAxisRenderer.prototype.pack=function(t,i){t=t||{},i=i||this._offsets;var e=this._ticks,a=this.max,h=this.min,n=i.max,r=i.min,l=null!=this._label&&this._label.show;for(var o in t)this._elem.css(o,t[o]);this._offsets=i;var c=n-r,m=a-h;if(this.breakPoints?(m=m-this.breakPoints[1]+this.breakPoints[0],this.p2u=function(t){return(t-r)*m/c+h},this.u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-h)*c/m+r:(t-this.breakPoints[1]+this.breakPoints[0]-h)*c/m+r},"x"==this.name.charAt(0)?(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t<=this.breakPoints[0]?(t-h)*c/m:(t-this.breakPoints[1]+this.breakPoints[0]-h)*c/m},this.series_p2u=function(t){return t*m/c+h}):(this.series_u2p=function(t){return t>this.breakPoints[0]&&t<this.breakPoints[1]&&(t=this.breakPoints[0]),t>=this.breakPoints[1]?(t-a)*c/m:(t+this.breakPoints[1]-this.breakPoints[0]-a)*c/m},this.series_p2u=function(t){return t*m/c+a})):(this.p2u=function(t){return(t-r)*m/c+h},this.u2p=function(t){return(t-h)*c/m+r},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(t){return(t-h)*c/m},this.series_p2u=function(t){return t*m/c+h}):(this.series_u2p=function(t){return(t-a)*c/m},this.series_p2u=function(t){return t*m/c+a})),this.show)if("xaxis"==this.name||"x2axis"==this.name){for(var u=0;u<e.length;u++){if((f=e[u]).show&&f.showLabel){if(f.constructor==s.default.CanvasAxisTickRenderer&&f.angle){var k="xaxis"==this.name?1:-1;switch(f.labelPosition){case"auto":b=k*f.angle<0?-f.getWidth()+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2:-f._textRenderer.height*Math.sin(f._textRenderer.angle)/2;break;case"end":b=-f.getWidth()+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2;break;case"start":b=-f._textRenderer.height*Math.sin(f._textRenderer.angle)/2;break;case"middle":default:b=-f.getWidth()/2+f._textRenderer.height*Math.sin(-f._textRenderer.angle)/2}}else b=-f.getWidth()/2;var x=this.u2p(f.value)+b+"px";f._elem.css("left",x),f.pack()}}if(l){var d=this._label._elem.outerWidth(!0);this._label._elem.css("left",r+c/2-d/2+"px"),"xaxis"==this.name?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px"),this._label.pack()}}else{for(u=0;u<e.length;u++){var f;if((f=e[u]).show&&f.showLabel){var b;if(f.constructor==s.default.CanvasAxisTickRenderer&&f.angle){k="yaxis"==this.name?1:-1;switch(f.labelPosition){case"auto":case"end":b=k*f.angle<0?-f._textRenderer.height*Math.cos(-f._textRenderer.angle)/2:-f.getHeight()+f._textRenderer.height*Math.cos(f._textRenderer.angle)/2;break;case"start":b=f.angle>0?-f._textRenderer.height*Math.cos(-f._textRenderer.angle)/2:-f.getHeight()+f._textRenderer.height*Math.cos(f._textRenderer.angle)/2;break;case"middle":default:b=-f.getHeight()/2}}else b=-f.getHeight()/2;x=this.u2p(f.value)+b+"px";f._elem.css("top",x),f.pack()}}if(l){var _=this._label._elem.outerHeight(!0);this._label._elem.css("top",n-c/2-_/2+"px"),"yaxis"==this.name?this._label._elem.css("left","0px"):this._label._elem.css("right","0px"),this._label.pack()}}e=null};
|
|
},{"jquery":29,"./jqplot.core":10}],17:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinearTickGenerator=void 0;var t=require("./jqplot.core"),e=r(t);function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e;if((t=Math.abs(t))>=10)e="%d";else if(t>1)e=t===parseInt(t,10)?"%d":"%.1f";else{e="%."+-Math.floor(Math.log(t)/Math.LN10)+"f"}return e}var a=[.1,.2,.3,.4,.5,.8,1,2,3,4,5],n=function(t){var e=a.indexOf(t);return e>0?a[e-1]:a[a.length-1]/100},o=function(t){var e=a.indexOf(t);return e<a.length-1?a[e+1]:100*a[0]};function l(t,r,i){for(var a,n,o,l,f,h,u=Math.floor(i/2),s=Math.ceil(1.5*i),g=Number.MAX_VALUE,M=r-t,d=e.default.getSignificantFigures,c=0,v=s-u+1;c<v;c++)n=d(a=M/((f=u+c)-1)),(a=Math.abs(i-f)+n.digitsRight)<g?(g=a,o=f,h=n.digitsRight):a===g&&n.digitsRight<h&&(o=f,h=n.digitsRight);return[t,r,o,0===(l=Math.max(h,Math.max(d(t).digitsRight,d(r).digitsRight)))?"%d":"%."+l+"f",a=M/(o-1)]}function f(t,e){var r=t/((e=e||7)-1),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return i<1?a>5?10*i:a>2?5*i:a>1?2*i:i:a>5?10*i:a>4?5*i:a>3?4*i:a>2?3*i:a>1?2*i:i}function h(t,e){e=e||1;var r=Math.floor(Math.log(t)/Math.LN10),i=Math.pow(10,r),a=t/i;return((a/=e)<=.38?.1:a<=1.6?.2:a<=4?.5:a<=8?1:a<=16?2:5)*i}function u(t,e){var r,i=Math.floor(Math.log(t)/Math.LN10),a=Math.pow(10,i),n=t/a;return[(r=(n/=e)<=.38?.1:n<=1.6?.2:n<=4?.5:n<=8?1:n<=16?2:5)*a,r,a]}var s=exports.LinearTickGenerator=e.default.LinearTickGenerator=function(t,r,a,n,o,l){if(o=null!==o&&o,l=null!==l&&!o&&l,t===r&&(r=r?0:1),a=a||1,r<t){var u=r;r=t,t=u}var s=[],g=h(r-t,a),M=e.default.getSignificantFigures;if(null==n)if(o||l){if(o){s[0]=t,s[2]=Math.ceil((r-t)/g+1),s[1]=t+(s[2]-1)*g;var d=M(t).digitsRight,c=M(g).digitsRight;s[3]=d<c?i(g):"%."+d+"f",s[4]=g}else if(l){s[1]=r,s[2]=Math.ceil((r-t)/g+1),s[0]=r-(s[2]-1)*g;var v=M(r).digitsRight;c=M(g).digitsRight;s[3]=v<c?i(g):"%."+v+"f",s[4]=g}}else s[0]=Math.floor(t/g)*g,s[1]=Math.ceil(r/g)*g,s[2]=Math.round((s[1]-s[0])/g+1),s[3]=i(g),s[4]=g;else{var L=[];if(L[0]=Math.floor(t/g)*g,L[1]=Math.ceil(r/g)*g,L[2]=Math.round((L[1]-L[0])/g+1),L[3]=i(g),L[4]=g,L[2]===n)s=L;else{var p=f(L[1]-L[0],n);s[0]=L[0],s[2]=n,s[4]=p,s[3]=i(p),s[1]=s[0]+(s[2]-1)*s[4]}}return s};e.default.LinearTickGenerator.bestLinearInterval=h,e.default.LinearTickGenerator.bestInterval=f,e.default.LinearTickGenerator.bestLinearComponents=u,e.default.LinearTickGenerator.bestConstrainedInterval=l;
|
|
},{"./jqplot.core":10}],18:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MarkerRenderer=void 0;var e=require("jquery"),r=d(e),t=require("./jqplot.core"),a=d(t);function d(e){return e&&e.__esModule?e:{default:e}}var s=exports.MarkerRenderer=a.default.MarkerRenderer=function(e){this.show=!0,this.style="filledCircle",this.lineWidth=2,this.size=9,this.color="#666666",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1,this.shadowDepth=3,this.shadowAlpha="0.07",this.shadowRenderer=new a.default.ShadowRenderer,this.shapeRenderer=new a.default.ShapeRenderer,r.default.extend(!0,this,e)};function i(e){var t={angle:e.shadowAngle,offset:e.shadowOffset,alpha:e.shadowAlpha,lineWidth:e.lineWidth,depth:e.shadowDepth,closePath:!0};return-1!=e.style.indexOf("filled")&&(t.fill=!0),-1!=e.style.indexOf("ircle")&&(t.isarc=!0,t.closePath=!1),r.default.extend(!0,{},t)}function h(e){var t={fill:!1,isarc:!1,strokeStyle:e.color,fillStyle:e.color,lineWidth:e.lineWidth,closePath:!0};return-1!=e.style.indexOf("filled")&&(t.fill=!0),-1!=e.style.indexOf("ircle")&&(t.isarc=!0,t.closePath=!1),r.default.extend(!0,{},t)}a.default.MarkerRenderer.prototype.init=function(e){r.default.extend(!0,this,e)},a.default.MarkerRenderer.prototype.drawDiamond=function(e,t,a,d,s){var l;l=null==s||r.default.isEmptyObject(s)?this:r.default.extend(!0,{},this,s);var n=this.size/2/1.2,o=this.size/2*1.2,w=[[e-n,t],[e,t+o],[e+n,t],[e,t-o]];l.shadow&&this.shadowRenderer.draw(a,w,i(l)),this.shapeRenderer.draw(a,w,h(l))},a.default.MarkerRenderer.prototype.drawPlus=function(e,t,a,d,s){var h=r.default.extend(!0,{},this,s,{closePath:!1}),l=h.size/2*1,n=h.size/2*1,o=[[e,t-n],[e,t+n]],w=[[e+l,t],[e-l,t]];h.shadow&&(this.shadowRenderer.draw(a,o,i(h)),this.shadowRenderer.draw(a,w,i(h))),this.shapeRenderer.draw(a,o,h),this.shapeRenderer.draw(a,w,h)},a.default.MarkerRenderer.prototype.drawX=function(e,t,a,d,s){var l=r.default.extend(!0,{},this,s,{closePath:!1}),n=l.size/2*1,o=l.size/2*1,w=[[e-n,t-o],[e+n,t+o]],f=[[e-n,t+o],[e+n,t-o]];l.shadow&&(this.shadowRenderer.draw(a,w,i(l)),this.shadowRenderer.draw(a,f,i(l))),this.shapeRenderer.draw(a,w,h(l)),this.shapeRenderer.draw(a,f,h(l))},a.default.MarkerRenderer.prototype.drawDash=function(e,t,a,d,s){var i;i=null==s||r.default.isEmptyObject(s)?this:r.default.extend(!0,{},this,s);var l=this.size/2*1,n=(this.size,[[e-l,t],[e+l,t]]);i.shadow&&this.shadowRenderer.draw(a,n),this.shapeRenderer.draw(a,n,h(i))},a.default.MarkerRenderer.prototype.drawLine=function(e,t,a,d,s){var l,n=[e,t];(l=null==s||r.default.isEmptyObject(s)?this:r.default.extend(!0,{},this,s)).shadow&&this.shadowRenderer.draw(a,n,i(l)),this.shapeRenderer.draw(a,n,h(l))},a.default.MarkerRenderer.prototype.drawSquare=function(e,t,a,d,s){var l;l=null==s||r.default.isEmptyObject(s)?this:r.default.extend(!0,{},this,s);var n=this.size/2/1,o=this.size/2*1,w=[[e-n,t-o],[e-n,t+o],[e+n,t+o],[e+n,t-o]];l.shadow&&this.shadowRenderer.draw(a,w,i(l)),this.shapeRenderer.draw(a,w,h(l))},a.default.MarkerRenderer.prototype.drawCircle=function(e,t,a,d,s){var l;l=null==s||r.default.isEmptyObject(s)?this:r.default.extend(!0,{},this,s);var n=[e,t,this.size/2,0,2*Math.PI,!0];l.shadow&&this.shadowRenderer.draw(a,n,i(l)),this.shapeRenderer.draw(a,n,h(l))},a.default.MarkerRenderer.prototype.draw=function(e,r,t,a){if(null==(a=a||{}).show||0!=a.show)switch(a.color&&!a.fillStyle&&(a.fillStyle=a.color),a.color&&!a.strokeStyle&&(a.strokeStyle=a.color),a.style||this.style){case"diamond":this.drawDiamond(e,r,t,!1,a);break;case"filledDiamond":this.drawDiamond(e,r,t,!0,a);break;case"circle":this.drawCircle(e,r,t,!1,a);break;case"filledCircle":this.drawCircle(e,r,t,!0,a);break;case"square":this.drawSquare(e,r,t,!1,a);break;case"filledSquare":this.drawSquare(e,r,t,!0,a);break;case"x":this.drawX(e,r,t,!0,a);break;case"plus":this.drawPlus(e,r,t,!0,a);break;case"dash":this.drawDash(e,r,t,!0,a);break;case"line":this.drawLine(e,r,t,!1,a);break;default:this.drawDiamond(e,r,t,!1,a)}};
|
|
},{"jquery":29,"./jqplot.core":10}],19:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShadowRenderer=void 0;var e=require("jquery"),t=n(e),l=require("./jqplot.core"),i=n(l);function n(e){return e&&e.__esModule?e:{default:e}}var a=exports.ShadowRenderer=i.default.ShadowRenderer=function(e){this.angle=45,this.offset=1,this.alpha=.07,this.lineWidth=1.5,this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.depth=3,this.strokeStyle="rgba(0,0,0,0.1)",this.isarc=!1,t.default.extend(!0,this,e)};i.default.ShadowRenderer.prototype.init=function(e){t.default.extend(!0,this,e)},i.default.ShadowRenderer.prototype.draw=function(e,t,l){e.save();var n=null!=l?l:{},a=null!=n.fill?n.fill:this.fill,s=null!=n.fillRect?n.fillRect:this.fillRect,h=null!=n.closePath?n.closePath:this.closePath,r=null!=n.offset?n.offset:this.offset,o=null!=n.alpha?n.alpha:this.alpha,f=null!=n.depth?n.depth:this.depth,d=null!=n.isarc?n.isarc:this.isarc,u=null!=n.linePattern?n.linePattern:this.linePattern;e.lineWidth=null!=n.lineWidth?n.lineWidth:this.lineWidth,e.lineJoin=null!=n.lineJoin?n.lineJoin:this.lineJoin,e.lineCap=null!=n.lineCap?n.lineCap:this.lineCap,e.strokeStyle=n.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+o+")",e.fillStyle=n.fillStyle||this.fillStyle||"rgba(0,0,0,"+o+")";for(var c=0;c<f;c++){var p=i.default.LinePattern(e,u);if(e.translate(Math.cos(this.angle*Math.PI/180)*r,Math.sin(this.angle*Math.PI/180)*r),p.beginPath(),d)e.arc(t[0],t[1],t[2],t[3],t[4],!0);else if(s)s&&e.fillRect(t[0],t[1],t[2],t[3]);else if(t&&t.length)for(var P=!0,S=0;S<t.length;S++)null!=t[S][0]&&null!=t[S][1]?P?(p.moveTo(t[S][0],t[S][1]),P=!1):p.lineTo(t[S][0],t[S][1]):P=!0;h&&p.closePath(),a?e.fill():e.stroke()}e.restore()};
|
|
},{"jquery":29,"./jqplot.core":10}],20:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShapeRenderer=void 0;var e=require("jquery"),t=r(e),l=require("./jqplot.core"),i=r(l);function r(e){return e&&e.__esModule?e:{default:e}}var n=exports.ShapeRenderer=i.default.ShapeRenderer=function(e){this.lineWidth=1.5,this.linePattern="solid",this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.isarc=!1,this.fillRect=!1,this.strokeRect=!1,this.clearRect=!1,this.strokeStyle="#999999",this.fillStyle="#999999",t.default.extend(!0,this,e)};i.default.ShapeRenderer.prototype.init=function(e){t.default.extend(!0,this,e)},i.default.ShapeRenderer.prototype.draw=function(e,t,l){e.save();var r=null!=l?l:{},n=null!=r.fill?r.fill:this.fill,s=null!=r.closePath?r.closePath:this.closePath,o=null!=r.fillRect?r.fillRect:this.fillRect,a=null!=r.strokeRect?r.strokeRect:this.strokeRect,h=null!=r.clearRect?r.clearRect:this.clearRect,c=null!=r.isarc?r.isarc:this.isarc,f=null!=r.linePattern?r.linePattern:this.linePattern,u=i.default.LinePattern(e,f);if(e.lineWidth=r.lineWidth||this.lineWidth,e.lineJoin=r.lineJoin||this.lineJoin,e.lineCap=r.lineCap||this.lineCap,e.strokeStyle=r.strokeStyle||r.color||this.strokeStyle,e.fillStyle=r.fillStyle||this.fillStyle,e.beginPath(),c)return e.arc(t[0],t[1],t[2],t[3],t[4],!0),s&&e.closePath(),n?e.fill():e.stroke(),void e.restore();if(h)return e.clearRect(t[0],t[1],t[2],t[3]),void e.restore();if(o||a){if(o&&e.fillRect(t[0],t[1],t[2],t[3]),a)return e.strokeRect(t[0],t[1],t[2],t[3]),void e.restore()}else if(t&&t.length){for(var d=!0,R=0;R<t.length;R++)null!=t[R][0]&&null!=t[R][1]?d?(u.moveTo(t[R][0],t[R][1]),d=!1):u.lineTo(t[R][0],t[R][1]):d=!0;s&&u.closePath(),n?e.fill():e.stroke()}e.restore()};
|
|
},{"jquery":29,"./jqplot.core":10}],21:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableLegendRenderer=void 0;var t=require("jquery"),e=o(t),s=require("./jqplot.core"),i=o(s);function o(t){return t&&t.__esModule?t:{default:t}}var l=exports.TableLegendRenderer=i.default.TableLegendRenderer=function(){};i.default.TableLegendRenderer.prototype.init=function(t){e.default.extend(!0,this,t)},i.default.TableLegendRenderer.prototype.addrow=function(t,s,i,o){var l,h,a,n,r,d=i?this.rowSpacing+"px":"0px";a=document.createElement("tr"),(l=(0,e.default)(a)).addClass("jqplot-table-legend"),a=null,o?l.prependTo(this._elem):l.appendTo(this._elem),this.showSwatches&&((h=(0,e.default)(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),h.css({textAlign:"center",paddingTop:d}),(n=(0,e.default)(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(r=(0,e.default)(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),r.css({backgroundColor:s,borderColor:s}),l.append(h.append(n.append(r)))),this.showLabels&&((h=(0,e.default)(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),h.css("paddingTop",d),l.append(h),this.escapeHtml?h.text(t):h.html(t)),h=null,n=null,r=null,l=null,a=null},i.default.TableLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var t=this._series,s=document.createElement("table");this._elem=(0,e.default)(s),this._elem.addClass("jqplot-table-legend");var o={position:"absolute"};this.background&&(o.background=this.background),this.border&&(o.border=this.border),this.fontSize&&(o.fontSize=this.fontSize),this.fontFamily&&(o.fontFamily=this.fontFamily),this.textColor&&(o.textColor=this.textColor),null!=this.marginTop&&(o.marginTop=this.marginTop),null!=this.marginBottom&&(o.marginBottom=this.marginBottom),null!=this.marginLeft&&(o.marginLeft=this.marginLeft),null!=this.marginRight&&(o.marginRight=this.marginRight);for(var l,h=!1,a=!1,n=0;n<t.length;n++)if(((l=t[n])._stack||l.renderer.constructor==i.default.BezierCurveRenderer)&&(a=!0),l.show&&l.showLabel){var r=this.labels[n]||l.label.toString();if(r){var d=l.color;a&&n<t.length-1?h=!0:a&&n==t.length-1&&(h=!1),this.renderer.addrow.call(this,r,d,h,a),h=!0}for(var m=0;m<i.default.addLegendRowHooks.length;m++){var c=i.default.addLegendRowHooks[m].call(this,l);c&&(this.renderer.addrow.call(this,c.label,c.color,h),h=!0)}r=null}}return this._elem},i.default.TableLegendRenderer.prototype.pack=function(t){if(this.show)if("insideGrid"==this.placement)switch(this.location){case"nw":var e=t.left,s=t.top;this._elem.css("left",e),this._elem.css("top",s);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,s=t.top;this._elem.css("left",e),this._elem.css("top",s);break;case"ne":e=t.right,s=t.top;this._elem.css({right:e,top:s});break;case"e":e=t.right,s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:s});break;case"se":e=t.right,s=t.bottom;this._elem.css({right:e,bottom:s});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,s=t.bottom;this._elem.css({left:e,bottom:s});break;case"sw":e=t.left,s=t.bottom;this._elem.css({left:e,bottom:s});break;case"w":e=t.left,s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:s});break;default:e=t.right,s=t.bottom;this._elem.css({right:e,bottom:s})}else if("outside"==this.placement)switch(this.location){case"nw":e=this._plotDimensions.width-t.left,s=t.top;this._elem.css("right",e),this._elem.css("top",s);break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,s=this._plotDimensions.height-t.top;this._elem.css("left",e),this._elem.css("bottom",s);break;case"ne":e=this._plotDimensions.width-t.right,s=t.top;this._elem.css({left:e,top:s});break;case"e":e=this._plotDimensions.width-t.right,s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:e,top:s});break;case"se":e=this._plotDimensions.width-t.right,s=t.bottom;this._elem.css({left:e,bottom:s});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2,s=this._plotDimensions.height-t.bottom;this._elem.css({left:e,top:s});break;case"sw":e=this._plotDimensions.width-t.left,s=t.bottom;this._elem.css({right:e,bottom:s});break;case"w":e=this._plotDimensions.width-t.left,s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:e,top:s});break;default:e=t.right,s=t.bottom;this._elem.css({right:e,bottom:s})}else switch(this.location){case"nw":this._elem.css({left:0,top:t.top});break;case"n":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,top:t.top});break;case"ne":this._elem.css({right:0,top:t.top});break;case"e":s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({right:t.right,top:s});break;case"se":this._elem.css({right:t.right,bottom:t.bottom});break;case"s":e=(t.left+(this._plotDimensions.width-t.right))/2-this.getWidth()/2;this._elem.css({left:e,bottom:t.bottom});break;case"sw":this._elem.css({left:t.left,bottom:t.bottom});break;case"w":s=(t.top+(this._plotDimensions.height-t.bottom))/2-this.getHeight()/2;this._elem.css({left:t.left,top:s});break;default:this._elem.css({right:t.right,bottom:t.bottom})}};
|
|
},{"jquery":29,"./jqplot.core":10}],22:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Theme=exports.ThemeEngine=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=require("jquery"),l=i(t),r=require("./jqplot.core"),n=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var s=exports.ThemeEngine=n.default.ThemeEngine=function(){this.themes={},this.activeTheme=null};function o(e,t){return e-t}function h(t){if(null==t||"object"!=(void 0===t?"undefined":e(t)))return t;var l=new t.constructor;for(var r in t)l[r]=h(t[r]);return l}function u(t,l){if(null!=l&&"object"==(void 0===l?"undefined":e(l)))for(var r in l)"highlightColors"==r&&(t[r]=h(l[r])),null!=l[r]&&"object"==e(l[r])?(t.hasOwnProperty(r)||(t[r]={}),u(t[r],l[r])):t[r]=l[r]}n.default.ThemeEngine.prototype.init=function(){var e,t,l,r,i,s,o=new n.default.Theme({_name:"Default"});for(e in o.target)o.target[e]="textColor"==e?this.target.css("color"):this.target.css(e);if(this.title.show&&this.title._elem)for(e in o.title)o.title[e]="textColor"==e?this.title._elem.css("color"):this.title._elem.css(e);for(e in o.grid)o.grid[e]=this.grid[e];if(null==o.grid.backgroundColor&&null!=this.grid.background&&(o.grid.backgroundColor=this.grid.background),this.legend.show&&this.legend._elem)for(e in o.legend)o.legend[e]="textColor"==e?this.legend._elem.css("color"):this.legend._elem.css(e);for(t=0;t<this.series.length;t++)for(e in(r=this.series[t]).renderer.constructor==n.default.LineRenderer?o.series.push(new m):r.renderer.constructor==n.default.BarRenderer?o.series.push(new p):r.renderer.constructor==n.default.PieRenderer?o.series.push(new b):r.renderer.constructor==n.default.DonutRenderer?o.series.push(new w):r.renderer.constructor==n.default.FunnelRenderer?o.series.push(new y):r.renderer.constructor==n.default.MeterGaugeRenderer?o.series.push(new v):o.series.push({}),o.series[t])o.series[t][e]=r[e];for(e in this.axes){if(s=this.axes[e],(i=o.axes[e]=new d).borderColor=s.borderColor,i.borderWidth=s.borderWidth,s._ticks&&s._ticks[0])for(l in i.ticks)s._ticks[0].hasOwnProperty(l)?i.ticks[l]=s._ticks[0][l]:s._ticks[0]._elem&&(i.ticks[l]=s._ticks[0]._elem.css(l));if(s._label&&s._label.show)for(l in i.label)s._label[l]?i.label[l]=s._label[l]:s._label._elem&&(i.label[l]="textColor"==l?s._label._elem.css("color"):s._label._elem.css(l))}this.themeEngine._add(o),this.themeEngine.activeTheme=this.themeEngine.themes[o._name]},n.default.ThemeEngine.prototype.get=function(e){return e?this.themes[e]:this.activeTheme},n.default.ThemeEngine.prototype.getThemeNames=function(){var e=[];for(var t in this.themes)e.push(t);return e.sort(o)},n.default.ThemeEngine.prototype.getThemes=function(){var e=[],t=[];for(var l in this.themes)e.push(l);e.sort(o);for(var r=0;r<e.length;r++)t.push(this.themes[e[r]]);return t},n.default.ThemeEngine.prototype.activate=function(e,t){var l=!1;if(!t&&this.activeTheme&&this.activeTheme._name&&(t=this.activeTheme._name),!this.themes.hasOwnProperty(t))throw new Error("No theme of that name");var r=this.themes[t];this.activeTheme=r;var i,s,o=["xaxis","x2axis","yaxis","y2axis"];for(s=0;s<o.length;s++){var h=o[s];null!=r.axesStyles.borderColor&&(e.axes[h].borderColor=r.axesStyles.borderColor),null!=r.axesStyles.borderWidth&&(e.axes[h].borderWidth=r.axesStyles.borderWidth)}for(var a in e.axes){var d=e.axes[a];if(d.show){var f=r.axes[a]||{},c=r.axesStyles,m=n.default.extend(!0,{},f,c);if(i=null!=r.axesStyles.borderColor?r.axesStyles.borderColor:m.borderColor,null!=m.borderColor&&(d.borderColor=m.borderColor,l=!0),i=null!=r.axesStyles.borderWidth?r.axesStyles.borderWidth:m.borderWidth,null!=m.borderWidth&&(d.borderWidth=m.borderWidth,l=!0),d._ticks&&d._ticks[0])for(var g in m.ticks)null!=(i=m.ticks[g])&&(d.tickOptions[g]=i,d._ticks=[],l=!0);if(d._label&&d._label.show)for(var g in m.label)null!=(i=m.label[g])&&(d.labelOptions[g]=i,l=!0)}}for(var p in r.grid)null!=r.grid[p]&&(e.grid[p]=r.grid[p]);if(l||e.grid.draw(),e.legend.show)for(p in r.legend)null!=r.legend[p]&&(e.legend[p]=r.legend[p]);if(e.title.show)for(p in r.title)null!=r.title[p]&&(e.title[p]=r.title[p]);for(s=0;s<r.series.length;s++){var b={};for(p in r.series[s])null!=(i=null!=r.seriesStyles[p]?r.seriesStyles[p]:r.series[s][p])&&(b[p]=i,"color"==p?(e.series[s].renderer.shapeRenderer.fillStyle=i,e.series[s].renderer.shapeRenderer.strokeStyle=i,e.series[s][p]=i):"lineWidth"==p||"linePattern"==p?(e.series[s].renderer.shapeRenderer[p]=i,e.series[s][p]=i):"markerOptions"==p?(u(e.series[s].markerOptions,i),u(e.series[s].markerRenderer,i)):e.series[s][p]=i,l=!0)}for(p in l&&(e.target.empty(),e.draw()),r.target)null!=r.target[p]&&e.target.css(p,r.target[p])},n.default.ThemeEngine.prototype._add=function(e,t){if(t&&(e._name=t),e._name||(e._name=Date.parse(new Date)),this.themes.hasOwnProperty(e._name))throw new Error("jqplot.ThemeEngine Error: Theme already in use");this.themes[e._name]=e},n.default.ThemeEngine.prototype.remove=function(e){return"Default"!=e&&delete this.themes[e]},n.default.ThemeEngine.prototype.newTheme=function(t,l){"object"==(void 0===t?"undefined":e(t))&&(l=l||t,t=null),t=l&&l._name?l._name:t||Date.parse(new Date);var r=this.copy(this.themes.Default._name,t);return n.default.extend(r,l),r},n.default.clone=h,n.default.merge=u,n.default.extend=function(){var t,l=arguments[0]||{},r=1,i=arguments.length,s=!1;for("boolean"==typeof l&&(s=l,l=arguments[1]||{},r=2),"object"!==(void 0===l?"undefined":e(l))&&"[object Function]"===!toString.call(l)&&(l={});r<i;r++)if(null!=(t=arguments[r]))for(var o in t){var h=l[o],u=t[o];l!==u&&(s&&u&&"object"===(void 0===u?"undefined":e(u))&&!u.nodeType?l[o]=n.default.extend(s,h||(null!=u.length?[]:{}),u):void 0!==u&&(l[o]=u))}return l},n.default.ThemeEngine.prototype.rename=function(e,t){if("Default"==e||"Default"==t)throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(t))throw new Error("jqplot.ThemeEngine Error: New name already in use.");if(this.themes.hasOwnProperty(e)){var l=this.copy(e,t);return this.remove(e),l}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid")},n.default.ThemeEngine.prototype.copy=function(e,t,l){if("Default"==t)throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");if(!this.themes.hasOwnProperty(e)){var r="jqplot.ThemeEngine Error: Source name invalid";throw new Error(r)}if(this.themes.hasOwnProperty(t)){r="jqplot.ThemeEngine Error: Target name invalid";throw new Error(r)}var i=h(this.themes[e]);return i._name=t,n.default.extend(!0,i,l),this._add(i),i};var a=exports.Theme=n.default.Theme=function(t,l){"object"==(void 0===t?"undefined":e(t))&&(l=l||t,t=null),t=t||Date.parse(new Date),this._name=t,this.target={backgroundColor:null},this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null},this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null},this.seriesStyles={},this.series=[],this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null},this.axesStyles={label:{},ticks:{}},this.axes={},"string"==typeof l?this._name=l:"object"==(void 0===l?"undefined":e(l))&&n.default.extend(!0,this,l)},d=function(){this.borderColor=null,this.borderWidth=null,this.ticks=new f,this.label=new c},f=function(){this.show=null,this.showGridline=null,this.showLabel=null,this.showMark=null,this.size=null,this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null},c=function(){this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null},m=function(){this.color=null,this.lineWidth=null,this.linePattern=null,this.shadow=null,this.fillColor=null,this.showMarker=null,this.markerOptions=new g},g=function(){this.show=null,this.style=null,this.lineWidth=null,this.size=null,this.color=null,this.shadow=null},p=function(){this.color=null,this.seriesColors=null,this.lineWidth=null,this.shadow=null,this.barPadding=null,this.barMargin=null,this.barWidth=null,this.highlightColors=null},b=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.highlightColors=null},w=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.innerDiameter=null,this.thickness=null,this.ringMargin=null,this.highlightColors=null},y=function(){this.color=null,this.lineWidth=null,this.shadow=null,this.padding=null,this.sectionMargin=null,this.seriesColors=null,this.highlightColors=null},v=function(){this.padding=null,this.backgroundColor=null,this.ringColor=null,this.tickColor=null,this.ringWidth=null,this.intervalColors=null,this.intervalInnerRadius=null,this.intervalOuterRadius=null,this.hubRadius=null,this.needleThickness=null,this.needlePad=null};
|
|
},{"jquery":29,"./jqplot.core":10}],23:[function(require,module,exports) {
|
|
"use strict";var t=require("jquery"),e=i(t),l=require("./jqplot.core"),a=i(l);function i(t){return t&&t.__esModule?t:{default:t}}e.default.fn.jqplotChildText=function(){return(0,e.default)(this).contents().filter(function(){return 3==this.nodeType}).text()},e.default.fn.jqplotGetComputedFontStyle=function(){for(var t=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,e=t["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],l=[],a=0;a<e.length;++a){var i=String(t[e[a]]);i&&"normal"!=i&&l.push(i)}return l.join(" ")},e.default.fn.jqplotToImageCanvas=function(t){var l=null==(t=t||{}).x_offset?0:t.x_offset,i=null==t.y_offset?0:t.y_offset,o=null==t.backgroundColor?"rgb(255,255,255)":t.backgroundColor;if(0==(0,e.default)(this).width()||0==(0,e.default)(this).height())return null;if(a.default.use_excanvas)return null;for(var n,s,r,f,d=document.createElement("canvas"),u=(0,e.default)(this).outerHeight(!0),p=(0,e.default)(this).outerWidth(!0),c=(0,e.default)(this).offset(),h=c.left,g=c.top,j=0,m=0,q=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"],x=0;x<q.length;x++)(0,e.default)(this).find("."+q[x]).each(function(){n=(0,e.default)(this).offset().top-g,s=(0,e.default)(this).offset().left-h,f=s+(0,e.default)(this).outerWidth(!0)+j,r=n+(0,e.default)(this).outerHeight(!0)+m,s<-j&&(p=p-j-s,j=-s),n<-m&&(u=u-m-n,m=-n),f>p&&(p=f),r>u&&(u=r)});d.width=p+Number(l),d.height=u+Number(i);var y=d.getContext("2d");function v(t,l,a,i,o,n){for(var s=function(t){var l=parseInt((0,e.default)(t).css("line-height"),10);return isNaN(l)&&(l=1.2*parseInt((0,e.default)(t).css("font-size"),10)),l}(t),r=(0,e.default)(t).innerWidth(),f=((0,e.default)(t).innerHeight(),a.split(/\s+/)),d=f.length,u="",p=[],c=o,h=i,g=0;g<d;g++)u+=f[g],l.measureText(u).width>r&&u.length>f[g].length&&(p.push(g),u="",g--);if(0===p.length)"center"===(0,e.default)(t).css("textAlign")&&(h=i+(n-l.measureText(u).width)/2-j),l.fillText(a,h,o);else{u=f.slice(0,p[0]).join(" "),"center"===(0,e.default)(t).css("textAlign")&&(h=i+(n-l.measureText(u).width)/2-j),l.fillText(u,h,c),c+=s;g=1;for(var m=p.length;g<m;g++)u=f.slice(p[g-1],p[g]).join(" "),"center"===(0,e.default)(t).css("textAlign")&&(h=i+(n-l.measureText(u).width)/2-j),l.fillText(u,h,c),c+=s;u=f.slice(p[g-1],f.length).join(" "),"center"===(0,e.default)(t).css("textAlign")&&(h=i+(n-l.measureText(u).width)/2-j),l.fillText(u,h,c)}}return y.save(),y.fillStyle=o,y.fillRect(0,0,d.width,d.height),y.restore(),y.translate(j,m),y.textAlign="left",y.textBaseline="top",(0,e.default)(this).children().each(function(){!function t(l,a,i){var o=l.tagName.toLowerCase(),n=(0,e.default)(l).position(),s=window.getComputedStyle?window.getComputedStyle(l,""):l.currentStyle,r=a+n.left+parseInt(s.marginLeft,10)+parseInt(s.borderLeftWidth,10)+parseInt(s.paddingLeft,10),f=i+n.top+parseInt(s.marginTop,10)+parseInt(s.borderTopWidth,10)+parseInt(s.paddingTop,10),u=d.width;if("div"!=o&&"span"!=o||(0,e.default)(l).hasClass("jqplot-highlighter-tooltip")||(0,e.default)(l).hasClass("jqplot-canvasOverlay-tooltip"))"table"===o&&(0,e.default)(l).hasClass("jqplot-table-legend")?(y.strokeStyle=(0,e.default)(l).css("border-top-color"),y.fillStyle=(0,e.default)(l).css("background-color"),y.fillRect(r,f,(0,e.default)(l).innerWidth(),(0,e.default)(l).innerHeight()),parseInt((0,e.default)(l).css("border-top-width"),10)>0&&y.strokeRect(r,f,(0,e.default)(l).innerWidth(),(0,e.default)(l).innerHeight()),(0,e.default)(l).find("div.jqplot-table-legend-swatch-outline").each(function(){var t=(0,e.default)(this);y.strokeStyle=t.css("border-top-color");var l=r+t.position().left,a=f+t.position().top;y.strokeRect(l,a,t.innerWidth(),t.innerHeight()),l+=parseInt(t.css("padding-left"),10),a+=parseInt(t.css("padding-top"),10);var i=t.innerHeight()-2*parseInt(t.css("padding-top"),10),o=t.innerWidth()-2*parseInt(t.css("padding-left"),10),n=t.children("div.jqplot-table-legend-swatch");y.fillStyle=n.css("background-color"),y.fillRect(l,a,o,i)}),(0,e.default)(l).find("td.jqplot-table-legend-label").each(function(){var t=(0,e.default)(this),l=r+t.position().left,a=f+t.position().top+parseInt(t.css("padding-top"),10);y.font=t.jqplotGetComputedFontStyle(),y.fillStyle=t.css("color"),v(t,y,t.text(),l,a,u)})):"canvas"==o&&y.drawImage(l,r,f);else{(0,e.default)(l).children().each(function(){t(this,r,f)});var p=(0,e.default)(l).jqplotChildText();p&&(y.font=(0,e.default)(l).jqplotGetComputedFontStyle(),y.fillStyle=(0,e.default)(l).css("color"),v(l,y,p,r,f,u))}}(this,l,i)}),d},e.default.fn.jqplotToImageStr=function(t){var l=(0,e.default)(this).jqplotToImageCanvas(t);return l?l.toDataURL("image/png"):null},e.default.fn.jqplotToImageElem=function(t){var l=document.createElement("img"),a=(0,e.default)(this).jqplotToImageStr(t);return l.src=a,l},e.default.fn.jqplotToImageElemStr=function(t){return"<img src="+(0,e.default)(this).jqplotToImageStr(t)+" />"},e.default.fn.jqplotSaveImage=function(){var t=(0,e.default)(this).jqplotToImageStr({});t&&(window.location.href=t.replace("image/png","image/octet-stream"))},e.default.fn.jqplotViewImage=function(){var t=(0,e.default)(this).jqplotToImageElemStr({});(0,e.default)(this).jqplotToImageStr({});if(t){var l=window.open("");l.document.open("image/png"),l.document.write(t),l.document.close(),l=null}};
|
|
},{"jquery":29,"./jqplot.core":10}],24:[function(require,module,exports) {
|
|
"use strict";var e=function e(){switch(this.syntax=e.config.syntax,this._type="jsDate",this.proxy=new Date,this.options={},this.locale=e.regional.getLocale(),this.formatString="",this.defaultCentury=e.config.defaultCentury,arguments.length){case 0:break;case 1:if("[object Object]"==s(arguments[0])&&"jsDate"!=arguments[0]._type){var t=this.options=arguments[0];this.syntax=t.syntax||this.syntax,this.defaultCentury=t.defaultCentury||this.defaultCentury,this.proxy=e.createDate(t.date)}else this.proxy=e.createDate(arguments[0]);break;default:for(var r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,r.slice(0,3)),r.slice(3).length&&this.proxy.setHours.apply(this.proxy,r.slice(3))}};e.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900},e.prototype.add=function(e,t){var r=o[t]||o.day;return"number"==typeof r?this.proxy.setTime(this.proxy.getTime()+r*e):r.add(this,e),this},e.prototype.clone=function(){return new e(this.proxy.getTime())},e.prototype.getUtcOffset=function(){return 6e4*this.proxy.getTimezoneOffset()},e.prototype.diff=function(t,r,a){if(null===(t=new e(t)))return null;var n=o[r]||o.day;if("number"==typeof n)var i=(this.proxy.getTime()-t.proxy.getTime())/n;else i=n.diff(this.proxy,t.proxy);return a?i:Math[i>0?"floor":"ceil"](i)},e.prototype.getAbbrDayName=function(){return e.regional[this.locale].dayNamesShort[this.proxy.getDay()]},e.prototype.getAbbrMonthName=function(){return e.regional[this.locale].monthNamesShort[this.proxy.getMonth()]},e.prototype.getAMPM=function(){return this.proxy.getHours()>=12?"PM":"AM"},e.prototype.getAmPm=function(){return this.proxy.getHours()>=12?"pm":"am"},e.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)},e.prototype.getDate=function(){return this.proxy.getDate()},e.prototype.getDay=function(){return this.proxy.getDay()},e.prototype.getDayOfWeek=function(){var e=this.proxy.getDay();return 0===e?7:e},e.prototype.getDayOfYear=function(){var e=this.proxy,t=e-new Date(e.getFullYear()+"/1/1 GMT");return t+=6e4*e.getTimezoneOffset(),e=null,parseInt(t/6e4/60/24,10)+1},e.prototype.getDayName=function(){return e.regional[this.locale].dayNames[this.proxy.getDay()]},e.prototype.getFullWeekOfYear=function(){var e=this.proxy,t=this.getDayOfYear(),r=6-e.getDay();return parseInt((t+r)/7,10)},e.prototype.getFullYear=function(){return this.proxy.getFullYear()},e.prototype.getGmtOffset=function(){var e=this.proxy.getTimezoneOffset()/60,t=e<0?"+":"-";return e=Math.abs(e),t+r(Math.floor(e),2)+":"+r(e%1*60,2)},e.prototype.getHours=function(){return this.proxy.getHours()},e.prototype.getHours12=function(){var e=this.proxy.getHours();return e>12?e-12:0==e?12:e},e.prototype.getIsoWeek=function(){var t=this.proxy,r=this.getWeekOfYear(),o=new Date(t.getFullYear()+"/1/1").getDay(),a=r+(o>4||o<=1?0:1);return 53==a&&new Date(t.getFullYear()+"/12/31").getDay()<4?a=1:0===a&&(a=(t=new e(new Date(t.getFullYear()-1+"/12/31"))).getIsoWeek()),t=null,a},e.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()},e.prototype.getMinutes=function(){return this.proxy.getMinutes()},e.prototype.getMonth=function(){return this.proxy.getMonth()},e.prototype.getMonthName=function(){return e.regional[this.locale].monthNames[this.proxy.getMonth()]},e.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1},e.prototype.getSeconds=function(){return this.proxy.getSeconds()},e.prototype.getShortYear=function(){return this.proxy.getYear()%100},e.prototype.getTime=function(){return this.proxy.getTime()},e.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")},e.prototype.getTimezoneName=function(){var e=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return e[1]||e[2]||"GMT"+this.getGmtOffset()},e.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()},e.prototype.getWeekOfYear=function(){var e=this.getDayOfYear(),t=7-this.getDayOfWeek();return parseInt((e+t)/7,10)},e.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1e3,0)},e.prototype.getYear=function(){return this.proxy.getYear()},e.prototype.next=function(e){return e=e||"day",this.clone().add(1,e)},e.prototype.set=function(){switch(arguments.length){case 0:this.proxy=new Date;break;case 1:if("[object Object]"==s(arguments[0])&&"jsDate"!=arguments[0]._type){var t=this.options=arguments[0];this.syntax=t.syntax||this.syntax,this.defaultCentury=t.defaultCentury||this.defaultCentury,this.proxy=e.createDate(t.date)}else this.proxy=e.createDate(arguments[0]);break;default:for(var r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,r.slice(0,3)),r.slice(3).length&&this.proxy.setHours.apply(this.proxy,r.slice(3))}return this},e.prototype.setDate=function(e){return this.proxy.setDate(e),this},e.prototype.setFullYear=function(){return this.proxy.setFullYear.apply(this.proxy,arguments),this},e.prototype.setHours=function(){return this.proxy.setHours.apply(this.proxy,arguments),this},e.prototype.setMilliseconds=function(e){return this.proxy.setMilliseconds(e),this},e.prototype.setMinutes=function(){return this.proxy.setMinutes.apply(this.proxy,arguments),this},e.prototype.setMonth=function(){return this.proxy.setMonth.apply(this.proxy,arguments),this},e.prototype.setSeconds=function(){return this.proxy.setSeconds.apply(this.proxy,arguments),this},e.prototype.setTime=function(e){return this.proxy.setTime(e),this},e.prototype.setYear=function(){return this.proxy.setYear.apply(this.proxy,arguments),this},e.prototype.strftime=function(t){return t=t||this.formatString||e.regional[this.locale].formatString,e.strftime(this,t,this.syntax)},e.prototype.toString=function(){return this.proxy.toString()},e.prototype.toYmdInt=function(){return 1e4*this.proxy.getFullYear()+100*this.getMonthNumber()+this.proxy.getDate()},e.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["السبت","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة"],dayNamesShort:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},pl:{monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Ni","Pn","Wt","Śr","Cz","Pt","Sb"],formatString:"%Y-%m-%d %H:%M:%S"},nl:{monthNames:["Januari","Februari","Maart","April","Mei","Juni","July","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:",".Zaterdag,dayNamesShort:["Zo","Ma","Di","Wo","Do","Vr","Za"],formatString:"%Y-%m-%d %H:%M:%S"},sv:{monthNames:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],dayNames:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],dayNamesShort:["sön","mån","tis","ons","tor","fre","lör"],formatString:"%Y-%m-%d %H:%M:%S"},it:{monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],formatString:"%d-%m-%Y %H:%M:%S"}},e.regional["en-US"]=e.regional["en-GB"]=e.regional.en,e.regional.getLocale=function(){var t=e.config.defaultLocale;return document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(t=document.getElementsByTagName("html")[0].lang,e.regional.hasOwnProperty(t)||(t=e.config.defaultLocale)),t};var t=864e5,r=function(e,t){var r=t-(e=String(e)).length;return String(Math.pow(10,r)).slice(1).concat(e)},o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:t,week:7*t,month:{add:function(e,t){o.year.add(e,Math[t>0?"floor":"ceil"](t/12));var r=e.getMonth()+t%12;12==r?(r=0,e.setYear(e.getFullYear()+1)):-1==r&&(r=11,e.setYear(e.getFullYear()-1)),e.setMonth(r)},diff:function(e,t){var r=e.getFullYear()-t.getFullYear();return e.getMonth()-t.getMonth()+12*r+(e.getDate()-t.getDate())/30}},year:{add:function(e,t){e.setYear(e.getFullYear()+Math[t>0?"floor":"ceil"](t))},diff:function(e,t){return o.month.diff(e,t)/12}}};for(var a in o)"s"!=a.substring(a.length-1)&&(o[a+"s"]=o[a]);var n=function(t,o,a){if(e.formats[a].shortcuts[o])return e.strftime(t,e.formats[a].shortcuts[o],a);var n=(e.formats[a].codes[o]||"").split("."),i=t["get"+n[0]]?t["get"+n[0]]():"";return n[1]&&(i=r(i,n[1])),i};function i(e,t){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function s(e){return null===e?"[object Null]":Object.prototype.toString.call(e)}e.strftime=function(t,r,o,a){var i="perl",u=e.regional.getLocale();o&&e.formats.hasOwnProperty(o)?i=o:o&&e.regional.hasOwnProperty(o)&&(u=o),a&&e.formats.hasOwnProperty(a)?i=a:a&&e.regional.hasOwnProperty(a)&&(u=a),"[object Object]"==s(t)&&"jsDate"==t._type||((t=new e(t)).locale=u),r||(r=t.formatString||e.regional[u].formatString);for(var p,m=r||"%Y-%m-%d",h="";m.length>0;)(p=m.match(e.formats[i].codes.matcher))?(h+=m.slice(0,p.index),h+=(p[1]||"")+n(t,p[2],i),m=m.slice(p.index+p[0].length)):(h+=m,m="");return h},e.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"},e.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},e.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},e.createDate=function(t){if(null==t)return new Date;if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);var r,o=String(t).replace(/^\s*(.+)\s*$/g,"$1");if((r=(o=(o=o.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3")).replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3")).match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i))&&r.length>3){var a=parseFloat(r[3]),n=e.config.defaultCentury+a;n=String(n),o=o.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,r[1]+" "+r[2]+" "+n)}function i(t,r){var o,a,n,i,s=parseFloat(r[1]),u=parseFloat(r[2]),p=parseFloat(r[3]),m=e.config.defaultCentury;return s>31?(a=p,n=u,o=m+s):(a=u,n=s,o=m+p),i=n+"/"+a+"/"+o,t.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,i)}(r=o.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/))&&r.length>3&&(o=i(o,r)),(r=o.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/))&&r.length>3&&(o=i(o,r));for(var s,u,p,m=0,h=e.matchers.length,l=o;m<h;){if(u=Date.parse(l),!isNaN(u))return new Date(u);if("function"==typeof(s=e.matchers[m])){if((p=s.call(e,l))instanceof Date)return p}else l=o.replace(s[0],s[1]);m++}return NaN},e.daysInMonth=function(e,t){return 2==t?29==new Date(e,1,29).getDate()?29:28:[void 0,31,void 0,31,30,31,30,31,31,30,31,30,31][t]},e.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(e){var t=e.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(t){if(t[1]){var r=this.createDate(t[1]);if(isNaN(r))return}else{(r=new Date).setMilliseconds(0)}var o=parseFloat(t[2]);return t[6]&&(o="am"==t[6].toLowerCase()?12==o?0:o:12==o?12:o+12),r.setHours(o,parseInt(t[3]||0,10),parseInt(t[4]||0,10),1e3*(parseFloat(t[5]||0)||0)),r}return e},function(e){var t=e.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(t){if(t[1]){var r=this.createDate(t[1]);if(isNaN(r))return}else{(r=new Date).setMilliseconds(0)}var o=parseFloat(t[2]);return r.setHours(o,parseInt(t[3],10),parseInt(t[4],10),1e3*parseFloat(t[5])),r}return e},function(t){var r=t.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(r){var o,a,n,s=new Date,u=e.config.defaultCentury,p=parseFloat(r[1]),m=parseFloat(r[3]);return p>31?(a=m,o=u+p):(a=p,o=u+m),-1==(n=i(r[2],e.regional[e.regional.getLocale()].monthNamesShort))&&(n=i(r[2],e.regional[e.regional.getLocale()].monthNames)),s.setFullYear(o,n,a),s.setHours(0,0,0,0),s}return t}],module.exports=e;
|
|
},{}],25:[function(require,module,exports) {
|
|
"use strict";var e=require("jquery"),t=a(e),r=require("./jqplot.core"),n=a(r);function a(e){return e&&e.__esModule?e:{default:e}}n.default.sprintf=function(){function e(e,t,r,n){var a=e.length>=t?"":Array(1+t-e.length>>>0).join(r);return n?e+a:a+e}function t(e){for(var t=new String(e),r=10;r>0&&t!=(t=t.replace(/^(\d+)(\d{3})/,"$1"+n.default.sprintf.thousandsSeparator+"$2"));r--);return t}function r(t,r,n,a,i,s){var u=a-t.length;if(u>0){var c=" ";s&&(c=" "),t=n||!i?e(t,a,c,n):t.slice(0,r.length)+e("",u,"0",!0)+t.slice(r.length)}return t}function a(t,n,a,i,s,u,c,o){var f=t>>>0;return r(t=(a=a&&f&&{2:"0b",8:"0",16:"0x"}[n]||"")+e(f.toString(n),u||0,"0",!1),a,i,s,c,o)}function i(e,t,n,a,i,s){return null!=a&&(e=e.slice(0,a)),r(e,"",t,n,i,s)}var s=arguments,u=0;return s[u++].replace(n.default.sprintf.regex,function(c,o,f,l,g,d,h){if("%%"==c)return"%";for(var p=!1,b="",x=!1,S=!1,M=!1,v=!1,E=0;f&&E<f.length;E++)switch(f.charAt(E)){case" ":b=" ";break;case"+":b="+";break;case"-":p=!0;break;case"0":x=!0;break;case"#":S=!0;break;case"&":M=!0;break;case"'":v=!0}if((l=l?"*"==l?+s[u++]:"*"==l.charAt(0)?+s[l.slice(1,-1)]:+l:0)<0&&(l=-l,p=!0),!isFinite(l))throw new Error("jqplot.sprintf: (minimum-)width must be finite");d=d?"*"==d?+s[u++]:"*"==d.charAt(0)?+s[d.slice(1,-1)]:+d:"fFeE".indexOf(h)>-1?6:"d"==h?0:void 0;var N=o?s[o.slice(0,-1)]:s[u++];switch(h){case"s":return null==N?"":i(String(N),p,l,d,x,M);case"c":return i(String.fromCharCode(+N),p,l,d,x,M);case"b":return a(N,2,S,p,l,d,x,M);case"o":return a(N,8,S,p,l,d,x,M);case"x":return a(N,16,S,p,l,d,x,M);case"X":return a(N,16,S,p,l,d,x,M).toUpperCase();case"u":return a(N,10,S,p,l,d,x,M);case"i":var m=parseInt(+N,10);return isNaN(m)?"":r(N=(k=m<0?"-":b)+e(v?t(String(Math.abs(m))):String(Math.abs(m)),d,"0",!1),k,p,l,x,M);case"d":m=Math.round(+N);return isNaN(m)?"":r(N=(k=m<0?"-":b)+e(v?t(String(Math.abs(m))):String(Math.abs(m)),d,"0",!1),k,p,l,x,M);case"e":case"E":case"f":case"F":case"g":case"G":m=+N;if(isNaN(m))return"";var k=m<0?"-":b,w=["toExponential","toFixed","toPrecision"]["efg".indexOf(h.toLowerCase())],F=["toString","toUpperCase"]["eEfFgG".indexOf(h)%2];return(P=Math.abs(m)[w](d).toString().split("."))[0]=v?t(P[0]):P[0],r(N=k+P.join(n.default.sprintf.decimalMark),k,p,l,x,M)[F]();case"p":case"P":m=+N;if(isNaN(m))return"";k=m<0?"-":b;var P,C=-1!=(P=String(Number(Math.abs(m)).toExponential()).split(/e|E/))[0].indexOf(".")?P[0].length-1:String(m).length,O=P[1]<0?-P[1]-1:0;if(Math.abs(m)<1)N=C+O<=d?k+Math.abs(m).toPrecision(C):C<=d-1?k+Math.abs(m).toExponential(C-1):k+Math.abs(m).toExponential(d-1);else{var j=C<=d?C:d;N=k+Math.abs(m).toPrecision(j)}F=["toString","toUpperCase"]["pP".indexOf(h)%2];return r(N,k,p,l,x,M)[F]();case"n":return"";default:return c}})},n.default.sprintf.thousandsSeparator=",",n.default.sprintf.decimalMark=".",n.default.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g,n.default.getSignificantFigures=function(e){var t=String(Number(Math.abs(e)).toExponential()).split(/e|E/),r=-1!=t[0].indexOf(".")?t[0].length-1:t[0].length,n=t[1]<0?-t[1]-1:0,a=parseInt(t[1],10),i=a+1>0?a+1:0;return{significantDigits:r,digitsLeft:i,digitsRight:r<=i?0:r-a-1,zeros:n,exponent:a}},n.default.getPrecision=function(e){return n.default.getSignificantFigures(e).digitsRight};
|
|
},{"jquery":29,"./jqplot.core":10}],26:[function(require,module,exports) {
|
|
"use strict";var e=require("jquery"),t=n(e),f=require("./jqplot.core"),a=n(f);function n(e){return e&&e.__esModule?e:{default:e}}var i=!1!==t.default.uiBackCompat;a.default.effects={effect:{}};var u="jqplot.storage.";function o(e,f,a,n){return t.default.isPlainObject(e)?e:(e={effect:e},void 0===f&&(f={}),t.default.isFunction(f)&&(n=f,a=null,f={}),("number"===t.default.type(f)||t.default.fx.speeds[f])&&(n=a,a=f,f={}),t.default.isFunction(a)&&(n=a,a=null),f&&t.default.extend(e,f),a=a||f.duration,e.duration=t.default.fx.off?0:"number"==typeof a?a:a in t.default.fx.speeds?t.default.fx.speeds[a]:t.default.fx.speeds._default,e.complete=n||f.complete,e)}function s(e){return!(e&&"number"!=typeof e&&!t.default.fx.speeds[e])||"string"==typeof e&&!a.default.effects.effect[e]&&(!i||!a.default.effects[e])}t.default.extend(a.default.effects,{version:"1.9pre",save:function(e,t){for(var f=0;f<t.length;f++)null!==t[f]&&e.data(u+t[f],e[0].style[t[f]])},restore:function(e,t){for(var f=0;f<t.length;f++)null!==t[f]&&e.css(t[f],e.data(u+t[f]))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var f={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},a=(0,t.default)("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},i=document.activeElement;return e.wrap(a),(e[0]===i||t.default.contains(e[0],i))&&(0,t.default)(i).focus(),a=e.parent(),"static"===e.css("position")?(a.css({position:"relative"}),e.css({position:"relative"})):(t.default.extend(f,{position:e.css("position"),zIndex:e.css("z-index")}),t.default.each(["top","left","bottom","right"],function(t,a){f[a]=e.css(a),isNaN(parseInt(f[a],10))&&(f[a]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),a.css(f).show()},removeWrapper:function(e){var f=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===f||t.default.contains(e[0],f))&&(0,t.default)(f).focus()),e}}),t.default.fn.extend({jqplotEffect:function(e,f,n,u){var s=o.apply(this,arguments),r=s.mode,l=s.queue,d=a.default.effects.effect[s.effect],c=!d&&i&&a.default.effects[s.effect];if(t.default.fx.off||!d&&!c)return r?this[r](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)});function p(e){var f=(0,t.default)(this),a=s.complete,n=s.mode;function i(){t.default.isFunction(a)&&a.call(f[0]),t.default.isFunction(e)&&e()}(f.is(":hidden")?"hide"===n:"show"===n)?i():d.call(f[0],s,i)}return d?!1===l?this.each(p):this.queue(l||"fx",p):c.call(this,{options:s,duration:s.duration,callback:s.complete,mode:s.mode})}});
|
|
},{"jquery":29,"./jqplot.core":10}],27:[function(require,module,exports) {
|
|
"use strict";var e=require("jquery"),t=r(e),s=require("./jqplot.core"),i=r(s);function r(e){return e&&e.__esModule?e:{default:e}}var f=/up|down|vertical/,o=/up|left|vertical|horizontal/;i.default.effects.effect.blind=function(e,s){var r,a,u,c=(0,t.default)(this),d=["position","top","bottom","left","right","height","width"],n=i.default.effects.setMode(c,e.mode||"hide"),l=e.direction||"up",p=f.test(l),h=p?"height":"width",v=p?"top":"left",g=o.test(l),w={},m="show"===n;c.parent().is(".ui-effects-wrapper")?i.default.effects.save(c.parent(),d):i.default.effects.save(c,d),c.show(),u=parseInt(c.css("top"),10),r=i.default.effects.createWrapper(c).css({overflow:"hidden"}),a=p?r[h]()+u:r[h](),w[h]=m?String(a):"0",g||(c.css(p?"bottom":"right",0).css(p?"top":"left","").css({position:"absolute"}),w[v]=m?"0":String(a)),m&&(r.css(h,0),g||r.css(v,a)),r.animate(w,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===n&&c.hide(),i.default.effects.restore(c,d),i.default.effects.removeWrapper(c),s()}})};
|
|
},{"jquery":29,"./jqplot.core":10}],9:[function(require,module,exports) {
|
|
|
|
},{}],4:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./jqplot.core");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});var r=require("./AxisLabelRenderer");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("./AxisTickRenderer");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});var n=require("./CanvasGridRenderer");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});var u=require("./DivTitleRenderer");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})});var o=require("./LinePattern");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})});var c=require("./LineRenderer");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})});var f=require("./LinearAxisRenderer");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return f[e]}})});var i=require("./LinearTickGenerator");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i[e]}})});var a=require("./MarkerRenderer");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})});var d=require("./ShadowRenderer");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return d[e]}})});var l=require("./ShapeRenderer");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})});var s=require("./TableLegendRenderer");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return s[e]}})});var b=require("./ThemeEngine");Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return b[e]}})});var p=require("./jqplot.toImage");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return p[e]}})});var j=require("./jsdate");Object.keys(j).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return j[e]}})});var _=require("./jqplot.sprintf");Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _[e]}})});var y=require("./jqplot.effects.core");Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return y[e]}})});var O=require("./jqplot.effects.blind");Object.keys(O).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return O[e]}})}),require("./jqplot.css");var q=x(e);function x(e){return e&&e.__esModule?e:{default:e}}exports.default=q.default;
|
|
},{"./jqplot.core":10,"./AxisLabelRenderer":11,"./AxisTickRenderer":12,"./CanvasGridRenderer":13,"./DivTitleRenderer":14,"./LinePattern":15,"./LineRenderer":5,"./LinearAxisRenderer":16,"./LinearTickGenerator":17,"./MarkerRenderer":18,"./ShadowRenderer":19,"./ShapeRenderer":20,"./TableLegendRenderer":21,"./ThemeEngine":22,"./jqplot.toImage":23,"./jsdate":24,"./jqplot.sprintf":25,"./jqplot.effects.core":26,"./jqplot.effects.blind":27,"./jqplot.css":9}],6:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BarRenderer=void 0;var i=require("jquery"),t=h(i),e=require("../jqplot.core"),s=h(e);function h(i){return i&&i.__esModule?i:{default:i}}var r=exports.BarRenderer=s.default.BarRenderer=function(){s.default.LineRenderer.call(this)};function a(i,e,s,h){if("horizontal"==this.rendererOptions.barDirection&&(this._stackAxis="x",this._primaryAxis="_yaxis"),1==this.rendererOptions.waterfall){this._data=t.default.extend(!0,[],this.data);for(var r=0,a=this.rendererOptions.barDirection&&"vertical"!==this.rendererOptions.barDirection&&!1!==this.transposedData?0:1,l=0;l<this.data.length;l++)r+=this.data[l][a],l>0&&(this.data[l][a]+=this.data[l-1][a]);this.data[this.data.length]=1==a?[this.data.length+1,r]:[r,this.data.length+1],this._data[this._data.length]=1==a?[this._data.length+1,r]:[r,this._data.length+1]}if(this.rendererOptions.groups>1){this.breakOnNull=!0;var n=this.data.length,o=parseInt(n/this.rendererOptions.groups,10),d=0;for(l=o;l<n;l+=o)this.data.splice(l+d,0,[null,null]),this._plotData.splice(l+d,0,[null,null]),this._stackData.splice(l+d,0,[null,null]),d++;for(l=0;l<this.data.length;l++)"_xaxis"==this._primaryAxis?(this.data[l][0]=l+1,this._plotData[l][0]=l+1,this._stackData[l][0]=l+1):(this.data[l][1]=l+1,this._plotData[l][1]=l+1,this._stackData[l][1]=l+1)}}function l(i){for(var t=[],e=0;e<i.length;e++){for(var h=s.default.getColorComponents(i[e]),r=[h[0],h[1],h[2]],a=r[0]+r[1]+r[2],l=0;l<3;l++)r[l]=a>570?.8*r[l]:r[l]+.3*(255-r[l]),r[l]=parseInt(r[l],10);t.push("rgb("+r[0]+","+r[1]+","+r[2]+")")}return t}function n(i,t,e,s,h){var r=i,a=i-1,l="x"===h?0:1;return r>0?e*s.series[a]._plotData[t][l]<0?n(a,t,e,s,h):s.series[a].gridData[t][l]:0===l?s.series[r]._xaxis.series_u2p(0):s.series[r]._yaxis.series_u2p(0)}function o(i,t,e){for(var h=0;h<this.series.length;h++)this.series[h].renderer.constructor==s.default.BarRenderer&&this.series[h].highlightMouseOver&&(this.series[h].highlightMouseDown=!1)}function d(){this.plugins.barRenderer&&this.plugins.barRenderer.highlightCanvas&&(this.plugins.barRenderer.highlightCanvas.resetCanvas(),this.plugins.barRenderer.highlightCanvas=null),this.plugins.barRenderer={highlightedSeriesIndex:null},this.plugins.barRenderer.highlightCanvas=new s.default.GenericCanvas,this.eventCanvas._elem.before(this.plugins.barRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-barRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.barRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(i){u(i.data.plot)})}function g(i,t,e,s){var h=i.series[t],r=i.plugins.barRenderer.highlightCanvas;r._ctx.clearRect(0,0,r._ctx.canvas.width,r._ctx.canvas.height),h._highlightedPoint=e,i.plugins.barRenderer.highlightedSeriesIndex=t;var a={fillStyle:h.highlightColors[e]};h.renderer.shapeRenderer.draw(r._ctx,s,a),r=null}function u(i){var t=i.plugins.barRenderer.highlightCanvas;t._ctx.clearRect(0,0,t._ctx.canvas.width,t._ctx.canvas.height);for(var e=0;e<i.series.length;e++)i.series[e]._highlightedPoint=null;i.plugins.barRenderer.highlightedSeriesIndex=null,i.target.trigger("jqplotDataUnhighlight"),t=null}function p(i,e,s,h,r){if(h){var a=[h.seriesIndex,h.pointIndex,h.data],l=t.default.Event("jqplotDataMouseOver");if(l.pageX=i.pageX,l.pageY=i.pageY,r.target.trigger(l,a),r.series[a[0]].show&&r.series[a[0]].highlightMouseOver&&(a[0]!=r.plugins.barRenderer.highlightedSeriesIndex||a[1]!=r.series[a[0]]._highlightedPoint)){var n=t.default.Event("jqplotDataHighlight");n.which=i.which,n.pageX=i.pageX,n.pageY=i.pageY,r.target.trigger(n,a),g(r,h.seriesIndex,h.pointIndex,h.points)}}else null==h&&u(r)}function f(i,e,s,h,r){if(h){var a=[h.seriesIndex,h.pointIndex,h.data];if(r.series[a[0]].highlightMouseDown&&(a[0]!=r.plugins.barRenderer.highlightedSeriesIndex||a[1]!=r.series[a[0]]._highlightedPoint)){var l=t.default.Event("jqplotDataHighlight");l.which=i.which,l.pageX=i.pageX,l.pageY=i.pageY,r.target.trigger(l,a),g(r,h.seriesIndex,h.pointIndex,h.points)}}else null==h&&u(r)}function _(i,t,e,s,h){var r=h.plugins.barRenderer.highlightedSeriesIndex;null!=r&&h.series[r].highlightMouseDown&&u(h)}function c(i,e,s,h,r){if(h){var a=[h.seriesIndex,h.pointIndex,h.data],l=t.default.Event("jqplotDataClick");l.which=i.which,l.pageX=i.pageX,l.pageY=i.pageY,r.target.trigger(l,a)}}function x(i,e,s,h,r){if(h){var a=[h.seriesIndex,h.pointIndex,h.data],l=r.plugins.barRenderer.highlightedSeriesIndex;null!=l&&r.series[l].highlightMouseDown&&u(r);var n=t.default.Event("jqplotDataRightClick");n.which=i.which,n.pageX=i.pageX,n.pageY=i.pageY,r.target.trigger(n,a)}}s.default.BarRenderer.prototype=new s.default.LineRenderer,s.default.BarRenderer.prototype.constructor=s.default.BarRenderer,s.default.BarRenderer.prototype.init=function(i,e){this.barPadding=8,this.barMargin=10,this.barDirection="vertical",this.barWidth=null,this.shadowOffset=2,this.shadowDepth=5,this.shadowAlpha=.08,this.waterfall=!1,this.groups=1,this.varyBarColor=!1,this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColors=[],this.transposedData=!0,this.renderer.animation={show:!1,direction:"down",speed:3e3,_supported:!0},this._type="bar",i.highlightMouseDown&&null==i.highlightMouseOver&&(i.highlightMouseOver=!1),t.default.extend(!0,this,i),t.default.extend(!0,this.renderer,i),this.fill=!0,"horizontal"===this.barDirection&&this.rendererOptions.animation&&null==this.rendererOptions.animation.direction&&(this.renderer.animation.direction="left"),this.waterfall&&(this.fillToZero=!1,this.disableStack=!0),"vertical"==this.barDirection?(this._primaryAxis="_xaxis",this._stackAxis="y",this.fillAxis="y"):(this._primaryAxis="_yaxis",this._stackAxis="x",this.fillAxis="x"),this._highlightedPoint=null,this._plotSeriesInfo=null,this._dataColors=[],this._barPoints=[];var s={lineJoin:"miter",lineCap:"round",fill:!0,isarc:!1,strokeStyle:this.color,fillStyle:this.color,closePath:this.fill};this.renderer.shapeRenderer.init(s);var h={lineJoin:"miter",lineCap:"round",fill:!0,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,closePath:this.fill};this.renderer.shadowRenderer.init(h),e.postInitHooks.addOnce(o),e.postDrawHooks.addOnce(d),e.eventListenerHooks.addOnce("jqplotMouseMove",p),e.eventListenerHooks.addOnce("jqplotMouseDown",f),e.eventListenerHooks.addOnce("jqplotMouseUp",_),e.eventListenerHooks.addOnce("jqplotClick",c),e.eventListenerHooks.addOnce("jqplotRightClick",x)},s.default.preSeriesInitHooks.push(a),s.default.BarRenderer.prototype.calcSeriesNumbers=function(){for(var i,t,e=0,h=0,r=this[this._primaryAxis],a=0;a<r._series.length;a++)(i=r._series[a])===this&&(t=a),i.renderer.constructor==s.default.BarRenderer&&(e+=i.data.length,h+=1);return[e,h,t]},s.default.BarRenderer.prototype.setBarWidth=function(){var i,t,e=this[this._primaryAxis],s=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);i=s[0],t=s[1];var h=(e.numberTicks-1)/2;return"xaxis"==e.name||"x2axis"==e.name?this._stack?this.barWidth=(e._offsets.max-e._offsets.min)/i*t-this.barMargin:this.barWidth=((e._offsets.max-e._offsets.min)/h-this.barPadding*(t-1)-2*this.barMargin)/t:this._stack?this.barWidth=(e._offsets.min-e._offsets.max)/i*t-this.barMargin:this.barWidth=((e._offsets.min-e._offsets.max)/h-this.barPadding*(t-1)-2*this.barMargin)/t,[i,t]},s.default.BarRenderer.prototype.draw=function(i,e,h,r){var a=t.default.extend({},h),l=void 0!=a.shadow?a.shadow:this.shadow,o=void 0!=a.showLine?a.showLine:this.showLine;void 0!=a.fill?a.fill:this.fill,this.xaxis,this.yaxis,this._xaxis.series_u2p,this._yaxis.series_u2p;this._dataColors=[],this._barPoints=[],null!=this.barWidth&&null!=this.rendererOptions.barWidth||this.renderer.setBarWidth.call(this);(C=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this))[0];var d=C[1],g=C[2],u=[];if(this._stack?this._barNudge=0:this._barNudge=(-Math.abs(d/2-.5)+g)*(this.barWidth+this.barPadding),o){var p=new s.default.ColorGenerator(this.negativeSeriesColors),f=new s.default.ColorGenerator(this.seriesColors),_=p.get(this.index);this.useNegativeColors||(_=a.fillStyle);var c,x,v,b=a.fillStyle;if("vertical"==this.barDirection){for(var w=0;w<e.length;w++)if(this._stack||null!=this.data[w][1]){if(u=[],c=e[w][0]+this._barNudge,v=this._stack&&this._prevGridData.length?n(this.index,w,this._plotData[w][1],r,"y"):this.fillToZero?this._yaxis.series_u2p(0):this.waterfall&&w>0&&w<this.gridData.length-1?this.gridData[w-1][1]:this.waterfall&&0==w&&w<this.gridData.length-1?this._yaxis.min<=0&&this._yaxis.max>=0?this._yaxis.series_u2p(0):this._yaxis.min>0?i.canvas.height:0:this.waterfall&&w==this.gridData.length-1?this._yaxis.min<=0&&this._yaxis.max>=0?this._yaxis.series_u2p(0):this._yaxis.min>0?i.canvas.height:0:i.canvas.height,this.fillToZero&&this._plotData[w][1]<0||this.waterfall&&this._data[w][1]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?a.fillStyle=p.next():a.fillStyle=f.next():a.fillStyle=_:this.varyBarColor&&!this._stack?a.fillStyle=f.next():a.fillStyle=b,!this.fillToZero||this._plotData[w][1]>=0?(u.push([c-this.barWidth/2,v]),u.push([c-this.barWidth/2,e[w][1]]),u.push([c+this.barWidth/2,e[w][1]]),u.push([c+this.barWidth/2,v])):(u.push([c-this.barWidth/2,e[w][1]]),u.push([c-this.barWidth/2,v]),u.push([c+this.barWidth/2,v]),u.push([c+this.barWidth/2,e[w][1]])),this._barPoints.push(u),l&&!this._stack)delete(D=t.default.extend(!0,{},a)).fillStyle,this.renderer.shadowRenderer.draw(i,u,D);var y=a.fillStyle||this.color;this._dataColors.push(y),this.renderer.shapeRenderer.draw(i,u,a)}}else if("horizontal"==this.barDirection)for(w=0;w<e.length;w++)if(this._stack||null!=this.data[w][0]){var D;if(u=[],c=e[w][1]-this._barNudge,x=this._stack&&this._prevGridData.length?n(this.index,w,this._plotData[w][0],r,"x"):this.fillToZero?this._xaxis.series_u2p(0):this.waterfall&&w>0&&w<this.gridData.length-1?this.gridData[w-1][0]:this.waterfall&&0==w&&w<this.gridData.length-1?this._xaxis.min<=0&&this._xaxis.max>=0?this._xaxis.series_u2p(0):(this._xaxis.min,0):this.waterfall&&w==this.gridData.length-1?this._xaxis.min<=0&&this._xaxis.max>=0?this._xaxis.series_u2p(0):this._xaxis.min>0?0:i.canvas.width:0,this.fillToZero&&this._plotData[w][0]<0||this.waterfall&&this._data[w][0]<0?this.varyBarColor&&!this._stack?this.useNegativeColors?a.fillStyle=p.next():a.fillStyle=f.next():a.fillStyle=_:this.varyBarColor&&!this._stack?a.fillStyle=f.next():a.fillStyle=b,!this.fillToZero||this._plotData[w][0]>=0?(u.push([x,c+this.barWidth/2]),u.push([x,c-this.barWidth/2]),u.push([e[w][0],c-this.barWidth/2]),u.push([e[w][0],c+this.barWidth/2])):(u.push([e[w][0],c+this.barWidth/2]),u.push([e[w][0],c-this.barWidth/2]),u.push([x,c-this.barWidth/2]),u.push([x,c+this.barWidth/2])),this._barPoints.push(u),l&&!this._stack)delete(D=t.default.extend(!0,{},a)).fillStyle,this.renderer.shadowRenderer.draw(i,u,D);y=a.fillStyle||this.color;this._dataColors.push(y),this.renderer.shapeRenderer.draw(i,u,a)}}if(0==this.highlightColors.length)this.highlightColors=s.default.computeHighlightColors(this._dataColors);else if("string"==typeof this.highlightColors){var C=this.highlightColors;this.highlightColors=[];for(w=0;w<this._dataColors.length;w++)this.highlightColors.push(C)}},s.default.BarRenderer.prototype.drawShadow=function(i,t,e,s){var h,r,a,l=void 0!=e?e:{},o=(void 0!=l.shadow?l.shadow:this.shadow,void 0!=l.showLine?l.showLine:this.showLine);void 0!=l.fill?l.fill:this.fill,this.xaxis,this.yaxis,this._xaxis.series_u2p,this._yaxis.series_u2p;if(this._stack&&this.shadow){null!=this.barWidth&&null!=this.rendererOptions.barWidth||this.renderer.setBarWidth.call(this);var d=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);if(d[0],r=d[1],a=d[2],this._stack?this._barNudge=0:this._barNudge=(-Math.abs(r/2-.5)+a)*(this.barWidth+this.barPadding),o)if("vertical"==this.barDirection){for(var g=0;g<t.length;g++)if(null!=this.data[g][1]){h=[];var u,p=t[g][0]+this._barNudge;u=this._stack&&this._prevGridData.length?n(this.index,g,this._plotData[g][1],s,"y"):this.fillToZero?this._yaxis.series_u2p(0):i.canvas.height,h.push([p-this.barWidth/2,u]),h.push([p-this.barWidth/2,t[g][1]]),h.push([p+this.barWidth/2,t[g][1]]),h.push([p+this.barWidth/2,u]),this.renderer.shadowRenderer.draw(i,h,l)}}else if("horizontal"==this.barDirection)for(g=0;g<t.length;g++)if(null!=this.data[g][0]){h=[];var f;p=t[g][1]-this._barNudge;f=this._stack&&this._prevGridData.length?n(this.index,g,this._plotData[g][0],s,"x"):this.fillToZero?this._xaxis.series_u2p(0):0,h.push([f,p+this.barWidth/2]),h.push([t[g][0],p+this.barWidth/2]),h.push([t[g][0],p-this.barWidth/2]),h.push([f,p-this.barWidth/2]),this.renderer.shadowRenderer.draw(i,h,l)}}};
|
|
},{"jquery":29,"../jqplot.core":10}],7:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OHLCRenderer=void 0;var t=require("jquery"),e=i(t),o=require("../jqplot.core"),r=i(o);function i(t){return t&&t.__esModule?t:{default:t}}var l=exports.OHLCRenderer=r.default.OHLCRenderer=function(){r.default.LineRenderer.call(this),this.candleStick=!1,this.tickLength="auto",this.bodyWidth="auto",this.openColor=null,this.closeColor=null,this.wickColor=null,this.fillUpBody=!1,this.fillDownBody=!0,this.upBodyColor=null,this.downBodyColor=null,this.hlc=!1,this.lineWidth=1.5,this._tickLength,this._bodyWidth};r.default.OHLCRenderer.prototype=new r.default.LineRenderer,r.default.OHLCRenderer.prototype.constructor=r.default.OHLCRenderer,r.default.OHLCRenderer.prototype.init=function(t){t=t||{},this.lineWidth=t.lineWidth||1.5,r.default.LineRenderer.prototype.init.call(this,t),this._type="ohlc";var e=this._yaxis._dataBounds,o=this._plotData;if(o[0].length<5){this.renderer.hlc=!0;for(var i=0;i<o.length;i++)(o[i][2]<e.min||null==e.min)&&(e.min=o[i][2]),(o[i][1]>e.max||null==e.max)&&(e.max=o[i][1])}else for(i=0;i<o.length;i++)(o[i][3]<e.min||null==e.min)&&(e.min=o[i][3]),(o[i][2]>e.max||null==e.max)&&(e.max=o[i][2])},r.default.OHLCRenderer.prototype.draw=function(t,o,r){var i,l,d,n,h,s,a,c,u=this.data,p=this._xaxis.min,f=this._xaxis.max,y=0,w=u.length,C=this._xaxis.series_u2p,k=this._yaxis.series_u2p,x=this.renderer,_=void 0!=r?r:{};void 0!=_.shadow?_.shadow:this.shadow,void 0!=_.fill?_.fill:this.fill,void 0!=_.fillAndStroke?_.fillAndStroke:this.fillAndStroke;if(x.bodyWidth=void 0!=_.bodyWidth?_.bodyWidth:x.bodyWidth,x.tickLength=void 0!=_.tickLength?_.tickLength:x.tickLength,t.save(),this.show){for(var R,g,L,v,m,b=0;b<u.length;b++)u[b][0]<p?y=b:u[b][0]<f&&(w=b+1);var B=this.gridData[w-1][0]-this.gridData[y][0],W=w-y;try{var O=Math.abs(this._xaxis.series_u2p(parseInt(this._xaxis._intervalStats[0].sortedIntervals[0].interval,10))-this._xaxis.series_u2p(0))}catch(t){O=B/W}x.candleStick?"number"==typeof x.bodyWidth?x._bodyWidth=x.bodyWidth:x._bodyWidth=Math.min(20,O/1.65):"number"==typeof x.tickLength?x._tickLength=x.tickLength:x._tickLength=Math.min(10,O/3.5);for(b=y;b<w;b++)R=C(u[b][0]),x.hlc?(g=null,L=k(u[b][1]),v=k(u[b][2]),m=k(u[b][3])):(g=k(u[b][1]),L=k(u[b][2]),v=k(u[b][3]),m=k(u[b][4])),c={},x.candleStick&&!x.hlc?(s=R-(h=x._bodyWidth)/2,m<g?(x.wickColor?c.color=x.wickColor:x.downBodyColor&&(c.color=x.upBodyColor),l=e.default.extend(!0,{},_,c),x.shapeRenderer.draw(t,[[R,L],[R,m]],l),x.shapeRenderer.draw(t,[[R,g],[R,v]],l),c={},d=m,n=g-m,x.fillUpBody?c.fillRect=!0:(c.strokeRect=!0,s=R-(h-=this.lineWidth)/2),x.upBodyColor&&(c.color=x.upBodyColor,c.fillStyle=x.upBodyColor),a=[s,d,h,n]):m>g?(x.wickColor?c.color=x.wickColor:x.downBodyColor&&(c.color=x.downBodyColor),l=e.default.extend(!0,{},_,c),x.shapeRenderer.draw(t,[[R,L],[R,g]],l),x.shapeRenderer.draw(t,[[R,m],[R,v]],l),c={},d=g,n=m-g,x.fillDownBody?c.fillRect=!0:(c.strokeRect=!0,s=R-(h-=this.lineWidth)/2),x.downBodyColor&&(c.color=x.downBodyColor,c.fillStyle=x.downBodyColor),a=[s,d,h,n]):(x.wickColor&&(c.color=x.wickColor),l=e.default.extend(!0,{},_,c),x.shapeRenderer.draw(t,[[R,L],[R,v]],l),(c={}).fillRect=!1,c.strokeRect=!1,s=[R-h/2,g],d=[R+h/2,m],h=null,n=null,a=[s,d]),l=e.default.extend(!0,{},_,c),x.shapeRenderer.draw(t,a,l)):(i=_.color,x.openColor&&(_.color=x.openColor),x.hlc||x.shapeRenderer.draw(t,[[R-x._tickLength,g],[R,g]],_),_.color=i,x.wickColor&&(_.color=x.wickColor),x.shapeRenderer.draw(t,[[R,L],[R,v]],_),_.color=i,x.closeColor&&(_.color=x.closeColor),x.shapeRenderer.draw(t,[[R,m],[R+x._tickLength,m]],_),_.color=i)}t.restore()},r.default.OHLCRenderer.prototype.drawShadow=function(t,e,o){},r.default.OHLCRenderer.checkOptions=function(t,e,o){o.highlighter||(o.highlighter={showMarker:!1,tooltipAxes:"y",yvalues:4,formatString:'<table class="jqplot-highlighter"><tr><td>date:</td><td>%s</td></tr><tr><td>open:</td><td>%s</td></tr><tr><td>hi:</td><td>%s</td></tr><tr><td>low:</td><td>%s</td></tr><tr><td>close:</td><td>%s</td></tr></table>'})};
|
|
},{"jquery":29,"../jqplot.core":10}],8:[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EnhancedLegendRenderer=void 0;var e=require("jquery"),t=n(e),s=require("../jqplot.core"),l=n(s);function n(e){return e&&e.__esModule?e:{default:e}}var o=exports.EnhancedLegendRenderer=l.default.EnhancedLegendRenderer=function(){l.default.TableLegendRenderer.call(this)};l.default.EnhancedLegendRenderer.prototype=new l.default.TableLegendRenderer,l.default.EnhancedLegendRenderer.prototype.constructor=l.default.EnhancedLegendRenderer,l.default.EnhancedLegendRenderer.prototype.init=function(e){this.numberRows=null,this.numberColumns=null,this.seriesToggle="normal",this.seriesToggleReplot=!1,this.disableIEFading=!0,t.default.extend(!0,this,e),this.seriesToggle&&l.default.postDrawHooks.push(i)},l.default.EnhancedLegendRenderer.prototype.draw=function(e,s){if(this.show){var n,o=this._series,i="position:absolute;";i+=this.background?"background:"+this.background+";":"",i+=this.border?"border:"+this.border+";":"",i+=this.fontSize?"font-size:"+this.fontSize+";":"",i+=this.fontFamily?"font-family:"+this.fontFamily+";":"",i+=this.textColor?"color:"+this.textColor+";":"",i+=null!=this.marginTop?"margin-top:"+this.marginTop+";":"",i+=null!=this.marginBottom?"margin-bottom:"+this.marginBottom+";":"",i+=null!=this.marginLeft?"margin-left:"+this.marginLeft+";":"",i+=null!=this.marginRight?"margin-right:"+this.marginRight+";":"",this._elem=(0,t.default)('<table class="jqplot-table-legend" style="'+i+'"></table>'),this.seriesToggle&&this._elem.css("z-index","3");var a,r,h,g,p,u,c,m,f,b,w,v=!1;this.numberRows?(a=this.numberRows,r=this.numberColumns?this.numberColumns:Math.ceil(o.length/a)):this.numberColumns?(r=this.numberColumns,a=Math.ceil(o.length/this.numberColumns)):(a=o.length,r=1);var C=0;for(h=o.length-1;h>=0;h--)(1==r&&o[h]._stack||o[h].renderer.constructor==l.default.BezierCurveRenderer)&&(v=!0);for(h=0;h<a;h++){for((p=(0,t.default)(document.createElement("tr"))).addClass("jqplot-table-legend"),v?p.prependTo(this._elem):p.appendTo(this._elem),g=0;g<r;g++){if(C<o.length&&(o[C].show||o[C].showLabel)&&(n=o[C],m=this.labels[C]||n.label.toString())){var q,T=n.color;if(f=(v?h!=a-1:h>0)?this.rowSpacing:"0",(u=(0,t.default)(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),u.css({textAlign:"center",paddingTop:f}),(b=(0,t.default)(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(w=(0,t.default)(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),w.css({backgroundColor:T,borderColor:T}),u.append(b.append(w)),(c=(0,t.default)(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),c.css("paddingTop",f),this.escapeHtml?c.text(m):c.html(m),v?(this.showLabels&&c.prependTo(p),this.showSwatches&&u.prependTo(p)):(this.showSwatches&&u.appendTo(p),this.showLabels&&c.appendTo(p)),this.seriesToggle)"string"!=typeof this.seriesToggle&&"number"!=typeof this.seriesToggle||l.default.use_excanvas&&this.disableIEFading||(q=this.seriesToggle),this.showSwatches&&(u.bind("click",{series:n,speed:q,plot:s,replot:this.seriesToggleReplot},d),u.addClass("jqplot-seriesToggle")),this.showLabels&&(c.bind("click",{series:n,speed:q,plot:s,replot:this.seriesToggleReplot},d),c.addClass("jqplot-seriesToggle")),!n.show&&n.showLabel&&(u.addClass("jqplot-series-hidden"),c.addClass("jqplot-series-hidden"));!0}C++}u=c=b=w=null}}return this._elem};var d=function(e){var s=e.data,l=s.series,n=s.replot,o=s.plot,d=s.speed,i=l.index,a=!1;!l.canvas._elem.is(":hidden")&&l.show||(a=!0);l.toggleDisplay(e,function(){if(n){var e={};t.default.isPlainObject(n)&&t.default.extend(!0,e,n),o.replot(e),a&&d&&((s=o.series[i]).shadowCanvas._elem&&s.shadowCanvas._elem.hide().fadeIn(d),s.canvas._elem.hide().fadeIn(d),s.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+s.index).hide().fadeIn(d))}else{var s;(s=o.series[i]).canvas._elem.is(":hidden")||!s.show?(void 0!==o.options.legend.showSwatches&&!0!==o.options.legend.showSwatches||o.legend._elem.find("td").eq(2*i).addClass("jqplot-series-hidden"),void 0!==o.options.legend.showLabels&&!0!==o.options.legend.showLabels||o.legend._elem.find("td").eq(2*i+1).addClass("jqplot-series-hidden")):(void 0!==o.options.legend.showSwatches&&!0!==o.options.legend.showSwatches||o.legend._elem.find("td").eq(2*i).removeClass("jqplot-series-hidden"),void 0!==o.options.legend.showLabels&&!0!==o.options.legend.showLabels||o.legend._elem.find("td").eq(2*i+1).removeClass("jqplot-series-hidden"))}})},i=function(){if(this.legend.renderer.constructor==l.default.EnhancedLegendRenderer&&this.legend.seriesToggle){var e=this.legend._elem.detach();this.eventCanvas._elem.after(e)}};
|
|
},{"jquery":29,"../jqplot.core":10}],1:[function(require,module,exports) {
|
|
"use strict";var e=require("d3"),t=d(e),r=require("jqplot-exported/jqplot"),n=l(r),i=require("jqplot-exported/LineRenderer"),s=require("jqplot-exported/plugins/BarRenderer"),a=require("jqplot-exported/plugins/OHLCRenderer"),o=require("jqplot-exported/plugins/EnhancedLegendRenderer");function l(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var u=window.bundleEntries.chartUtilities.Series,c=window.bundleEntries.chartUtilities.Datasets,p=window.bundleEntries.chartUtilities.Jobs,h=Backbone.View.extend({initialize:function(e){this.options=e;var t=this;e.render=function(e,r){return t.render(e,r)},c.requestPanels(e)},render:function(e,t){var r=this.options.chart,i=(this.options.makeCategories,this.options.makeSeries),s=this.options.makeSeriesLabels,a=this.options.makeConfig,o=this._makeConfig(r),l=[];try{var d=function(t){var r=$("#"+e);if(0!=r.length){r.empty();var i=_.extend(_.clone(o),t||{});return(0,n.default)(e,l,i)}};if(this._makeAxes(t,o,r.settings),o.series=s?s(t,o):this._makeSeriesLabels(t),l=i?i(t,o):u.makeSeries(t),a&&a(t,o),"failed"==r.get("state"))return!1;d();return $(window).on("resize",function(){d()}),!0}catch(e){return this._handleError(r,e),!1}},_makeSeriesLabels:function(e,t){var r=[];for(var n in e)r.push({label:e[n].key});return r},_makeAxes:function(e,t,r){var n=this.options.makeCategories,i=n?n(e):u.makeCategories(e,["x","y"]);function s(e){u.makeTickFormat({categories:i.array[e],type:r.get(e+"_axis_type|type"),precision:r.get(e+"_axis_type|precision"),formatter:function(r){r&&(t.axes[e+"axis"].tickOptions.formatter=function(e,t){return r(t)})}})}s("x"),s("y")},_makeConfig:function(e){e.settings;var r={enablePlugins:!0,seriesColors:t.scaleOrdinal(t.schemeCategory20).range(),seriesDefaults:{renderer:i.LineRenderer,lineWidth:1,shadow:!1,showLine:!0,rendererOptions:{shadowDepth:0,barWidth:3,barPadding:3},markerOptions:{show:!1,style:"filledCircle",lineWidth:0,size:10,shadow:!1,shadowAngle:45,shadowOffset:1,shadowDepth:3,shadowAlpha:.07}},axesDefaults:{labelOptions:{fontSize:"12pt",textColor:"#000000"},tickOptions:{fontSize:"12pt",textColor:"#000000"}},axes:{xaxis:{label:e.settings.get("x_axis_label"),tickOptions:{angle:"true"===e.settings.get("__use_panels")?0:-30,showGridline:"true"===e.settings.get("x_axis_grid")},pad:0},yaxis:{label:e.settings.get("y_axis_label"),tickOptions:{showGridline:"true"===e.settings.get("y_axis_grid")},pad:0}},grid:{background:"#FFFFFF",borderWidth:0,shadow:!1},cursor:{show:!0,zoom:!0,showTooltip:!1,style:"pointer"},highlighter:{show:!0,showMarker:!1,tooltipAxes:"xy"},series:[]};return"true"==e.settings.get("show_legend")&&(r.legend={renderer:o.EnhancedLegendRenderer,show:!0,placement:"outsideGrid",location:"n",rendererOptions:{textColor:"#000000",fontSize:"12pt",border:"none",shadowAlpha:1,background:"rgba(255, 255, 255, 0.9)",fontFamily:"Arial",numberRows:1}}),r},_handleError:function(e,t){e.state("failed",t)}});_.extend(window.bundleEntries||{},{jqplot_bar:function(e){e.makeConfig=function(e,t){$.extend(!0,t,{seriesDefaults:{renderer:s.BarRenderer},axes:{xaxis:{min:-1},yaxis:{pad:1.2}}})},new h(e)},jqplot_box:function(e){p.request(e.chart,p.requestCharts(e.chart,"boxplot"),function(t){var r=e.chart,n=new Backbone.Collection;r.groups.each(function(e,t){n.add({__data_columns:{x:{is_numeric:!0}},x:t,key:e.get("key")})});new h({process:e.process,chart:e.chart,dataset_id:t.id,dataset_groups:n,targets:e.targets,makeConfig:function(e,t){var r=u.getDomains(e,"x");$.extend(!0,t,{seriesDefaults:{renderer:a.OHLCRenderer,rendererOptions:{candleStick:!0,fillUpBody:!0,fillDownBody:!0}},axes:{xaxis:{min:-1,max:e.length+.01},yaxis:{min:r.x.min,max:r.x.max}}})},makeCategories:function(e){var t=[];for(var r in e)t.push(e[r].key);return u.mapCategories(e,t),{array:{x:t}}},makeSeriesLabels:function(e,t){return[{label:"Boxplot values"}]},makeSeries:function(e){var t=[];if(0==e.length||e[0].values.length<5)return r.state("failed","Boxplot data could not be found."),[t];var n=[2,4,0,1];for(var i in e){var s=e[i],a=[];for(var o in a.push(parseInt(i)),n)a.push(s.values[n[o]].x);t.push(a)}a=[];for(var o in a[0]=t.length,n)a.push(0);return t.push(a),[t]}})},function(){e.process.reject()})},jqplot_histogram:function(e){p.request(e.chart,p.requestCharts(e.chart,"histogramdiscrete"),function(t){var r=new Backbone.Collection;e.chart.groups.each(function(e,t){r.add({__data_columns:{x:{is_label:!0},y:{is_numeric:!0}},x:0,y:t+1,key:e.get("key")})}),e.dataset_id=t.id,e.dataset_groups=r,e.makeConfig=function(e,t){$.extend(!0,t,{seriesDefaults:{renderer:s.BarRenderer},axes:{xaxis:{min:-1},yaxis:{pad:1.2}}})},new h(e)})},jqplot_line:function(e){new h(e)},jqplot_scatter:function(e){e.makeConfig=function(e,t){$.extend(!0,t,{seriesDefaults:{renderer:i.LineRenderer,showLine:!1,markerOptions:{show:!0}}})},new h(e)}});
|
|
},{"d3":3,"jqplot-exported/jqplot":4,"jqplot-exported/LineRenderer":5,"jqplot-exported/plugins/BarRenderer":6,"jqplot-exported/plugins/OHLCRenderer":7,"jqplot-exported/plugins/EnhancedLegendRenderer":8}]},{},[1])
|
|
//# sourceMappingURL=/script.map
|