j40-cejst-2/919652/d94c0b71-011c029866557a05ad48.js

1 line
2.7 MiB
JavaScript
Raw Normal View History

(self.webpackChunkjustice40_tool=self.webpackChunkjustice40_tool||[]).push([[644],{9910:function(module,__unused_webpack_exports,__webpack_require__){eval('__webpack_require__(5438);\n\n/* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v1.15.0/LICENSE.txt */\n(function (global, factory) {\n true ? module.exports = factory() : 0;\n})(this, function () {\n \'use strict\';\n /* eslint-disable */\n\n var shared, worker, maplibregl; // define gets called three times: one for each chunk. we rely on the order\n // they\'re imported to know which is which\n\n function define(_, chunk) {\n if (!shared) {\n shared = chunk;\n } else if (!worker) {\n worker = chunk;\n } else {\n var workerBundleString = \'var sharedChunk = {}; (\' + shared + \')(sharedChunk); (\' + worker + \')(sharedChunk);\';\n var sharedChunk = {};\n shared(sharedChunk);\n maplibregl = chunk(sharedChunk);\n\n if (typeof window !== \'undefined\') {\n maplibregl.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], {\n type: \'text/javascript\'\n }));\n }\n }\n }\n\n define(["exports"], function (t) {\n "use strict";\n\n function e(t, e) {\n return t(e = {\n exports: {}\n }, e.exports), e.exports;\n }\n\n var r = n;\n\n function n(t, e, r, n) {\n this.cx = 3 * t, this.bx = 3 * (r - t) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * e, this.by = 3 * (n - e) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = t, this.p1y = n, this.p2x = r, this.p2y = n;\n }\n\n n.prototype.sampleCurveX = function (t) {\n return ((this.ax * t + this.bx) * t + this.cx) * t;\n }, n.prototype.sampleCurveY = function (t) {\n return ((this.ay * t + this.by) * t + this.cy) * t;\n }, n.prototype.sampleCurveDerivativeX = function (t) {\n return (3 * this.ax * t + 2 * this.bx) * t + this.cx;\n }, n.prototype.solveCurveX = function (t, e) {\n var r, n, i, a, o;\n\n for (void 0 === e && (e = 1e-6), i = t, o = 0; o < 8; o++) {\n if (a = this.sampleCurveX(i) - t, Math.abs(a) < e) return i;\n var s = this.sampleCurveDerivativeX(i);\n if (Math.abs(s) < 1e-6) break;\n i -= a / s;\n }\n\n if ((i = t) < (r = 0)) return r;\n if (i > (n = 1)) return n;\n\n for (; r < n;) {\n if (a = this.sampleCurveX(i), Math.abs(a - t) < e) return i;\n t > a ? r = i : n = i, i = .5 * (n - r) + r;\n }\n\n return i;\n }, n.prototype.solve = function (t, e) {\n return this.sampleCurveY(this.solveCurveX(t, e));\n };\n var i = a;\n\n function a(t, e) {\n this.x = t, this.y = e;\n }\n\n a.prototype = {\n clone: function clone() {\n return new a(this.x, this.y);\n },\n add: function add(t) {\n return this.clone()._add(t);\n },\n sub: function sub(t) {\n return this.clone()._sub(t);\n },\n multByPoint: function multByPoint(t) {\n return this.clone()._multByPoint(t);\n },\n divByPoint: function divByPoint(t) {\n return this.clone()._divByPoint(t);\n },\n mult: function mult(t) {\n return this.clone()._mult(t);\n },\n div: function div(t) {\n return this.clone()._div(t);\n },\n rotate: function rotate(t) {\n return this.clone()._rotate(t);\n },\n rotateAround: function rotateAround(t, e) {\n return this.clone()._rotateAround(t, e);\n },\n matMult: function matMult(t) {\n return this.clone()._matMult(t);\n },\n unit: function unit() {\n return this.clone()._unit();\n },\n perp: function perp() {\n return this.clone()._perp();\n },\n round: function round() {\n return this.clone()._round();\n },\n mag: function mag() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n equals: function equals(t) {\n return thi