@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.
Files changed (131) hide show
  1. package/dist/{Control-b-43UT2B.js → Control-B9WQxlpJ.js} +10 -10
  2. package/dist/{Datafair.client-BrjISlaZ.js → Datafair.client-D_6yzJUG.js} +9 -9
  3. package/dist/{Event-py_AAwJY.js → Event-iXDrp-fy.js} +15 -15
  4. package/dist/{Image-BHQYZWzH.js → Image-mNMBOofs.js} +22 -22
  5. package/dist/ImagePreview.client-B0iPhFm3.js +36 -0
  6. package/dist/{JsonPreview.client-DivFAnbN.js → JsonPreview.client-DSl1kiwC.js} +2 -2
  7. package/dist/{Map-CtP7leHl.js → Map-BfqKMw0S.js} +165 -165
  8. package/dist/{MapContainer.client-Cq8tNLZZ.js → MapContainer.client-BSfpk_rT.js} +17 -17
  9. package/dist/{OSM-gdDSIsDA.js → OSM-CcrUhItr.js} +1 -1
  10. package/dist/{PdfPreview.client-BNBgLsK2.js → PdfPreview.client-BANFeM6K.js} +438 -427
  11. package/dist/{Pmtiles.client-CQi5Rw8W.js → Pmtiles.client-DH9ZrsZR.js} +6177 -5967
  12. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js +60 -0
  13. package/dist/{ScaleLine-hG-FhNqy.js → ScaleLine-VGQ7nkMS.js} +2 -2
  14. package/dist/{Tile-D6rFonpT.js → Tile-CSpn0Ca8.js} +47 -47
  15. package/dist/{TileImage-cfrEgz5y.js → TileImage-CpbaEFwd.js} +44 -44
  16. package/dist/{View-vp7vDb9q.js → View-BYBpt-AU.js} +58 -58
  17. package/dist/{XmlPreview.client-XCsNvnsZ.js → XmlPreview.client-KCB5mwVf.js} +3 -3
  18. package/dist/{common-C8efyyuc.js → common-BoeTUnDZ.js} +58 -58
  19. package/dist/components-next.css +1 -1
  20. package/dist/components-next.js +199 -172
  21. package/dist/components.css +1 -1
  22. package/dist/{index-CXUamc8Z.js → index-DHWzX5vK.js} +4668 -4466
  23. package/dist/{leaflet-src-BRKv9Ksv.js → leaflet-src-pVQfonBI.js} +1 -1
  24. package/dist/{main-DKu5SOAl.js → main-BDcYkhOc.js} +41684 -33432
  25. package/dist/{proj-CsjVeojN.js → proj-DxGbobp7.js} +110 -110
  26. package/dist/{tilecoord-CPcQJnrF.js → tilecoord-DvX7WWiA.js} +94 -94
  27. package/dist/{vue3-xml-viewer.common-BIaEIFYG.js → vue3-xml-viewer.common-Bdcn54ST.js} +1 -1
  28. package/package.json +28 -27
  29. package/src/components/ActivityList/ActivityList.vue +21 -12
  30. package/src/components/AppLink.vue +3 -0
  31. package/src/components/BannerAction.vue +6 -2
  32. package/src/components/Chart/ChartViewer.vue +111 -17
  33. package/src/components/Chart/ChartViewerWrapper.vue +28 -16
  34. package/src/components/ChartCard.vue +112 -0
  35. package/src/components/CopyButton.vue +6 -2
  36. package/src/components/DataserviceCard.vue +23 -6
  37. package/src/components/DataserviceQuality.vue +82 -0
  38. package/src/components/DataserviceQualityInline.vue +31 -0
  39. package/src/components/DataserviceQualityTooltipContent.vue +79 -0
  40. package/src/components/DatasetCard.vue +17 -6
  41. package/src/components/DatasetInformation/DatasetTemporalitySection.vue +7 -4
  42. package/src/components/DatasetQuality.vue +11 -11
  43. package/src/components/DatasetQualityInline.vue +2 -2
  44. package/src/components/DatasetQualityTooltipContent.vue +1 -1
  45. package/src/components/DiscussionMessageCard.vue +14 -15
  46. package/src/components/Form/SchemaSelect.vue +2 -0
  47. package/src/components/FormattedDate.vue +69 -0
  48. package/src/components/LoadingBlock.vue +4 -1
  49. package/src/components/ObjectCard.vue +4 -1
  50. package/src/components/ObjectCardOwner.vue +13 -1
  51. package/src/components/Pagination.vue +18 -58
  52. package/src/components/Placeholder.vue +3 -2
  53. package/src/components/PostCard.vue +13 -15
  54. package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
  55. package/src/components/ResourceAccordion/Downloads.vue +19 -7
  56. package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
  57. package/src/components/ResourceAccordion/MapContainer.client.vue +1 -8
  58. package/src/components/ResourceAccordion/Metadata.vue +21 -5
  59. package/src/components/ResourceAccordion/PdfPreview.client.vue +36 -12
  60. package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
  61. package/src/components/ResourceAccordion/Pmtiles.client.vue +27 -18
  62. package/src/components/ResourceAccordion/Preview.vue +8 -4
  63. package/src/components/ResourceAccordion/PreviewWrapper.vue +17 -10
  64. package/src/components/ResourceAccordion/ResourceAccordion.vue +29 -9
  65. package/src/components/ResourceExplorer/ResourceExplorer.vue +105 -209
  66. package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +79 -0
  67. package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +104 -71
  68. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +136 -183
  69. package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
  70. package/src/components/ResourceExplorer/ResourceSelector.vue +24 -86
  71. package/src/components/ResourceExplorer/ResourceViewerHeader.vue +124 -0
  72. package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +96 -0
  73. package/src/components/ResourceListItem.vue +168 -0
  74. package/src/components/ReuseCard.vue +18 -6
  75. package/src/components/ReuseDetails.vue +2 -2
  76. package/src/components/ReuseHorizontalCard.vue +4 -3
  77. package/src/components/SchemaCard.vue +10 -1
  78. package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
  79. package/src/components/Search/GlobalSearch.vue +12 -8
  80. package/src/components/Search/SearchInput.vue +1 -1
  81. package/src/components/Search/Sidemenu.vue +4 -3
  82. package/src/components/SmallChart.vue +11 -10
  83. package/src/components/StatBox.vue +13 -5
  84. package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
  85. package/src/components/TabularExplorer/TabularCell.vue +7 -8
  86. package/src/components/TabularExplorer/TabularCellPopover.vue +19 -3
  87. package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
  88. package/src/components/TabularExplorer/TabularDateField.vue +41 -0
  89. package/src/components/TabularExplorer/TabularDateFilter.vue +403 -0
  90. package/src/components/TabularExplorer/TabularExplorer.vue +122 -913
  91. package/src/components/TabularExplorer/TabularFilterContent.vue +33 -25
  92. package/src/components/TabularExplorer/TabularFilterPopover.vue +7 -7
  93. package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
  94. package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
  95. package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
  96. package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
  97. package/src/components/TabularExplorer/TabularTable.vue +484 -0
  98. package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
  99. package/src/components/TabularExplorer/types.ts +32 -20
  100. package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
  101. package/src/components/TabularExplorer/useTabularContext.ts +82 -0
  102. package/src/components/TopicCard.vue +15 -14
  103. package/src/composables/useActiveDescendant.ts +5 -0
  104. package/src/composables/useDatasetResources.ts +164 -0
  105. package/src/composables/useHasTabularData.ts +2 -1
  106. package/src/composables/useResizable.ts +46 -0
  107. package/src/composables/useResourceCapabilities.ts +47 -39
  108. package/src/composables/useTranslation.ts +24 -9
  109. package/src/config.ts +1 -0
  110. package/src/functions/charts.ts +32 -1
  111. package/src/functions/dates.ts +26 -7
  112. package/src/functions/helpers.ts +15 -0
  113. package/src/functions/metrics.ts +57 -56
  114. package/src/functions/owned.ts +21 -0
  115. package/src/functions/paginate.ts +46 -0
  116. package/src/functions/resourceCapabilities.ts +34 -0
  117. package/src/functions/resources.ts +83 -0
  118. package/src/functions/schemas.ts +27 -0
  119. package/src/functions/scroll.ts +20 -0
  120. package/src/functions/tabular.ts +119 -4
  121. package/src/functions/tabularApi.ts +1 -43
  122. package/src/main.ts +32 -6
  123. package/src/types/dataservices.ts +15 -0
  124. package/src/types/organizations.ts +10 -0
  125. package/src/types/reuses.ts +12 -1
  126. package/src/types/search.ts +2 -2
  127. package/src/types/visualizations.ts +5 -0
  128. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-C3dDzrIr.js +0 -61
  129. /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
  130. /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
  131. /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
