@thibezer/ui-components-kit 2.24.0 → 2.24.2
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/CHANGELOG.md +69 -1
- package/dist/botao.cjs +12 -1
- package/dist/botao.js +162 -3
- package/dist/camadas.cjs +311 -1
- package/dist/camadas.js +3244 -148
- package/dist/campo-texto.cjs +16 -1
- package/dist/campo-texto.js +308 -7
- package/dist/canvas.cjs +22 -22
- package/dist/canvas.js +230 -233
- package/dist/card.cjs +20 -1
- package/dist/card.js +145 -2
- package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
- package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +18 -0
- package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +4 -0
- package/dist/components/ui-card/ui-card.d.ts +4 -0
- package/dist/components/ui-editor-prancha/editor-modos.d.ts +10 -0
- package/dist/components/ui-editor-prancha/editor-tipos.d.ts +4 -0
- package/dist/components/ui-editor-prancha/index.d.ts +1 -0
- package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +39 -6
- package/dist/core.cjs +1 -1
- package/dist/core.js +44 -55
- package/dist/{cores-utils-BrdynxRd.js → cores-utils-DMyqWvZh.js} +2 -2
- package/dist/cores.cjs +32 -1
- package/dist/cores.js +300 -13
- package/dist/custom-elements.json +33962 -33439
- package/dist/data.cjs +28 -1
- package/dist/data.js +286 -99
- package/dist/{feature_caixa-2Sxv3tGa.js → feature_caixa-BVc5LenS.js} +42 -42
- package/dist/{feature_desenho-BVHivWIB.js → feature_desenho-CC8Mp5Gp.js} +2 -2
- package/dist/feedback.cjs +52 -1
- package/dist/feedback.js +655 -25
- package/dist/forms.cjs +66 -1
- package/dist/forms.js +1216 -39
- package/dist/{geometria-px-DUs5FgLE.js → geometria-px-DHMPUsxC.js} +47 -47
- package/dist/index.cjs +67 -1
- package/dist/index.js +1476 -274
- package/dist/kit-base-CGqj9aiD.cjs +2 -0
- package/dist/kit-base-_THn4w3u.js +1079 -0
- package/dist/mapa.cjs +5 -5
- package/dist/mapa.js +16 -17
- package/dist/modal.cjs +18 -1
- package/dist/modal.js +235 -29
- package/dist/motor.js +49 -49
- package/dist/prancha-nucleo.cjs +3 -1
- package/dist/prancha-nucleo.js +3120 -277
- package/dist/prancha.cjs +38 -1
- package/dist/prancha.js +3233 -228
- package/dist/register.cjs +1 -1
- package/dist/register.js +3 -20
- package/dist/seletor-mapa-base.cjs +13 -13
- package/dist/seletor-mapa-base.js +3 -5
- package/dist/tabela.cjs +142 -1
- package/dist/tabela.js +3773 -92
- package/dist/tipos-elementos.d.ts +5 -1
- package/dist/tipos-vue.d.ts +4 -1
- package/dist/tools.cjs +16 -1
- package/dist/tools.js +1564 -26
- package/dist/ui-seletor-cor-BGw8SBPm.cjs +83 -0
- package/dist/{ui-seletor-cor-Cd8jkzXG.js → ui-seletor-cor-B_twSm-V.js} +8 -9
- package/dist/utils-ClVgqVyJ.cjs +1 -0
- package/dist/utils-DrHoxxmf.js +83 -0
- package/package.json +43 -2
- package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
- package/dist/acessibilidade-CUlSXc2X.js +0 -38
- package/dist/altura-controle-ukMRPckR.cjs +0 -1
- package/dist/altura-controle-vxQiXG4q.js +0 -62
- package/dist/alvo-digitavel-CzCvNVQ3.js +0 -23
- package/dist/alvo-digitavel-DbH0hYFf.cjs +0 -1
- package/dist/degrade-CIxvOTUv.cjs +0 -1
- package/dist/degrade-gDa5sW__.js +0 -119
- package/dist/feature_caixa-CnYPKVFS.cjs +0 -1
- package/dist/feature_caixa-DCs9ZeSk.js +0 -1038
- package/dist/feature_historico-BAIYk1Me.cjs +0 -3
- package/dist/feature_historico-C4h9y5fu.js +0 -3039
- package/dist/form-atalhos-7JTYvumA.cjs +0 -1
- package/dist/form-atalhos-DDTlpgaB.js +0 -203
- package/dist/form-erros-CwPz7Jr4.cjs +0 -1
- package/dist/form-erros-DT5HklfD.js +0 -184
- package/dist/form-submissao-C-SPRKgT.js +0 -61
- package/dist/form-submissao-DxKO5MHI.cjs +0 -1
- package/dist/form-validacao-BlQFxUVj.js +0 -104
- package/dist/form-validacao-DIeyQVH5.cjs +0 -1
- package/dist/geometria-px-DKrWq_XY.js +0 -639
- package/dist/leaflet-CEPcxGWV.cjs +0 -1
- package/dist/leaflet-DOq10gfg.js +0 -84
- package/dist/leaflet-loader-94z5VsdY.cjs +0 -2
- package/dist/leaflet-loader-Cjcdgj5R.js +0 -21
- package/dist/listener-bag-D5omxZ9h.cjs +0 -1
- package/dist/listener-bag-DQgv7OON.js +0 -34
- package/dist/motor-By2te6PZ.js +0 -1400
- package/dist/motor-CkMxd378.cjs +0 -1
- package/dist/opcoes-CupvWVIm.js +0 -24
- package/dist/opcoes-vdAUY5OI.cjs +0 -1
- package/dist/parts-CaoQiCfI.js +0 -7
- package/dist/parts-vQa2873h.cjs +0 -1
- package/dist/prancha-paleta-BZ-9QDgh.js +0 -5276
- package/dist/prancha-paleta-Bb24vP71.cjs +0 -17
- package/dist/ssr-safe-5cWfJP-s.js +0 -10
- package/dist/ssr-safe-CiHD1adl.cjs +0 -1
- package/dist/svg-seguro-ChVJ2L2z.js +0 -74
- package/dist/svg-seguro-J2RM1Ssf.cjs +0 -1
- package/dist/ui-badge-DE58YSBY.cjs +0 -28
- package/dist/ui-badge-KgmI3jOD.js +0 -201
- package/dist/ui-botao-Dz8YvmiA.cjs +0 -12
- package/dist/ui-botao-zLkcMMyP.js +0 -168
- package/dist/ui-bus-CUd99VJi.js +0 -177
- package/dist/ui-bus-XqBLlTYQ.cjs +0 -1
- package/dist/ui-camadas-DoHPnbQm.js +0 -3133
- package/dist/ui-camadas-Vx7wYD4D.cjs +0 -311
- package/dist/ui-campo-texto-Dliyt9qr.cjs +0 -16
- package/dist/ui-campo-texto-btevggO3.js +0 -379
- package/dist/ui-card-7IEYbCN0.js +0 -150
- package/dist/ui-card-Bx8EyzYY.cjs +0 -20
- package/dist/ui-card-DFnRp9bl.js +0 -146
- package/dist/ui-card-DrWVJQKw.cjs +0 -20
- package/dist/ui-controle-cores-B1w_Yl69.cjs +0 -32
- package/dist/ui-controle-cores-BRjMvmMn.js +0 -291
- package/dist/ui-controle-cores-BcH9k2Fa.js +0 -292
- package/dist/ui-controle-cores-CvSTP6gJ.cjs +0 -32
- package/dist/ui-editor-prancha-CIngI6yI.js +0 -2886
- package/dist/ui-editor-prancha-DorSe6sC.cjs +0 -31
- package/dist/ui-linha-2kY7TNUJ.cjs +0 -38
- package/dist/ui-linha-B4mBRm1x.cjs +0 -61
- package/dist/ui-linha-DTEIIww4.js +0 -1167
- package/dist/ui-linha-KFF86FW5.js +0 -752
- package/dist/ui-modal-BrXzVZ65.js +0 -216
- package/dist/ui-modal-lARKzEVZ.cjs +0 -18
- package/dist/ui-paleta-ferramentas-Bu6JaT0s.js +0 -1245
- package/dist/ui-paleta-ferramentas-D3Jhwt26.cjs +0 -21
- package/dist/ui-paleta-ferramentas-DebHYiwd.js +0 -1615
- package/dist/ui-paleta-ferramentas-Dgejtluh.js +0 -1423
- package/dist/ui-paleta-ferramentas-hzyo8wBt.cjs +0 -22
- package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +0 -22
- package/dist/ui-seletor-cor-0RLjcME6.cjs +0 -83
- package/dist/ui-seletor-cor-CMuuW-Ym.cjs +0 -83
- package/dist/ui-seletor-cor-DFIQ1sin.js +0 -405
- package/dist/ui-skeleton-BLEV6h3k.js +0 -653
- package/dist/ui-skeleton-B_XTaGrX.cjs +0 -52
- package/dist/ui-switch-BXIDwC-Y.cjs +0 -66
- package/dist/ui-switch-Ctxk-jKS.js +0 -1212
- package/dist/ui-tabela-CXxqbwXv.cjs +0 -7
- package/dist/ui-tabela-Cd0vOwnT.js +0 -1459
- package/dist/ui-tabela-propriedades-C5cIF5ES.js +0 -3779
- package/dist/ui-tabela-propriedades-CJyo568n.js +0 -3517
- package/dist/ui-tabela-propriedades-D96Djx-q.cjs +0 -136
- package/dist/ui-tabela-propriedades-Wa34hfIr.cjs +0 -142
- package/dist/ui-tabela-propriedades-ahQhQauu.js +0 -2329
- package/dist/ui-tabela-propriedades-w9JWhjHy.cjs +0 -142
- package/dist/zero-js-triggers-CJT988bR.js +0 -83
- package/dist/zero-js-triggers-CgM9IIQB.cjs +0 -1
|
@@ -1,639 +0,0 @@
|
|
|
1
|
-
var lt = Object.defineProperty;
|
|
2
|
-
var ft = (t, n, o) => n in t ? lt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o;
|
|
3
|
-
var y = (t, n, o) => ft(t, typeof n != "symbol" ? n + "" : n, o);
|
|
4
|
-
function N(t) {
|
|
5
|
-
return t.partes && t.partes.length > 1 ? t.partes : [t.coordenadas];
|
|
6
|
-
}
|
|
7
|
-
function tn(t) {
|
|
8
|
-
return t.tipo === "LineString" && !!t.partes && t.partes.length > 1;
|
|
9
|
-
}
|
|
10
|
-
function mt(t) {
|
|
11
|
-
return t.length > 1 ? { tipo: "LineString", coordenadas: t[0], partes: t } : { tipo: "LineString", coordenadas: t[0] };
|
|
12
|
-
}
|
|
13
|
-
const P = 6378137, b = 1 / 298.257222101, G = b * (2 - b), m = (t) => t * Math.PI / 180;
|
|
14
|
-
function U(t) {
|
|
15
|
-
const n = Math.sin(m(t)), o = 1 - G * n * n;
|
|
16
|
-
return { N: P / Math.sqrt(o), M: P * (1 - G) / (o * Math.sqrt(o)) };
|
|
17
|
-
}
|
|
18
|
-
function nn(t) {
|
|
19
|
-
const { M: n, N: o } = U(t);
|
|
20
|
-
return { lat: m(1) * n, lng: m(1) * o * Math.cos(m(t)) };
|
|
21
|
-
}
|
|
22
|
-
function pt(t, n) {
|
|
23
|
-
const o = P * (1 - b), a = b, i = m(n[1] - t[1]), r = Math.atan((1 - a) * Math.tan(m(t[0]))), s = Math.atan((1 - a) * Math.tan(m(n[0]))), e = Math.sin(r), c = Math.cos(r), u = Math.sin(s), d = Math.cos(s);
|
|
24
|
-
let l = i, h = 0, f = 0, A = 0, p = 0, M = 0;
|
|
25
|
-
for (let S = 0; S < 100; S++) {
|
|
26
|
-
const k = Math.sin(l), z = Math.cos(l);
|
|
27
|
-
if (h = Math.hypot(d * k, c * u - e * d * z), h === 0) return 0;
|
|
28
|
-
f = e * u + c * d * z, A = Math.atan2(h, f);
|
|
29
|
-
const O = c * d * k / h;
|
|
30
|
-
p = 1 - O * O, M = p === 0 ? 0 : f - 2 * e * u / p;
|
|
31
|
-
const E = a / 16 * p * (4 + a * (4 - 3 * p)), dt = l;
|
|
32
|
-
if (l = i + (1 - E) * a * O * (A + E * h * (M + E * f * (-1 + 2 * M * M))), Math.abs(l - dt) < 1e-12) break;
|
|
33
|
-
}
|
|
34
|
-
const L = p * (P * P - o * o) / (o * o), D = 1 + L / 16384 * (4096 + L * (-768 + L * (320 - 175 * L))), g = L / 1024 * (256 + L * (-128 + L * (74 - 47 * L))), x = g * h * (M + g / 4 * (f * (-1 + 2 * M * M) - g / 6 * M * (-3 + 4 * h * h) * (-3 + 4 * M * M)));
|
|
35
|
-
return o * D * (A - x);
|
|
36
|
-
}
|
|
37
|
-
function V(t, n) {
|
|
38
|
-
const o = n[0] - t[0], a = n[1] - t[1];
|
|
39
|
-
if (Math.abs(o) < 0.1 && Math.abs(a) < 0.1) {
|
|
40
|
-
const { M: i, N: r } = U((t[0] + n[0]) / 2), s = m(o) * i, e = m(a) * r * Math.cos(m((t[0] + n[0]) / 2));
|
|
41
|
-
return Math.hypot(e, s);
|
|
42
|
-
}
|
|
43
|
-
return pt(t, n);
|
|
44
|
-
}
|
|
45
|
-
function Mt(t, n = !1) {
|
|
46
|
-
let o = 0;
|
|
47
|
-
for (let a = 1; a < t.length; a++) o += V(t[a - 1], t[a]);
|
|
48
|
-
return n && t.length > 2 && (o += V(t[t.length - 1], t[0])), o;
|
|
49
|
-
}
|
|
50
|
-
function q(t) {
|
|
51
|
-
const n = t.length;
|
|
52
|
-
if (n < 3) return 0;
|
|
53
|
-
let o = 0, a = 0;
|
|
54
|
-
for (let e = 0; e < n; e++) {
|
|
55
|
-
const c = t[(e - 1 + n) % n], u = t[e], d = t[(e + 1) % n];
|
|
56
|
-
o += m(d[1] - c[1]) * Math.sin(m(u[0])), a += u[0];
|
|
57
|
-
}
|
|
58
|
-
const { M: i, N: r } = U(a / n), s = Math.abs(o * i * r / 2);
|
|
59
|
-
return Number.isFinite(s) ? s : 0;
|
|
60
|
-
}
|
|
61
|
-
function Lt(t) {
|
|
62
|
-
const [n, ...o] = t;
|
|
63
|
-
return n ? Math.max(0, q(n) - o.reduce((a, i) => a + q(i), 0)) : 0;
|
|
64
|
-
}
|
|
65
|
-
const At = new Intl.NumberFormat("pt-BR", { minimumFractionDigits: 4, maximumFractionDigits: 4 }), H = new Intl.NumberFormat("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
66
|
-
function yt(t) {
|
|
67
|
-
return `${At.format(t / 1e4)} ha`;
|
|
68
|
-
}
|
|
69
|
-
function vt(t) {
|
|
70
|
-
return t >= 1e3 ? `${H.format(t / 1e3)} km` : `${H.format(t)} m`;
|
|
71
|
-
}
|
|
72
|
-
function xt(t, n) {
|
|
73
|
-
return t.tipo === "Polygon" ? n ? n.area(t.aneis) : Lt(t.aneis) : t.tipo === "Circle" ? Math.PI * t.raioMetros ** 2 : null;
|
|
74
|
-
}
|
|
75
|
-
function It(t, n) {
|
|
76
|
-
const o = (a, i = !1) => n ? n.comprimento(a, i) : Mt(a, i);
|
|
77
|
-
return t.tipo === "LineString" ? N(t).reduce((a, i) => a + o(i), 0) : t.tipo === "Polygon" ? o(t.aneis[0] ?? [], !0) : t.tipo === "Circle" ? 2 * Math.PI * t.raioMetros : null;
|
|
78
|
-
}
|
|
79
|
-
function on(t, n) {
|
|
80
|
-
var i;
|
|
81
|
-
const o = n ?? "name";
|
|
82
|
-
if (o === "area") {
|
|
83
|
-
const r = xt(t.geometria);
|
|
84
|
-
return r === null ? "" : yt(r);
|
|
85
|
-
}
|
|
86
|
-
if (o === "extensao") {
|
|
87
|
-
const r = It(t.geometria);
|
|
88
|
-
return r === null ? "" : vt(r);
|
|
89
|
-
}
|
|
90
|
-
if (o === "id") return t.id;
|
|
91
|
-
const a = (i = t.propriedades) == null ? void 0 : i[o];
|
|
92
|
-
return a != null && a !== "" ? String(a) : n ? "" : t.id;
|
|
93
|
-
}
|
|
94
|
-
function gt(t, n) {
|
|
95
|
-
const o = n / 111320, a = o / Math.max(0.01, Math.cos(m(t[0])));
|
|
96
|
-
return [[t[0] - o, t[1] - a], [t[0] + o, t[1] + a]];
|
|
97
|
-
}
|
|
98
|
-
function St(t, n) {
|
|
99
|
-
let o;
|
|
100
|
-
switch (t.tipo) {
|
|
101
|
-
case "Point":
|
|
102
|
-
case "Text":
|
|
103
|
-
o = [t.coordenada];
|
|
104
|
-
break;
|
|
105
|
-
case "LineString":
|
|
106
|
-
o = N(t).flat();
|
|
107
|
-
break;
|
|
108
|
-
case "Polygon":
|
|
109
|
-
o = t.aneis.flat();
|
|
110
|
-
break;
|
|
111
|
-
case "Circle":
|
|
112
|
-
o = n ? n.extremosDoCirculo(t.centro, t.raioMetros) : gt(t.centro, t.raioMetros);
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
const a = o.map((r) => r[0]), i = o.map((r) => r[1]);
|
|
116
|
-
return [[Math.min(...a), Math.min(...i)], [Math.max(...a), Math.max(...i)]];
|
|
117
|
-
}
|
|
118
|
-
const C = 16, Pt = 256;
|
|
119
|
-
function X(t, n) {
|
|
120
|
-
const [[o, a], [i, r]] = St(t.geometria, n);
|
|
121
|
-
return { minLon: a, minLat: o, maxLon: r, maxLat: i };
|
|
122
|
-
}
|
|
123
|
-
function j(t, n) {
|
|
124
|
-
return t.minLon <= n.maxLon && t.maxLon >= n.minLon && t.minLat <= n.maxLat && t.maxLat >= n.minLat;
|
|
125
|
-
}
|
|
126
|
-
function B(t) {
|
|
127
|
-
let n = 1 / 0, o = 1 / 0, a = -1 / 0, i = -1 / 0;
|
|
128
|
-
for (const r of t)
|
|
129
|
-
r.minLon < n && (n = r.minLon), r.minLat < o && (o = r.minLat), r.maxLon > a && (a = r.maxLon), r.maxLat > i && (i = r.maxLat);
|
|
130
|
-
return { minLon: n, minLat: o, maxLon: a, maxLat: i };
|
|
131
|
-
}
|
|
132
|
-
function Z(t) {
|
|
133
|
-
const n = t.length, o = Math.ceil(n / C), i = Math.ceil(Math.sqrt(o)) * C, r = [...t].sort((e, c) => e.minLon + e.maxLon - (c.minLon + c.maxLon)), s = [];
|
|
134
|
-
for (let e = 0; e < n; e += i) {
|
|
135
|
-
const c = r.slice(e, e + i).sort((u, d) => u.minLat + u.maxLat - (d.minLat + d.maxLat));
|
|
136
|
-
for (let u = 0; u < c.length; u += C) s.push(c.slice(u, u + C));
|
|
137
|
-
}
|
|
138
|
-
return s;
|
|
139
|
-
}
|
|
140
|
-
function Ct(t) {
|
|
141
|
-
if (t.length === 0) return null;
|
|
142
|
-
let n = Z(t).map((o) => ({ ...B(o), folhas: o }));
|
|
143
|
-
for (; n.length > 1; )
|
|
144
|
-
n = Z(n).map((o) => ({ ...B(o), filhos: o }));
|
|
145
|
-
return n[0];
|
|
146
|
-
}
|
|
147
|
-
class an {
|
|
148
|
-
/** `espaco` define o envelope do círculo (sem ele, o geográfico de sempre). */
|
|
149
|
-
constructor(n) {
|
|
150
|
-
y(this, "raiz", null);
|
|
151
|
-
/** Itens vivos: a fonte da verdade (a árvore pode conter itens já removidos/atualizados). */
|
|
152
|
-
y(this, "itens", /* @__PURE__ */ new Map());
|
|
153
|
-
/** Itens que entraram ou mudaram depois da última montagem. */
|
|
154
|
-
y(this, "delta", /* @__PURE__ */ new Map());
|
|
155
|
-
/** Ids que estão na árvore mas foram removidos ou substituídos. */
|
|
156
|
-
y(this, "obsoletos", /* @__PURE__ */ new Set());
|
|
157
|
-
this.espaco = n;
|
|
158
|
-
}
|
|
159
|
-
get tamanho() {
|
|
160
|
-
return this.itens.size;
|
|
161
|
-
}
|
|
162
|
-
construir(n) {
|
|
163
|
-
this.itens.clear();
|
|
164
|
-
for (const o of n)
|
|
165
|
-
o.excluida || this.itens.set(o.id, { id: o.id, ...X(o, this.espaco) });
|
|
166
|
-
this.remontar();
|
|
167
|
-
}
|
|
168
|
-
inserir(n) {
|
|
169
|
-
this.atualizar(n);
|
|
170
|
-
}
|
|
171
|
-
/** Insere ou substitui; feição `excluida` sai do índice. */
|
|
172
|
-
atualizar(n) {
|
|
173
|
-
if (n.excluida) {
|
|
174
|
-
this.remover(n.id);
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const o = { id: n.id, ...X(n, this.espaco) };
|
|
178
|
-
this.itens.has(n.id) && this.obsoletos.add(n.id), this.itens.set(n.id, o), this.delta.set(n.id, o), this.compactarSeNecessario();
|
|
179
|
-
}
|
|
180
|
-
remover(n) {
|
|
181
|
-
this.itens.delete(n) && (this.obsoletos.add(n), this.delta.delete(n), this.compactarSeNecessario());
|
|
182
|
-
}
|
|
183
|
-
limpar() {
|
|
184
|
-
this.itens.clear(), this.remontar();
|
|
185
|
-
}
|
|
186
|
-
/** Ids das feições cujo envelope toca `caixa`. */
|
|
187
|
-
consultar(n) {
|
|
188
|
-
const o = [], a = this.raiz ? [this.raiz] : [];
|
|
189
|
-
for (; a.length > 0; ) {
|
|
190
|
-
const i = a.pop();
|
|
191
|
-
if (j(i, n))
|
|
192
|
-
if (i.folhas)
|
|
193
|
-
for (const r of i.folhas)
|
|
194
|
-
!this.obsoletos.has(r.id) && j(r, n) && o.push(r.id);
|
|
195
|
-
else i.filhos && a.push(...i.filhos);
|
|
196
|
-
}
|
|
197
|
-
for (const i of this.delta.values()) j(i, n) && o.push(i.id);
|
|
198
|
-
return o;
|
|
199
|
-
}
|
|
200
|
-
intersecta(n) {
|
|
201
|
-
return this.consultar(n).length > 0;
|
|
202
|
-
}
|
|
203
|
-
/** Envelope da feição indexada, se houver. */
|
|
204
|
-
caixaDe(n) {
|
|
205
|
-
return this.itens.get(n);
|
|
206
|
-
}
|
|
207
|
-
compactarSeNecessario() {
|
|
208
|
-
this.delta.size + this.obsoletos.size > Math.max(Pt, this.itens.size * 0.1) && this.remontar();
|
|
209
|
-
}
|
|
210
|
-
remontar() {
|
|
211
|
-
this.raiz = Ct([...this.itens.values()]), this.delta.clear(), this.obsoletos.clear();
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
const bt = 17, Nt = 9, Tt = 1.2;
|
|
215
|
-
function Dt(t) {
|
|
216
|
-
return !Number.isFinite(t) || t >= bt ? 0 : 360 / (256 * 2 ** t) * Tt;
|
|
217
|
-
}
|
|
218
|
-
function Y(t) {
|
|
219
|
-
return Number.isFinite(t) ? 1 / Math.max(0.05, Math.cos(Math.max(-85, Math.min(85, t)) * Math.PI / 180)) : 1;
|
|
220
|
-
}
|
|
221
|
-
function Ot(t, n, o, a) {
|
|
222
|
-
const i = o[1] - n[1], r = (o[0] - n[0]) * a, s = i * i + r * r, e = (t[0] - n[0]) * a;
|
|
223
|
-
let c = s === 0 ? 0 : ((t[1] - n[1]) * i + e * r) / s;
|
|
224
|
-
return c = Math.max(0, Math.min(1, c)), Math.hypot(t[1] - (n[1] + c * i), e - c * r);
|
|
225
|
-
}
|
|
226
|
-
function rt(t, n, o = 1) {
|
|
227
|
-
if (!(n > 0) || t.length < 3) return t;
|
|
228
|
-
const a = Number.isFinite(o) && o > 0 ? o : 1, i = new Uint8Array(t.length);
|
|
229
|
-
i[0] = 1, i[t.length - 1] = 1;
|
|
230
|
-
const r = [[0, t.length - 1]];
|
|
231
|
-
for (; r.length > 0; ) {
|
|
232
|
-
const [s, e] = r.pop();
|
|
233
|
-
let c = 0, u = -1;
|
|
234
|
-
for (let d = s + 1; d < e; d++) {
|
|
235
|
-
const l = Ot(t[d], t[s], t[e], a);
|
|
236
|
-
l > c && (c = l, u = d);
|
|
237
|
-
}
|
|
238
|
-
u !== -1 && c > n && (i[u] = 1, r.push([s, u], [u, e]));
|
|
239
|
-
}
|
|
240
|
-
return t.filter((s, e) => i[e] === 1);
|
|
241
|
-
}
|
|
242
|
-
function Et(t, n, o = 1) {
|
|
243
|
-
if (!(n > 0) || t.length < 4) return t;
|
|
244
|
-
const a = [...t, t[0]], i = rt(a, n, o);
|
|
245
|
-
return i.pop(), i.length >= 3 ? i : t;
|
|
246
|
-
}
|
|
247
|
-
function jt(t) {
|
|
248
|
-
return (t.tipo === "LineString" || t.tipo === "Polygon") && t.curva ? 0 : t.tipo === "LineString" ? N(t).reduce((n, o) => n + o.length, 0) : t.tipo === "Polygon" ? t.aneis.reduce((n, o) => n + o.length, 0) : 0;
|
|
249
|
-
}
|
|
250
|
-
function rn(t, n) {
|
|
251
|
-
var a, i, r, s;
|
|
252
|
-
const o = Dt(n);
|
|
253
|
-
if (o === 0 || jt(t) < Nt) return t;
|
|
254
|
-
if (t.tipo === "LineString") {
|
|
255
|
-
const e = N(t), c = Y(((i = (a = e[0]) == null ? void 0 : a[0]) == null ? void 0 : i[0]) ?? NaN);
|
|
256
|
-
return mt(e.map((u) => rt(u, o, c)));
|
|
257
|
-
}
|
|
258
|
-
if (t.tipo === "Polygon") {
|
|
259
|
-
const e = Y(((s = (r = t.aneis[0]) == null ? void 0 : r[0]) == null ? void 0 : s[0]) ?? NaN);
|
|
260
|
-
return { tipo: "Polygon", aneis: t.aneis.map((c) => Et(c, o, e)) };
|
|
261
|
-
}
|
|
262
|
-
return t;
|
|
263
|
-
}
|
|
264
|
-
const wt = /* @__PURE__ */ new Set(["previa", "prévia", "preview", "rascunho", "draft", "proposta"]);
|
|
265
|
-
function $(t) {
|
|
266
|
-
var o, a;
|
|
267
|
-
const n = [t.status, (o = t.propriedades) == null ? void 0 : o.status, (a = t.propriedades) == null ? void 0 : a.tipo_geometria];
|
|
268
|
-
for (const i of n)
|
|
269
|
-
if (typeof i == "string" && wt.has(i.trim().toLowerCase())) return "previa";
|
|
270
|
-
return "oficial";
|
|
271
|
-
}
|
|
272
|
-
function w(t) {
|
|
273
|
-
var o;
|
|
274
|
-
const n = t.entidadeId ?? ((o = t.propriedades) == null ? void 0 : o.entidadeId);
|
|
275
|
-
return typeof n == "string" || typeof n == "number" ? String(n) : t.id;
|
|
276
|
-
}
|
|
277
|
-
const F = (t, n) => `${t}\0${n}`;
|
|
278
|
-
class en {
|
|
279
|
-
constructor() {
|
|
280
|
-
/** Mostra as prévias de todas as entidades. */
|
|
281
|
-
y(this, "global", !1);
|
|
282
|
-
y(this, "individuais", /* @__PURE__ */ new Set());
|
|
283
|
-
}
|
|
284
|
-
alternarIndividual(n, o) {
|
|
285
|
-
const a = F(n, o);
|
|
286
|
-
return this.individuais.has(a) ? this.individuais.delete(a) : this.individuais.add(a), this.individuais.has(a);
|
|
287
|
-
}
|
|
288
|
-
definirIndividual(n, o, a) {
|
|
289
|
-
const i = F(n, o);
|
|
290
|
-
a ? this.individuais.add(i) : this.individuais.delete(i);
|
|
291
|
-
}
|
|
292
|
-
individualAtiva(n, o) {
|
|
293
|
-
return this.individuais.has(F(n, o));
|
|
294
|
-
}
|
|
295
|
-
/** Entidades da camada que têm geometria oficial. */
|
|
296
|
-
static oficiais(n) {
|
|
297
|
-
const o = /* @__PURE__ */ new Set();
|
|
298
|
-
for (const a of n) !a.excluida && $(a) === "oficial" && o.add(w(a));
|
|
299
|
-
return o;
|
|
300
|
-
}
|
|
301
|
-
/** A feição aparece? `comOficial` = entidades da camada com geometria oficial (ver `oficiais`). */
|
|
302
|
-
visivel(n, o) {
|
|
303
|
-
if ($(n) === "oficial") return !0;
|
|
304
|
-
const a = w(n);
|
|
305
|
-
return this.global || !o.has(a) || this.individualAtiva(n.camadaId, a);
|
|
306
|
-
}
|
|
307
|
-
/** A prévia está sendo mostrada por pedido (global ou individual), e não só por falta de oficial? */
|
|
308
|
-
previaSolicitada(n) {
|
|
309
|
-
return this.global || this.individualAtiva(n.camadaId, w(n));
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
const et = /* @__PURE__ */ new Set(["simetrico", "suave", "livre"]), J = 1e-6;
|
|
313
|
-
function sn(t) {
|
|
314
|
-
if (!t.entrada && !t.saida) return "canto";
|
|
315
|
-
if (t.modo && et.has(t.modo)) return t.modo;
|
|
316
|
-
if (!t.entrada || !t.saida) return "simetrico";
|
|
317
|
-
const n = t.ponto[0] - t.entrada[0], o = t.ponto[1] - t.entrada[1], a = t.saida[0] - t.ponto[0], i = t.saida[1] - t.ponto[1], r = Math.hypot(n, o), s = Math.hypot(a, i);
|
|
318
|
-
return r === 0 || s === 0 || !(Math.abs(n * i - o * a) <= J * r * s && n * a + o * i > 0) ? "livre" : Math.abs(r - s) <= J * Math.max(r, s) ? "simetrico" : "suave";
|
|
319
|
-
}
|
|
320
|
-
const Ft = 24, _t = 2, Q = (t) => typeof t == "number" && Number.isFinite(t), _ = (t) => Array.isArray(t) && t.length === 2 && Q(t[0]) && Q(t[1]);
|
|
321
|
-
function cn(t, n) {
|
|
322
|
-
return [2 * t[0] - n[0], 2 * t[1] - n[1]];
|
|
323
|
-
}
|
|
324
|
-
function Rt(t) {
|
|
325
|
-
return t.some((n) => n.entrada !== void 0 || n.saida !== void 0);
|
|
326
|
-
}
|
|
327
|
-
function st(t, n) {
|
|
328
|
-
return [t.saida ?? t.ponto, n.entrada ?? n.ponto];
|
|
329
|
-
}
|
|
330
|
-
function ct(t, n) {
|
|
331
|
-
const o = [];
|
|
332
|
-
for (let a = 0; a < t - 1; a++) o.push([a, a + 1]);
|
|
333
|
-
return n && t > 2 && o.push([t - 1, 0]), o;
|
|
334
|
-
}
|
|
335
|
-
function $t(t, n, o, a, i) {
|
|
336
|
-
const r = 1 - i, s = r * r * r, e = 3 * r * r * i, c = 3 * r * i * i, u = i * i * i;
|
|
337
|
-
return [s * t[0] + e * n[0] + c * o[0] + u * a[0], s * t[1] + e * n[1] + c * o[1] + u * a[1]];
|
|
338
|
-
}
|
|
339
|
-
function un(t, n = !1, o = Ft) {
|
|
340
|
-
if (t.length === 0) return [];
|
|
341
|
-
const a = [[t[0].ponto[0], t[0].ponto[1]]];
|
|
342
|
-
for (const [i, r] of ct(t.length, n)) {
|
|
343
|
-
const s = t[i], e = t[r];
|
|
344
|
-
if (!(s.saida === void 0 && e.entrada === void 0)) {
|
|
345
|
-
const [u, d] = st(s, e);
|
|
346
|
-
for (let l = 1; l < o; l++) a.push($t(s.ponto, u, d, e.ponto, l / o));
|
|
347
|
-
}
|
|
348
|
-
r !== 0 && a.push([e.ponto[0], e.ponto[1]]);
|
|
349
|
-
}
|
|
350
|
-
return a;
|
|
351
|
-
}
|
|
352
|
-
function Ut(t, n) {
|
|
353
|
-
if (t.length === 0) return [];
|
|
354
|
-
const o = [{ cmd: "M", pts: [t[0].ponto] }];
|
|
355
|
-
for (const [a, i] of ct(t.length, n)) {
|
|
356
|
-
const r = t[a], s = t[i];
|
|
357
|
-
if (r.saida === void 0 && s.entrada === void 0)
|
|
358
|
-
o.push({ cmd: "L", pts: [s.ponto] });
|
|
359
|
-
else {
|
|
360
|
-
const [e, c] = st(r, s);
|
|
361
|
-
o.push({ cmd: "C", pts: [e, c, s.ponto] });
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return o;
|
|
365
|
-
}
|
|
366
|
-
function hn(t, n, o) {
|
|
367
|
-
const a = (r) => String(Math.round(r * 100) / 100), i = Ut(t, n).map((r) => r.cmd + r.pts.map((s) => {
|
|
368
|
-
const e = o(s);
|
|
369
|
-
return `${a(e.x)} ${a(e.y)}`;
|
|
370
|
-
}).join(" ")).join("");
|
|
371
|
-
return i && n ? `${i}Z` : i;
|
|
372
|
-
}
|
|
373
|
-
function dn(t, n = _t) {
|
|
374
|
-
if (!Array.isArray(t) || t.length < n) return null;
|
|
375
|
-
const o = [];
|
|
376
|
-
for (const a of t) {
|
|
377
|
-
if (!a || typeof a != "object" || !_(a.ponto)) return null;
|
|
378
|
-
const i = a, r = { ponto: [i.ponto[0], i.ponto[1]] };
|
|
379
|
-
_(i.entrada) && (r.entrada = [i.entrada[0], i.entrada[1]]), _(i.saida) && (r.saida = [i.saida[0], i.saida[1]]), typeof i.modo == "string" && et.has(i.modo) && (r.entrada || r.saida) && (r.modo = i.modo), o.push(r);
|
|
380
|
-
}
|
|
381
|
-
return Rt(o) ? o : null;
|
|
382
|
-
}
|
|
383
|
-
function ln(t, n) {
|
|
384
|
-
return t.map((o) => {
|
|
385
|
-
const a = { ponto: n(o.ponto) };
|
|
386
|
-
return o.entrada && (a.entrada = n(o.entrada)), o.saida && (a.saida = n(o.saida)), o.modo && (a.modo = o.modo), a;
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
function fn(t) {
|
|
390
|
-
return t.tipo === "LineString" ? t.curva && t.curva.length >= 2 && !(t.partes && t.partes.length > 1) ? t.curva : null : t.tipo === "Polygon" && t.curva && t.curva.length >= 3 && t.aneis.length === 1 ? t.curva : null;
|
|
391
|
-
}
|
|
392
|
-
const kt = [
|
|
393
|
-
"continua",
|
|
394
|
-
"tracejada",
|
|
395
|
-
"tracejada-curta",
|
|
396
|
-
"tracejada-longa",
|
|
397
|
-
"pontilhada",
|
|
398
|
-
"traco-ponto",
|
|
399
|
-
"traco-ponto-ponto",
|
|
400
|
-
"oculta",
|
|
401
|
-
"centro",
|
|
402
|
-
"fantasma",
|
|
403
|
-
"divisa"
|
|
404
|
-
], zt = {
|
|
405
|
-
tracejada: [12, 6],
|
|
406
|
-
"tracejada-curta": [6, 4],
|
|
407
|
-
"tracejada-longa": [24, 8],
|
|
408
|
-
pontilhada: [0, 4],
|
|
409
|
-
"traco-ponto": [12, 4, 0, 4],
|
|
410
|
-
"traco-ponto-ponto": [12, 4, 0, 4, 0, 4],
|
|
411
|
-
oculta: [6, 3],
|
|
412
|
-
centro: [24, 4, 6, 4],
|
|
413
|
-
fantasma: [24, 4, 6, 4, 6, 4],
|
|
414
|
-
divisa: [12, 4, 12, 4, 0, 4]
|
|
415
|
-
}, K = { arredondada: "round", reta: "butt", quadrada: "square" }, W = { arredondada: "round", chanfrada: "bevel", angular: "miter" }, Gt = 0.05, Vt = 100, tt = {
|
|
416
|
-
continuous: "continua",
|
|
417
|
-
dashed: "tracejada",
|
|
418
|
-
dashed2: "tracejada-curta",
|
|
419
|
-
dashedx2: "tracejada-longa",
|
|
420
|
-
dot: "pontilhada",
|
|
421
|
-
dotted: "pontilhada",
|
|
422
|
-
dashdot: "traco-ponto",
|
|
423
|
-
divide: "traco-ponto-ponto",
|
|
424
|
-
hidden: "oculta",
|
|
425
|
-
center: "centro",
|
|
426
|
-
phantom: "fantasma",
|
|
427
|
-
border: "divisa"
|
|
428
|
-
};
|
|
429
|
-
function nt(t) {
|
|
430
|
-
return typeof t == "string" && kt.includes(t);
|
|
431
|
-
}
|
|
432
|
-
function ut(t) {
|
|
433
|
-
if (nt(t)) return t;
|
|
434
|
-
if (typeof t != "string") return;
|
|
435
|
-
const n = t.trim().toLowerCase();
|
|
436
|
-
return nt(n) ? n : Object.prototype.hasOwnProperty.call(tt, n) ? tt[n] : void 0;
|
|
437
|
-
}
|
|
438
|
-
function ot(t) {
|
|
439
|
-
return typeof t == "string" && Object.prototype.hasOwnProperty.call(K, t) ? K[t] : void 0;
|
|
440
|
-
}
|
|
441
|
-
function at(t) {
|
|
442
|
-
return typeof t == "string" && Object.prototype.hasOwnProperty.call(W, t) ? W[t] : void 0;
|
|
443
|
-
}
|
|
444
|
-
function qt(t) {
|
|
445
|
-
return typeof t != "number" || !Number.isFinite(t) || t <= 0 ? 1 : Math.min(Vt, Math.max(Gt, t));
|
|
446
|
-
}
|
|
447
|
-
function it(t, n, o = 1, a = "round") {
|
|
448
|
-
const i = ut(t);
|
|
449
|
-
if (!i || i === "continua") return;
|
|
450
|
-
const r = Number.isFinite(n) && n > 0 ? n : 1, s = qt(o) * Math.max(1, r / 2), e = a === "butt" ? r : 0, c = a === "butt" ? 0 : r;
|
|
451
|
-
return zt[i].map((u, d) => {
|
|
452
|
-
const l = d % 2 === 0 ? u === 0 ? e : u * s : u * s + c;
|
|
453
|
-
return Math.round(l * 100) / 100;
|
|
454
|
-
}).join(" ");
|
|
455
|
-
}
|
|
456
|
-
const Ht = "#38bdf8", Xt = "#38bdf8", Bt = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\([0-9.,%\s\/-]+\)|[a-z]{3,20})$/i;
|
|
457
|
-
function R(t, n) {
|
|
458
|
-
return typeof t == "string" && Bt.test(t.trim()) ? t.trim() : n;
|
|
459
|
-
}
|
|
460
|
-
const v = (t) => typeof t == "number" && Number.isFinite(t);
|
|
461
|
-
function mn(t, n, o = !1) {
|
|
462
|
-
const a = t.estilo ?? {}, i = R(a.corTraco ?? n.corPrimaria, Ht), r = t.geometria.tipo, s = r === "Polygon" || r === "Circle", e = r === "Point", c = e && R(a.corContorno, "") || i, u = e && v(a.espessuraContorno) && a.espessuraContorno >= 0 ? a.espessuraContorno : void 0, d = u ?? (v(a.espessuraTraco) ? a.espessuraTraco : void 0) ?? (v(n.espessuraLinha) ? n.espessuraLinha : 2), l = v(a.opacidadePreenchimento) ? a.opacidadePreenchimento : s ? 0.2 : 0.85, h = o ? d + 2 : d, f = ot(a.terminacaoTraco) ?? ot(n.terminacaoLinha) ?? "round", A = v(a.opacidadeTraco) ? a.opacidadeTraco : v(n.opacidadeLinha) ? n.opacidadeLinha : 1;
|
|
463
|
-
return {
|
|
464
|
-
cor: o ? Xt : c,
|
|
465
|
-
traco: !(u === 0 && !o),
|
|
466
|
-
peso: h,
|
|
467
|
-
dash: Zt(t, n, h, f),
|
|
468
|
-
// selecionada fica opaca: a seleção precisa aparecer mesmo numa linha quase transparente
|
|
469
|
-
opacidadeTraco: o ? 1 : Math.min(1, Math.max(0, A)),
|
|
470
|
-
terminacao: f,
|
|
471
|
-
juncao: at(a.juncaoTraco) ?? at(n.juncaoLinha) ?? "round",
|
|
472
|
-
deslocamentoDash: v(a.deslocamentoTracejado) ? a.deslocamentoTracejado : 0,
|
|
473
|
-
preencher: s || e,
|
|
474
|
-
corPreenchimento: R(a.corPreenchimento, i),
|
|
475
|
-
opacidadePreenchimento: o ? Math.min(1, l + 0.18) : l
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
function Zt(t, n, o, a) {
|
|
479
|
-
const i = t.estilo ?? {};
|
|
480
|
-
if (i.dashArray) return i.dashArray;
|
|
481
|
-
if (i.tipoLinha !== void 0 && i.tipoLinha !== null) {
|
|
482
|
-
const r = it(i.tipoLinha, o, i.escalaTipoLinha ?? n.escalaTipoLinha, a);
|
|
483
|
-
if (r || ut(i.tipoLinha) === "continua") return r;
|
|
484
|
-
}
|
|
485
|
-
return $(t) === "previa" ? "6 4" : n.dashArray ? n.dashArray : it(n.tipoLinha, o, n.escalaTipoLinha, a);
|
|
486
|
-
}
|
|
487
|
-
function pn(t, n) {
|
|
488
|
-
var a;
|
|
489
|
-
const o = ((a = t.estilo) == null ? void 0 : a.tamanhoIcone) ?? n.tamanhoMarcador ?? 8;
|
|
490
|
-
return (v(o) && o > 0 ? o : 8) / 2;
|
|
491
|
-
}
|
|
492
|
-
class Mn {
|
|
493
|
-
constructor() {
|
|
494
|
-
y(this, "porChave", /* @__PURE__ */ new Map());
|
|
495
|
-
}
|
|
496
|
-
interno(n) {
|
|
497
|
-
const o = `${n.cor}|${n.traco ? 1 : 0}|${n.peso}|${n.dash ?? ""}|${n.opacidadeTraco ?? 1}|${n.terminacao ?? ""}|${n.juncao ?? ""}|${n.deslocamentoDash ?? 0}|${n.preencher ? 1 : 0}|${n.corPreenchimento}|${n.opacidadePreenchimento}`, a = this.porChave.get(o);
|
|
498
|
-
return a || (this.porChave.set(o, n), n);
|
|
499
|
-
}
|
|
500
|
-
limpar() {
|
|
501
|
-
this.porChave.clear();
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
const Yt = 256, I = 85.0511287798, Jt = 4007501668557849e-8;
|
|
505
|
-
function ht(t, n, o, a, i) {
|
|
506
|
-
const r = o > I ? I : o < -I ? -I : o, s = Math.sin(r * Math.PI / 180);
|
|
507
|
-
t[n] = (a + 180) / 360 * i, t[n + 1] = (0.5 - Math.log((1 + s) / (1 - s)) / (4 * Math.PI)) * i;
|
|
508
|
-
}
|
|
509
|
-
const T = (t) => Yt * 2 ** t;
|
|
510
|
-
function Ln(t, n, o) {
|
|
511
|
-
const a = T(o);
|
|
512
|
-
return [Math.atan(Math.sinh(Math.PI * (1 - 2 * n / a))) * 180 / Math.PI, t / a * 360 - 180];
|
|
513
|
-
}
|
|
514
|
-
function An(t, n) {
|
|
515
|
-
const o = T(n), a = new Float64Array(t.length * 2);
|
|
516
|
-
for (let i = 0; i < t.length; i++) {
|
|
517
|
-
const r = t[i];
|
|
518
|
-
ht(a, i * 2, r[0], r[1], o);
|
|
519
|
-
}
|
|
520
|
-
return a;
|
|
521
|
-
}
|
|
522
|
-
function yn(t, n, o) {
|
|
523
|
-
const a = new Float64Array(2);
|
|
524
|
-
return ht(a, 0, t, n, T(o)), a;
|
|
525
|
-
}
|
|
526
|
-
function Qt(t, n) {
|
|
527
|
-
const o = Math.max(-I, Math.min(I, t));
|
|
528
|
-
return Jt * Math.cos(o * Math.PI / 180) / T(n);
|
|
529
|
-
}
|
|
530
|
-
function vn(t, n, o) {
|
|
531
|
-
const a = Qt(t, o), i = n / a;
|
|
532
|
-
return Number.isFinite(i) && i >= 0 ? i : 0;
|
|
533
|
-
}
|
|
534
|
-
function xn(t) {
|
|
535
|
-
let n = 1 / 0, o = 1 / 0, a = -1 / 0, i = -1 / 0;
|
|
536
|
-
for (const r of t)
|
|
537
|
-
for (let s = 0; s + 1 < r.length; s += 2) {
|
|
538
|
-
const e = r[s], c = r[s + 1];
|
|
539
|
-
Number.isFinite(e) && Number.isFinite(c) && (e < n && (n = e), e > a && (a = e), c < o && (o = c), c > i && (i = c));
|
|
540
|
-
}
|
|
541
|
-
return n <= a && o <= i ? { minX: n, minY: o, maxX: a, maxY: i } : null;
|
|
542
|
-
}
|
|
543
|
-
function Kt(t, n, o, a, i, r) {
|
|
544
|
-
const s = i - o, e = r - a, c = s * s + e * e;
|
|
545
|
-
let u = c === 0 ? 0 : ((t - o) * s + (n - a) * e) / c;
|
|
546
|
-
return u = u < 0 ? 0 : u > 1 ? 1 : u, Math.hypot(t - (o + u * s), n - (a + u * e));
|
|
547
|
-
}
|
|
548
|
-
function In(t, n, o) {
|
|
549
|
-
const a = t.length >> 1;
|
|
550
|
-
if (!(n > 0) || a < 3) return t;
|
|
551
|
-
let i = t, r = a;
|
|
552
|
-
o && (i = new Float64Array((a + 1) * 2), i.set(t), i[a * 2] = t[0], i[a * 2 + 1] = t[1], r = a + 1);
|
|
553
|
-
const s = new Uint8Array(r);
|
|
554
|
-
s[0] = 1, s[r - 1] = 1;
|
|
555
|
-
const e = [0, r - 1];
|
|
556
|
-
for (; e.length > 0; ) {
|
|
557
|
-
const h = e.pop(), f = e.pop();
|
|
558
|
-
let A = 0, p = -1;
|
|
559
|
-
const M = i[f * 2], L = i[f * 2 + 1], D = i[h * 2], g = i[h * 2 + 1];
|
|
560
|
-
for (let x = f + 1; x < h; x++) {
|
|
561
|
-
const S = Kt(i[x * 2], i[x * 2 + 1], M, L, D, g);
|
|
562
|
-
S > A && (A = S, p = x);
|
|
563
|
-
}
|
|
564
|
-
p !== -1 && A > n && (s[p] = 1, e.push(f, p, p, h));
|
|
565
|
-
}
|
|
566
|
-
const c = o ? r - 1 : r;
|
|
567
|
-
let u = 0;
|
|
568
|
-
for (let h = 0; h < c; h++) s[h] && u++;
|
|
569
|
-
if (o && u < 3 || u === c) return t;
|
|
570
|
-
const d = new Float64Array(u * 2);
|
|
571
|
-
let l = 0;
|
|
572
|
-
for (let h = 0; h < c; h++)
|
|
573
|
-
s[h] && (d[l++] = i[h * 2], d[l++] = i[h * 2 + 1]);
|
|
574
|
-
return d;
|
|
575
|
-
}
|
|
576
|
-
export {
|
|
577
|
-
T as $,
|
|
578
|
-
Et as A,
|
|
579
|
-
rt as B,
|
|
580
|
-
hn as C,
|
|
581
|
-
Ht as D,
|
|
582
|
-
Xt as E,
|
|
583
|
-
$ as F,
|
|
584
|
-
w as G,
|
|
585
|
-
jt as H,
|
|
586
|
-
an as I,
|
|
587
|
-
rn as J,
|
|
588
|
-
j as K,
|
|
589
|
-
mn as L,
|
|
590
|
-
Nt as M,
|
|
591
|
-
pn as N,
|
|
592
|
-
on as O,
|
|
593
|
-
Ln as P,
|
|
594
|
-
xt as Q,
|
|
595
|
-
It as R,
|
|
596
|
-
yt as S,
|
|
597
|
-
kt as T,
|
|
598
|
-
vt as U,
|
|
599
|
-
en as V,
|
|
600
|
-
Mn as W,
|
|
601
|
-
X,
|
|
602
|
-
xn as Y,
|
|
603
|
-
bt as Z,
|
|
604
|
-
nt as _,
|
|
605
|
-
Lt as a,
|
|
606
|
-
Y as a0,
|
|
607
|
-
Qt as a1,
|
|
608
|
-
yn as a2,
|
|
609
|
-
ht as a3,
|
|
610
|
-
An as a4,
|
|
611
|
-
vn as a5,
|
|
612
|
-
In as a6,
|
|
613
|
-
Dt as a7,
|
|
614
|
-
tn as b,
|
|
615
|
-
Mt as c,
|
|
616
|
-
V as d,
|
|
617
|
-
gt as e,
|
|
618
|
-
ln as f,
|
|
619
|
-
mt as g,
|
|
620
|
-
st as h,
|
|
621
|
-
$t as i,
|
|
622
|
-
un as j,
|
|
623
|
-
cn as k,
|
|
624
|
-
Rt as l,
|
|
625
|
-
nn as m,
|
|
626
|
-
St as n,
|
|
627
|
-
ot as o,
|
|
628
|
-
N as p,
|
|
629
|
-
ut as q,
|
|
630
|
-
at as r,
|
|
631
|
-
qt as s,
|
|
632
|
-
sn as t,
|
|
633
|
-
R as u,
|
|
634
|
-
it as v,
|
|
635
|
-
Kt as w,
|
|
636
|
-
fn as x,
|
|
637
|
-
Ut as y,
|
|
638
|
-
dn as z
|
|
639
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=e=>e==null?"":String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),I=(e,l=3)=>e==null||isNaN(e)?"—":e.toLocaleString("pt-BR",{minimumFractionDigits:l,maximumFractionDigits:l});function D(e,l,r){if(!Number.isFinite(e)||!Number.isFinite(l)||Math.abs(e)>84||Math.abs(l)>180)return null;const o=6378137,t=1/298.257222101,n=.9996,a=t*(2-t),i=a/(1-a),f=Number.isInteger(r)&&r>=1&&r<=60?r:Math.floor((l+180)/6)+1,d=(f*6-183)*(Math.PI/180),s=e*(Math.PI/180),E=l*(Math.PI/180),v=Math.sin(s),x=Math.cos(s),A=Math.tan(s),w=o/Math.sqrt(1-a*v*v),p=A*A,c=i*x*x,g=(E-d)*x,b=a*a,m=b*a,P=o*((1-a/4-3*b/64-5*m/256)*s-(3*a/8+3*b/32+45*m/1024)*Math.sin(2*s)+(15*b/256+45*m/1024)*Math.sin(4*s)-35*m/3072*Math.sin(6*s)),h=g*g,z=h*g,y=h*h,C=y*g,N=z*z,R=n*w*(g+(1-p+c)*z/6+(5-18*p+p*p+72*c-58*i)*C/120)+5e5;let M=n*(P+w*A*(h/2+(5-p+9*c+4*c*c)*y/24+(61-58*p+p*p+600*c-330*i)*N/720));const W=e<0?"S":"N";return e<0&&(M+=1e7),{este:Math.round(R*1e3)/1e3,norte:Math.round(M*1e3)/1e3,fuso:f,hemisferio:W}}const k=(e,l,r)=>{if(e==null||l===null||l===void 0)return null;const o=a=>{if(typeof a=="number")return a;if(typeof a=="string"){const i=a.trim().replace(",",".");return parseFloat(i)}return NaN},t=o(e),n=o(l);return isNaN(t)||isNaN(n)?null:Math.abs(t)>90||Math.abs(n)>180?(console.warn(`[gerencigeo-canvas] Coordenada fora do limite geográfico WGS-84 (Lat: ${t}, Lon: ${n}). Parece ser projeção UTM plana.`),null):t===0&&n===0&&!(r!=null&&r.aceitarOrigem)?null:{lat:t,lon:n}},q=(e,l)=>!e||!Array.isArray(e)||e.length===0?"":`<div class="ui-popup-actions-footer">${e.map(o=>{const t=o.variante||"secondary";return`<button type="button" class="ui-popup-btn ui-popup-btn-${u(t)}" data-acao-id="${u(o.id)}" data-elemento-id="${u(String(l))}">${u(o.rotulo)}</button>`}).join("")}</div>`,T=(e,l,r,o)=>{const t=e!=null&&e.getElement?e.getElement():null;if(!t)return;t.querySelectorAll(".ui-popup-btn").forEach(a=>{a.onclick=i=>{i.preventDefault(),i.stopPropagation();const f=a.getAttribute("data-acao-id"),d=a.getAttribute("data-elemento-id")??(l==null?void 0:l.id);f&&d!==void 0&&d!==null&&(r.onPopupAcao&&r.onPopupAcao(f,d,l),o&&typeof o.closePopup=="function"?o.closePopup():e._map&&typeof e._map.closePopup=="function"&&e._map.closePopup())}})},S=(e,l)=>{const r={};return e.forEach(o=>{let t;l&&o[l]!==void 0&&o[l]!==null?t=o[l]:(t=o.grupoId??o.grupoKey,t==null&&(o.matricula_id!==void 0&&o.matricula_id!==null?t=`mat_${o.matricula_id}`:o.planilha_origem?t=o.planilha_origem:t="padrao"));const n=String(t);r[n]||(r[n]=[]),r[n].push(o)}),r},H=e=>[...e].sort((l,r)=>{const o=t=>{const n=t.ordem??t.indice??t.index??t.seq??t.ordem_caminhamento??t.id,a=Number(n);return isNaN(a)?999999:a};return o(l)-o(r)}),O=e=>{if(!e||typeof e!="string")return null;const l=/(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;let r,o=0,t=0,n=0;for(;(r=l.exec(e))!==null;){const a=parseFloat(r[1]),i=parseFloat(r[2]);if(!isNaN(a)&&!isNaN(i)){const f=k(i,a)||k(a,i);f&&(o+=f.lat,t+=f.lon,n++)}}return n>0?{lat:o/n,lon:t/n}:null},U='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}';exports.agruparPontosPorChave=S;exports.bindPopupAcoesEvents=T;exports.escapeHtml=u;exports.extrairCentroDeWkt=O;exports.formatUTM=I;exports.latLonParaUtm=D;exports.leafletCss=U;exports.ordenarPontosPorSequencia=H;exports.parseCoordenada=k;exports.renderPopupAcoesHtml=q;
|