@datagouv/components-next 1.3.0 → 1.4.0
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/dist/{Control-b-43UT2B.js → Control-B9WQxlpJ.js} +10 -10
- package/dist/{Datafair.client-BrjISlaZ.js → Datafair.client-D_6yzJUG.js} +9 -9
- package/dist/{Event-py_AAwJY.js → Event-iXDrp-fy.js} +15 -15
- package/dist/{Image-BHQYZWzH.js → Image-mNMBOofs.js} +22 -22
- package/dist/ImagePreview.client-B0iPhFm3.js +36 -0
- package/dist/{JsonPreview.client-DivFAnbN.js → JsonPreview.client-DSl1kiwC.js} +2 -2
- package/dist/{Map-CtP7leHl.js → Map-BfqKMw0S.js} +165 -165
- package/dist/{MapContainer.client-Cq8tNLZZ.js → MapContainer.client-BSfpk_rT.js} +17 -17
- package/dist/{OSM-gdDSIsDA.js → OSM-CcrUhItr.js} +1 -1
- package/dist/{PdfPreview.client-BNBgLsK2.js → PdfPreview.client-BANFeM6K.js} +438 -427
- package/dist/{Pmtiles.client-CQi5Rw8W.js → Pmtiles.client-DH9ZrsZR.js} +6177 -5967
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js +60 -0
- package/dist/{ScaleLine-hG-FhNqy.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-D6rFonpT.js → Tile-CSpn0Ca8.js} +47 -47
- package/dist/{TileImage-cfrEgz5y.js → TileImage-CpbaEFwd.js} +44 -44
- package/dist/{View-vp7vDb9q.js → View-BYBpt-AU.js} +58 -58
- package/dist/{XmlPreview.client-XCsNvnsZ.js → XmlPreview.client-KCB5mwVf.js} +3 -3
- package/dist/{common-C8efyyuc.js → common-BoeTUnDZ.js} +58 -58
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +199 -172
- package/dist/components.css +1 -1
- package/dist/{index-CXUamc8Z.js → index-DHWzX5vK.js} +4668 -4466
- package/dist/{leaflet-src-BRKv9Ksv.js → leaflet-src-pVQfonBI.js} +1 -1
- package/dist/{main-DKu5SOAl.js → main-BDcYkhOc.js} +41684 -33432
- package/dist/{proj-CsjVeojN.js → proj-DxGbobp7.js} +110 -110
- package/dist/{tilecoord-CPcQJnrF.js → tilecoord-DvX7WWiA.js} +94 -94
- package/dist/{vue3-xml-viewer.common-BIaEIFYG.js → vue3-xml-viewer.common-Bdcn54ST.js} +1 -1
- package/package.json +28 -27
- package/src/components/ActivityList/ActivityList.vue +21 -12
- package/src/components/AppLink.vue +3 -0
- package/src/components/BannerAction.vue +6 -2
- package/src/components/Chart/ChartViewer.vue +111 -17
- package/src/components/Chart/ChartViewerWrapper.vue +28 -16
- package/src/components/ChartCard.vue +112 -0
- package/src/components/CopyButton.vue +6 -2
- package/src/components/DataserviceCard.vue +23 -6
- package/src/components/DataserviceQuality.vue +82 -0
- package/src/components/DataserviceQualityInline.vue +31 -0
- package/src/components/DataserviceQualityTooltipContent.vue +79 -0
- package/src/components/DatasetCard.vue +17 -6
- package/src/components/DatasetInformation/DatasetTemporalitySection.vue +7 -4
- package/src/components/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/DiscussionMessageCard.vue +14 -15
- package/src/components/Form/SchemaSelect.vue +2 -0
- package/src/components/FormattedDate.vue +69 -0
- package/src/components/LoadingBlock.vue +4 -1
- package/src/components/ObjectCard.vue +4 -1
- package/src/components/ObjectCardOwner.vue +13 -1
- package/src/components/Pagination.vue +18 -58
- package/src/components/Placeholder.vue +3 -2
- package/src/components/PostCard.vue +13 -15
- package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
- package/src/components/ResourceAccordion/Downloads.vue +19 -7
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -8
- package/src/components/ResourceAccordion/Metadata.vue +21 -5
- package/src/components/ResourceAccordion/PdfPreview.client.vue +36 -12
- package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
- package/src/components/ResourceAccordion/Pmtiles.client.vue +27 -18
- package/src/components/ResourceAccordion/Preview.vue +8 -4
- package/src/components/ResourceAccordion/PreviewWrapper.vue +17 -10
- package/src/components/ResourceAccordion/ResourceAccordion.vue +29 -9
- package/src/components/ResourceExplorer/ResourceExplorer.vue +105 -209
- package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +79 -0
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +104 -71
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +136 -183
- package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
- package/src/components/ResourceExplorer/ResourceSelector.vue +24 -86
- package/src/components/ResourceExplorer/ResourceViewerHeader.vue +124 -0
- package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +96 -0
- package/src/components/ResourceListItem.vue +168 -0
- package/src/components/ReuseCard.vue +18 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +4 -3
- package/src/components/SchemaCard.vue +10 -1
- package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +12 -8
- package/src/components/Search/SearchInput.vue +1 -1
- package/src/components/Search/Sidemenu.vue +4 -3
- package/src/components/SmallChart.vue +11 -10
- package/src/components/StatBox.vue +13 -5
- package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
- package/src/components/TabularExplorer/TabularCell.vue +7 -8
- package/src/components/TabularExplorer/TabularCellPopover.vue +19 -3
- package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
- package/src/components/TabularExplorer/TabularDateField.vue +41 -0
- package/src/components/TabularExplorer/TabularDateFilter.vue +403 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +122 -913
- package/src/components/TabularExplorer/TabularFilterContent.vue +33 -25
- package/src/components/TabularExplorer/TabularFilterPopover.vue +7 -7
- package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
- package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
- package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
- package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
- package/src/components/TabularExplorer/TabularTable.vue +484 -0
- package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
- package/src/components/TabularExplorer/types.ts +32 -20
- package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
- package/src/components/TabularExplorer/useTabularContext.ts +82 -0
- package/src/components/TopicCard.vue +15 -14
- package/src/composables/useActiveDescendant.ts +5 -0
- package/src/composables/useDatasetResources.ts +164 -0
- package/src/composables/useHasTabularData.ts +2 -1
- package/src/composables/useResizable.ts +46 -0
- package/src/composables/useResourceCapabilities.ts +47 -39
- package/src/composables/useTranslation.ts +24 -9
- package/src/config.ts +1 -0
- package/src/functions/charts.ts +32 -1
- package/src/functions/dates.ts +26 -7
- package/src/functions/helpers.ts +15 -0
- package/src/functions/metrics.ts +57 -56
- package/src/functions/owned.ts +21 -0
- package/src/functions/paginate.ts +46 -0
- package/src/functions/resourceCapabilities.ts +34 -0
- package/src/functions/resources.ts +83 -0
- package/src/functions/schemas.ts +27 -0
- package/src/functions/scroll.ts +20 -0
- package/src/functions/tabular.ts +119 -4
- package/src/functions/tabularApi.ts +1 -43
- package/src/main.ts +32 -6
- package/src/types/dataservices.ts +15 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +2 -2
- package/src/types/visualizations.ts +5 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-C3dDzrIr.js +0 -61
- /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
- /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
- /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as
|
|
1
|
+
import { a6 as y, B as it, v as Ft, A as Tt, al as x, a9 as Et, aN as vt, y as St, z as F, ak as q, r as Zt, x as T, s as j, m as zt, aO as Pt, p as st, w as Xt, q as Yt, a1 as bt, H as ot, o as rt, aP as Gt, J as at, I as G, am as Lt, aQ as L, M as Ot, ad as p, j as S, R as W, aG as Vt, aR as kt, ai as K, k as Ut, L as Dt, V as Ht, ag as Y, aS as qt } from "./proj-DxGbobp7.js";
|
|
2
|
+
import { d as Wt, e as Kt, u as lt, v as $t, w as Bt, a as N, j as Jt, x as Qt } from "./common-BoeTUnDZ.js";
|
|
3
3
|
const I = {
|
|
4
4
|
ANIMATING: 0,
|
|
5
5
|
INTERACTING: 1
|
|
@@ -177,7 +177,7 @@ class oe extends it {
|
|
|
177
177
|
const e = this.computeExtent(this.extent_);
|
|
178
178
|
(isNaN(e[0]) || isNaN(e[1])) && Et(e), this.extentRevision_ = this.getRevision();
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return vt(this.extent_, t);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Rotate the geometry around a given coordinate. This modifies the geometry
|
|
@@ -282,9 +282,9 @@ class oe extends it {
|
|
|
282
282
|
* @api
|
|
283
283
|
*/
|
|
284
284
|
transform(t, e) {
|
|
285
|
-
const n =
|
|
285
|
+
const n = St(t), i = n.getUnits() == "tile-pixels" ? function(o, r, l) {
|
|
286
286
|
const a = n.getExtent(), c = n.getWorldExtent(), h = F(c) / F(a);
|
|
287
|
-
|
|
287
|
+
Wt(
|
|
288
288
|
B,
|
|
289
289
|
c[0],
|
|
290
290
|
c[3],
|
|
@@ -301,9 +301,9 @@ class oe extends it {
|
|
|
301
301
|
l,
|
|
302
302
|
B,
|
|
303
303
|
r
|
|
304
|
-
), g =
|
|
304
|
+
), g = q(n, e);
|
|
305
305
|
return g ? g(u, u, l) : u;
|
|
306
|
-
} :
|
|
306
|
+
} : q(n, e);
|
|
307
307
|
return this.applyTransform(i), this;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
@@ -1131,7 +1131,7 @@ function pt(s, t, e, n, i, o, r) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
return isNaN(_) && (_ = i[o]), r ? (r.push(_, f, C), r) : [_, f, C];
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function ve(s, t, e, n, i) {
|
|
1135
1135
|
let o = [];
|
|
1136
1136
|
for (let r = 0, l = e.length; r < l; ++r) {
|
|
1137
1137
|
const a = e[r];
|
|
@@ -1182,7 +1182,7 @@ function It(s, t, e, n, i) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
return !0;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Se(s, t, e, n, i) {
|
|
1186
1186
|
for (let o = 0, r = e.length; o < r; ++o) {
|
|
1187
1187
|
const l = e[o];
|
|
1188
1188
|
if (!It(s, t, l, n, i))
|
|
@@ -1231,7 +1231,7 @@ function ze(s, t) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return e;
|
|
1233
1233
|
}
|
|
1234
|
-
class
|
|
1234
|
+
class v extends O {
|
|
1235
1235
|
/**
|
|
1236
1236
|
* @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
|
|
1237
1237
|
* Array of linear rings that define the polygon. The first linear ring of the
|
|
@@ -1269,7 +1269,7 @@ class S extends O {
|
|
|
1269
1269
|
* @override
|
|
1270
1270
|
*/
|
|
1271
1271
|
clone() {
|
|
1272
|
-
const t = new
|
|
1272
|
+
const t = new v(
|
|
1273
1273
|
this.flatCoordinates.slice(),
|
|
1274
1274
|
this.layout,
|
|
1275
1275
|
this.ends_.slice()
|
|
@@ -1469,7 +1469,7 @@ class S extends O {
|
|
|
1469
1469
|
e,
|
|
1470
1470
|
0,
|
|
1471
1471
|
n
|
|
1472
|
-
), new
|
|
1472
|
+
), new v(e, "XY", n);
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Get the type of this geometry.
|
|
@@ -1523,7 +1523,7 @@ function Pe(s, t, e, n) {
|
|
|
1523
1523
|
i,
|
|
1524
1524
|
Gt(s, t, 2 * Math.PI * o / e, n)
|
|
1525
1525
|
);
|
|
1526
|
-
return i.push(i[0], i[1]), new
|
|
1526
|
+
return i.push(i[0], i[1]), new v(i, "XY", [i.length]);
|
|
1527
1527
|
}
|
|
1528
1528
|
function tt(s) {
|
|
1529
1529
|
if (ot(s))
|
|
@@ -1540,7 +1540,7 @@ function tt(s) {
|
|
|
1540
1540
|
t,
|
|
1541
1541
|
e
|
|
1542
1542
|
];
|
|
1543
|
-
return new
|
|
1543
|
+
return new v(o, "XY", [o.length]);
|
|
1544
1544
|
}
|
|
1545
1545
|
function U(s, t, e, n) {
|
|
1546
1546
|
const i = G(t) / e[0], o = F(t) / e[1];
|
|
@@ -1676,7 +1676,7 @@ class Re extends it {
|
|
|
1676
1676
|
* @param {ViewOptions} [options] View options.
|
|
1677
1677
|
*/
|
|
1678
1678
|
constructor(t) {
|
|
1679
|
-
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = L(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection &&
|
|
1679
|
+
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = L(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && qt(), t.center && (t.center = p(t.center, this.projection_)), t.extent && (t.extent = S(t.extent, this.projection_)), this.applyOptions_(t);
|
|
1680
1680
|
}
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Set up the view with the given options.
|
|
@@ -1812,7 +1812,7 @@ class Re extends it {
|
|
|
1812
1812
|
};
|
|
1813
1813
|
if (h.center && (u.sourceCenter = r, u.targetCenter = h.center.slice(), r = u.targetCenter), h.zoom !== void 0 ? (u.sourceResolution = l, u.targetResolution = this.getResolutionForZoom(h.zoom), l = u.targetResolution) : h.resolution && (u.sourceResolution = l, u.targetResolution = h.resolution, l = u.targetResolution), h.rotation !== void 0) {
|
|
1814
1814
|
u.sourceRotation = a;
|
|
1815
|
-
const g =
|
|
1815
|
+
const g = W(h.rotation - a + Math.PI, 2 * Math.PI) - Math.PI;
|
|
1816
1816
|
u.targetRotation = a + g, a = u.targetRotation;
|
|
1817
1817
|
}
|
|
1818
1818
|
jt(u) ? u.complete = !0 : o += u.duration, c.push(u);
|
|
@@ -1897,7 +1897,7 @@ class Re extends it {
|
|
|
1897
1897
|
this.nextResolution_ = a.targetResolution, this.targetResolution_ = g, this.applyTargetState_(!0);
|
|
1898
1898
|
}
|
|
1899
1899
|
if (a.sourceRotation !== void 0 && a.targetRotation !== void 0) {
|
|
1900
|
-
const g = u === 1 ?
|
|
1900
|
+
const g = u === 1 ? W(a.targetRotation + Math.PI, 2 * Math.PI) - Math.PI : a.sourceRotation + u * (a.targetRotation - a.sourceRotation);
|
|
1901
1901
|
if (a.anchor) {
|
|
1902
1902
|
const d = this.constraints_.rotation(
|
|
1903
1903
|
g,
|
|
@@ -2151,7 +2151,7 @@ class Re extends it {
|
|
|
2151
2151
|
*/
|
|
2152
2152
|
getResolutionForExtent(t, e) {
|
|
2153
2153
|
return this.getResolutionForExtentInternal(
|
|
2154
|
-
|
|
2154
|
+
S(t, this.getProjection()),
|
|
2155
2155
|
e
|
|
2156
2156
|
);
|
|
2157
2157
|
}
|
|
@@ -2337,10 +2337,10 @@ class Re extends it {
|
|
|
2337
2337
|
!ot(t),
|
|
2338
2338
|
"Cannot fit empty extent provided as `geometry`"
|
|
2339
2339
|
);
|
|
2340
|
-
const i =
|
|
2340
|
+
const i = S(t, this.getProjection());
|
|
2341
2341
|
n = tt(i);
|
|
2342
2342
|
} else if (t.getType() === "Circle") {
|
|
2343
|
-
const i =
|
|
2343
|
+
const i = S(
|
|
2344
2344
|
t.getExtent(),
|
|
2345
2345
|
this.getProjection()
|
|
2346
2346
|
);
|
|
@@ -2873,47 +2873,47 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2873
2873
|
withZoom: xe
|
|
2874
2874
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2875
2875
|
export {
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2876
|
+
w as A,
|
|
2877
|
+
Ie as B,
|
|
2878
|
+
J as C,
|
|
2879
|
+
It as D,
|
|
2880
2880
|
b as E,
|
|
2881
|
-
|
|
2881
|
+
re as F,
|
|
2882
2882
|
oe as G,
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2883
|
+
Pe as H,
|
|
2884
|
+
Re as I,
|
|
2885
|
+
M as J,
|
|
2886
|
+
tt as K,
|
|
2887
2887
|
E as L,
|
|
2888
|
-
|
|
2889
|
-
|
|
2888
|
+
ge as M,
|
|
2889
|
+
Xe as N,
|
|
2890
2890
|
V as P,
|
|
2891
2891
|
O as S,
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2892
|
+
I as V,
|
|
2893
|
+
ft as a,
|
|
2894
|
+
_t as b,
|
|
2895
|
+
dt as c,
|
|
2896
|
+
Mt as d,
|
|
2897
|
+
Rt as e,
|
|
2898
|
+
xt as f,
|
|
2899
|
+
Te as g,
|
|
2900
|
+
mt as h,
|
|
2901
|
+
Ct as i,
|
|
2902
|
+
Ae as j,
|
|
2903
|
+
Ne as k,
|
|
2904
|
+
we as l,
|
|
2905
|
+
gt as m,
|
|
2906
|
+
Fe as n,
|
|
2907
|
+
Ze as o,
|
|
2908
|
+
ve as p,
|
|
2909
|
+
Se as q,
|
|
2910
|
+
Ee as r,
|
|
2911
|
+
v as s,
|
|
2912
|
+
je as t,
|
|
2913
|
+
pt as u,
|
|
2914
|
+
ze as v,
|
|
2915
|
+
ht as w,
|
|
2916
|
+
yt as x,
|
|
2917
|
+
ae as y,
|
|
2918
|
+
ee as z
|
|
2919
2919
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as m, openBlock as u, createBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as x } from "./main-BDcYkhOc.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js";
|
|
4
4
|
const X = /* @__PURE__ */ i({
|
|
5
5
|
__name: "XmlPreview.client",
|
|
6
6
|
props: {
|
|
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ i({
|
|
|
8
8
|
},
|
|
9
9
|
setup(r) {
|
|
10
10
|
const o = m(
|
|
11
|
-
() => import("./vue3-xml-viewer.common-
|
|
11
|
+
() => import("./vue3-xml-viewer.common-Bdcn54ST.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
12
12
|
), n = r, s = x(), c = async () => {
|
|
13
13
|
const e = await fetch(n.resource.url);
|
|
14
14
|
if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { S as w, aY as F, i as _, aZ as I, v as O } from "./proj-DxGbobp7.js";
|
|
2
|
+
function X(n, u) {
|
|
3
3
|
if (!n)
|
|
4
4
|
throw new Error(u);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Y(n) {
|
|
7
7
|
return Math.pow(n, 3);
|
|
8
8
|
}
|
|
9
9
|
function U(n) {
|
|
10
|
-
return 1 -
|
|
10
|
+
return 1 - Y(1 - n);
|
|
11
11
|
}
|
|
12
12
|
function z(n) {
|
|
13
13
|
return 3 * n * n - 2 * n * n * n;
|
|
@@ -15,55 +15,55 @@ function z(n) {
|
|
|
15
15
|
function P(n) {
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
function
|
|
18
|
+
const R = new Array(6);
|
|
19
|
+
function B() {
|
|
20
20
|
return [1, 0, 0, 1, 0, 0];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function G(n) {
|
|
23
23
|
return s(n, 1, 0, 0, 1, 0, 0);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const i = n[0], e = n[1], c = n[2], t = n[3], r = n[4], l = n[5], g = u[0], h = u[1], p = u[2],
|
|
27
|
-
return n[0] = i * g + c * h, n[1] = e * g + t * h, n[2] = i * p + c *
|
|
25
|
+
function b(n, u) {
|
|
26
|
+
const i = n[0], e = n[1], c = n[2], t = n[3], r = n[4], l = n[5], g = u[0], h = u[1], p = u[2], S = u[3], L = u[4], v = u[5];
|
|
27
|
+
return n[0] = i * g + c * h, n[1] = e * g + t * h, n[2] = i * p + c * S, n[3] = e * p + t * S, n[4] = i * L + c * v + r, n[5] = e * L + t * v + l, n;
|
|
28
28
|
}
|
|
29
29
|
function s(n, u, i, e, c, t, r) {
|
|
30
30
|
return n[0] = u, n[1] = i, n[2] = e, n[3] = c, n[4] = t, n[5] = r, n;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function H(n, u) {
|
|
33
33
|
return n[0] = u[0], n[1] = u[1], n[2] = u[2], n[3] = u[3], n[4] = u[4], n[5] = u[5], n;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function J(n, u) {
|
|
36
36
|
const i = u[0], e = u[1];
|
|
37
37
|
return u[0] = n[0] * i + n[2] * e + n[4], u[1] = n[1] * i + n[3] * e + n[5], u;
|
|
38
38
|
}
|
|
39
|
-
function J(n, u, i) {
|
|
40
|
-
return v(n, s(b, u, 0, 0, i, 0, 0));
|
|
41
|
-
}
|
|
42
39
|
function K(n, u, i) {
|
|
43
|
-
return
|
|
40
|
+
return b(n, s(R, u, 0, 0, i, 0, 0));
|
|
41
|
+
}
|
|
42
|
+
function N(n, u, i) {
|
|
43
|
+
return b(n, s(R, 1, 0, 0, 1, u, i));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Q(n, u, i, e, c, t, r, l) {
|
|
46
46
|
const g = Math.sin(t), h = Math.cos(t);
|
|
47
47
|
return n[0] = e * h, n[1] = c * g, n[2] = -e * g, n[3] = c * h, n[4] = r * e * h - l * e * g + u, n[5] = r * c * g + l * c * h + i, n;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const i =
|
|
51
|
-
|
|
49
|
+
function V(n, u) {
|
|
50
|
+
const i = y(u);
|
|
51
|
+
X(i !== 0, "Transformation matrix cannot be inverted");
|
|
52
52
|
const e = u[0], c = u[1], t = u[2], r = u[3], l = u[4], g = u[5];
|
|
53
53
|
return n[0] = r / i, n[1] = -c / i, n[2] = -t / i, n[3] = e / i, n[4] = (t * g - r * l) / i, n[5] = -(e * g - c * l) / i, n;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function y(n) {
|
|
56
56
|
return n[0] * n[3] - n[1] * n[2];
|
|
57
57
|
}
|
|
58
58
|
const D = [1e5, 1e5, 1e5, 1e5, 2, 2];
|
|
59
|
-
function
|
|
59
|
+
function W(n) {
|
|
60
60
|
return "matrix(" + n.join(", ") + ")";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function M(n) {
|
|
63
63
|
return n.substring(7, n.length - 1).split(",").map(parseFloat);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const i =
|
|
65
|
+
function $(n, u) {
|
|
66
|
+
const i = M(n), e = M(u);
|
|
67
67
|
for (let c = 0; c < 6; ++c)
|
|
68
68
|
if (Math.round((i[c] - e[c]) * D[c]) !== 0)
|
|
69
69
|
return !1;
|
|
@@ -115,7 +115,7 @@ function f(n, u, i, e, c, t) {
|
|
|
115
115
|
}
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Z(n, u, i, e, c) {
|
|
119
119
|
let t;
|
|
120
120
|
for (u += e; u < i; u += e)
|
|
121
121
|
if (t = c(
|
|
@@ -126,7 +126,7 @@ function Y(n, u, i, e, c) {
|
|
|
126
126
|
return !1;
|
|
127
127
|
}
|
|
128
128
|
function A(n, u, i, e, c, t) {
|
|
129
|
-
return t = t ?? F(
|
|
129
|
+
return t = t ?? F(O(), n, u, i, e), _(c, t) ? t[0] >= c[0] && t[2] <= c[2] || t[1] >= c[1] && t[3] <= c[3] ? !0 : Z(
|
|
130
130
|
n,
|
|
131
131
|
u,
|
|
132
132
|
i,
|
|
@@ -138,7 +138,7 @@ function A(n, u, i, e, c, t) {
|
|
|
138
138
|
* `false` otherwise.
|
|
139
139
|
*/
|
|
140
140
|
function(r, l) {
|
|
141
|
-
return
|
|
141
|
+
return I(c, r, l);
|
|
142
142
|
}
|
|
143
143
|
) : !1;
|
|
144
144
|
}
|
|
@@ -150,7 +150,7 @@ function o(n, u, i, e, c) {
|
|
|
150
150
|
}
|
|
151
151
|
return !1;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function j(n, u, i, e, c) {
|
|
154
154
|
return !!(A(n, u, i, e, c) || a(
|
|
155
155
|
n,
|
|
156
156
|
u,
|
|
@@ -181,8 +181,8 @@ function Z(n, u, i, e, c) {
|
|
|
181
181
|
c[3]
|
|
182
182
|
));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
if (!
|
|
184
|
+
function k(n, u, i, e, c) {
|
|
185
|
+
if (!j(n, u, i[0], e, c))
|
|
186
186
|
return !1;
|
|
187
187
|
if (i.length === 1)
|
|
188
188
|
return !0;
|
|
@@ -206,7 +206,7 @@ function j(n, u, i, e, c) {
|
|
|
206
206
|
function C(n, u, i, e, c) {
|
|
207
207
|
for (let t = 0, r = i.length; t < r; ++t) {
|
|
208
208
|
const l = i[t];
|
|
209
|
-
if (
|
|
209
|
+
if (k(n, u, l, e, c))
|
|
210
210
|
return !0;
|
|
211
211
|
u = l[l.length - 1];
|
|
212
212
|
}
|
|
@@ -215,30 +215,30 @@ function C(n, u, i, e, c) {
|
|
|
215
215
|
const x = 42, m = 256;
|
|
216
216
|
export {
|
|
217
217
|
x as D,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
218
|
+
X as a,
|
|
219
|
+
o as b,
|
|
220
|
+
C as c,
|
|
221
|
+
Q as d,
|
|
222
|
+
B as e,
|
|
223
|
+
Z as f,
|
|
224
|
+
J as g,
|
|
225
|
+
K as h,
|
|
226
|
+
A as i,
|
|
227
|
+
U as j,
|
|
228
|
+
P as k,
|
|
229
|
+
f as l,
|
|
230
|
+
b as m,
|
|
231
|
+
V as n,
|
|
232
|
+
M as o,
|
|
233
|
+
$ as p,
|
|
234
|
+
W as q,
|
|
235
|
+
G as r,
|
|
236
|
+
H as s,
|
|
237
|
+
N as t,
|
|
238
|
+
T as u,
|
|
239
|
+
k as v,
|
|
240
|
+
z as w,
|
|
241
|
+
m as x,
|
|
242
|
+
j as y,
|
|
243
|
+
Y as z
|
|
244
244
|
};
|