@@ -1,5 +1,5 @@
1
- import { p as y, a as it, y as Ft, az as Tt, d as x, A as Et, aC as St, a4 as vt, ae as F, ak as W, G as Zt, aa as T, aJ as j, av as zt, aM as Pt, t as st, C as Xt, w as Yt, k as bt, at as ot, W as rt, aB as Gt, aw as at, ao as G, aP as Lt, H as L, M as Ot, a1 as p, a2 as v, aA as q, aE as Vt, e as kt, aQ as K, aR as Ut, ad as Dt, V as Ht, S as Y, K as Wt } from "./proj-CsjVeojN.js";
2
- import { d as qt, e as Kt, r as lt, o as $t, k as Bt, c as N, g as Jt, a as Qt } from "./common-C8efyyuc.js";
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 St(this.extent_, t);
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 = vt(t), i = n.getUnits() == "tile-pixels" ? function(o, r, l) {
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
- qt(
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 = W(n, e);
304
+ ), g = q(n, e);
305
305
  return g ? g(u, u, l) : u;
306
- } : W(n, e);
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 Se(s, t, e, n, i) {
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 ve(s, t, e, n, i) {
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 S extends O {
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 S(
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 S(e, "XY", n);
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 S(i, "XY", [i.length]);
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 S(o, "XY", [o.length]);
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 && Wt(), t.center && (t.center = p(t.center, this.projection_)), t.extent && (t.extent = v(t.extent, this.projection_)), this.applyOptions_(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 && 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 = q(h.rotation - a + Math.PI, 2 * Math.PI) - Math.PI;
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 ? q(a.targetRotation + Math.PI, 2 * Math.PI) - Math.PI : a.sourceRotation + u * (a.targetRotation - a.sourceRotation);
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
- v(t, this.getProjection()),
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 = v(t, this.getProjection());
2340
+ const i = S(t, this.getProjection());
2341
2341
  n = tt(i);
2342
2342
  } else if (t.getType() === "Circle") {
2343
- const i = v(
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
- we as A,
2877
- ve as B,
2878
- gt as C,
2879
- Ae as D,
2876
+ w as A,
2877
+ Ie as B,
2878
+ J as C,
2879
+ It as D,
2880
2880
  b as E,
2881
- Ze as F,
2881
+ re as F,
2882
2882
  oe as G,
2883
- yt as H,
2884
- Ee as I,
2885
- ee as J,
2886
- w as K,
2883
+ Pe as H,
2884
+ Re as I,
2885
+ M as J,
2886
+ tt as K,
2887
2887
  E as L,
2888
- ht as M,
2889
- Ie as N,
2888
+ ge as M,
2889
+ Xe as N,
2890
2890
  V as P,
2891
2891
  O as S,
2892
- Re as V,
2893
- S as a,
2894
- Xe as b,
2895
- I as c,
2896
- M as d,
2897
- dt as e,
2898
- Rt as f,
2899
- Ne as g,
2900
- ft as h,
2901
- Pe as i,
2902
- ae as j,
2903
- _t as k,
2904
- mt as l,
2905
- je as m,
2906
- ge as n,
2907
- Mt as o,
2908
- Te as p,
2909
- tt as q,
2910
- pt as r,
2911
- Se as s,
2912
- re as t,
2913
- J as u,
2914
- Ct as v,
2915
- xt as w,
2916
- ze as x,
2917
- Fe as y,
2918
- It as z
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 { bT as x } from "./main-DKu5SOAl.js";
3
- import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-C3dDzrIr.js";
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-BIaEIFYG.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
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 { $ as w, Z as F, aq as _, ar as y, y as I } from "./proj-CsjVeojN.js";
2
- function O(n, u) {
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 X(n) {
6
+ function Y(n) {
7
7
  return Math.pow(n, 3);
8
8
  }
9
9
  function U(n) {
10
- return 1 - X(1 - n);
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 b = new Array(6);
19
- function $() {
18
+ const R = new Array(6);
19
+ function B() {
20
20
  return [1, 0, 0, 1, 0, 0];
21
21
  }
22
- function B(n) {
22
+ function G(n) {
23
23
  return s(n, 1, 0, 0, 1, 0, 0);
24
24
  }
25
- function v(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], L = u[3], S = u[4], M = u[5];
27
- return n[0] = i * g + c * h, n[1] = e * g + t * h, n[2] = i * p + c * L, n[3] = e * p + t * L, n[4] = i * S + c * M + r, n[5] = e * S + t * M + l, n;
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 G(n, u) {
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 H(n, u) {
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 v(n, s(b, 1, 0, 0, 1, u, i));
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 N(n, u, i, e, c, t, r, l) {
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 Q(n, u) {
50
- const i = q(u);
51
- O(i !== 0, "Transformation matrix cannot be inverted");
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 q(n) {
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 V(n) {
59
+ function W(n) {
60
60
  return "matrix(" + n.join(", ") + ")";
61
61
  }
62
- function R(n) {
62
+ function M(n) {
63
63
  return n.substring(7, n.length - 1).split(",").map(parseFloat);
64
64
  }
65
- function W(n, u) {
66
- const i = R(n), e = R(u);
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 Y(n, u, i, e, c) {
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(I(), n, u, i, e), _(c, t) ? t[0] >= c[0] && t[2] <= c[2] || t[1] >= c[1] && t[3] <= c[3] ? !0 : Y(
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 y(c, r, l);
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 Z(n, u, i, e, c) {
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 j(n, u, i, e, c) {
185
- if (!Z(n, u, i[0], e, c))
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 (j(n, u, l, e, c))
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
- m as a,
219
- H as b,
220
- O as c,
221
- N as d,
222
- $ as e,
223
- X as f,
224
- U as g,
225
- W as h,
226
- Y as i,
227
- R as j,
228
- z as k,
229
- A as l,
230
- o as m,
231
- Z as n,
232
- j as o,
233
- C as p,
234
- P as q,
235
- T as r,
236
- f as s,
237
- Q as t,
238
- v as u,
239
- B as v,
240
- J as w,
241
- G as x,
242
- V as y,
243
- K as z
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
  };