@navaramap/worker 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/index.js +628 -622
- package/dist/index.umd.cjs +1 -1
- package/dist/tasks/constructQuantizedMeshTerrainMesh.d.ts +1 -1
- package/dist/tasks/constructTerrainMesh.d.ts +1 -1
- package/dist/tasks/upsampleQuantizedMeshTerrainMesh.d.ts +1 -1
- package/dist/tasks/upsampleTerrainMesh.d.ts +7 -2
- package/dist/tasks/waitWasm.d.ts +6 -1
- package/dist/worker/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/recyclingPool.ts +1 -1
- package/src/tasks/constructQuantizedMeshTerrainMesh.ts +4 -0
- package/src/tasks/constructTerrainMesh.ts +6 -8
- package/src/tasks/upsampleQuantizedMeshTerrainMesh.ts +4 -0
- package/src/tasks/upsampleTerrainMesh.ts +16 -6
- package/src/tasks/waitWasm.ts +16 -4
- package/src/utils/toTransferablePolylineBatchedFeatureLike.ts +3 -0
- package/src/worker/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "@navaramap/engine";
|
|
2
|
-
import e, { CachedMeshHandle as t, ElevationDecoder as n, ExtentRadianF32 as r, PolygonMaterial as i, PolylineMaterial as a, TileXYZ as o,
|
|
2
|
+
import e, { CachedMeshHandle as t, ElevationDecoder as n, ExtentRadianF32 as r, PolygonMaterial as i, PolylineMaterial as a, TileXYZ as o, TransferablePolygonBatchedFeature as s, TransferablePolylineBatchedFeature as c, TransferableRasterDEMData as l, TransferableTile as u, UpsamplableTerrainGeometry as d, constructPolygonBatchedFeature as f, constructPolylineBatchedFeature as p, constructQuantizedMeshTerrainMesh as m, constructTerrainMesh as h, parseMvtTile as g, upsampleQuantizedMeshTerrainMesh as _, upsampleTerrainMesh as v } from "@navaramap/engine-worker";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
5
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
4
|
+
var y = Object.create, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.getPrototypeOf, w = Object.prototype.hasOwnProperty, T = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), E = (e, t, n, r) => {
|
|
5
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !w.call(e, s) && s !== n && b(e, s, {
|
|
6
6
|
get: ((e) => t[e]).bind(null, s),
|
|
7
|
-
enumerable: !(r =
|
|
7
|
+
enumerable: !(r = x(t, s)) || r.enumerable
|
|
8
8
|
});
|
|
9
9
|
return e;
|
|
10
|
-
},
|
|
10
|
+
}, ee = (e, t, n) => (n = e == null ? {} : y(C(e)), E(t || !e || !e.__esModule || !w.call(e, "default") ? b(n, "default", {
|
|
11
11
|
value: e,
|
|
12
12
|
enumerable: !0
|
|
13
|
-
}) : n, e)),
|
|
14
|
-
function
|
|
15
|
-
if (!e) throw Error(
|
|
13
|
+
}) : n, e)), te = "Invariant failed";
|
|
14
|
+
function ne(e, t) {
|
|
15
|
+
if (!e) throw Error(te);
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region __vite-browser-external
|
|
19
|
-
var D = /* @__PURE__ */
|
|
19
|
+
var D = /* @__PURE__ */ T(((e, t) => {
|
|
20
20
|
t.exports = {};
|
|
21
|
-
})),
|
|
21
|
+
})), re = /* @__PURE__ */ T(((e, t) => {
|
|
22
22
|
var n = function(e) {
|
|
23
23
|
return e !== void 0 && e.versions != null && e.versions.node != null && e + "" == "[object process]";
|
|
24
24
|
};
|
|
25
25
|
t.exports.isNode = n, t.exports.platform = typeof process < "u" && n(process) ? "node" : "browser";
|
|
26
26
|
var r = t.exports.platform === "node" && D();
|
|
27
27
|
t.exports.isMainThread = t.exports.platform === "node" ? (!r || r.isMainThread) && !process.connected : typeof Window < "u", t.exports.cpus = t.exports.platform === "browser" ? self.navigator.hardwareConcurrency : D().cpus().length;
|
|
28
|
-
})),
|
|
28
|
+
})), ie = /* @__PURE__ */ T(((e) => {
|
|
29
29
|
function t(e, a) {
|
|
30
30
|
var o = this;
|
|
31
31
|
if (!(this instanceof t)) throw SyntaxError("Constructor must be called with the new operator");
|
|
@@ -117,7 +117,7 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
117
117
|
this.message = e || "timeout exceeded", this.stack = (/* @__PURE__ */ Error()).stack;
|
|
118
118
|
}
|
|
119
119
|
i.prototype = /* @__PURE__ */ Error(), i.prototype.constructor = Error, i.prototype.name = "TimeoutError", t.TimeoutError = i, e.Promise = t;
|
|
120
|
-
})),
|
|
120
|
+
})), ae = /* @__PURE__ */ T(((e) => {
|
|
121
121
|
e.validateOptions = function(e, t, n) {
|
|
122
122
|
if (e) {
|
|
123
123
|
var r = e ? Object.keys(e) : [], i = r.find((e) => !t.includes(e));
|
|
@@ -159,10 +159,10 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
159
159
|
"resourceLimits",
|
|
160
160
|
"name"
|
|
161
161
|
];
|
|
162
|
-
})),
|
|
162
|
+
})), oe = /* @__PURE__ */ T(((e, t) => {
|
|
163
163
|
t.exports = "!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).worker=n()}(this,function(){\"use strict\";function e(n){return 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},e(n)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var t={};var r=function(e,n){this.message=e,this.transfer=n},o={};function i(e,n){var t=this;if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(\"function\"!=typeof e)throw new SyntaxError(\"Function parameter handler(resolve, reject) missing\");var r=[],o=[];this.resolved=!1,this.rejected=!1,this.pending=!0,this[Symbol.toStringTag]=\"Promise\";var a=function(e,n){r.push(e),o.push(n)};this.then=function(e,n){return new i(function(t,r){var o=e?s(e,t,r):t,i=n?s(n,t,r):r;a(o,i)},t)};var f=function(e){return t.resolved=!0,t.rejected=!1,t.pending=!1,r.forEach(function(n){n(e)}),a=function(n,t){n(e)},f=d=function(){},t},d=function(e){return t.resolved=!1,t.rejected=!0,t.pending=!1,o.forEach(function(n){n(e)}),a=function(n,t){t(e)},f=d=function(){},t};this.cancel=function(){return n?n.cancel():d(new u),t},this.timeout=function(e){if(n)n.timeout(e);else{var r=setTimeout(function(){d(new c(\"Promise timed out after \"+e+\" ms\"))},e);t.always(function(){clearTimeout(r)})}return t},e(function(e){f(e)},function(e){d(e)})}function s(e,n,t){return function(r){try{var o=e(r);o&&\"function\"==typeof o.then&&\"function\"==typeof o.catch?o.then(n,t):n(o)}catch(e){t(e)}}}function u(e){this.message=e||\"promise cancelled\",this.stack=(new Error).stack}function c(e){this.message=e||\"timeout exceeded\",this.stack=(new Error).stack}return i.prototype.catch=function(e){return this.then(null,e)},i.prototype.always=function(e){return this.then(e,e)},i.prototype.finally=function(e){var n=this,t=function(){return new i(function(e){return e()}).then(e).then(function(){return n})};return this.then(t,t)},i.all=function(e){return new i(function(n,t){var r=e.length,o=[];r?e.forEach(function(e,i){e.then(function(e){o[i]=e,0==--r&&n(o)},function(e){r=0,t(e)})}):n(o)})},i.defer=function(){var e={};return e.promise=new i(function(n,t){e.resolve=n,e.reject=t}),e},u.prototype=new Error,u.prototype.constructor=Error,u.prototype.name=\"CancellationError\",i.CancellationError=u,c.prototype=new Error,c.prototype.constructor=Error,c.prototype.name=\"TimeoutError\",i.TimeoutError=c,o.Promise=i,function(n){var t=r,i=o.Promise,s=\"__workerpool-cleanup__\",u={exit:function(){}},c={addAbortListener:function(e){u.abortListeners.push(e)},emit:u.emit};if(\"undefined\"!=typeof self&&\"function\"==typeof postMessage&&\"function\"==typeof addEventListener)u.on=function(e,n){addEventListener(e,function(e){n(e.data)})},u.send=function(e,n){n?postMessage(e,n):postMessage(e)};else{if(\"undefined\"==typeof process)throw new Error(\"Script must be executed as a worker\");var a;try{a=require(\"worker_threads\")}catch(n){if(\"object\"!==e(n)||null===n||\"MODULE_NOT_FOUND\"!==n.code)throw n}if(a&&null!==a.parentPort){var f=a.parentPort;u.send=f.postMessage.bind(f),u.on=f.on.bind(f),u.exit=process.exit.bind(process)}else u.on=process.on.bind(process),u.send=function(e){process.send(e)},u.on(\"disconnect\",function(){process.exit(1)}),u.exit=process.exit.bind(process)}function d(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function l(e){return e&&\"function\"==typeof e.then&&\"function\"==typeof e.catch}u.methods={},u.methods.run=function(e,n){var t=new Function(\"return (\"+e+\").apply(this, arguments);\");return t.worker=c,t.apply(t,n)},u.methods.methods=function(){return Object.keys(u.methods)},u.terminationHandler=void 0,u.abortListenerTimeout=1e3,u.abortListeners=[],u.terminateAndExit=function(e){var n=function(){u.exit(e)};if(!u.terminationHandler)return n();var t=u.terminationHandler(e);return l(t)?(t.then(n,n),t):(n(),new i(function(e,n){n(new Error(\"Worker terminating\"))}))},u.cleanup=function(e){if(!u.abortListeners.length)return u.send({id:e,method:s,error:d(new Error(\"Worker terminating\"))}),new i(function(e){e()});var n,t=u.abortListeners.map(function(e){return e()}),r=new i(function(e,t){n=setTimeout(function(){t(new Error(\"Timeout occurred waiting for abort handler, killing worker\"))},u.abortListenerTimeout)}),o=i.all(t).then(function(){clearTimeout(n),u.abortListeners.length&&(u.abortListeners=[])},function(){clearTimeout(n),u.exit()});return new i(function(e,n){o.then(e,n),r.then(e,n)}).then(function(){u.send({id:e,method:s,error:null})},function(n){u.send({id:e,method:s,error:n?d(n):null})})};var p=null;u.on(\"message\",function(e){if(\"__workerpool-terminate__\"===e)return u.terminateAndExit(0);if(e.method===s)return u.cleanup(e.id);try{var n=u.methods[e.method];if(!n)throw new Error('Unknown method \"'+e.method+'\"');p=e.id;var r=n.apply(n,e.params);l(r)?r.then(function(n){n instanceof t?u.send({id:e.id,result:n.message,error:null},n.transfer):u.send({id:e.id,result:n,error:null}),p=null}).catch(function(n){u.send({id:e.id,result:null,error:d(n)}),p=null}):(r instanceof t?u.send({id:e.id,result:r.message,error:null},r.transfer):u.send({id:e.id,result:r,error:null}),p=null)}catch(n){u.send({id:e.id,result:null,error:d(n)})}}),u.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(u.methods[t]=e[t],u.methods[t].worker=c);n&&(u.terminationHandler=n.onTerminate,u.abortListenerTimeout=n.abortListenerTimeout||1e3),u.send(\"ready\")},u.emit=function(e){if(p){if(e instanceof t)return void u.send({id:p,isEvent:!0,payload:e.message},e.transfer);u.send({id:p,isEvent:!0,payload:e})}},n.add=u.register,n.emit=u.emit}(t),n(t)});\n//# sourceMappingURL=worker.min.js.map\n";
|
|
164
|
-
})),
|
|
165
|
-
var { Promise: n } =
|
|
164
|
+
})), se = /* @__PURE__ */ T(((e, t) => {
|
|
165
|
+
var { Promise: n } = ie(), r = re(), { validateOptions: i, forkOptsNames: a, workerThreadOptsNames: o, workerOptsNames: s } = ae(), c = "__workerpool-terminate__", l = "__workerpool-cleanup__";
|
|
166
166
|
function u() {
|
|
167
167
|
var e = f();
|
|
168
168
|
if (!e) throw Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");
|
|
@@ -183,7 +183,7 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
183
183
|
if (r.platform === "browser") {
|
|
184
184
|
if (typeof Blob > "u") throw Error("Blob not supported by the browser");
|
|
185
185
|
if (!window.URL || typeof window.URL.createObjectURL != "function") throw Error("URL.createObjectURL not supported by the browser");
|
|
186
|
-
var e = new Blob([
|
|
186
|
+
var e = new Blob([oe()], { type: "text/javascript" });
|
|
187
187
|
return window.URL.createObjectURL(e);
|
|
188
188
|
}
|
|
189
189
|
return __dirname + "/worker.js";
|
|
@@ -377,7 +377,7 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
t.exports = x, t.exports._tryRequireWorkerThreads = f, t.exports._setupProcessWorker = _, t.exports._setupBrowserWorker = h, t.exports._setupWorkerThreadWorker = g, t.exports.ensureWorkerThreads = u, t.exports.TerminateError = C;
|
|
380
|
-
})),
|
|
380
|
+
})), ce = /* @__PURE__ */ T(((e, t) => {
|
|
381
381
|
function n() {
|
|
382
382
|
this.tasks = [];
|
|
383
383
|
}
|
|
@@ -409,7 +409,7 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
409
409
|
FIFOQueue: n,
|
|
410
410
|
LIFOQueue: r
|
|
411
411
|
};
|
|
412
|
-
})),
|
|
412
|
+
})), le = /* @__PURE__ */ T(((e, t) => {
|
|
413
413
|
t.exports = n;
|
|
414
414
|
function n() {
|
|
415
415
|
this.ports = Object.create(null), this.length = 0;
|
|
@@ -421,8 +421,8 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
421
421
|
}, n.prototype.releasePort = function(e) {
|
|
422
422
|
delete this.ports[e], this.length--;
|
|
423
423
|
};
|
|
424
|
-
})),
|
|
425
|
-
var { Promise: n } =
|
|
424
|
+
})), ue = /* @__PURE__ */ T(((e, t) => {
|
|
425
|
+
var { Promise: n } = ie(), r = se(), i = re(), { FIFOQueue: a, LIFOQueue: o } = ce(), s = new (le())();
|
|
426
426
|
function c(e, t) {
|
|
427
427
|
typeof e == "string" ? this.script = e || null : (this.script = null, t = e), this.workers = [], this.taskQueue = this._createQueue(t && t.queueStrategy || "fifo"), t ||= {}, this.forkArgs = Object.freeze(t.forkArgs || []), this.forkOpts = Object.freeze(t.forkOpts || {}), this.workerOpts = Object.freeze(t.workerOpts || {}), this.workerThreadOpts = Object.freeze(t.workerThreadOpts || {}), this.debugPortStart = t.debugPortStart || 43210, this.nodeWorker = t.nodeWorker, this.workerType = t.workerType || t.nodeWorker || "auto", this.maxQueueSize = t.maxQueueSize || Infinity, this.workerTerminateTimeout = t.workerTerminateTimeout || 1e3, this.onCreateWorker = t.onCreateWorker || (() => null), this.onTerminateWorker = t.onTerminateWorker || (() => null), this.emitStdStreams = t.emitStdStreams || !1, t && "maxWorkers" in t ? (l(t.maxWorkers), this.maxWorkers = t.maxWorkers) : this.maxWorkers = Math.max((i.cpus || 4) - 1, 1), t && "minWorkers" in t && (t.minWorkers === "max" ? this.minWorkers = this.maxWorkers : (u(t.minWorkers), this.minWorkers = t.minWorkers, this.maxWorkers = Math.max(this.minWorkers, this.maxWorkers)), this._ensureMinWorkers()), this._boundNext = this._next.bind(this), this.workerType === "thread" && r.ensureWorkerThreads();
|
|
428
428
|
}
|
|
@@ -577,13 +577,13 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
577
577
|
return Math.round(e) == e;
|
|
578
578
|
}
|
|
579
579
|
t.exports = c;
|
|
580
|
-
})),
|
|
580
|
+
})), de = /* @__PURE__ */ T(((e, t) => {
|
|
581
581
|
function n(e, t) {
|
|
582
582
|
this.message = e, this.transfer = t;
|
|
583
583
|
}
|
|
584
584
|
t.exports = n;
|
|
585
|
-
})),
|
|
586
|
-
var t =
|
|
585
|
+
})), fe = /* @__PURE__ */ T(((e) => {
|
|
586
|
+
var t = de(), n = ie().Promise, r = "__workerpool-terminate__", i = "__workerpool-cleanup__", a = 1e3, o = { exit: function() {} }, s = {
|
|
587
587
|
addAbortListener: function(e) {
|
|
588
588
|
o.abortListeners.push(e);
|
|
589
589
|
},
|
|
@@ -732,32 +732,32 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
}, e !== void 0 && (e.add = o.register, e.emit = o.emit);
|
|
735
|
-
})),
|
|
736
|
-
var { platform: t, isMainThread: n, cpus: r } =
|
|
735
|
+
})), pe = /* @__PURE__ */ ee((/* @__PURE__ */ T(((e) => {
|
|
736
|
+
var { platform: t, isMainThread: n, cpus: r } = re(), { TerminateError: i } = se();
|
|
737
737
|
function a(e, t) {
|
|
738
|
-
return new (
|
|
738
|
+
return new (ue())(e, t);
|
|
739
739
|
}
|
|
740
740
|
e.pool = a;
|
|
741
741
|
function o(e, t) {
|
|
742
|
-
|
|
742
|
+
fe().add(e, t);
|
|
743
743
|
}
|
|
744
744
|
e.worker = o;
|
|
745
|
-
var { Promise: s } =
|
|
746
|
-
e.Transfer =
|
|
747
|
-
})))(), 1),
|
|
745
|
+
var { Promise: s } = ie();
|
|
746
|
+
e.Transfer = de();
|
|
747
|
+
})))(), 1), me = 5e3, he = 3e4, ge = (e) => pe.pool(e, {
|
|
748
748
|
maxWorkers: 1,
|
|
749
749
|
minWorkers: 0,
|
|
750
|
-
workerTerminateTimeout:
|
|
750
|
+
workerTerminateTimeout: he,
|
|
751
751
|
workerOpts: { type: void 0 }
|
|
752
|
-
}),
|
|
752
|
+
}), _e = class {
|
|
753
753
|
url;
|
|
754
754
|
maxWorkerHeapBytes;
|
|
755
755
|
slots;
|
|
756
756
|
idleSweepTimer;
|
|
757
757
|
terminated = !1;
|
|
758
758
|
constructor(e, t, n) {
|
|
759
|
-
|
|
760
|
-
pool:
|
|
759
|
+
ne(t > 0, "maxWorkers must be a positive number."), this.url = e, this.maxWorkerHeapBytes = n?.maxWorkerHeapBytes ?? 268435456, this.slots = Array.from({ length: t }, () => ({
|
|
760
|
+
pool: ge(e),
|
|
761
761
|
tasksSinceSpawn: 0,
|
|
762
762
|
inflight: 0,
|
|
763
763
|
draining: !1,
|
|
@@ -826,7 +826,7 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
826
826
|
e.inflight--, !this.terminated && (e.tasksSinceSpawn++, e.tasksSinceSpawn >= 128 && (e.draining = !0), e.draining && e.inflight === 0 ? this.recycleSlot(e) : e.draining || this.probeSlot(e), this.armIdleSweep());
|
|
827
827
|
}
|
|
828
828
|
recycleSlot(e) {
|
|
829
|
-
e.pool.terminate(), e.pool =
|
|
829
|
+
e.pool.terminate(), e.pool = ge(this.url), e.tasksSinceSpawn = 0, e.draining = !1, e.lastHeapBytes = void 0, this.warmSlot(e).catch(() => void 0);
|
|
830
830
|
}
|
|
831
831
|
warmSlot(e) {
|
|
832
832
|
e.inflight++;
|
|
@@ -865,22 +865,22 @@ var D = /* @__PURE__ */ E(((e, t) => {
|
|
|
865
865
|
this.idleSweepTimer !== void 0 && clearTimeout(this.idleSweepTimer), this.idleSweepTimer = setTimeout(() => {
|
|
866
866
|
this.idleSweepTimer = void 0;
|
|
867
867
|
for (let e of this.slots) e.tasksSinceSpawn > 0 && e.inflight === 0 && this.recycleSlot(e);
|
|
868
|
-
},
|
|
868
|
+
}, me);
|
|
869
869
|
}
|
|
870
870
|
};
|
|
871
871
|
//#endregion
|
|
872
872
|
//#region ../navara_core/dist/index.js
|
|
873
|
-
function
|
|
873
|
+
function ve(e) {
|
|
874
874
|
return e != null;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
876
|
+
var ye = class {
|
|
877
877
|
x;
|
|
878
878
|
y;
|
|
879
879
|
z;
|
|
880
880
|
constructor(e) {
|
|
881
881
|
this.x = e.x, this.y = e.y, this.z = e.z;
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, be = class {
|
|
884
884
|
vertices;
|
|
885
885
|
uvs;
|
|
886
886
|
indices;
|
|
@@ -895,7 +895,7 @@ var be = class {
|
|
|
895
895
|
skirt_normals;
|
|
896
896
|
watermask;
|
|
897
897
|
constructor(e) {
|
|
898
|
-
this.vertices = e.transferVertices(), this.uvs = e.transferUvs(), this.indices = e.transferIndices(), this.heights = e.transferHeights(), this.max_height = e.max_height, this.min_height = e.min_height, this.rtc_translation = e.rtc_translation ? new
|
|
898
|
+
this.vertices = e.transferVertices(), this.uvs = e.transferUvs(), this.indices = e.transferIndices(), this.heights = e.transferHeights(), this.max_height = e.max_height, this.min_height = e.min_height, this.rtc_translation = e.rtc_translation ? new ye(e.rtc_translation) : void 0, e.hasNormals() && (this.normals = e.transferNormals()), e.hasSkirt() && (this.skirt_vertices = e.transferSkirtVertices(), this.skirt_uvs = e.transferSkirtUvs(), this.skirt_indices = e.transferSkirtIndices(), this.skirt_normals = e.transferSkirtNormals()), e.hasWatermask() && (this.watermask = e.transferWatermask());
|
|
899
899
|
}
|
|
900
900
|
transferVertices() {
|
|
901
901
|
throw Error();
|
|
@@ -936,7 +936,7 @@ var be = class {
|
|
|
936
936
|
hasWatermask() {
|
|
937
937
|
return this.watermask !== void 0;
|
|
938
938
|
}
|
|
939
|
-
},
|
|
939
|
+
}, xe = class {
|
|
940
940
|
east;
|
|
941
941
|
north;
|
|
942
942
|
south;
|
|
@@ -944,7 +944,7 @@ var be = class {
|
|
|
944
944
|
constructor(e) {
|
|
945
945
|
this.east = e.east, this.north = e.north, this.south = e.south, this.west = e.west;
|
|
946
946
|
}
|
|
947
|
-
},
|
|
947
|
+
}, Se = class {
|
|
948
948
|
extent;
|
|
949
949
|
position_3d_high;
|
|
950
950
|
position_3d_high_size;
|
|
@@ -975,11 +975,11 @@ var be = class {
|
|
|
975
975
|
outline_batch_index_size;
|
|
976
976
|
constructor(e) {
|
|
977
977
|
let t = e.extent;
|
|
978
|
-
this.extent = t ? new
|
|
978
|
+
this.extent = t ? new xe(t) : void 0, this.position_3d_high = e.position_3d_high()?.slice(), this.position_3d_high_size = e.position_3d_high_size(), this.position_3d_low = e.position_3d_low()?.slice(), this.position_3d_low_size = e.position_3d_low_size(), this.position = e.position()?.slice(), this.position_size = e.position_size(), this.normal = e.normal()?.slice(), this.normal_size = e.normal_size(), this.scale_normal_and_cap = e.scale_normal_and_cap()?.slice(), this.scale_normal_and_cap_size = e.scale_normal_and_cap_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice(), this.rtc_translation = e.rtc_translation ? new ye(e.rtc_translation) : void 0;
|
|
979
979
|
let n = e.outline();
|
|
980
980
|
n && (this.outline_position = n.position()?.slice(), this.outline_position_size = n.position_size(), this.outline_position_3d_high = n.position_3d_high()?.slice(), this.outline_position_3d_high_size = n.position_3d_high_size(), this.outline_position_3d_low = n.position_3d_low()?.slice(), this.outline_position_3d_low_size = n.position_3d_low_size(), this.outline_scale_normal_and_cap = n.scale_normal_and_cap()?.slice(), this.outline_scale_normal_and_cap_size = n.scale_normal_and_cap_size(), this.outline_skip_indices = n.skip_indices()?.slice(), this.outline_batch_index = n.batch_index()?.slice(), this.outline_batch_index_size = n.batch_index_size(), n.free());
|
|
981
981
|
}
|
|
982
|
-
},
|
|
982
|
+
}, Ce = class {
|
|
983
983
|
extent;
|
|
984
984
|
position;
|
|
985
985
|
position_size;
|
|
@@ -1012,18 +1012,18 @@ var be = class {
|
|
|
1012
1012
|
indices;
|
|
1013
1013
|
constructor(e) {
|
|
1014
1014
|
let t = e.extent;
|
|
1015
|
-
this.extent = t ? new
|
|
1015
|
+
this.extent = t ? new xe(t) : void 0, this.position = e.position().slice(), this.position_size = e.position_size(), this.position_high = e.position_high()?.slice(), this.position_high_size = e.position_high_size(), this.position_low = e.position_low()?.slice(), this.position_low_size = e.position_low_size(), this.start = e.start()?.slice(), this.start_size = e.start_size(), this.start_high = e.start_high()?.slice(), this.start_high_size = e.start_high_size(), this.start_low = e.start_low()?.slice(), this.start_low_size = e.start_low_size(), this.forward_offset = e.forward_offset()?.slice(), this.forward_offset_size = e.forward_offset_size(), this.end_high = e.end_high()?.slice(), this.end_high_size = e.end_high_size(), this.end_low = e.end_low()?.slice(), this.end_low_size = e.end_low_size(), this.start_normals = e.start_normals()?.slice(), this.start_normals_size = e.start_normals_size(), this.end_normal_and_texture_coordinate_normalization_x = e.end_normal_and_texture_coordinate_normalization_x()?.slice(), this.end_normal_and_texture_coordinate_normalization_x_size = e.end_normal_and_texture_coordinate_normalization_x_size(), this.right_normal_and_texture_coordinate_normalization_y = e.right_normal_and_texture_coordinate_normalization_y().slice(), this.right_normal_and_texture_coordinate_normalization_y_size = e.right_normal_and_texture_coordinate_normalization_y_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice();
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1018
|
+
function we(e, t) {
|
|
1019
1019
|
return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Te(e, t) {
|
|
1022
1022
|
return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Ee(e) {
|
|
1025
1025
|
let t, n, r;
|
|
1026
|
-
e.length === 2 ? (t = e ===
|
|
1026
|
+
e.length === 2 ? (t = e === we || e === Te ? e : De, n = e, r = e) : (t = we, n = (t, n) => we(e(t), n), r = (t, n) => e(t) - n);
|
|
1027
1027
|
function i(e, r, i = 0, a = e.length) {
|
|
1028
1028
|
if (i < a) {
|
|
1029
1029
|
if (t(r, r) !== 0) return a;
|
|
@@ -1054,26 +1054,26 @@ function De(e) {
|
|
|
1054
1054
|
right: a
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function De() {
|
|
1058
1058
|
return 0;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function Oe(e) {
|
|
1061
1061
|
return e === null ? NaN : +e;
|
|
1062
1062
|
}
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
function
|
|
1063
|
+
var ke = Ee(we);
|
|
1064
|
+
ke.right, ke.left, Ee(Oe).center;
|
|
1065
|
+
var Ae = { value: () => {} };
|
|
1066
|
+
function je() {
|
|
1067
1067
|
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
1068
1068
|
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
1069
1069
|
n[r] = [];
|
|
1070
1070
|
}
|
|
1071
|
-
return new
|
|
1071
|
+
return new Me(n);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Me(e) {
|
|
1074
1074
|
this._ = e;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function Ne(e, t) {
|
|
1077
1077
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1078
1078
|
var n = "", r = e.indexOf(".");
|
|
1079
1079
|
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
@@ -1083,23 +1083,23 @@ function Pe(e, t) {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
|
-
|
|
1087
|
-
constructor:
|
|
1086
|
+
Me.prototype = je.prototype = {
|
|
1087
|
+
constructor: Me,
|
|
1088
1088
|
on: function(e, t) {
|
|
1089
|
-
var n = this._, r =
|
|
1089
|
+
var n = this._, r = Ne(e + "", n), i, a = -1, o = r.length;
|
|
1090
1090
|
if (arguments.length < 2) {
|
|
1091
|
-
for (; ++a < o;) if ((i = (e = r[a]).type) && (i =
|
|
1091
|
+
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Pe(n[i], e.name))) return i;
|
|
1092
1092
|
return;
|
|
1093
1093
|
}
|
|
1094
1094
|
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
1095
|
-
for (; ++a < o;) if (i = (e = r[a]).type) n[i] =
|
|
1096
|
-
else if (t == null) for (i in n) n[i] =
|
|
1095
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Fe(n[i], e.name, t);
|
|
1096
|
+
else if (t == null) for (i in n) n[i] = Fe(n[i], e.name, null);
|
|
1097
1097
|
return this;
|
|
1098
1098
|
},
|
|
1099
1099
|
copy: function() {
|
|
1100
1100
|
var e = {}, t = this._;
|
|
1101
1101
|
for (var n in t) e[n] = t[n].slice();
|
|
1102
|
-
return new
|
|
1102
|
+
return new Me(e);
|
|
1103
1103
|
},
|
|
1104
1104
|
call: function(e, t) {
|
|
1105
1105
|
if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
|
|
@@ -1111,12 +1111,12 @@ Ne.prototype = Me.prototype = {
|
|
|
1111
1111
|
for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
|
-
function
|
|
1114
|
+
function Pe(e, t) {
|
|
1115
1115
|
for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function Fe(e, t, n) {
|
|
1118
1118
|
for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
|
|
1119
|
-
e[r] =
|
|
1119
|
+
e[r] = Ae, e = e.slice(0, r).concat(e.slice(r + 1));
|
|
1120
1120
|
break;
|
|
1121
1121
|
}
|
|
1122
1122
|
return n != null && e.push({
|
|
@@ -1124,117 +1124,117 @@ function Ie(e, t, n) {
|
|
|
1124
1124
|
value: n
|
|
1125
1125
|
}), e;
|
|
1126
1126
|
}
|
|
1127
|
-
var
|
|
1127
|
+
var Ie = {
|
|
1128
1128
|
svg: "http://www.w3.org/2000/svg",
|
|
1129
1129
|
xhtml: "http://www.w3.org/1999/xhtml",
|
|
1130
1130
|
xlink: "http://www.w3.org/1999/xlink",
|
|
1131
1131
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
1132
1132
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
1133
1133
|
};
|
|
1134
|
-
function
|
|
1134
|
+
function Le(e) {
|
|
1135
1135
|
var t = e += "", n = t.indexOf(":");
|
|
1136
|
-
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)),
|
|
1137
|
-
space:
|
|
1136
|
+
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Ie.hasOwnProperty(t) ? {
|
|
1137
|
+
space: Ie[t],
|
|
1138
1138
|
local: e
|
|
1139
1139
|
} : e;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Re(e) {
|
|
1142
1142
|
return function() {
|
|
1143
1143
|
var t = this.ownerDocument, n = this.namespaceURI;
|
|
1144
1144
|
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function ze(e) {
|
|
1148
1148
|
return function() {
|
|
1149
1149
|
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var t =
|
|
1154
|
-
return (t.local ?
|
|
1152
|
+
function Be(e) {
|
|
1153
|
+
var t = Le(e);
|
|
1154
|
+
return (t.local ? ze : Re)(t);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
function
|
|
1158
|
-
return e == null ?
|
|
1156
|
+
function Ve() {}
|
|
1157
|
+
function He(e) {
|
|
1158
|
+
return e == null ? Ve : function() {
|
|
1159
1159
|
return this.querySelector(e);
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
typeof e != "function" && (e =
|
|
1162
|
+
function Ue(e) {
|
|
1163
|
+
typeof e != "function" && (e = He(e));
|
|
1164
1164
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
|
|
1165
1165
|
return new k(r, this._parents);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function We(e) {
|
|
1168
1168
|
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function Ge() {
|
|
1171
1171
|
return [];
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return e == null ?
|
|
1173
|
+
function Ke(e) {
|
|
1174
|
+
return e == null ? Ge : function() {
|
|
1175
1175
|
return this.querySelectorAll(e);
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function qe(e) {
|
|
1179
1179
|
return function() {
|
|
1180
|
-
return
|
|
1180
|
+
return We(e.apply(this, arguments));
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
e = typeof e == "function" ?
|
|
1183
|
+
function Je(e) {
|
|
1184
|
+
e = typeof e == "function" ? qe(e) : Ke(e);
|
|
1185
1185
|
for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
|
|
1186
1186
|
return new k(r, i);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Ye(e) {
|
|
1189
1189
|
return function() {
|
|
1190
1190
|
return this.matches(e);
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Xe(e) {
|
|
1194
1194
|
return function(t) {
|
|
1195
1195
|
return t.matches(e);
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
|
-
var
|
|
1199
|
-
function
|
|
1198
|
+
var Ze = Array.prototype.find;
|
|
1199
|
+
function Qe(e) {
|
|
1200
1200
|
return function() {
|
|
1201
|
-
return
|
|
1201
|
+
return Ze.call(this.children, e);
|
|
1202
1202
|
};
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function $e() {
|
|
1205
1205
|
return this.firstElementChild;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return this.select(e == null ?
|
|
1207
|
+
function et(e) {
|
|
1208
|
+
return this.select(e == null ? $e : Qe(typeof e == "function" ? e : Xe(e)));
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1210
|
+
var tt = Array.prototype.filter;
|
|
1211
|
+
function nt() {
|
|
1212
1212
|
return Array.from(this.children);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function rt(e) {
|
|
1215
1215
|
return function() {
|
|
1216
|
-
return
|
|
1216
|
+
return tt.call(this.children, e);
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return this.selectAll(e == null ?
|
|
1219
|
+
function it(e) {
|
|
1220
|
+
return this.selectAll(e == null ? nt : rt(typeof e == "function" ? e : Xe(e)));
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
typeof e != "function" && (e =
|
|
1222
|
+
function at(e) {
|
|
1223
|
+
typeof e != "function" && (e = Ye(e));
|
|
1224
1224
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
1225
1225
|
return new k(r, this._parents);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function ot(e) {
|
|
1228
1228
|
return Array(e.length);
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return new k(this._enter || this._groups.map(
|
|
1230
|
+
function st() {
|
|
1231
|
+
return new k(this._enter || this._groups.map(ot), this._parents);
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function ct(e, t) {
|
|
1234
1234
|
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1237
|
-
constructor:
|
|
1236
|
+
ct.prototype = {
|
|
1237
|
+
constructor: ct,
|
|
1238
1238
|
appendChild: function(e) {
|
|
1239
1239
|
return this._parent.insertBefore(e, this._next);
|
|
1240
1240
|
},
|
|
@@ -1248,30 +1248,30 @@ lt.prototype = {
|
|
|
1248
1248
|
return this._parent.querySelectorAll(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
|
-
function
|
|
1251
|
+
function lt(e) {
|
|
1252
1252
|
return function() {
|
|
1253
1253
|
return e;
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new
|
|
1256
|
+
function ut(e, t, n, r, i, a) {
|
|
1257
|
+
for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new ct(e, a[o]);
|
|
1258
1258
|
for (; o < c; ++o) (s = t[o]) && (i[o] = s);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function dt(e, t, n, r, i, a, o) {
|
|
1261
1261
|
var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
|
|
1262
1262
|
for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
|
|
1263
|
-
for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new
|
|
1263
|
+
for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new ct(e, a[s]);
|
|
1264
1264
|
for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function ft(e) {
|
|
1267
1267
|
return e.__data__;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1270
|
-
if (!arguments.length) return Array.from(this,
|
|
1271
|
-
var n = t ?
|
|
1272
|
-
typeof e != "function" && (e =
|
|
1269
|
+
function pt(e, t) {
|
|
1270
|
+
if (!arguments.length) return Array.from(this, ft);
|
|
1271
|
+
var n = t ? dt : ut, r = this._parents, i = this._groups;
|
|
1272
|
+
typeof e != "function" && (e = lt(e));
|
|
1273
1273
|
for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
|
|
1274
|
-
var u = r[l], d = i[l], f = d.length, p =
|
|
1274
|
+
var u = r[l], d = i[l], f = d.length, p = mt(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
|
|
1275
1275
|
n(u, d, h, g, c[l] = Array(f), p, t);
|
|
1276
1276
|
for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
|
|
1277
1277
|
for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
|
|
@@ -1280,27 +1280,27 @@ function mt(e, t) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return o = new k(o, r), o._enter = s, o._exit = c, o;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function mt(e) {
|
|
1284
1284
|
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return new k(this._exit || this._groups.map(
|
|
1286
|
+
function ht() {
|
|
1287
|
+
return new k(this._exit || this._groups.map(ot), this._parents);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function gt(e, t, n) {
|
|
1290
1290
|
var r = this.enter(), i = this, a = this.exit();
|
|
1291
1291
|
return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (i = t(i), i &&= i.selection()), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function _t(e) {
|
|
1294
1294
|
for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
|
|
1295
1295
|
for (; c < i; ++c) s[c] = n[c];
|
|
1296
1296
|
return new k(s, this._parents);
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function vt() {
|
|
1299
1299
|
for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
|
|
1300
1300
|
return this;
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1303
|
-
e ||=
|
|
1302
|
+
function yt(e) {
|
|
1303
|
+
e ||= bt;
|
|
1304
1304
|
function t(t, n) {
|
|
1305
1305
|
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
1306
1306
|
}
|
|
@@ -1310,129 +1310,129 @@ function bt(e) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
return new k(i, this._parents).order();
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function bt(e, t) {
|
|
1314
1314
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function xt() {
|
|
1317
1317
|
var e = arguments[0];
|
|
1318
1318
|
return arguments[0] = this, e.apply(null, arguments), this;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function St() {
|
|
1321
1321
|
return Array.from(this);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Ct() {
|
|
1324
1324
|
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
|
|
1325
1325
|
var o = r[i];
|
|
1326
1326
|
if (o) return o;
|
|
1327
1327
|
}
|
|
1328
1328
|
return null;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function wt() {
|
|
1331
1331
|
let e = 0;
|
|
1332
1332
|
for (let t of this) ++e;
|
|
1333
1333
|
return e;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Tt() {
|
|
1336
1336
|
return !this.node();
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Et(e) {
|
|
1339
1339
|
for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
|
|
1340
1340
|
return this;
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Dt(e) {
|
|
1343
1343
|
return function() {
|
|
1344
1344
|
this.removeAttribute(e);
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Ot(e) {
|
|
1348
1348
|
return function() {
|
|
1349
1349
|
this.removeAttributeNS(e.space, e.local);
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function kt(e, t) {
|
|
1353
1353
|
return function() {
|
|
1354
1354
|
this.setAttribute(e, t);
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function At(e, t) {
|
|
1358
1358
|
return function() {
|
|
1359
1359
|
this.setAttributeNS(e.space, e.local, t);
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function jt(e, t) {
|
|
1363
1363
|
return function() {
|
|
1364
1364
|
var n = t.apply(this, arguments);
|
|
1365
1365
|
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
1366
1366
|
};
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Mt(e, t) {
|
|
1369
1369
|
return function() {
|
|
1370
1370
|
var n = t.apply(this, arguments);
|
|
1371
1371
|
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
var n =
|
|
1374
|
+
function Nt(e, t) {
|
|
1375
|
+
var n = Le(e);
|
|
1376
1376
|
if (arguments.length < 2) {
|
|
1377
1377
|
var r = this.node();
|
|
1378
1378
|
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
1379
1379
|
}
|
|
1380
|
-
return this.each((t == null ? n.local ?
|
|
1380
|
+
return this.each((t == null ? n.local ? Ot : Dt : typeof t == "function" ? n.local ? Mt : jt : n.local ? At : kt)(n, t));
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Pt(e) {
|
|
1383
1383
|
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Ft(e) {
|
|
1386
1386
|
return function() {
|
|
1387
1387
|
this.style.removeProperty(e);
|
|
1388
1388
|
};
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function It(e, t, n) {
|
|
1391
1391
|
return function() {
|
|
1392
1392
|
this.style.setProperty(e, t, n);
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function Lt(e, t, n) {
|
|
1396
1396
|
return function() {
|
|
1397
1397
|
var r = t.apply(this, arguments);
|
|
1398
1398
|
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
1399
1399
|
};
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1402
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1401
|
+
function Rt(e, t, n) {
|
|
1402
|
+
return arguments.length > 1 ? this.each((t == null ? Ft : typeof t == "function" ? Lt : It)(e, t, n ?? "")) : O(this.node(), e);
|
|
1403
1403
|
}
|
|
1404
1404
|
function O(e, t) {
|
|
1405
|
-
return e.style.getPropertyValue(t) ||
|
|
1405
|
+
return e.style.getPropertyValue(t) || Pt(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function zt(e) {
|
|
1408
1408
|
return function() {
|
|
1409
1409
|
delete this[e];
|
|
1410
1410
|
};
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Bt(e, t) {
|
|
1413
1413
|
return function() {
|
|
1414
1414
|
this[e] = t;
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Vt(e, t) {
|
|
1418
1418
|
return function() {
|
|
1419
1419
|
var n = t.apply(this, arguments);
|
|
1420
1420
|
n == null ? delete this[e] : this[e] = n;
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1423
|
+
function Ht(e, t) {
|
|
1424
|
+
return arguments.length > 1 ? this.each((t == null ? zt : typeof t == "function" ? Vt : Bt)(e, t)) : this.node()[e];
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Ut(e) {
|
|
1427
1427
|
return e.trim().split(/^|\s+/);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
return e.classList || new
|
|
1429
|
+
function Wt(e) {
|
|
1430
|
+
return e.classList || new Gt(e);
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1433
|
-
this._node = e, this._names =
|
|
1432
|
+
function Gt(e) {
|
|
1433
|
+
this._node = e, this._names = Ut(e.getAttribute("class") || "");
|
|
1434
1434
|
}
|
|
1435
|
-
|
|
1435
|
+
Gt.prototype = {
|
|
1436
1436
|
add: function(e) {
|
|
1437
1437
|
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
1438
1438
|
},
|
|
@@ -1444,123 +1444,123 @@ Kt.prototype = {
|
|
|
1444
1444
|
return this._names.indexOf(e) >= 0;
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
|
+
function Kt(e, t) {
|
|
1448
|
+
for (var n = Wt(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
1449
|
+
}
|
|
1447
1450
|
function qt(e, t) {
|
|
1448
|
-
for (var n =
|
|
1451
|
+
for (var n = Wt(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
1449
1452
|
}
|
|
1450
|
-
function Jt(e
|
|
1451
|
-
|
|
1453
|
+
function Jt(e) {
|
|
1454
|
+
return function() {
|
|
1455
|
+
Kt(this, e);
|
|
1456
|
+
};
|
|
1452
1457
|
}
|
|
1453
1458
|
function Yt(e) {
|
|
1454
1459
|
return function() {
|
|
1455
1460
|
qt(this, e);
|
|
1456
1461
|
};
|
|
1457
1462
|
}
|
|
1458
|
-
function Xt(e) {
|
|
1463
|
+
function Xt(e, t) {
|
|
1459
1464
|
return function() {
|
|
1460
|
-
|
|
1465
|
+
(t.apply(this, arguments) ? Kt : qt)(this, e);
|
|
1461
1466
|
};
|
|
1462
1467
|
}
|
|
1463
1468
|
function Zt(e, t) {
|
|
1464
|
-
|
|
1465
|
-
(t.apply(this, arguments) ? qt : Jt)(this, e);
|
|
1466
|
-
};
|
|
1467
|
-
}
|
|
1468
|
-
function Qt(e, t) {
|
|
1469
|
-
var n = Wt(e + "");
|
|
1469
|
+
var n = Ut(e + "");
|
|
1470
1470
|
if (arguments.length < 2) {
|
|
1471
|
-
for (var r =
|
|
1471
|
+
for (var r = Wt(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
|
|
1472
1472
|
return !0;
|
|
1473
1473
|
}
|
|
1474
|
-
return this.each((typeof t == "function" ?
|
|
1474
|
+
return this.each((typeof t == "function" ? Xt : t ? Jt : Yt)(n, t));
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Qt() {
|
|
1477
1477
|
this.textContent = "";
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function $t(e) {
|
|
1480
1480
|
return function() {
|
|
1481
1481
|
this.textContent = e;
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function en(e) {
|
|
1485
1485
|
return function() {
|
|
1486
1486
|
var t = e.apply(this, arguments);
|
|
1487
1487
|
this.textContent = t ?? "";
|
|
1488
1488
|
};
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return arguments.length ? this.each(e == null ?
|
|
1490
|
+
function tn(e) {
|
|
1491
|
+
return arguments.length ? this.each(e == null ? Qt : (typeof e == "function" ? en : $t)(e)) : this.node().textContent;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function nn() {
|
|
1494
1494
|
this.innerHTML = "";
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function rn(e) {
|
|
1497
1497
|
return function() {
|
|
1498
1498
|
this.innerHTML = e;
|
|
1499
1499
|
};
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function an(e) {
|
|
1502
1502
|
return function() {
|
|
1503
1503
|
var t = e.apply(this, arguments);
|
|
1504
1504
|
this.innerHTML = t ?? "";
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return arguments.length ? this.each(e == null ?
|
|
1507
|
+
function on(e) {
|
|
1508
|
+
return arguments.length ? this.each(e == null ? nn : (typeof e == "function" ? an : rn)(e)) : this.node().innerHTML;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function sn() {
|
|
1511
1511
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return this.each(
|
|
1513
|
+
function cn() {
|
|
1514
|
+
return this.each(sn);
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function ln() {
|
|
1517
1517
|
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return this.each(
|
|
1519
|
+
function un() {
|
|
1520
|
+
return this.each(ln);
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
var t = typeof e == "function" ? e :
|
|
1522
|
+
function dn(e) {
|
|
1523
|
+
var t = typeof e == "function" ? e : Be(e);
|
|
1524
1524
|
return this.select(function() {
|
|
1525
1525
|
return this.appendChild(t.apply(this, arguments));
|
|
1526
1526
|
});
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function fn() {
|
|
1529
1529
|
return null;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
var n = typeof e == "function" ? e :
|
|
1531
|
+
function pn(e, t) {
|
|
1532
|
+
var n = typeof e == "function" ? e : Be(e), r = t == null ? fn : typeof t == "function" ? t : He(t);
|
|
1533
1533
|
return this.select(function() {
|
|
1534
1534
|
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function mn() {
|
|
1538
1538
|
var e = this.parentNode;
|
|
1539
1539
|
e && e.removeChild(this);
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return this.each(
|
|
1541
|
+
function hn() {
|
|
1542
|
+
return this.each(mn);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function gn() {
|
|
1545
1545
|
var e = this.cloneNode(!1), t = this.parentNode;
|
|
1546
1546
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function _n() {
|
|
1549
1549
|
var e = this.cloneNode(!0), t = this.parentNode;
|
|
1550
1550
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return this.select(e ?
|
|
1552
|
+
function vn(e) {
|
|
1553
|
+
return this.select(e ? _n : gn);
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function yn(e) {
|
|
1556
1556
|
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function bn(e) {
|
|
1559
1559
|
return function(t) {
|
|
1560
1560
|
e.call(this, t, this.__data__);
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function xn(e) {
|
|
1564
1564
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1565
1565
|
var t = "", n = e.indexOf(".");
|
|
1566
1566
|
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
@@ -1569,7 +1569,7 @@ function Sn(e) {
|
|
|
1569
1569
|
};
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Sn(e) {
|
|
1573
1573
|
return function() {
|
|
1574
1574
|
var t = this.__on;
|
|
1575
1575
|
if (t) {
|
|
@@ -1578,9 +1578,9 @@ function Cn(e) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Cn(e, t, n) {
|
|
1582
1582
|
return function() {
|
|
1583
|
-
var r = this.__on, i, a =
|
|
1583
|
+
var r = this.__on, i, a = bn(t);
|
|
1584
1584
|
if (r) {
|
|
1585
1585
|
for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
|
|
1586
1586
|
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
|
|
@@ -1596,8 +1596,8 @@ function wn(e, t, n) {
|
|
|
1596
1596
|
}, r ? r.push(i) : this.__on = [i];
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
var r =
|
|
1599
|
+
function wn(e, t, n) {
|
|
1600
|
+
var r = xn(e + ""), i, a = r.length, o;
|
|
1601
1601
|
if (arguments.length < 2) {
|
|
1602
1602
|
var s = this.node().__on;
|
|
1603
1603
|
if (s) {
|
|
@@ -1605,87 +1605,87 @@ function Tn(e, t, n) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
return;
|
|
1607
1607
|
}
|
|
1608
|
-
for (s = t ?
|
|
1608
|
+
for (s = t ? Cn : Sn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
1609
1609
|
return this;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var r =
|
|
1611
|
+
function Tn(e, t, n) {
|
|
1612
|
+
var r = Pt(e), i = r.CustomEvent;
|
|
1613
1613
|
typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function En(e, t) {
|
|
1616
1616
|
return function() {
|
|
1617
|
-
return
|
|
1617
|
+
return Tn(this, e, t);
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Dn(e, t) {
|
|
1621
1621
|
return function() {
|
|
1622
|
-
return
|
|
1622
|
+
return Tn(this, e, t.apply(this, arguments));
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return this.each((typeof t == "function" ?
|
|
1625
|
+
function On(e, t) {
|
|
1626
|
+
return this.each((typeof t == "function" ? Dn : En)(e, t));
|
|
1627
1627
|
}
|
|
1628
|
-
function*
|
|
1628
|
+
function* kn() {
|
|
1629
1629
|
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1631
|
+
var An = [null];
|
|
1632
1632
|
function k(e, t) {
|
|
1633
1633
|
this._groups = e, this._parents = t;
|
|
1634
1634
|
}
|
|
1635
1635
|
function A() {
|
|
1636
|
-
return new k([[document.documentElement]],
|
|
1636
|
+
return new k([[document.documentElement]], An);
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function jn() {
|
|
1639
1639
|
return this;
|
|
1640
1640
|
}
|
|
1641
1641
|
k.prototype = A.prototype = {
|
|
1642
1642
|
constructor: k,
|
|
1643
|
-
select:
|
|
1644
|
-
selectAll:
|
|
1645
|
-
selectChild:
|
|
1646
|
-
selectChildren:
|
|
1647
|
-
filter:
|
|
1648
|
-
data:
|
|
1649
|
-
enter:
|
|
1650
|
-
exit:
|
|
1651
|
-
join:
|
|
1652
|
-
merge:
|
|
1653
|
-
selection:
|
|
1654
|
-
order:
|
|
1655
|
-
sort:
|
|
1656
|
-
call:
|
|
1657
|
-
nodes:
|
|
1658
|
-
node:
|
|
1659
|
-
size:
|
|
1660
|
-
empty:
|
|
1661
|
-
each:
|
|
1662
|
-
attr:
|
|
1663
|
-
style:
|
|
1664
|
-
property:
|
|
1665
|
-
classed:
|
|
1666
|
-
text:
|
|
1667
|
-
html:
|
|
1668
|
-
raise:
|
|
1669
|
-
lower:
|
|
1670
|
-
append:
|
|
1671
|
-
insert:
|
|
1672
|
-
remove:
|
|
1673
|
-
clone:
|
|
1674
|
-
datum:
|
|
1675
|
-
on:
|
|
1676
|
-
dispatch:
|
|
1677
|
-
[Symbol.iterator]:
|
|
1643
|
+
select: Ue,
|
|
1644
|
+
selectAll: Je,
|
|
1645
|
+
selectChild: et,
|
|
1646
|
+
selectChildren: it,
|
|
1647
|
+
filter: at,
|
|
1648
|
+
data: pt,
|
|
1649
|
+
enter: st,
|
|
1650
|
+
exit: ht,
|
|
1651
|
+
join: gt,
|
|
1652
|
+
merge: _t,
|
|
1653
|
+
selection: jn,
|
|
1654
|
+
order: vt,
|
|
1655
|
+
sort: yt,
|
|
1656
|
+
call: xt,
|
|
1657
|
+
nodes: St,
|
|
1658
|
+
node: Ct,
|
|
1659
|
+
size: wt,
|
|
1660
|
+
empty: Tt,
|
|
1661
|
+
each: Et,
|
|
1662
|
+
attr: Nt,
|
|
1663
|
+
style: Rt,
|
|
1664
|
+
property: Ht,
|
|
1665
|
+
classed: Zt,
|
|
1666
|
+
text: tn,
|
|
1667
|
+
html: on,
|
|
1668
|
+
raise: cn,
|
|
1669
|
+
lower: un,
|
|
1670
|
+
append: dn,
|
|
1671
|
+
insert: pn,
|
|
1672
|
+
remove: hn,
|
|
1673
|
+
clone: vn,
|
|
1674
|
+
datum: yn,
|
|
1675
|
+
on: wn,
|
|
1676
|
+
dispatch: On,
|
|
1677
|
+
[Symbol.iterator]: kn
|
|
1678
1678
|
};
|
|
1679
|
-
function
|
|
1679
|
+
function Mn(e, t, n) {
|
|
1680
1680
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Nn(e, t) {
|
|
1683
1683
|
var n = Object.create(e.prototype);
|
|
1684
1684
|
for (var r in t) n[r] = t[r];
|
|
1685
1685
|
return n;
|
|
1686
1686
|
}
|
|
1687
1687
|
function j() {}
|
|
1688
|
-
var M = .7,
|
|
1688
|
+
var M = .7, Pn = 1 / M, N = "\\s*([+-]?\\d+)\\s*", P = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", F = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fn = /^#([0-9a-f]{3,8})$/, In = RegExp(`^rgb\\(${N},${N},${N}\\)$`), Ln = RegExp(`^rgb\\(${F},${F},${F}\\)$`), Rn = RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`), zn = RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`), Bn = RegExp(`^hsl\\(${P},${F},${F}\\)$`), Vn = RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`), Hn = {
|
|
1689
1689
|
aliceblue: 15792383,
|
|
1690
1690
|
antiquewhite: 16444375,
|
|
1691
1691
|
aqua: 65535,
|
|
@@ -1835,54 +1835,54 @@ var M = .7, Fn = 1 / M, N = "\\s*([+-]?\\d+)\\s*", P = "\\s*([+-]?(?:\\d*\\.)?\\
|
|
|
1835
1835
|
yellow: 16776960,
|
|
1836
1836
|
yellowgreen: 10145074
|
|
1837
1837
|
};
|
|
1838
|
-
|
|
1838
|
+
Mn(j, I, {
|
|
1839
1839
|
copy(e) {
|
|
1840
1840
|
return Object.assign(new this.constructor(), this, e);
|
|
1841
1841
|
},
|
|
1842
1842
|
displayable() {
|
|
1843
1843
|
return this.rgb().displayable();
|
|
1844
1844
|
},
|
|
1845
|
-
hex:
|
|
1846
|
-
formatHex:
|
|
1847
|
-
formatHex8:
|
|
1848
|
-
formatHsl:
|
|
1849
|
-
formatRgb:
|
|
1850
|
-
toString:
|
|
1845
|
+
hex: Un,
|
|
1846
|
+
formatHex: Un,
|
|
1847
|
+
formatHex8: Wn,
|
|
1848
|
+
formatHsl: Gn,
|
|
1849
|
+
formatRgb: Kn,
|
|
1850
|
+
toString: Kn
|
|
1851
1851
|
});
|
|
1852
|
-
function
|
|
1852
|
+
function Un() {
|
|
1853
1853
|
return this.rgb().formatHex();
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function Wn() {
|
|
1856
1856
|
return this.rgb().formatHex8();
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
return
|
|
1858
|
+
function Gn() {
|
|
1859
|
+
return nr(this).formatHsl();
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function Kn() {
|
|
1862
1862
|
return this.rgb().formatRgb();
|
|
1863
1863
|
}
|
|
1864
1864
|
function I(e) {
|
|
1865
1865
|
var t, n;
|
|
1866
|
-
return e = (e + "").trim().toLowerCase(), (t =
|
|
1866
|
+
return e = (e + "").trim().toLowerCase(), (t = Fn.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qn(t) : n === 3 ? new L(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Jn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Jn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = In.exec(e)) ? new L(t[1], t[2], t[3], 1) : (t = Ln.exec(e)) ? new L(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Rn.exec(e)) ? Jn(t[1], t[2], t[3], t[4]) : (t = zn.exec(e)) ? Jn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Bn.exec(e)) ? tr(t[1], t[2] / 100, t[3] / 100, 1) : (t = Vn.exec(e)) ? tr(t[1], t[2] / 100, t[3] / 100, t[4]) : Hn.hasOwnProperty(e) ? qn(Hn[e]) : e === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function qn(e) {
|
|
1869
1869
|
return new L(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function Jn(e, t, n, r) {
|
|
1872
1872
|
return r <= 0 && (e = t = n = NaN), new L(e, t, n, r);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function Yn(e) {
|
|
1875
1875
|
return e instanceof j || (e = I(e)), e ? (e = e.rgb(), new L(e.r, e.g, e.b, e.opacity)) : new L();
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1878
|
-
return arguments.length === 1 ?
|
|
1877
|
+
function Xn(e, t, n, r) {
|
|
1878
|
+
return arguments.length === 1 ? Yn(e) : new L(e, t, n, r ?? 1);
|
|
1879
1879
|
}
|
|
1880
1880
|
function L(e, t, n, r) {
|
|
1881
1881
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1882
1882
|
}
|
|
1883
|
-
|
|
1883
|
+
Mn(L, Xn, Nn(j, {
|
|
1884
1884
|
brighter(e) {
|
|
1885
|
-
return e = e == null ?
|
|
1885
|
+
return e = e == null ? Pn : Pn ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1886
1886
|
},
|
|
1887
1887
|
darker(e) {
|
|
1888
1888
|
return e = e == null ? M : M ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
@@ -1891,28 +1891,28 @@ Nn(L, Zn, Pn(j, {
|
|
|
1891
1891
|
return this;
|
|
1892
1892
|
},
|
|
1893
1893
|
clamp() {
|
|
1894
|
-
return new L(R(this.r), R(this.g), R(this.b),
|
|
1894
|
+
return new L(R(this.r), R(this.g), R(this.b), er(this.opacity));
|
|
1895
1895
|
},
|
|
1896
1896
|
displayable() {
|
|
1897
1897
|
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1898
1898
|
},
|
|
1899
|
-
hex:
|
|
1900
|
-
formatHex:
|
|
1901
|
-
formatHex8:
|
|
1902
|
-
formatRgb:
|
|
1903
|
-
toString:
|
|
1899
|
+
hex: Zn,
|
|
1900
|
+
formatHex: Zn,
|
|
1901
|
+
formatHex8: Qn,
|
|
1902
|
+
formatRgb: $n,
|
|
1903
|
+
toString: $n
|
|
1904
1904
|
}));
|
|
1905
|
-
function
|
|
1905
|
+
function Zn() {
|
|
1906
1906
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}`;
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function Qn() {
|
|
1909
1909
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1912
|
-
let e =
|
|
1911
|
+
function $n() {
|
|
1912
|
+
let e = er(this.opacity);
|
|
1913
1913
|
return `${e === 1 ? "rgb(" : "rgba("}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function er(e) {
|
|
1916
1916
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1917
1917
|
}
|
|
1918
1918
|
function R(e) {
|
|
@@ -1921,10 +1921,10 @@ function R(e) {
|
|
|
1921
1921
|
function z(e) {
|
|
1922
1922
|
return e = R(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function tr(e, t, n, r) {
|
|
1925
1925
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function nr(e) {
|
|
1928
1928
|
if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
|
|
1929
1929
|
if (e instanceof j || (e = I(e)), !e) return new B();
|
|
1930
1930
|
if (e instanceof B) return e;
|
|
@@ -1932,67 +1932,67 @@ function rr(e) {
|
|
|
1932
1932
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
1933
1933
|
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new B(o, s, c, e.opacity);
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return arguments.length === 1 ?
|
|
1935
|
+
function rr(e, t, n, r) {
|
|
1936
|
+
return arguments.length === 1 ? nr(e) : new B(e, t, n, r ?? 1);
|
|
1937
1937
|
}
|
|
1938
1938
|
function B(e, t, n, r) {
|
|
1939
1939
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1940
1940
|
}
|
|
1941
|
-
|
|
1941
|
+
Mn(B, rr, Nn(j, {
|
|
1942
1942
|
brighter(e) {
|
|
1943
|
-
return e = e == null ?
|
|
1943
|
+
return e = e == null ? Pn : Pn ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1944
1944
|
},
|
|
1945
1945
|
darker(e) {
|
|
1946
1946
|
return e = e == null ? M : M ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1947
1947
|
},
|
|
1948
1948
|
rgb() {
|
|
1949
1949
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
1950
|
-
return new L(
|
|
1950
|
+
return new L(or(e >= 240 ? e - 240 : e + 120, i, r), or(e, i, r), or(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
1951
1951
|
},
|
|
1952
1952
|
clamp() {
|
|
1953
|
-
return new B(
|
|
1953
|
+
return new B(ir(this.h), ar(this.s), ar(this.l), er(this.opacity));
|
|
1954
1954
|
},
|
|
1955
1955
|
displayable() {
|
|
1956
1956
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1957
1957
|
},
|
|
1958
1958
|
formatHsl() {
|
|
1959
|
-
let e =
|
|
1960
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
1959
|
+
let e = er(this.opacity);
|
|
1960
|
+
return `${e === 1 ? "hsl(" : "hsla("}${ir(this.h)}, ${ar(this.s) * 100}%, ${ar(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1961
1961
|
}
|
|
1962
1962
|
}));
|
|
1963
|
-
function
|
|
1963
|
+
function ir(e) {
|
|
1964
1964
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function ar(e) {
|
|
1967
1967
|
return Math.max(0, Math.min(1, e || 0));
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function or(e, t, n) {
|
|
1970
1970
|
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1971
1971
|
}
|
|
1972
|
-
var
|
|
1973
|
-
function
|
|
1972
|
+
var sr = (e) => () => e;
|
|
1973
|
+
function cr(e, t) {
|
|
1974
1974
|
return function(n) {
|
|
1975
1975
|
return e + n * t;
|
|
1976
1976
|
};
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function lr(e, t, n) {
|
|
1979
1979
|
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1980
1980
|
return (e + r * t) ** +n;
|
|
1981
1981
|
};
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return (e = +e) == 1 ?
|
|
1985
|
-
return n - t ?
|
|
1983
|
+
function ur(e) {
|
|
1984
|
+
return (e = +e) == 1 ? dr : function(t, n) {
|
|
1985
|
+
return n - t ? lr(t, n, e) : sr(isNaN(t) ? n : t);
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function dr(e, t) {
|
|
1989
1989
|
var n = t - e;
|
|
1990
|
-
return n ?
|
|
1990
|
+
return n ? cr(e, n) : sr(isNaN(e) ? t : e);
|
|
1991
1991
|
}
|
|
1992
|
-
var
|
|
1993
|
-
var n =
|
|
1992
|
+
var fr = (function e(t) {
|
|
1993
|
+
var n = ur(t);
|
|
1994
1994
|
function r(e, t) {
|
|
1995
|
-
var r = n((e =
|
|
1995
|
+
var r = n((e = Xn(e)).r, (t = Xn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = dr(e.opacity, t.opacity);
|
|
1996
1996
|
return function(t) {
|
|
1997
1997
|
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1998
1998
|
};
|
|
@@ -2004,29 +2004,29 @@ function V(e, t) {
|
|
|
2004
2004
|
return e * (1 - n) + t * n;
|
|
2005
2005
|
};
|
|
2006
2006
|
}
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
2007
|
+
var pr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, mr = new RegExp(pr.source, "g");
|
|
2008
|
+
function hr(e) {
|
|
2009
2009
|
return function() {
|
|
2010
2010
|
return e;
|
|
2011
2011
|
};
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function gr(e) {
|
|
2014
2014
|
return function(t) {
|
|
2015
2015
|
return e(t) + "";
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2019
|
-
var n =
|
|
2020
|
-
for (e += "", t += ""; (r =
|
|
2018
|
+
function _r(e, t) {
|
|
2019
|
+
var n = pr.lastIndex = mr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
2020
|
+
for (e += "", t += ""; (r = pr.exec(e)) && (i = mr.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
|
|
2021
2021
|
i: o,
|
|
2022
2022
|
x: V(r, i)
|
|
2023
|
-
})), n =
|
|
2024
|
-
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ?
|
|
2023
|
+
})), n = mr.lastIndex;
|
|
2024
|
+
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? gr(c[0].x) : hr(t) : (t = c.length, function(e) {
|
|
2025
2025
|
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
2026
2026
|
return s.join("");
|
|
2027
2027
|
});
|
|
2028
2028
|
}
|
|
2029
|
-
var
|
|
2029
|
+
var vr = 180 / Math.PI, yr = {
|
|
2030
2030
|
translateX: 0,
|
|
2031
2031
|
translateY: 0,
|
|
2032
2032
|
rotate: 0,
|
|
@@ -2034,26 +2034,26 @@ var yr = 180 / Math.PI, br = {
|
|
|
2034
2034
|
scaleX: 1,
|
|
2035
2035
|
scaleY: 1
|
|
2036
2036
|
};
|
|
2037
|
-
function
|
|
2037
|
+
function br(e, t, n, r, i, a) {
|
|
2038
2038
|
var o, s, c;
|
|
2039
2039
|
return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
|
|
2040
2040
|
translateX: i,
|
|
2041
2041
|
translateY: a,
|
|
2042
|
-
rotate: Math.atan2(t, e) *
|
|
2043
|
-
skewX: Math.atan(c) *
|
|
2042
|
+
rotate: Math.atan2(t, e) * vr,
|
|
2043
|
+
skewX: Math.atan(c) * vr,
|
|
2044
2044
|
scaleX: o,
|
|
2045
2045
|
scaleY: s
|
|
2046
2046
|
};
|
|
2047
2047
|
}
|
|
2048
|
-
var
|
|
2049
|
-
function
|
|
2048
|
+
var xr;
|
|
2049
|
+
function Sr(e) {
|
|
2050
2050
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
2051
|
-
return t.isIdentity ?
|
|
2051
|
+
return t.isIdentity ? yr : br(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return e == null || (
|
|
2053
|
+
function Cr(e) {
|
|
2054
|
+
return e == null || (xr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), xr.setAttribute("transform", e), !(e = xr.transform.baseVal.consolidate())) ? yr : (e = e.matrix, br(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function wr(e, t, n, r) {
|
|
2057
2057
|
function i(e) {
|
|
2058
2058
|
return e.length ? e.pop() + " " : "";
|
|
2059
2059
|
}
|
|
@@ -2101,73 +2101,73 @@ function Tr(e, t, n, r) {
|
|
|
2101
2101
|
};
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
var
|
|
2104
|
+
var Tr = wr(Sr, "px, ", "px)", "deg)"), Er = wr(Cr, ", ", ")", ")"), H = 0, Dr = 0, Or = 0, kr = 1e3, Ar, U, jr = 0, W = 0, Mr = 0, G = typeof performance == "object" && performance.now ? performance : Date, Nr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
2105
2105
|
setTimeout(e, 17);
|
|
2106
2106
|
};
|
|
2107
|
-
function
|
|
2108
|
-
return W ||= (
|
|
2107
|
+
function Pr() {
|
|
2108
|
+
return W ||= (Nr(Fr), G.now() + Mr);
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Fr() {
|
|
2111
2111
|
W = 0;
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function Ir() {
|
|
2114
2114
|
this._call = this._time = this._next = null;
|
|
2115
2115
|
}
|
|
2116
|
-
|
|
2117
|
-
constructor:
|
|
2116
|
+
Ir.prototype = Lr.prototype = {
|
|
2117
|
+
constructor: Ir,
|
|
2118
2118
|
restart: function(e, t, n) {
|
|
2119
2119
|
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
2120
|
-
n = (n == null ?
|
|
2120
|
+
n = (n == null ? Pr() : +n) + (t == null ? 0 : +t), !this._next && U !== this && (U ? U._next = this : Ar = this, U = this), this._call = e, this._time = n, Hr();
|
|
2121
2121
|
},
|
|
2122
2122
|
stop: function() {
|
|
2123
|
-
this._call && (this._call = null, this._time = Infinity,
|
|
2123
|
+
this._call && (this._call = null, this._time = Infinity, Hr());
|
|
2124
2124
|
}
|
|
2125
2125
|
};
|
|
2126
|
-
function
|
|
2127
|
-
var r = new
|
|
2126
|
+
function Lr(e, t, n) {
|
|
2127
|
+
var r = new Ir();
|
|
2128
2128
|
return r.restart(e, t, n), r;
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2132
|
-
for (var e =
|
|
2130
|
+
function Rr() {
|
|
2131
|
+
Pr(), ++H;
|
|
2132
|
+
for (var e = Ar, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
2133
2133
|
--H;
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2136
|
-
W = (
|
|
2135
|
+
function zr() {
|
|
2136
|
+
W = (jr = G.now()) + Mr, H = Dr = 0;
|
|
2137
2137
|
try {
|
|
2138
|
-
|
|
2138
|
+
Rr();
|
|
2139
2139
|
} finally {
|
|
2140
|
-
H = 0,
|
|
2140
|
+
H = 0, Vr(), W = 0;
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
var e = G.now(), t = e -
|
|
2145
|
-
t >
|
|
2143
|
+
function Br() {
|
|
2144
|
+
var e = G.now(), t = e - jr;
|
|
2145
|
+
t > kr && (Mr -= t, jr = e);
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2148
|
-
for (var e, t =
|
|
2149
|
-
U = e,
|
|
2147
|
+
function Vr() {
|
|
2148
|
+
for (var e, t = Ar, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Ar = n);
|
|
2149
|
+
U = e, Hr(r);
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2152
|
-
H || (
|
|
2151
|
+
function Hr(e) {
|
|
2152
|
+
H || (Dr &&= clearTimeout(Dr), e - W > 24 ? (e < Infinity && (Dr = setTimeout(zr, e - G.now() - Mr)), Or &&= clearInterval(Or)) : (Or ||= (jr = G.now(), setInterval(Br, kr)), H = 1, Nr(zr)));
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
var r = new
|
|
2154
|
+
function Ur(e, t, n) {
|
|
2155
|
+
var r = new Ir();
|
|
2156
2156
|
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
2157
2157
|
r.stop(), e(n + t);
|
|
2158
2158
|
}, t, n), r;
|
|
2159
2159
|
}
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2160
|
+
var Wr = je("start", "end", "cancel", "interrupt"), Gr = [];
|
|
2161
|
+
function Kr(e, t, n, r, i, a) {
|
|
2162
2162
|
var o = e.__transition;
|
|
2163
2163
|
if (!o) e.__transition = {};
|
|
2164
2164
|
else if (n in o) return;
|
|
2165
|
-
|
|
2165
|
+
Jr(e, n, {
|
|
2166
2166
|
name: t,
|
|
2167
2167
|
index: r,
|
|
2168
2168
|
group: i,
|
|
2169
|
-
on:
|
|
2170
|
-
tween:
|
|
2169
|
+
on: Wr,
|
|
2170
|
+
tween: Gr,
|
|
2171
2171
|
time: a.time,
|
|
2172
2172
|
delay: a.delay,
|
|
2173
2173
|
duration: a.duration,
|
|
@@ -2176,7 +2176,7 @@ function qr(e, t, n, r, i, a) {
|
|
|
2176
2176
|
state: 0
|
|
2177
2177
|
});
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function qr(e, t) {
|
|
2180
2180
|
var n = q(e, t);
|
|
2181
2181
|
if (n.state > 0) throw Error("too late; already scheduled");
|
|
2182
2182
|
return n;
|
|
@@ -2191,9 +2191,9 @@ function q(e, t) {
|
|
|
2191
2191
|
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
2192
2192
|
return n;
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function Jr(e, t, n) {
|
|
2195
2195
|
var r = e.__transition, i;
|
|
2196
|
-
r[t] = n, n.timer =
|
|
2196
|
+
r[t] = n, n.timer = Lr(a, 0, n.time);
|
|
2197
2197
|
function a(e) {
|
|
2198
2198
|
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
2199
2199
|
}
|
|
@@ -2201,10 +2201,10 @@ function Yr(e, t, n) {
|
|
|
2201
2201
|
var l, u, d, f;
|
|
2202
2202
|
if (n.state !== 1) return c();
|
|
2203
2203
|
for (l in r) if (f = r[l], f.name === n.name) {
|
|
2204
|
-
if (f.state === 3) return
|
|
2204
|
+
if (f.state === 3) return Ur(o);
|
|
2205
2205
|
f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
|
|
2206
2206
|
}
|
|
2207
|
-
if (
|
|
2207
|
+
if (Ur(function() {
|
|
2208
2208
|
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
2209
2209
|
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
2210
2210
|
for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
|
|
@@ -2220,7 +2220,7 @@ function Yr(e, t, n) {
|
|
|
2220
2220
|
delete e.__transition;
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Yr(e, t) {
|
|
2224
2224
|
var n = e.__transition, r, i, a = !0, o;
|
|
2225
2225
|
if (n) {
|
|
2226
2226
|
for (o in t = t == null ? null : t + "", n) {
|
|
@@ -2233,12 +2233,12 @@ function Xr(e, t) {
|
|
|
2233
2233
|
a && delete e.__transition;
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Xr(e) {
|
|
2237
2237
|
return this.each(function() {
|
|
2238
|
-
|
|
2238
|
+
Yr(this, e);
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function Zr(e, t) {
|
|
2242
2242
|
var n, r;
|
|
2243
2243
|
return function() {
|
|
2244
2244
|
var i = K(this, e), a = i.tween;
|
|
@@ -2252,7 +2252,7 @@ function Qr(e, t) {
|
|
|
2252
2252
|
i.tween = r;
|
|
2253
2253
|
};
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function Qr(e, t, n) {
|
|
2256
2256
|
var r, i;
|
|
2257
2257
|
if (typeof n != "function") throw Error();
|
|
2258
2258
|
return function() {
|
|
@@ -2271,15 +2271,15 @@ function $r(e, t, n) {
|
|
|
2271
2271
|
a.tween = i;
|
|
2272
2272
|
};
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function $r(e, t) {
|
|
2275
2275
|
var n = this._id;
|
|
2276
2276
|
if (e += "", arguments.length < 2) {
|
|
2277
2277
|
for (var r = q(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
|
|
2278
2278
|
return null;
|
|
2279
2279
|
}
|
|
2280
|
-
return this.each((t == null ?
|
|
2280
|
+
return this.each((t == null ? Zr : Qr)(n, e, t));
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function ei(e, t, n) {
|
|
2283
2283
|
var r = e._id;
|
|
2284
2284
|
return e.each(function() {
|
|
2285
2285
|
var e = K(this, r);
|
|
@@ -2288,287 +2288,287 @@ function ti(e, t, n) {
|
|
|
2288
2288
|
return q(e, r).value[t];
|
|
2289
2289
|
};
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function ti(e, t) {
|
|
2292
2292
|
var n;
|
|
2293
|
-
return (typeof t == "number" ? V : t instanceof I ?
|
|
2293
|
+
return (typeof t == "number" ? V : t instanceof I ? fr : (n = I(t)) ? (t = n, fr) : _r)(e, t);
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function ni(e) {
|
|
2296
2296
|
return function() {
|
|
2297
2297
|
this.removeAttribute(e);
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function ri(e) {
|
|
2301
2301
|
return function() {
|
|
2302
2302
|
this.removeAttributeNS(e.space, e.local);
|
|
2303
2303
|
};
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function ii(e, t, n) {
|
|
2306
2306
|
var r, i = n + "", a;
|
|
2307
2307
|
return function() {
|
|
2308
2308
|
var o = this.getAttribute(e);
|
|
2309
2309
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2310
2310
|
};
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function ai(e, t, n) {
|
|
2313
2313
|
var r, i = n + "", a;
|
|
2314
2314
|
return function() {
|
|
2315
2315
|
var o = this.getAttributeNS(e.space, e.local);
|
|
2316
2316
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2317
2317
|
};
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function oi(e, t, n) {
|
|
2320
2320
|
var r, i, a;
|
|
2321
2321
|
return function() {
|
|
2322
2322
|
var o, s = n(this), c;
|
|
2323
2323
|
return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2324
2324
|
};
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function si(e, t, n) {
|
|
2327
2327
|
var r, i, a;
|
|
2328
2328
|
return function() {
|
|
2329
2329
|
var o, s = n(this), c;
|
|
2330
2330
|
return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2334
|
-
var n =
|
|
2335
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ?
|
|
2333
|
+
function ci(e, t) {
|
|
2334
|
+
var n = Le(e), r = n === "transform" ? Er : ti;
|
|
2335
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? si : oi)(n, r, ei(this, "attr." + e, t)) : t == null ? (n.local ? ri : ni)(n) : (n.local ? ai : ii)(n, r, t));
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function li(e, t) {
|
|
2338
2338
|
return function(n) {
|
|
2339
2339
|
this.setAttribute(e, t.call(this, n));
|
|
2340
2340
|
};
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function ui(e, t) {
|
|
2343
2343
|
return function(n) {
|
|
2344
2344
|
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function di(e, t) {
|
|
2348
2348
|
var n, r;
|
|
2349
2349
|
function i() {
|
|
2350
2350
|
var i = t.apply(this, arguments);
|
|
2351
|
-
return i !== r && (n = (r = i) &&
|
|
2351
|
+
return i !== r && (n = (r = i) && ui(e, i)), n;
|
|
2352
2352
|
}
|
|
2353
2353
|
return i._value = t, i;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function fi(e, t) {
|
|
2356
2356
|
var n, r;
|
|
2357
2357
|
function i() {
|
|
2358
2358
|
var i = t.apply(this, arguments);
|
|
2359
|
-
return i !== r && (n = (r = i) &&
|
|
2359
|
+
return i !== r && (n = (r = i) && li(e, i)), n;
|
|
2360
2360
|
}
|
|
2361
2361
|
return i._value = t, i;
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function pi(e, t) {
|
|
2364
2364
|
var n = "attr." + e;
|
|
2365
2365
|
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
2366
2366
|
if (t == null) return this.tween(n, null);
|
|
2367
2367
|
if (typeof t != "function") throw Error();
|
|
2368
|
-
var r =
|
|
2369
|
-
return this.tween(n, (r.local ?
|
|
2368
|
+
var r = Le(e);
|
|
2369
|
+
return this.tween(n, (r.local ? di : fi)(r, t));
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function mi(e, t) {
|
|
2372
2372
|
return function() {
|
|
2373
|
-
|
|
2373
|
+
qr(this, e).delay = +t.apply(this, arguments);
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function hi(e, t) {
|
|
2377
2377
|
return t = +t, function() {
|
|
2378
|
-
|
|
2378
|
+
qr(this, e).delay = t;
|
|
2379
2379
|
};
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function gi(e) {
|
|
2382
2382
|
var t = this._id;
|
|
2383
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2383
|
+
return arguments.length ? this.each((typeof e == "function" ? mi : hi)(t, e)) : q(this.node(), t).delay;
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function _i(e, t) {
|
|
2386
2386
|
return function() {
|
|
2387
2387
|
K(this, e).duration = +t.apply(this, arguments);
|
|
2388
2388
|
};
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function vi(e, t) {
|
|
2391
2391
|
return t = +t, function() {
|
|
2392
2392
|
K(this, e).duration = t;
|
|
2393
2393
|
};
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function yi(e) {
|
|
2396
2396
|
var t = this._id;
|
|
2397
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2397
|
+
return arguments.length ? this.each((typeof e == "function" ? _i : vi)(t, e)) : q(this.node(), t).duration;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function bi(e, t) {
|
|
2400
2400
|
if (typeof t != "function") throw Error();
|
|
2401
2401
|
return function() {
|
|
2402
2402
|
K(this, e).ease = t;
|
|
2403
2403
|
};
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function xi(e) {
|
|
2406
2406
|
var t = this._id;
|
|
2407
|
-
return arguments.length ? this.each(
|
|
2407
|
+
return arguments.length ? this.each(bi(t, e)) : q(this.node(), t).ease;
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function Si(e, t) {
|
|
2410
2410
|
return function() {
|
|
2411
2411
|
var n = t.apply(this, arguments);
|
|
2412
2412
|
if (typeof n != "function") throw Error();
|
|
2413
2413
|
K(this, e).ease = n;
|
|
2414
2414
|
};
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Ci(e) {
|
|
2417
2417
|
if (typeof e != "function") throw Error();
|
|
2418
|
-
return this.each(
|
|
2418
|
+
return this.each(Si(this._id, e));
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2421
|
-
typeof e != "function" && (e =
|
|
2420
|
+
function wi(e) {
|
|
2421
|
+
typeof e != "function" && (e = Ye(e));
|
|
2422
2422
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
2423
2423
|
return new J(r, this._parents, this._name, this._id);
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Ti(e) {
|
|
2426
2426
|
if (e._id !== this._id) throw Error();
|
|
2427
2427
|
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
2428
2428
|
for (; s < r; ++s) o[s] = t[s];
|
|
2429
2429
|
return new J(o, this._parents, this._name, this._id);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Ei(e) {
|
|
2432
2432
|
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
2433
2433
|
var t = e.indexOf(".");
|
|
2434
2434
|
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
2435
2435
|
});
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2438
|
-
var r, i, a =
|
|
2437
|
+
function Di(e, t, n) {
|
|
2438
|
+
var r, i, a = Ei(t) ? qr : K;
|
|
2439
2439
|
return function() {
|
|
2440
2440
|
var o = a(this, e), s = o.on;
|
|
2441
2441
|
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
2442
2442
|
};
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function Oi(e, t) {
|
|
2445
2445
|
var n = this._id;
|
|
2446
|
-
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(
|
|
2446
|
+
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Di(n, e, t));
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function ki(e) {
|
|
2449
2449
|
return function() {
|
|
2450
2450
|
var t = this.parentNode;
|
|
2451
2451
|
for (var n in this.__transition) if (+n !== e) return;
|
|
2452
2452
|
t && t.removeChild(this);
|
|
2453
2453
|
};
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2456
|
-
return this.on("end.remove",
|
|
2455
|
+
function Ai() {
|
|
2456
|
+
return this.on("end.remove", ki(this._id));
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function ji(e) {
|
|
2459
2459
|
var t = this._name, n = this._id;
|
|
2460
|
-
typeof e != "function" && (e =
|
|
2461
|
-
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d,
|
|
2460
|
+
typeof e != "function" && (e = He(e));
|
|
2461
|
+
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, Kr(l[f], t, n, f, l, q(u, n)));
|
|
2462
2462
|
return new J(a, this._parents, t, n);
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function Mi(e) {
|
|
2465
2465
|
var t = this._name, n = this._id;
|
|
2466
|
-
typeof e != "function" && (e =
|
|
2466
|
+
typeof e != "function" && (e = Ke(e));
|
|
2467
2467
|
for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
|
|
2468
|
-
for (var f = e.call(u, u.__data__, d, c), p, m = q(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) &&
|
|
2468
|
+
for (var f = e.call(u, u.__data__, d, c), p, m = q(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Kr(p, t, n, h, f, m);
|
|
2469
2469
|
a.push(f), o.push(u);
|
|
2470
2470
|
}
|
|
2471
2471
|
return new J(a, o, t, n);
|
|
2472
2472
|
}
|
|
2473
|
-
var
|
|
2474
|
-
function
|
|
2475
|
-
return new
|
|
2473
|
+
var Ni = A.prototype.constructor;
|
|
2474
|
+
function Pi() {
|
|
2475
|
+
return new Ni(this._groups, this._parents);
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Fi(e, t) {
|
|
2478
2478
|
var n, r, i;
|
|
2479
2479
|
return function() {
|
|
2480
2480
|
var a = O(this, e), o = (this.style.removeProperty(e), O(this, e));
|
|
2481
2481
|
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2484
|
+
function Ii(e) {
|
|
2485
2485
|
return function() {
|
|
2486
2486
|
this.style.removeProperty(e);
|
|
2487
2487
|
};
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function Li(e, t, n) {
|
|
2490
2490
|
var r, i = n + "", a;
|
|
2491
2491
|
return function() {
|
|
2492
2492
|
var o = O(this, e);
|
|
2493
2493
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2494
2494
|
};
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function Ri(e, t, n) {
|
|
2497
2497
|
var r, i, a;
|
|
2498
2498
|
return function() {
|
|
2499
2499
|
var o = O(this, e), s = n(this), c = s + "";
|
|
2500
2500
|
return s ?? (c = s = (this.style.removeProperty(e), O(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
|
|
2501
2501
|
};
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function zi(e, t) {
|
|
2504
2504
|
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
2505
2505
|
return function() {
|
|
2506
|
-
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||=
|
|
2506
|
+
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Ii(t) : void 0;
|
|
2507
2507
|
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
2508
2508
|
};
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
var r = (e += "") == "transform" ?
|
|
2512
|
-
return t == null ? this.styleTween(e,
|
|
2510
|
+
function Bi(e, t, n) {
|
|
2511
|
+
var r = (e += "") == "transform" ? Tr : ti;
|
|
2512
|
+
return t == null ? this.styleTween(e, Fi(e, r)).on("end.style." + e, Ii(e)) : typeof t == "function" ? this.styleTween(e, Ri(e, r, ei(this, "style." + e, t))).each(zi(this._id, e)) : this.styleTween(e, Li(e, r, t), n).on("end.style." + e, null);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function Vi(e, t, n) {
|
|
2515
2515
|
return function(r) {
|
|
2516
2516
|
this.style.setProperty(e, t.call(this, r), n);
|
|
2517
2517
|
};
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function Hi(e, t, n) {
|
|
2520
2520
|
var r, i;
|
|
2521
2521
|
function a() {
|
|
2522
2522
|
var a = t.apply(this, arguments);
|
|
2523
|
-
return a !== i && (r = (i = a) &&
|
|
2523
|
+
return a !== i && (r = (i = a) && Vi(e, a, n)), r;
|
|
2524
2524
|
}
|
|
2525
2525
|
return a._value = t, a;
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2527
|
+
function Ui(e, t, n) {
|
|
2528
2528
|
var r = "style." + (e += "");
|
|
2529
2529
|
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
2530
2530
|
if (t == null) return this.tween(r, null);
|
|
2531
2531
|
if (typeof t != "function") throw Error();
|
|
2532
|
-
return this.tween(r,
|
|
2532
|
+
return this.tween(r, Hi(e, t, n ?? ""));
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function Wi(e) {
|
|
2535
2535
|
return function() {
|
|
2536
2536
|
this.textContent = e;
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function Gi(e) {
|
|
2540
2540
|
return function() {
|
|
2541
2541
|
var t = e(this);
|
|
2542
2542
|
this.textContent = t ?? "";
|
|
2543
2543
|
};
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2546
|
-
return this.tween("text", typeof e == "function" ?
|
|
2545
|
+
function Ki(e) {
|
|
2546
|
+
return this.tween("text", typeof e == "function" ? Gi(ei(this, "text", e)) : Wi(e == null ? "" : e + ""));
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2548
|
+
function qi(e) {
|
|
2549
2549
|
return function(t) {
|
|
2550
2550
|
this.textContent = e.call(this, t);
|
|
2551
2551
|
};
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Ji(e) {
|
|
2554
2554
|
var t, n;
|
|
2555
2555
|
function r() {
|
|
2556
2556
|
var r = e.apply(this, arguments);
|
|
2557
|
-
return r !== n && (t = (n = r) &&
|
|
2557
|
+
return r !== n && (t = (n = r) && qi(r)), t;
|
|
2558
2558
|
}
|
|
2559
2559
|
return r._value = e, r;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function Yi(e) {
|
|
2562
2562
|
var t = "text";
|
|
2563
2563
|
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
2564
2564
|
if (e == null) return this.tween(t, null);
|
|
2565
2565
|
if (typeof e != "function") throw Error();
|
|
2566
|
-
return this.tween(t,
|
|
2566
|
+
return this.tween(t, Ji(e));
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2569
|
-
for (var e = this._name, t = this._id, n =
|
|
2568
|
+
function Xi() {
|
|
2569
|
+
for (var e = this._name, t = this._id, n = $i(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
|
|
2570
2570
|
var u = q(c, t);
|
|
2571
|
-
|
|
2571
|
+
Kr(c, e, n, l, o, {
|
|
2572
2572
|
time: u.time + u.delay + u.duration,
|
|
2573
2573
|
delay: 0,
|
|
2574
2574
|
duration: u.duration,
|
|
@@ -2577,7 +2577,7 @@ function Zi() {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
return new J(r, this._parents, e, n);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Zi() {
|
|
2581
2581
|
var e, t, n = this, r = n._id, i = n.size();
|
|
2582
2582
|
return new Promise(function(a, o) {
|
|
2583
2583
|
var s = { value: o }, c = { value: function() {
|
|
@@ -2589,68 +2589,68 @@ function Qi() {
|
|
|
2589
2589
|
}), i === 0 && a();
|
|
2590
2590
|
});
|
|
2591
2591
|
}
|
|
2592
|
-
var
|
|
2592
|
+
var Qi = 0;
|
|
2593
2593
|
function J(e, t, n, r) {
|
|
2594
2594
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return
|
|
2596
|
+
function $i() {
|
|
2597
|
+
return ++Qi;
|
|
2598
2598
|
}
|
|
2599
2599
|
var Y = A.prototype;
|
|
2600
2600
|
J.prototype = {
|
|
2601
2601
|
constructor: J,
|
|
2602
|
-
select:
|
|
2603
|
-
selectAll:
|
|
2602
|
+
select: ji,
|
|
2603
|
+
selectAll: Mi,
|
|
2604
2604
|
selectChild: Y.selectChild,
|
|
2605
2605
|
selectChildren: Y.selectChildren,
|
|
2606
|
-
filter:
|
|
2607
|
-
merge:
|
|
2608
|
-
selection:
|
|
2609
|
-
transition:
|
|
2606
|
+
filter: wi,
|
|
2607
|
+
merge: Ti,
|
|
2608
|
+
selection: Pi,
|
|
2609
|
+
transition: Xi,
|
|
2610
2610
|
call: Y.call,
|
|
2611
2611
|
nodes: Y.nodes,
|
|
2612
2612
|
node: Y.node,
|
|
2613
2613
|
size: Y.size,
|
|
2614
2614
|
empty: Y.empty,
|
|
2615
2615
|
each: Y.each,
|
|
2616
|
-
on:
|
|
2617
|
-
attr:
|
|
2618
|
-
attrTween:
|
|
2619
|
-
style:
|
|
2620
|
-
styleTween:
|
|
2621
|
-
text:
|
|
2622
|
-
textTween:
|
|
2623
|
-
remove:
|
|
2624
|
-
tween:
|
|
2625
|
-
delay:
|
|
2626
|
-
duration:
|
|
2627
|
-
ease:
|
|
2628
|
-
easeVarying:
|
|
2629
|
-
end:
|
|
2616
|
+
on: Oi,
|
|
2617
|
+
attr: ci,
|
|
2618
|
+
attrTween: pi,
|
|
2619
|
+
style: Bi,
|
|
2620
|
+
styleTween: Ui,
|
|
2621
|
+
text: Ki,
|
|
2622
|
+
textTween: Yi,
|
|
2623
|
+
remove: Ai,
|
|
2624
|
+
tween: $r,
|
|
2625
|
+
delay: gi,
|
|
2626
|
+
duration: yi,
|
|
2627
|
+
ease: xi,
|
|
2628
|
+
easeVarying: Ci,
|
|
2629
|
+
end: Zi,
|
|
2630
2630
|
[Symbol.iterator]: Y[Symbol.iterator]
|
|
2631
2631
|
};
|
|
2632
|
-
function
|
|
2632
|
+
function ea(e) {
|
|
2633
2633
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2634
2634
|
}
|
|
2635
|
-
var
|
|
2635
|
+
var ta = {
|
|
2636
2636
|
time: null,
|
|
2637
2637
|
delay: 0,
|
|
2638
2638
|
duration: 250,
|
|
2639
|
-
ease:
|
|
2639
|
+
ease: ea
|
|
2640
2640
|
};
|
|
2641
|
-
function
|
|
2641
|
+
function na(e, t) {
|
|
2642
2642
|
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2643
2643
|
return n;
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2645
|
+
function ra(e) {
|
|
2646
2646
|
var t, n;
|
|
2647
|
-
e instanceof J ? (t = e._id, e = e._name) : (t =
|
|
2648
|
-
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) &&
|
|
2647
|
+
e instanceof J ? (t = e._id, e = e._name) : (t = $i(), (n = ta).time = Pr(), e = e == null ? null : e + "");
|
|
2648
|
+
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Kr(c, e, t, l, o, n || na(c, t));
|
|
2649
2649
|
return new J(r, this._parents, e, t);
|
|
2650
2650
|
}
|
|
2651
|
-
A.prototype.interrupt =
|
|
2652
|
-
var { abs:
|
|
2653
|
-
["w", "e"].map(
|
|
2651
|
+
A.prototype.interrupt = Xr, A.prototype.transition = ra;
|
|
2652
|
+
var { abs: ia, max: aa, min: oa } = Math;
|
|
2653
|
+
["w", "e"].map(sa), ["n", "s"].map(sa), [
|
|
2654
2654
|
"n",
|
|
2655
2655
|
"w",
|
|
2656
2656
|
"e",
|
|
@@ -2659,39 +2659,39 @@ var { abs: aa, max: oa, min: sa } = Math;
|
|
|
2659
2659
|
"ne",
|
|
2660
2660
|
"sw",
|
|
2661
2661
|
"se"
|
|
2662
|
-
].map(
|
|
2663
|
-
function
|
|
2662
|
+
].map(sa);
|
|
2663
|
+
function sa(e) {
|
|
2664
2664
|
return { type: e };
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function ca(e) {
|
|
2667
2667
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function la(e, t) {
|
|
2670
2670
|
if (!isFinite(e) || e === 0) return null;
|
|
2671
2671
|
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
2672
2672
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2675
|
-
return e =
|
|
2674
|
+
function ua(e) {
|
|
2675
|
+
return e = la(Math.abs(e)), e ? e[1] : NaN;
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function da(e, t) {
|
|
2678
2678
|
return function(n, r) {
|
|
2679
2679
|
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
2680
2680
|
return a.reverse().join(t);
|
|
2681
2681
|
};
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2683
|
+
function fa(e) {
|
|
2684
2684
|
return function(t) {
|
|
2685
2685
|
return t.replace(/[0-9]/g, function(t) {
|
|
2686
2686
|
return e[+t];
|
|
2687
2687
|
});
|
|
2688
2688
|
};
|
|
2689
2689
|
}
|
|
2690
|
-
var
|
|
2691
|
-
function
|
|
2692
|
-
if (!(t =
|
|
2690
|
+
var pa = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2691
|
+
function ma(e) {
|
|
2692
|
+
if (!(t = pa.exec(e))) throw Error("invalid format: " + e);
|
|
2693
2693
|
var t;
|
|
2694
|
-
return new
|
|
2694
|
+
return new ha({
|
|
2695
2695
|
fill: t[1],
|
|
2696
2696
|
align: t[2],
|
|
2697
2697
|
sign: t[3],
|
|
@@ -2704,14 +2704,14 @@ function ha(e) {
|
|
|
2704
2704
|
type: t[10]
|
|
2705
2705
|
});
|
|
2706
2706
|
}
|
|
2707
|
-
|
|
2708
|
-
function
|
|
2707
|
+
ma.prototype = ha.prototype;
|
|
2708
|
+
function ha(e) {
|
|
2709
2709
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
2710
2710
|
}
|
|
2711
|
-
|
|
2711
|
+
ha.prototype.toString = function() {
|
|
2712
2712
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
2713
2713
|
};
|
|
2714
|
-
function
|
|
2714
|
+
function ga(e) {
|
|
2715
2715
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
2716
2716
|
case ".":
|
|
2717
2717
|
r = i = n;
|
|
@@ -2725,38 +2725,38 @@ function _a(e) {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
2727
2727
|
}
|
|
2728
|
-
var
|
|
2729
|
-
function
|
|
2730
|
-
var n =
|
|
2731
|
-
if (!n) return
|
|
2732
|
-
var r = n[0], i = n[1], a = i - (
|
|
2733
|
-
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") +
|
|
2728
|
+
var _a;
|
|
2729
|
+
function va(e, t) {
|
|
2730
|
+
var n = la(e, t);
|
|
2731
|
+
if (!n) return _a = void 0, e.toPrecision(t);
|
|
2732
|
+
var r = n[0], i = n[1], a = i - (_a = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
2733
|
+
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + la(e, Math.max(0, t + a - 1))[0];
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2736
|
-
var n =
|
|
2735
|
+
function ya(e, t) {
|
|
2736
|
+
var n = la(e, t);
|
|
2737
2737
|
if (!n) return e + "";
|
|
2738
2738
|
var r = n[0], i = n[1];
|
|
2739
2739
|
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
|
|
2740
2740
|
}
|
|
2741
|
-
var
|
|
2741
|
+
var ba = {
|
|
2742
2742
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
2743
2743
|
b: (e) => Math.round(e).toString(2),
|
|
2744
2744
|
c: (e) => e + "",
|
|
2745
|
-
d:
|
|
2745
|
+
d: ca,
|
|
2746
2746
|
e: (e, t) => e.toExponential(t),
|
|
2747
2747
|
f: (e, t) => e.toFixed(t),
|
|
2748
2748
|
g: (e, t) => e.toPrecision(t),
|
|
2749
2749
|
o: (e) => Math.round(e).toString(8),
|
|
2750
|
-
p: (e, t) =>
|
|
2751
|
-
r:
|
|
2752
|
-
s:
|
|
2750
|
+
p: (e, t) => ya(e * 100, t),
|
|
2751
|
+
r: ya,
|
|
2752
|
+
s: va,
|
|
2753
2753
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
2754
2754
|
x: (e) => Math.round(e).toString(16)
|
|
2755
2755
|
};
|
|
2756
|
-
function
|
|
2756
|
+
function xa(e) {
|
|
2757
2757
|
return e;
|
|
2758
2758
|
}
|
|
2759
|
-
var
|
|
2759
|
+
var Sa = Array.prototype.map, Ca = [
|
|
2760
2760
|
"y",
|
|
2761
2761
|
"z",
|
|
2762
2762
|
"a",
|
|
@@ -2775,13 +2775,13 @@ var Ca = Array.prototype.map, wa = [
|
|
|
2775
2775
|
"Z",
|
|
2776
2776
|
"Y"
|
|
2777
2777
|
];
|
|
2778
|
-
function
|
|
2779
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
2778
|
+
function wa(e) {
|
|
2779
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? xa : da(Sa.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? xa : fa(Sa.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
2780
2780
|
function l(e, l) {
|
|
2781
|
-
e =
|
|
2781
|
+
e = ma(e);
|
|
2782
2782
|
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
|
|
2783
|
-
y === "n" ? (g = !0, y = "g") :
|
|
2784
|
-
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S =
|
|
2783
|
+
y === "n" ? (g = !0, y = "g") : ba[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
2784
|
+
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = ba[y], C = /[defgprs%]/.test(y);
|
|
2785
2785
|
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
2786
2786
|
function w(e) {
|
|
2787
2787
|
var n = b, r = x, o, l, p;
|
|
@@ -2789,7 +2789,7 @@ function Ta(e) {
|
|
|
2789
2789
|
else {
|
|
2790
2790
|
e = +e;
|
|
2791
2791
|
var w = e < 0 || 1 / e < 0;
|
|
2792
|
-
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e =
|
|
2792
|
+
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = ga(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && _a !== void 0 ? Ca[8 + _a / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
|
|
2793
2793
|
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
2794
2794
|
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
2795
2795
|
break;
|
|
@@ -2817,7 +2817,7 @@ function Ta(e) {
|
|
|
2817
2817
|
}, w;
|
|
2818
2818
|
}
|
|
2819
2819
|
function u(e, t) {
|
|
2820
|
-
var n = Math.max(-8, Math.min(8, Math.floor(
|
|
2820
|
+
var n = Math.max(-8, Math.min(8, Math.floor(ua(t) / 3))) * 3, r = 10 ** -n, i = l((e = ma(e), e.type = "f", e), { suffix: Ca[8 + n / 3] });
|
|
2821
2821
|
return function(e) {
|
|
2822
2822
|
return i(r * e);
|
|
2823
2823
|
};
|
|
@@ -2827,14 +2827,14 @@ function Ta(e) {
|
|
|
2827
2827
|
formatPrefix: u
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
|
-
var
|
|
2831
|
-
|
|
2830
|
+
var Ta;
|
|
2831
|
+
Ea({
|
|
2832
2832
|
thousands: ",",
|
|
2833
2833
|
grouping: [3],
|
|
2834
2834
|
currency: ["$", ""]
|
|
2835
2835
|
});
|
|
2836
|
-
function
|
|
2837
|
-
return
|
|
2836
|
+
function Ea(e) {
|
|
2837
|
+
return Ta = wa(e), Ta.format, Ta.formatPrefix, Ta;
|
|
2838
2838
|
}
|
|
2839
2839
|
function X(e, t, n) {
|
|
2840
2840
|
this.k = e, this.x = t, this.y = n;
|
|
@@ -2875,16 +2875,16 @@ X.prototype = {
|
|
|
2875
2875
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2876
2876
|
}
|
|
2877
2877
|
};
|
|
2878
|
-
var
|
|
2879
|
-
|
|
2880
|
-
function
|
|
2881
|
-
for (; !e.__zoom;) if (!(e = e.parentNode)) return
|
|
2878
|
+
var Da = new X(1, 0, 0);
|
|
2879
|
+
Oa.prototype = X.prototype;
|
|
2880
|
+
function Oa(e) {
|
|
2881
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return Da;
|
|
2882
2882
|
return e.__zoom;
|
|
2883
2883
|
}
|
|
2884
2884
|
//#endregion
|
|
2885
2885
|
//#region src/helpers/transferConstructedPolygonGeometry.ts
|
|
2886
|
-
function
|
|
2887
|
-
let t = new
|
|
2886
|
+
function ka(e) {
|
|
2887
|
+
let t = new Se(e);
|
|
2888
2888
|
return {
|
|
2889
2889
|
result: t,
|
|
2890
2890
|
transfers: [
|
|
@@ -2902,39 +2902,39 @@ function Aa(e) {
|
|
|
2902
2902
|
t.outline_scale_normal_and_cap?.buffer,
|
|
2903
2903
|
t.outline_skip_indices?.buffer,
|
|
2904
2904
|
t.outline_batch_index?.buffer
|
|
2905
|
-
].filter(
|
|
2905
|
+
].filter(ve)
|
|
2906
2906
|
};
|
|
2907
2907
|
}
|
|
2908
2908
|
//#endregion
|
|
2909
2909
|
//#region src/utils/toTransferableTileLike.ts
|
|
2910
2910
|
function Z(e) {
|
|
2911
|
-
return new
|
|
2911
|
+
return new u(Aa(e.coords), e.max_height, e.min_height, e.cached_mesh_handle ? ja(e.cached_mesh_handle) : void 0);
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function Aa(e) {
|
|
2914
2914
|
return new o(e.x, e.y, e.z);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function ja(e) {
|
|
2917
2917
|
return new t(e.vertices, e.indices, e.uvs, e.heights);
|
|
2918
2918
|
}
|
|
2919
2919
|
//#endregion
|
|
2920
2920
|
//#region src/utils/toUpsamplableTerrainGeometryLike.ts
|
|
2921
|
-
function
|
|
2922
|
-
return new
|
|
2921
|
+
function Ma(e) {
|
|
2922
|
+
return new d(e.uvs, e.indices, e.heights, e.normals, e.watermask);
|
|
2923
2923
|
}
|
|
2924
2924
|
//#endregion
|
|
2925
2925
|
//#region src/utils/toExtentRadianF32Like.ts
|
|
2926
|
-
function
|
|
2926
|
+
function Na(e) {
|
|
2927
2927
|
return new r(e.west, e.south, e.east, e.north);
|
|
2928
2928
|
}
|
|
2929
2929
|
//#endregion
|
|
2930
2930
|
//#region src/utils/toPolygonMaterialLike.ts
|
|
2931
|
-
function
|
|
2931
|
+
function Pa(e) {
|
|
2932
2932
|
return new i(e.show, e.castShadow, e.receiveShadow, e.color, e.clampToGround, e.tiled, e.height, e.extrudedHeight, e.wireframe, e.outline, e.perPositionHeight, e.__internal__);
|
|
2933
2933
|
}
|
|
2934
2934
|
//#endregion
|
|
2935
2935
|
//#region src/utils/toTransferablePolygonBatchedFeatureLike.ts
|
|
2936
|
-
function
|
|
2937
|
-
let t = new
|
|
2936
|
+
function Fa(e) {
|
|
2937
|
+
let t = new s(e.crs, e.length);
|
|
2938
2938
|
return t.setOuterRing(e.outer_ring.length, (t) => {
|
|
2939
2939
|
t.set(e.outer_ring);
|
|
2940
2940
|
}), t.setOuterRingSizes(e.outer_ring_sizes.length, (t) => {
|
|
@@ -2957,28 +2957,32 @@ function Ia(e) {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
//#endregion
|
|
2959
2959
|
//#region src/tasks/waitWasm.ts
|
|
2960
|
-
var
|
|
2960
|
+
var Ia;
|
|
2961
2961
|
async function Q() {
|
|
2962
|
-
return
|
|
2962
|
+
return Ia ??= e(), Ia;
|
|
2963
2963
|
}
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2964
|
+
var La = [];
|
|
2965
|
+
function Ra(e) {
|
|
2966
|
+
La.push(e);
|
|
2967
|
+
}
|
|
2968
|
+
async function za() {
|
|
2969
|
+
let e = Ia ? (await Ia).memory.buffer.byteLength : 0;
|
|
2970
|
+
for (let t of La) e += t();
|
|
2971
|
+
return e;
|
|
2968
2972
|
}
|
|
2969
2973
|
//#endregion
|
|
2970
2974
|
//#region src/tasks/constructPolygonBatchedFeature.ts
|
|
2971
|
-
async function
|
|
2975
|
+
async function Ba(e, t, n, r) {
|
|
2972
2976
|
await Q();
|
|
2973
|
-
let i =
|
|
2977
|
+
let i = f(Fa(e), Pa(t), n, r ? Na(r) : void 0);
|
|
2974
2978
|
if (!i) return;
|
|
2975
|
-
let { result: a, transfers: o } =
|
|
2979
|
+
let { result: a, transfers: o } = ka(i);
|
|
2976
2980
|
return i.free(), $(a, o);
|
|
2977
2981
|
}
|
|
2978
2982
|
//#endregion
|
|
2979
2983
|
//#region src/helpers/transferConstructedPolylineGeometry.ts
|
|
2980
|
-
function
|
|
2981
|
-
let t = new
|
|
2984
|
+
function Va(e) {
|
|
2985
|
+
let t = new Ce(e);
|
|
2982
2986
|
return {
|
|
2983
2987
|
result: t,
|
|
2984
2988
|
transfers: [
|
|
@@ -2997,18 +3001,18 @@ function Ba(e) {
|
|
|
2997
3001
|
t.batch_id?.buffer,
|
|
2998
3002
|
t.batch_index?.buffer,
|
|
2999
3003
|
t.indices.buffer
|
|
3000
|
-
].filter(
|
|
3004
|
+
].filter(ve)
|
|
3001
3005
|
};
|
|
3002
3006
|
}
|
|
3003
3007
|
//#endregion
|
|
3004
3008
|
//#region src/utils/toPolylineMaterialLike.ts
|
|
3005
|
-
function
|
|
3009
|
+
function Ha(e) {
|
|
3006
3010
|
return new a(e.show, e.castShadow, e.receiveShadow, e.color, e.clampToGround, e.tiled, e.height, e.width, e.maxWidth, e.__internal__);
|
|
3007
3011
|
}
|
|
3008
3012
|
//#endregion
|
|
3009
3013
|
//#region src/utils/toTransferablePolylineBatchedFeatureLike.ts
|
|
3010
|
-
function
|
|
3011
|
-
let t = new
|
|
3014
|
+
function Ua(e) {
|
|
3015
|
+
let t = new c(e.crs, e.length);
|
|
3012
3016
|
return t.setPoints(e.points.length, (t) => {
|
|
3013
3017
|
t.set(e.points);
|
|
3014
3018
|
}), t.setPointsSizes(e.points_sizes.length, (t) => {
|
|
@@ -3017,21 +3021,23 @@ function Ha(e) {
|
|
|
3017
3021
|
t.set(e.batch_ids);
|
|
3018
3022
|
}), t.setBatchIndices(e.batch_indices.length, (t) => {
|
|
3019
3023
|
t.set(e.batch_indices);
|
|
3024
|
+
}), t.setRingFlags(e.ring_flags.length, (t) => {
|
|
3025
|
+
t.set(e.ring_flags);
|
|
3020
3026
|
}), t;
|
|
3021
3027
|
}
|
|
3022
3028
|
//#endregion
|
|
3023
3029
|
//#region src/tasks/constructPolylineBatchedFeature.ts
|
|
3024
|
-
async function
|
|
3030
|
+
async function Wa(e, t, n) {
|
|
3025
3031
|
await Q();
|
|
3026
|
-
let r =
|
|
3032
|
+
let r = p(Ua(e), Ha(t), n);
|
|
3027
3033
|
if (!r) return;
|
|
3028
|
-
let { result: i, transfers: a } =
|
|
3034
|
+
let { result: i, transfers: a } = Va(r);
|
|
3029
3035
|
return r.free(), $(i, a);
|
|
3030
3036
|
}
|
|
3031
3037
|
//#endregion
|
|
3032
3038
|
//#region src/helpers/transferReturnedConstructedTerrainMesh.ts
|
|
3033
|
-
function
|
|
3034
|
-
let t = new
|
|
3039
|
+
function Ga(e) {
|
|
3040
|
+
let t = new be(e), n = [
|
|
3035
3041
|
t.vertices.buffer,
|
|
3036
3042
|
t.uvs.buffer,
|
|
3037
3043
|
t.indices.buffer,
|
|
@@ -3044,26 +3050,26 @@ function Wa(e) {
|
|
|
3044
3050
|
}
|
|
3045
3051
|
//#endregion
|
|
3046
3052
|
//#region src/tasks/constructQuantizedMeshTerrainMesh.ts
|
|
3047
|
-
async function
|
|
3053
|
+
async function Ka(e, t, n, r, i, a, o, s) {
|
|
3048
3054
|
await Q();
|
|
3049
|
-
let
|
|
3050
|
-
return
|
|
3055
|
+
let c = m(e, Z(t), n, r, i, a, o, s), { result: l, transfers: u } = Ga(c);
|
|
3056
|
+
return c.free(), $({ result: l }, [...u]);
|
|
3051
3057
|
}
|
|
3052
3058
|
//#endregion
|
|
3053
3059
|
//#region src/utils/toTransferableRasterDEMDataLike.ts
|
|
3054
|
-
function
|
|
3055
|
-
return new
|
|
3060
|
+
function qa(e) {
|
|
3061
|
+
return new l(new n(e.decoder.r_scaler, e.decoder.g_scaler, e.decoder.b_scaler, e.decoder.offset, e.decoder.max_offset, e.decoder.min_offset, e.decoder.boundary, e.decoder.epsilon));
|
|
3056
3062
|
}
|
|
3057
3063
|
//#endregion
|
|
3058
3064
|
//#region src/tasks/constructTerrainMesh.ts
|
|
3059
|
-
async function
|
|
3065
|
+
async function Ja(e, t, n, r, i, a, o, s) {
|
|
3060
3066
|
await Q();
|
|
3061
|
-
let
|
|
3062
|
-
return
|
|
3067
|
+
let c = h(e, Z(t), qa(n), r + 1, i, a, o, s), { result: l, transfers: u } = Ga(c);
|
|
3068
|
+
return c.free(), $({ result: l }, [...u]);
|
|
3063
3069
|
}
|
|
3064
3070
|
//#endregion
|
|
3065
3071
|
//#region src/tasks/getImageDataFromBlob.ts
|
|
3066
|
-
async function
|
|
3072
|
+
async function Ya(e) {
|
|
3067
3073
|
let t = await createImageBitmap(e);
|
|
3068
3074
|
try {
|
|
3069
3075
|
let e = new OffscreenCanvas(t.width, t.height).getContext("2d");
|
|
@@ -3077,7 +3083,7 @@ async function Ja(e) {
|
|
|
3077
3083
|
}
|
|
3078
3084
|
//#endregion
|
|
3079
3085
|
//#region src/tasks/getImageDataFromImageBitmap.ts
|
|
3080
|
-
async function
|
|
3086
|
+
async function Xa(e, t) {
|
|
3081
3087
|
try {
|
|
3082
3088
|
let n = t.getContext("2d");
|
|
3083
3089
|
if (n === null) throw Error("failed to get context of canvas");
|
|
@@ -3088,9 +3094,9 @@ async function Ya(e, t) {
|
|
|
3088
3094
|
}
|
|
3089
3095
|
//#endregion
|
|
3090
3096
|
//#region src/tasks/parseMvtTile.ts
|
|
3091
|
-
async function
|
|
3097
|
+
async function Za(e, t, n, r, i, a, o) {
|
|
3092
3098
|
await Q();
|
|
3093
|
-
let s =
|
|
3099
|
+
let s = g(e, t, n, r, i ? Na(i) : void 0, a, o), c, l, u, d, f;
|
|
3094
3100
|
try {
|
|
3095
3101
|
c = s.f64_stream(), l = s.f32_stream(), u = s.u32_stream(), d = s.u8_stream(), f = s.meta();
|
|
3096
3102
|
} finally {
|
|
@@ -3111,56 +3117,56 @@ async function Xa(e, t, n, r, i, a, o) {
|
|
|
3111
3117
|
}
|
|
3112
3118
|
//#endregion
|
|
3113
3119
|
//#region src/tasks/upsampleQuantizedMeshTerrainMesh.ts
|
|
3114
|
-
async function
|
|
3120
|
+
async function Qa(e, t, n, r, i, a, o, s, c) {
|
|
3115
3121
|
await Q();
|
|
3116
|
-
let
|
|
3117
|
-
return
|
|
3122
|
+
let l = _(Z(e), Z(t), Ma(n), r, i, a, o, s, c), { result: u, transfers: d } = Ga(l);
|
|
3123
|
+
return l.free(), $(u, d);
|
|
3118
3124
|
}
|
|
3119
3125
|
//#endregion
|
|
3120
3126
|
//#region src/tasks/upsampleTerrainMesh.ts
|
|
3121
|
-
async function
|
|
3127
|
+
async function $a(e, t, n, r, i, a, o, s, c, l) {
|
|
3122
3128
|
await Q();
|
|
3123
|
-
let
|
|
3124
|
-
return
|
|
3129
|
+
let u = v(Z(e), Z(t), qa(n), r, i + 1, a, o, s, c, l), { result: d, transfers: f } = Ga(u);
|
|
3130
|
+
return u.free(), $(d, f);
|
|
3125
3131
|
}
|
|
3126
3132
|
//#endregion
|
|
3127
3133
|
//#region src/tasks/index.ts
|
|
3128
|
-
async function
|
|
3134
|
+
async function eo() {
|
|
3129
3135
|
await Q();
|
|
3130
3136
|
}
|
|
3131
|
-
var
|
|
3132
|
-
constructTerrainMesh:
|
|
3133
|
-
constructQuantizedMeshTerrainMesh:
|
|
3134
|
-
upsampleTerrainMesh:
|
|
3135
|
-
upsampleQuantizedMeshTerrainMesh:
|
|
3136
|
-
getImageDataFromImageBitmap:
|
|
3137
|
-
getImageDataFromBlob:
|
|
3138
|
-
constructPolygonBatchedFeature:
|
|
3139
|
-
constructPolylineBatchedFeature:
|
|
3140
|
-
parseMvtTile:
|
|
3141
|
-
warmUp:
|
|
3142
|
-
getWasmMemoryUsage:
|
|
3143
|
-
}, $ = (e, t) => new
|
|
3144
|
-
function
|
|
3145
|
-
|
|
3137
|
+
var to = {
|
|
3138
|
+
constructTerrainMesh: Ja,
|
|
3139
|
+
constructQuantizedMeshTerrainMesh: Ka,
|
|
3140
|
+
upsampleTerrainMesh: $a,
|
|
3141
|
+
upsampleQuantizedMeshTerrainMesh: Qa,
|
|
3142
|
+
getImageDataFromImageBitmap: Xa,
|
|
3143
|
+
getImageDataFromBlob: Ya,
|
|
3144
|
+
constructPolygonBatchedFeature: Ba,
|
|
3145
|
+
constructPolylineBatchedFeature: Wa,
|
|
3146
|
+
parseMvtTile: Za,
|
|
3147
|
+
warmUp: eo,
|
|
3148
|
+
getWasmMemoryUsage: za
|
|
3149
|
+
}, $ = (e, t) => new pe.Transfer(e, t), no = !1, ro = (...e) => (no ||= (pe.worker(to), io(), !0), pe.worker(...e));
|
|
3150
|
+
function io() {
|
|
3151
|
+
to.warmUp.worker?.addAbortListener(async () => {});
|
|
3146
3152
|
}
|
|
3147
3153
|
//#endregion
|
|
3148
3154
|
//#region src/pool.ts
|
|
3149
|
-
var { initializeWorkerPool:
|
|
3155
|
+
var { initializeWorkerPool: ao, terminateWorkerPool: oo, warmUpWorkerPool: so, worker: co, workerPoolStats: lo, workerPoolHeapStats: uo, probeWorkerPoolHeap: fo } = (() => {
|
|
3150
3156
|
let e;
|
|
3151
3157
|
return {
|
|
3152
3158
|
initializeWorkerPool: (t, n, r) => {
|
|
3153
3159
|
if (e) throw Error("Worker pool has already been initialized.");
|
|
3154
3160
|
e = {
|
|
3155
|
-
pool: new
|
|
3161
|
+
pool: new _e(t, n.total, r),
|
|
3156
3162
|
manager: n
|
|
3157
3163
|
};
|
|
3158
3164
|
},
|
|
3159
3165
|
terminateWorkerPool: () => {
|
|
3160
3166
|
e &&= (e.pool.terminate(), void 0);
|
|
3161
3167
|
},
|
|
3162
|
-
warmUpWorkerPool: () => (
|
|
3163
|
-
worker: () => (
|
|
3168
|
+
warmUpWorkerPool: () => (ne(e, "initializeWorkerPool() must be invoked first."), e.pool.warmUp()),
|
|
3169
|
+
worker: () => (ne(e, "initializeWorkerPool() must be invoked first."), {
|
|
3164
3170
|
pool: e.pool,
|
|
3165
3171
|
manager: e.manager
|
|
3166
3172
|
}),
|
|
@@ -3168,12 +3174,12 @@ var { initializeWorkerPool: io, terminateWorkerPool: ao, warmUpWorkerPool: oo, w
|
|
|
3168
3174
|
workerPoolHeapStats: () => e?.pool.heapStats(),
|
|
3169
3175
|
probeWorkerPoolHeap: () => e?.pool.probeHeap()
|
|
3170
3176
|
};
|
|
3171
|
-
})(),
|
|
3172
|
-
let { pool: e, manager: t } =
|
|
3177
|
+
})(), po = () => {
|
|
3178
|
+
let { pool: e, manager: t } = co();
|
|
3173
3179
|
return t.canIncrement() && e.canAcceptTasks();
|
|
3174
3180
|
};
|
|
3175
|
-
function
|
|
3176
|
-
let { pool: r, manager: i } =
|
|
3181
|
+
function mo(e, t, n) {
|
|
3182
|
+
let { pool: r, manager: i } = co();
|
|
3177
3183
|
i.increment();
|
|
3178
3184
|
try {
|
|
3179
3185
|
return r.exec(e, t, n).then((e) => (i.decrement(), e)).catch((e) => {
|
|
@@ -3185,7 +3191,7 @@ function po(e, t, n) {
|
|
|
3185
3191
|
}
|
|
3186
3192
|
//#endregion
|
|
3187
3193
|
//#region src/manager.ts
|
|
3188
|
-
var
|
|
3194
|
+
var ho = (e) => {
|
|
3189
3195
|
let t = 0, n = () => t !== e, r = () => t !== 0;
|
|
3190
3196
|
return {
|
|
3191
3197
|
total: e,
|
|
@@ -3205,4 +3211,4 @@ var mo = (e) => {
|
|
|
3205
3211
|
};
|
|
3206
3212
|
};
|
|
3207
3213
|
//#endregion
|
|
3208
|
-
export {
|
|
3214
|
+
export { po as canWorkerProcessImmediately, ho as createConcurrencyManager, ao as initializeWorkerPool, fo as probeWorkerPoolHeap, mo as queueTask, ro as registerTasks, Ra as registerWasmMemoryProbe, oo as terminateWorkerPool, $ as transfer, so as warmUpWorkerPool, uo as workerPoolHeapStats, lo as workerPoolStats };
|