@arcgis/common-components 5.2.0-next.10 → 5.2.0-next.100

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 (245) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/27EUJ42B.js +2 -0
  4. package/dist/cdn/{232BH3SJ.js → 2PEF5AVV.js} +1 -1
  5. package/dist/cdn/3NPK3XHQ.js +2 -0
  6. package/dist/cdn/3RMCUQWC.js +2 -0
  7. package/dist/cdn/4TZVXSQZ.js +2 -0
  8. package/dist/cdn/56FZY46A.js +2 -0
  9. package/dist/cdn/5PTU24YF.js +2 -0
  10. package/dist/cdn/6PGCMA3Z.js +2 -0
  11. package/dist/cdn/77PLMLQX.js +2 -0
  12. package/dist/cdn/7HJ55YSN.js +2 -0
  13. package/dist/cdn/{YVCGEEMG.js → 7RMMYGBW.js} +1 -1
  14. package/dist/cdn/AD4MYZ4B.js +2 -0
  15. package/dist/cdn/AFHSFRPM.js +2 -0
  16. package/dist/cdn/B57H5R7I.js +2 -0
  17. package/dist/cdn/BEODRJOB.js +2 -0
  18. package/dist/cdn/{WJ3TYWP2.js → BGE7ETFU.js} +1 -1
  19. package/dist/cdn/BJHMVEBH.js +2 -0
  20. package/dist/cdn/{6XE5JNJ7.js → DGU6DCZP.js} +3 -3
  21. package/dist/cdn/DJELJSO3.js +2 -0
  22. package/dist/cdn/E6NBHGTX.js +2 -0
  23. package/dist/cdn/EWNQZP7X.js +2 -0
  24. package/dist/cdn/FEREAY2X.js +2 -0
  25. package/dist/cdn/HL3WXOVS.js +2 -0
  26. package/dist/cdn/KCTVPWKZ.js +2 -0
  27. package/dist/cdn/KMEK46VM.js +4 -0
  28. package/dist/cdn/L5FYKALB.js +2 -0
  29. package/dist/cdn/LSIDKRJW.js +2 -0
  30. package/dist/cdn/MI3POVS3.js +2 -0
  31. package/dist/cdn/NH4LEYDW.js +2 -0
  32. package/dist/cdn/ODCJ6CWI.js +2 -0
  33. package/dist/cdn/PMV2N3L3.js +2 -0
  34. package/dist/cdn/QSAZAXZ3.js +2 -0
  35. package/dist/cdn/RP5JQ3O2.js +2 -0
  36. package/dist/cdn/TWW63D32.js +2 -0
  37. package/dist/cdn/{MINFRX4Y.js → TXXMMPA6.js} +1 -1
  38. package/dist/cdn/VCZLD7ZT.js +2 -0
  39. package/dist/cdn/{YG4PY2H3.js → VENSWYOD.js} +1 -1
  40. package/dist/cdn/VILUEVNS.js +2 -0
  41. package/dist/cdn/VOBBBIYC.js +2 -0
  42. package/dist/cdn/X3GTWZD5.js +2 -0
  43. package/dist/cdn/Y42WUDYP.js +2 -0
  44. package/dist/cdn/Z5QBBHLD.js +2 -0
  45. package/dist/cdn/ZLUCRCS4.js +2 -0
  46. package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
  47. package/dist/cdn/assets/slider-histogram-range/t9n/messages.en.json +1 -0
  48. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
  49. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
  50. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
  51. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
  52. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
  53. package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
  54. package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
  55. package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
  56. package/dist/cdn/assets/value-picker/t9n/messages.en.json +1 -0
  57. package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
  58. package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
  59. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
  60. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
  61. package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
  62. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
  63. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
  64. package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
  65. package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
  66. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
  67. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
  68. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
  69. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
  70. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
  71. package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
  72. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
  73. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
  74. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
  75. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
  76. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
  77. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
  78. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
  79. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
  80. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
  81. package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
  82. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
  83. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
  84. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
  85. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
  86. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
  87. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
  88. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
  89. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
  90. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
  91. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
  92. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
  93. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
  94. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
  95. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
  96. package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +1 -0
  97. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
  98. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
  99. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
  100. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
  101. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
  102. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
  103. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
  104. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
  105. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
  106. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
  107. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
  108. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
  109. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
  110. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
  111. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
  112. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
  113. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
  114. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
  115. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
  116. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
  117. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
  118. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
  119. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
  120. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
  121. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
  122. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
  123. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
  124. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
  125. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
  126. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
  127. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
  128. package/dist/cdn/index.js +1 -1
  129. package/dist/cdn/main.css +1 -1
  130. package/dist/chunks/element-reference-controller.js +17 -0
  131. package/dist/chunks/layer-utils.js +52 -40
  132. package/dist/chunks/locale.js +14 -6
  133. package/dist/chunks/strategies.js +287 -0
  134. package/dist/chunks/utils.js +69 -0
  135. package/dist/chunks/utils2.js +20 -0
  136. package/dist/chunks/utils3.js +7 -0
  137. package/dist/components/arcgis-ckeditor5/customElement.d.ts +23 -0
  138. package/dist/components/arcgis-ckeditor5/customElement.js +2 -2
  139. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  140. package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
  141. package/dist/components/arcgis-color-input/customElement.js +6 -6
  142. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +23 -0
  143. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  144. package/dist/components/arcgis-field-info/customElement.js +251 -221
  145. package/dist/components/arcgis-field-info/index.js +1 -0
  146. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  147. package/dist/components/arcgis-field-pick-list/customElement.js +57 -65
  148. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  149. package/dist/components/arcgis-histogram/customElement.d.ts +39 -2
  150. package/dist/components/arcgis-histogram/customElement.js +105 -90
  151. package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
  152. package/dist/components/arcgis-picker-input/customElement.js +7 -7
  153. package/dist/components/arcgis-slider/customElement.d.ts +11 -3
  154. package/dist/components/arcgis-slider/customElement.js +371 -348
  155. package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
  156. package/dist/components/arcgis-slider-field/customElement.js +96 -0
  157. package/dist/components/arcgis-slider-field/index.d.ts +1 -0
  158. package/dist/components/arcgis-slider-field/index.js +2 -0
  159. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +390 -0
  160. package/dist/components/arcgis-slider-histogram-range/customElement.js +120 -0
  161. package/dist/components/arcgis-slider-histogram-range/index.d.ts +1 -0
  162. package/dist/components/arcgis-slider-histogram-range/index.js +3 -0
  163. package/dist/components/arcgis-slider-histogram-range/types.d.ts +6 -0
  164. package/dist/components/arcgis-ticks/customElement.d.ts +11 -3
  165. package/dist/components/arcgis-ticks/customElement.js +100 -79
  166. package/dist/components/arcgis-toolbar/customElement.d.ts +47 -0
  167. package/dist/components/arcgis-toolbar/customElement.js +82 -0
  168. package/dist/components/arcgis-toolbar/index.d.ts +1 -0
  169. package/dist/components/arcgis-toolbar/index.js +2 -0
  170. package/dist/components/arcgis-toolbar/types.d.ts +10 -0
  171. package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
  172. package/dist/components/arcgis-toolbar-action/customElement.js +57 -0
  173. package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
  174. package/dist/components/arcgis-toolbar-action/index.js +3 -0
  175. package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
  176. package/dist/components/arcgis-toolbar-group/customElement.js +47 -0
  177. package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
  178. package/dist/components/arcgis-toolbar-group/index.js +2 -0
  179. package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
  180. package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
  181. package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
  182. package/dist/components/arcgis-toolbar-item/index.js +4 -0
  183. package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
  184. package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
  185. package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
  186. package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
  187. package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
  188. package/dist/components/arcgis-toolbar-split-button/customElement.js +66 -0
  189. package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
  190. package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
  191. package/dist/components/arcgis-unique-values-list/customElement.js +115 -95
  192. package/dist/components/arcgis-value-picker/customElement.d.ts +377 -0
  193. package/dist/components/arcgis-value-picker/customElement.js +87 -0
  194. package/dist/components/arcgis-value-picker/index.d.ts +1 -0
  195. package/dist/components/arcgis-value-picker/index.js +3 -0
  196. package/dist/components/arcgis-value-picker/types.d.ts +69 -0
  197. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +113 -0
  198. package/dist/components/arcgis-value-picker-collection/customElement.js +43 -0
  199. package/dist/components/arcgis-value-picker-collection/index.d.ts +1 -0
  200. package/dist/components/arcgis-value-picker-collection/index.js +1 -0
  201. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +90 -0
  202. package/dist/components/arcgis-value-picker-combobox/customElement.js +55 -0
  203. package/dist/components/arcgis-value-picker-combobox/index.d.ts +1 -0
  204. package/dist/components/arcgis-value-picker-combobox/index.js +3 -0
  205. package/dist/components/arcgis-value-picker-label/customElement.d.ts +81 -0
  206. package/dist/components/arcgis-value-picker-label/customElement.js +51 -0
  207. package/dist/components/arcgis-value-picker-label/index.d.ts +1 -0
  208. package/dist/components/arcgis-value-picker-label/index.js +1 -0
  209. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +173 -0
  210. package/dist/components/arcgis-value-picker-slider/customElement.js +60 -0
  211. package/dist/components/arcgis-value-picker-slider/index.d.ts +1 -0
  212. package/dist/components/arcgis-value-picker-slider/index.js +3 -0
  213. package/dist/docs/api.json +1 -1
  214. package/dist/docs/docs.json +1 -1
  215. package/dist/docs/vscode.css-custom-data.json +1 -1
  216. package/dist/docs/vscode.html-custom-data.json +1 -1
  217. package/dist/docs/web-types.json +1 -1
  218. package/dist/index.d.ts +106 -0
  219. package/dist/loader.js +19 -6
  220. package/dist/types/lumina.d.ts +89 -2
  221. package/dist/types/preact.d.ts +102 -2
  222. package/dist/types/react.d.ts +115 -2
  223. package/dist/types/stencil.d.ts +91 -4
  224. package/package.json +6 -6
  225. package/dist/cdn/2MN6S2HH.js +0 -2
  226. package/dist/cdn/4BJYJUMR.js +0 -2
  227. package/dist/cdn/4NANIXN7.js +0 -2
  228. package/dist/cdn/5I5ODGDD.js +0 -2
  229. package/dist/cdn/AGGCAE6P.js +0 -2
  230. package/dist/cdn/BDF4ZLUF.js +0 -2
  231. package/dist/cdn/D3WBDGDH.js +0 -2
  232. package/dist/cdn/F45Q3BRT.js +0 -2
  233. package/dist/cdn/HWEOBUAY.js +0 -2
  234. package/dist/cdn/NKMDS2IH.js +0 -2
  235. package/dist/cdn/OOBX2C2L.js +0 -4
  236. package/dist/cdn/OTXMT4H5.js +0 -2
  237. package/dist/cdn/OUUS7VKS.js +0 -2
  238. package/dist/cdn/OYXJA2QF.js +0 -2
  239. package/dist/cdn/QS7JRY4H.js +0 -2
  240. package/dist/cdn/SKYXMBD4.js +0 -2
  241. package/dist/cdn/UEGSIUVY.js +0 -2
  242. package/dist/cdn/YVWFGK4M.js +0 -2
  243. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
  244. /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
  245. /package/dist/chunks/{commonFunctions.js → general.js} +0 -0
@@ -1,14 +1,15 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as Q } from "../../chunks/runtime.js";
3
3
  import { keyed as Z } from "lit/directives/keyed.js";
4
- import { LitElement as ee, createEvent as $, safeClassMap as P, safeStyleMap as L, nothing as E } from "@arcgis/lumina";
4
+ import { LitElement as ee, createEvent as S, safeClassMap as M, safeStyleMap as R, nothing as E } from "@arcgis/lumina";
5
5
  import { makeAccessorController as te } from "@arcgis/lumina/controllers/accessor";
6
- import { slotChangeHasAssignedElement as R, classes as ae, getClosestElement as ne } from "@arcgis/toolkit/dom";
6
+ import { classes as ne, getClosestElement as ae } from "@arcgis/toolkit/dom";
7
+ import { slotChangeHasAssignedElement as L } from "@arcgis/toolkit/dom/slots";
7
8
  import { css as re, html as w } from "lit";
8
9
  import { map as ie } from "lit/directives/map.js";
9
10
  import { createRef as B, ref as O } from "lit/directives/ref.js";
10
11
  import { u as se } from "../../chunks/useT9n.js";
11
- import { g as le } from "../../chunks/locale.js";
12
+ import { a as le } from "../../chunks/locale.js";
12
13
  import oe from "@arcgis/core/core/Accessor.js";
13
14
  import { property as I, subclass as ce } from "@arcgis/core/core/accessorSupport/decorators.js";
14
15
  import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
@@ -24,40 +25,40 @@ const p = {
24
25
  jumpToEnd: "End",
25
26
  confirmEdit: "Enter"
26
27
  };
27
- function N({ key: n, shiftKey: e }, t, a) {
28
- const i = de(n);
28
+ function N({ key: a, shiftKey: e }, t, n) {
29
+ const i = de(a);
29
30
  if (i == null)
30
31
  return null;
31
- const r = ue(n) || he(n) && e ? ge(t) : 1;
32
+ const r = ue(a) || he(a) && e ? ge(t) : 1;
32
33
  return {
33
- direction: a ? i * -1 : i,
34
+ direction: n ? i * -1 : i,
34
35
  count: r
35
36
  };
36
37
  }
37
- function de(n) {
38
- return n === p.increment || n === p.incrementHorizontal || n === p.pageIncrement ? 1 : n === p.decrement || n === p.decrementHorizontal || n === p.pageDecrement ? -1 : null;
38
+ function de(a) {
39
+ return a === p.increment || a === p.incrementHorizontal || a === p.pageIncrement ? 1 : a === p.decrement || a === p.decrementHorizontal || a === p.pageDecrement ? -1 : null;
39
40
  }
40
- function U(n) {
41
- return n === p.jumpToEnd || n === p.jumpToStart;
41
+ function U(a) {
42
+ return a === p.jumpToEnd || a === p.jumpToStart;
42
43
  }
43
- function he(n) {
44
- return n === p.increment || n === p.decrement || n === p.decrementHorizontal || n === p.incrementHorizontal;
44
+ function he(a) {
45
+ return a === p.increment || a === p.decrement || a === p.decrementHorizontal || a === p.incrementHorizontal;
45
46
  }
46
- function ue(n) {
47
- return n === p.pageIncrement || n === p.pageDecrement;
47
+ function ue(a) {
48
+ return a === p.pageIncrement || a === p.pageDecrement;
48
49
  }
49
- function ge(n) {
50
- const e = Number.isFinite(n) ? Math.floor(n) : 1;
50
+ function ge(a) {
51
+ const e = Number.isFinite(a) ? Math.floor(a) : 1;
51
52
  return Math.max(1, e);
52
53
  }
53
- const me = re`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-slider-internal-show-range-labels: 0;--arcgis-slider-internal-show-value-labels: 0;--arcgis-slider-internal-value-labels-placement-start: 0;--arcgis-slider-internal-value-labels-placement-end: 0;--arcgis-slider-internal-range-labels-placement-center: 0;--arcgis-slider-internal-range-labels-placement-end: 0;--arcgis-slider-internal-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-slider-internal-label-input-margin: calc(var(--arcgis-slider-internal-handle-offset) + 4px);--arcgis-slider-internal-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-slider-internal-track-size: 2px}:host([show-range-labels]){--arcgis-slider-internal-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-slider-internal-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-slider-internal-value-labels-placement-start: var(--arcgis-slider-internal-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-slider-internal-value-labels-placement-end: var(--arcgis-slider-internal-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-slider-internal-range-labels-placement-center: var(--arcgis-slider-internal-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-slider-internal-range-labels-placement-end: var(--arcgis-slider-internal-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-slider-internal-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range{background-color:var(--calcite-color-brand);&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-slider-internal-handle-offset) * -1);left:calc(var(--arcgis-slider-internal-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-slider-internal-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-slider-internal-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-slider-internal-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-slider-internal-content-start-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height)) );--arcgis-slider-internal-content-end-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) );column-gap:calc(var(--arcgis-slider-internal-show-range-labels) * var(--arcgis-slider-internal-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) var(--arcgis-slider-internal-track-size) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) minmax(var(--arcgis-slider-internal-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){.content{--arcgis-slider-internal-content-start-min-height: calc( var(--arcgis-slider-internal-handle-offset) + var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height) );--arcgis-slider-internal-content-end-min-height: calc( var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height) );padding-inline:var(--arcgis-slider-internal-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) var(--arcgis-slider-internal-track-size) var(--arcgis-slider-internal-handle-offset) calc(var(--arcgis-slider-internal-range-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) minmax(var(--arcgis-slider-internal-content-end-min-height),auto);column-gap:var(--arcgis-slider-internal-handle-offset)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-slider-internal-label-input-margin) + var(--arcgis-slider-internal-range-labels-placement-end) * (var(--arcgis-slider-internal-label-input-height)))}}.min,.max{--arcgis-slider-internal-range-translation: calc(var(--arcgis-slider-internal-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}.max{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}}&:host([mirrored]){.min{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}.max{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}}}`;
54
- var fe = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, W = (n) => {
55
- throw TypeError(n);
56
- }, k = (n, e, t, a) => {
57
- for (var i = a > 1 ? void 0 : a ? pe(e, t) : e, r = n.length - 1, o; r >= 0; r--)
58
- (o = n[r]) && (i = (a ? o(e, t, i) : o(i)) || i);
59
- return a && i && fe(e, t, i), i;
60
- }, G = (n, e, t) => e.has(n) || W("Cannot " + t), ve = (n, e, t) => (G(n, e, "read from private field"), e.get(n)), be = (n, e, t) => e.has(n) ? W("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), _e = (n, e, t, a) => (G(n, e, "write to private field"), e.set(n, t), t), F;
54
+ const me = re`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-internal-slider-show-range-labels: 0;--arcgis-internal-slider-show-value-labels: 0;--arcgis-internal-slider-value-labels-placement-start: 0;--arcgis-internal-slider-value-labels-placement-end: 0;--arcgis-internal-slider-range-labels-placement-center: 0;--arcgis-internal-slider-range-labels-placement-end: 0;--arcgis-internal-slider-handle-color: var(--calcite-color-text-3);--arcgis-internal-slider-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-internal-slider-label-input-margin: calc(var(--arcgis-internal-slider-handle-offset) + 4px);--arcgis-internal-slider-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-brand);--arcgis-internal-slider-track-size: 2px}:host([show-range-labels]){--arcgis-internal-slider-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-internal-slider-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-internal-slider-value-labels-placement-start: var(--arcgis-internal-slider-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-internal-slider-value-labels-placement-end: var(--arcgis-internal-slider-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-internal-slider-range-labels-placement-center: var(--arcgis-internal-slider-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-internal-slider-range-labels-placement-end: var(--arcgis-internal-slider-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-internal-slider-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range-interactive{&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-border-2)}&.filled.active{outline-color:var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}.track-range{background-color:var(--arcgis-internal-slider-track-range-background-color);pointer-events:none}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range-interactive.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range-interactive.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range-interactive.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--arcgis-internal-slider-handle-color) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-internal-slider-handle-offset) * -1);left:calc(var(--arcgis-internal-slider-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:dir(rtl){.popover{direction:rtl}}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-internal-slider-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-internal-slider-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-internal-slider-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-internal-slider-content-start-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height)) );--arcgis-internal-slider-content-end-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) );column-gap:calc(var(--arcgis-internal-slider-show-range-labels) * var(--arcgis-internal-slider-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) var(--arcgis-internal-slider-track-size) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){min-inline-size:min-content;.content{--arcgis-internal-slider-content-start-min-height: calc( var(--arcgis-internal-slider-handle-offset) + var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height) );--arcgis-internal-slider-content-end-min-height: calc( var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height) );padding-inline:var(--arcgis-internal-slider-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto 0 auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) var(--arcgis-internal-slider-track-size) var(--arcgis-internal-slider-handle-offset) calc(var(--arcgis-internal-slider-range-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-internal-slider-label-input-margin) + var(--arcgis-internal-slider-range-labels-placement-end) * (var(--arcgis-internal-slider-label-input-height)))}}.min,.max{--arcgis-internal-slider-range-translation: calc(var(--arcgis-internal-slider-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}}&:host([mirrored]){.min{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}}}`;
55
+ var fe = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, W = (a) => {
56
+ throw TypeError(a);
57
+ }, D = (a, e, t, n) => {
58
+ for (var i = n > 1 ? void 0 : n ? pe(e, t) : e, r = a.length - 1, o; r >= 0; r--)
59
+ (o = a[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
60
+ return n && i && fe(e, t, i), i;
61
+ }, G = (a, e, t) => e.has(a) || W("Cannot " + t), ve = (a, e, t) => (G(a, e, "read from private field"), e.get(a)), be = (a, e, t) => e.has(a) ? W("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), _e = (a, e, t, n) => (G(a, e, "write to private field"), e.set(a, t), t), F;
61
62
  function xe() {
62
63
  return {
63
64
  min: 0,
@@ -71,20 +72,20 @@ let y = class extends oe {
71
72
  // Lifecycle
72
73
  //
73
74
  //--------------------------------------------------------------------------
74
- constructor(n = {}) {
75
- super({ ...xe(), properties: n }), this._entries = /* @__PURE__ */ new Map(), this.precision = 4, this.ready = !1, be(this, F);
75
+ constructor(a = {}) {
76
+ super({ ...xe(), properties: a }), this._entries = /* @__PURE__ */ new Map(), this.precision = 4, this.ready = !1, be(this, F);
76
77
  }
77
78
  startup() {
78
- const { precision: n } = this;
79
- let { min: e, max: t, values: a } = this;
80
- t = x(t, n), e = x(e, n), a = a?.map((r) => T(x(r, n), e, t)).sort((r, o) => r - o), this._set("min", e), this._set("max", t), this._set("values", a);
81
- const i = new Map(a?.map((r) => [K(), r]));
79
+ const { precision: a } = this;
80
+ let { min: e, max: t, values: n } = this;
81
+ t = x(t, a), e = x(e, a), n = n?.map((r) => P(x(r, a), e, t)).sort((r, o) => r - o), this._set("min", e), this._set("max", t), this._set("values", n);
82
+ const i = new Map(n?.map((r) => [K(), r]));
82
83
  this._entries = i, A(
83
84
  () => this.min,
84
85
  (r) => {
85
86
  const o = this.values;
86
- r != null && o?.length && o.some((s) => s < r) && (this._entries.forEach((s, l) => {
87
- s < r && this._entries.set(l, r);
87
+ r != null && o?.length && o.some((l) => l < r) && (this._entries.forEach((l, s) => {
88
+ l < r && this._entries.set(s, r);
88
89
  }), this._updatesValues());
89
90
  },
90
91
  { sync: !0 }
@@ -92,16 +93,16 @@ let y = class extends oe {
92
93
  () => this.max,
93
94
  (r) => {
94
95
  const o = this.values;
95
- r != null && o?.length && o.some((s) => s > r) && (this._entries.forEach((s, l) => {
96
- s > r && this._entries.set(l, r);
96
+ r != null && o?.length && o.some((l) => l > r) && (this._entries.forEach((l, s) => {
97
+ l > r && this._entries.set(s, r);
97
98
  }), this._updatesValues());
98
99
  },
99
100
  { sync: !0 }
100
101
  ), A(
101
102
  () => this.precision,
102
103
  (r) => {
103
- const { min: o, max: s, values: l } = this;
104
- this._set("min", x(o, r)), this._set("max", x(s, r)), l?.length && (this._entries.forEach((c, d) => {
104
+ const { min: o, max: l, values: s } = this;
105
+ this._set("min", x(o, r)), this._set("max", x(l, r)), s?.length && (this._entries.forEach((c, d) => {
105
106
  this._entries.set(d, x(c, r));
106
107
  }), this._updatesValues());
107
108
  },
@@ -111,42 +112,42 @@ let y = class extends oe {
111
112
  get entries() {
112
113
  return this._entries;
113
114
  }
114
- set max(n) {
115
+ set max(a) {
115
116
  if (!this.ready) {
116
- this._set("max", n);
117
+ this._set("max", a);
117
118
  return;
118
119
  }
119
- const e = this._get("max"), t = x(n, this.precision);
120
+ const e = this._get("max"), t = x(a, this.precision);
120
121
  e !== t && this._set("max", t);
121
122
  }
122
- set min(n) {
123
+ set min(a) {
123
124
  if (!this.ready) {
124
- this._set("min", n);
125
+ this._set("min", a);
125
126
  return;
126
127
  }
127
- const e = this._get("min"), t = x(n, this.precision);
128
+ const e = this._get("min"), t = x(a, this.precision);
128
129
  e !== t && this._set("min", t);
129
130
  }
130
- set values(n) {
131
- if (ve(this, F) === n)
131
+ set values(a) {
132
+ if (ve(this, F) === a)
132
133
  return;
133
- if (_e(this, F, n), !this.ready) {
134
- this._set("values", n);
134
+ if (_e(this, F, a), !this.ready) {
135
+ this._set("values", a);
135
136
  return;
136
137
  }
137
138
  const e = this._get("values");
138
- if (n = n?.map((a) => T(x(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e?.length === n?.length && e.every((a, i) => a === n[i]))
139
+ if (a = a?.map((n) => P(x(n, this.precision), this.min, this.max)).sort((n, i) => n - i), e?.length === a?.length && e.every((n, i) => n === a[i]))
139
140
  return;
140
- const t = new Map(n?.map((a) => [K(), a]));
141
- this._entries = t, this._set("values", n);
141
+ const t = new Map(a?.map((n) => [K(), n]));
142
+ this._entries = t, this._set("values", a);
142
143
  }
143
144
  //--------------------------------------------------------------------------
144
145
  //
145
146
  // Public Methods
146
147
  //
147
148
  //--------------------------------------------------------------------------
148
- getValue(n) {
149
- return this._entries.get(n);
149
+ getValue(a) {
150
+ return this._entries.get(a);
150
151
  }
151
152
  /**
152
153
  * Updates a thumb [value](#values) based on the provided index. The provided value
@@ -155,345 +156,345 @@ let y = class extends oe {
155
156
  *
156
157
  * @returns `true` if the value was changed, otherwise `false`.
157
158
  */
158
- setValue(n, e) {
159
+ setValue(a, e) {
159
160
  if (this.values == null)
160
161
  return !1;
161
- const { min: t, max: a } = this, i = this._entries.get(n), r = T(x(e, this.precision), t, a);
162
- return i === r ? !1 : (this._entries.set(n, r), this._updatesValues(), !0);
162
+ const { min: t, max: n } = this, i = this._entries.get(a), r = P(x(e, this.precision), t, n);
163
+ return i === r ? !1 : (this._entries.set(a, r), this._updatesValues(), !0);
163
164
  }
164
- setValues(n) {
165
+ setValues(a) {
165
166
  if (this.values == null)
166
167
  return !1;
167
168
  let e = !1;
168
- const { min: t, max: a } = this;
169
- for (const [i, r] of n) {
170
- const o = this._entries.get(i), s = T(x(r, this.precision), t, a);
171
- o !== s && (e = !0, this._entries.set(i, s));
169
+ const { min: t, max: n } = this;
170
+ for (const [i, r] of a) {
171
+ const o = this._entries.get(i), l = P(x(r, this.precision), t, n);
172
+ o !== l && (e = !0, this._entries.set(i, l));
172
173
  }
173
174
  return e ? (this._updatesValues(), !0) : !1;
174
175
  }
175
176
  _updatesValues() {
176
- const n = Array.from(this._entries.values()).sort((e, t) => e - t);
177
- this._set("values", n);
177
+ const a = Array.from(this._entries.values()).sort((e, t) => e - t);
178
+ this._set("values", a);
178
179
  }
179
180
  };
180
181
  F = /* @__PURE__ */ new WeakMap();
181
- k([
182
+ D([
182
183
  I()
183
184
  ], y.prototype, "_entries", 2);
184
- k([
185
+ D([
185
186
  I({ readOnly: !0 })
186
187
  ], y.prototype, "entries", 1);
187
- k([
188
+ D([
188
189
  I()
189
190
  ], y.prototype, "max", 1);
190
- k([
191
+ D([
191
192
  I()
192
193
  ], y.prototype, "min", 1);
193
- k([
194
- I({ cast: (n) => T(n, 0, 20) })
194
+ D([
195
+ I({ cast: (a) => P(a, 0, 20) })
195
196
  ], y.prototype, "precision", 2);
196
- k([
197
+ D([
197
198
  I({ readOnly: !0 })
198
199
  ], y.prototype, "ready", 2);
199
- k([
200
+ D([
200
201
  I()
201
202
  ], y.prototype, "values", 1);
202
- y = k([
203
+ y = D([
203
204
  ce("esri.widgets.Slider.SliderData")
204
205
  ], y);
205
- function T(n, e, t) {
206
- return Math.min(Math.max(n, e), t);
206
+ function P(a, e, t) {
207
+ return Math.min(Math.max(a, e), t);
207
208
  }
208
- function x(n, e) {
209
- return Number.parseFloat(n.toFixed(e));
209
+ function x(a, e) {
210
+ return Number.parseFloat(a.toFixed(e));
210
211
  }
211
212
  class we {
212
213
  constructor(e) {
213
214
  this.steps = e, this.minIndex = 0, this.maxIndex = this.steps.length - 1;
214
215
  }
215
216
  indexToValue(e) {
216
- return this.steps[D(e, this.minIndex, this.maxIndex)];
217
+ return this.steps[k(e, this.minIndex, this.maxIndex)];
217
218
  }
218
219
  valueToIndex(e) {
219
220
  const t = this.steps.indexOf(e);
220
221
  return t !== -1 ? t : this.steps.reduce(
221
- (a, i, r, o) => Math.abs(i - e) < Math.abs(o[a] - e) ? r : a,
222
+ (n, i, r, o) => Math.abs(i - e) < Math.abs(o[n] - e) ? r : n,
222
223
  0
223
224
  );
224
225
  }
225
226
  getClosestStepDistances(e, t) {
226
227
  if (t <= 0)
227
228
  return [];
228
- const a = [];
229
+ const n = [];
229
230
  for (let i = this.minIndex; i <= this.maxIndex; i++) {
230
231
  const r = this.indexToValue(i), o = Math.abs(r - e);
231
- let s = !1;
232
- for (let l = 0; l < a.length; l++)
233
- if (o < a[l].dist) {
234
- a.splice(l, 0, { idx: i, value: r, dist: o }), s = !0;
232
+ let l = !1;
233
+ for (let s = 0; s < n.length; s++)
234
+ if (o < n[s].dist) {
235
+ n.splice(s, 0, { idx: i, value: r, dist: o }), l = !0;
235
236
  break;
236
237
  }
237
- !s && a.length < t && a.push({ idx: i, value: r, dist: o }), a.length > t && (a.length = t);
238
+ !l && n.length < t && n.push({ idx: i, value: r, dist: o }), n.length > t && (n.length = t);
238
239
  }
239
- return a;
240
+ return n;
240
241
  }
241
242
  }
242
243
  class ye {
243
- constructor(e, t, a) {
244
- this.min = e, this.max = t, this.stepSize = a, this.minIndex = 0, this.maxIndex = Math.round((this.max - this.min) / this.stepSize);
244
+ constructor(e, t, n) {
245
+ this.min = e, this.max = t, this.stepSize = n, this.minIndex = 0, this.maxIndex = Math.round((this.max - this.min) / this.stepSize);
245
246
  }
246
247
  indexToValue(e) {
247
- return this.min + D(e, this.minIndex, this.maxIndex) * this.stepSize;
248
+ return this.min + k(e, this.minIndex, this.maxIndex) * this.stepSize;
248
249
  }
249
250
  valueToIndex(e) {
250
- return e = D(e, this.min, this.max), Math.round((e - this.min) / this.stepSize);
251
+ return e = k(e, this.min, this.max), Math.round((e - this.min) / this.stepSize);
251
252
  }
252
253
  getClosestStepDistances(e, t) {
253
254
  if (t <= 0)
254
255
  return [];
255
- const a = [], i = this.minIndex, r = this.maxIndex, s = (D(e, this.min, this.max) - this.min) / this.stepSize;
256
- let l = Math.floor(s), c = l + 1;
257
- for (; a.length < t && (l >= i || c <= r); ) {
258
- if (l < i) {
259
- const u = this.indexToValue(c);
260
- a.push({ idx: c, value: u, dist: Math.abs(u - e) }), c++;
256
+ const n = [], i = this.minIndex, r = this.maxIndex, l = (k(e, this.min, this.max) - this.min) / this.stepSize;
257
+ let s = Math.floor(l), c = s + 1;
258
+ for (; n.length < t && (s >= i || c <= r); ) {
259
+ if (s < i) {
260
+ const g = this.indexToValue(c);
261
+ n.push({ idx: c, value: g, dist: Math.abs(g - e) }), c++;
261
262
  continue;
262
263
  }
263
264
  if (c > r) {
264
- const u = this.indexToValue(l);
265
- a.push({ idx: l, value: u, dist: Math.abs(u - e) }), l--;
265
+ const g = this.indexToValue(s);
266
+ n.push({ idx: s, value: g, dist: Math.abs(g - e) }), s--;
266
267
  continue;
267
268
  }
268
- const d = this.indexToValue(l), h = this.indexToValue(c), g = Math.abs(d - e), f = Math.abs(h - e);
269
- g <= f ? (a.push({ idx: l, value: d, dist: g }), l--) : (a.push({ idx: c, value: h, dist: f }), c++);
269
+ const d = this.indexToValue(s), h = this.indexToValue(c), u = Math.abs(d - e), f = Math.abs(h - e);
270
+ u <= f ? (n.push({ idx: s, value: d, dist: u }), s--) : (n.push({ idx: c, value: h, dist: f }), c++);
270
271
  }
271
- return a;
272
+ return n;
272
273
  }
273
274
  }
274
- function De(n) {
275
- if (n.steps == null)
275
+ function ke(a) {
276
+ if (a.steps == null)
276
277
  return null;
277
- const e = n.steps;
278
- return Array.isArray(e) ? e.length === 0 ? null : new we(e) : e <= 0 ? null : new ye(n.min, n.max, e);
279
- }
280
- function ke(n, e, t) {
281
- if (n == null) {
282
- const s = /* @__PURE__ */ new Map();
283
- for (const [l, c] of e.entries())
284
- s.set(l, c + t);
285
- return s;
286
- }
287
- const a = e.size, i = Array.from(e.entries()).map(([s, l]) => {
288
- const c = l + t, d = n.getClosestStepDistances(c, a);
289
- return { uuid: s, stepDistances: d };
278
+ const e = a.steps;
279
+ return Array.isArray(e) ? e.length === 0 ? null : new we(e) : e <= 0 ? null : new ye(a.min, a.max, e);
280
+ }
281
+ function De(a, e, t) {
282
+ if (a == null) {
283
+ const l = /* @__PURE__ */ new Map();
284
+ for (const [s, c] of e.entries())
285
+ l.set(s, c + t);
286
+ return l;
287
+ }
288
+ const n = e.size, i = Array.from(e.entries()).map(([l, s]) => {
289
+ const c = s + t, d = a.getClosestStepDistances(c, n);
290
+ return { uuid: l, stepDistances: d };
290
291
  }), r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
291
- i.sort((s, l) => s.stepDistances[0].dist - l.stepDistances[0].dist);
292
- for (const s of i) {
293
- const l = s.stepDistances.find((c) => !r.has(c.idx));
294
- l ? (r.add(l.idx), o.set(s.uuid, l.value)) : o.set(s.uuid, e.get(s.uuid));
292
+ i.sort((l, s) => l.stepDistances[0].dist - s.stepDistances[0].dist);
293
+ for (const l of i) {
294
+ const s = l.stepDistances.find((c) => !r.has(c.idx));
295
+ s ? (r.add(s.idx), o.set(l.uuid, s.value)) : o.set(l.uuid, e.get(l.uuid));
295
296
  }
296
297
  return o;
297
298
  }
298
- function X(n, e, t, a, i) {
299
+ function X(a, e, t, n, i) {
299
300
  const r = e.get(t) ?? 0;
300
- if (!n)
301
- return r + a;
302
- const o = r + a, s = n.minIndex, l = n.maxIndex, c = /* @__PURE__ */ new Set();
301
+ if (!a)
302
+ return r + n;
303
+ const o = r + n, l = a.minIndex, s = a.maxIndex, c = /* @__PURE__ */ new Set();
303
304
  if (!i)
304
- for (const [u, v] of e.entries())
305
- u !== t && c.add(n.valueToIndex(v));
306
- const d = D(n.valueToIndex(o), s, l);
305
+ for (const [g, v] of e.entries())
306
+ g !== t && c.add(a.valueToIndex(v));
307
+ const d = k(a.valueToIndex(o), l, s);
307
308
  if (!c.has(d))
308
- return n.indexToValue(d);
309
- let h = null, g = 1 / 0;
310
- const f = Math.min(Math.max(d - s, l - d), c.size + 1);
311
- for (let u = 1; u <= f; u++) {
312
- const v = d - u;
313
- if (v >= s && !c.has(v)) {
314
- const m = n.indexToValue(v), b = Math.abs(m - o);
315
- h = v, g = b;
309
+ return a.indexToValue(d);
310
+ let h = null, u = 1 / 0;
311
+ const f = Math.min(Math.max(d - l, s - d), c.size + 1);
312
+ for (let g = 1; g <= f; g++) {
313
+ const v = d - g;
314
+ if (v >= l && !c.has(v)) {
315
+ const m = a.indexToValue(v), b = Math.abs(m - o);
316
+ h = v, u = b;
316
317
  }
317
- const _ = d + u;
318
- if (_ <= l && !c.has(_)) {
319
- const m = n.indexToValue(_), b = Math.abs(m - o);
320
- (h == null || b < g) && (h = _, g = b);
318
+ const _ = d + g;
319
+ if (_ <= s && !c.has(_)) {
320
+ const m = a.indexToValue(_), b = Math.abs(m - o);
321
+ (h == null || b < u) && (h = _, u = b);
321
322
  }
322
323
  if (h != null)
323
- return n.indexToValue(h);
324
+ return a.indexToValue(h);
324
325
  }
325
- return h == null ? r : n.indexToValue(h);
326
+ return h == null ? r : a.indexToValue(h);
326
327
  }
327
- function Ie(n, e, t, a = 1) {
328
- const i = J(a);
328
+ function Ie(a, e, t, n = 1) {
329
+ const i = J(n);
329
330
  let r = e, o = !1;
330
- for (let s = 0; s < i; s++) {
331
- const l = Ve(n, r, t);
332
- if (o ||= l.changed, r = l.entries, !l.changed)
331
+ for (let l = 0; l < i; l++) {
332
+ const s = Ve(a, r, t);
333
+ if (o ||= s.changed, r = s.entries, !s.changed)
333
334
  break;
334
335
  }
335
336
  return { changed: o, entries: r };
336
337
  }
337
- function Ee(n, e, t, a, i = 1) {
338
+ function Ee(a, e, t, n, i = 1) {
338
339
  const r = J(i);
339
340
  if (r === 1)
340
- return H(n, e, t, a);
341
+ return H(a, e, t, n);
341
342
  const o = new Map(e);
342
- let s = o.get(t);
343
- for (let l = 0; l < r; l++) {
344
- const c = H(n, o, t, a);
345
- if (c === s)
343
+ let l = o.get(t);
344
+ for (let s = 0; s < r; s++) {
345
+ const c = H(a, o, t, n);
346
+ if (c === l)
346
347
  break;
347
- s = c, o.set(t, s);
348
+ l = c, o.set(t, l);
348
349
  }
349
- return s;
350
+ return l;
350
351
  }
351
- function J(n) {
352
- const e = Number.isFinite(n) ? Math.floor(n) : 1;
352
+ function J(a) {
353
+ const e = Number.isFinite(a) ? Math.floor(a) : 1;
353
354
  return Math.max(1, e);
354
355
  }
355
- function Ve(n, e, t) {
356
- const a = /* @__PURE__ */ new Map(), i = t > 0 ? Me : Y, r = Array.from(e).sort((l, c) => i(l[1], c[1]));
357
- let o = !1, s = !0;
358
- for (const [l, c] of r)
359
- if (a.set(l, c), s) {
360
- const d = H(n, a, l, t);
361
- c === d && (s = !1), o ||= s, a.set(l, d);
356
+ function Ve(a, e, t) {
357
+ const n = /* @__PURE__ */ new Map(), i = t > 0 ? Ce : Y, r = Array.from(e).sort((s, c) => i(s[1], c[1]));
358
+ let o = !1, l = !0;
359
+ for (const [s, c] of r)
360
+ if (n.set(s, c), l) {
361
+ const d = H(a, n, s, t);
362
+ c === d && (l = !1), o ||= l, n.set(s, d);
362
363
  }
363
- return { changed: o, entries: a };
364
+ return { changed: o, entries: n };
364
365
  }
365
- function H(n, e, t, a) {
366
- const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: s, max: l } = n, c = e.get(t);
367
- if (a = a > 0 ? 1 : -1, !r) {
368
- let m = D(c + a * o, s, l);
366
+ function H(a, e, t, n) {
367
+ const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: l, max: s } = a, c = e.get(t);
368
+ if (n = n > 0 ? 1 : -1, !r) {
369
+ let m = k(c + n * o, l, s);
369
370
  if (i)
370
371
  return m;
371
372
  const b = /* @__PURE__ */ new Set();
372
- for (const [C, M] of e)
373
- C !== t && b.add(M);
374
- for (; b.has(m) && m <= l && m >= s; )
375
- m = D(m + a * o, s, l);
376
- return b.has(m) || m > l || m < s ? c : m;
373
+ for (const [T, C] of e)
374
+ T !== t && b.add(C);
375
+ for (; b.has(m) && m <= s && m >= l; )
376
+ m = k(m + n * o, l, s);
377
+ return b.has(m) || m > s || m < l ? c : m;
377
378
  }
378
379
  const d = r.valueToIndex(c);
379
380
  if (d === -1)
380
381
  return c;
381
382
  if (i) {
382
- const m = D(d + a, r.minIndex, r.maxIndex);
383
+ const m = k(d + n, r.minIndex, r.maxIndex);
383
384
  return r.indexToValue(m);
384
385
  }
385
386
  const h = /* @__PURE__ */ new Set();
386
387
  for (const [m, b] of e)
387
388
  m !== t && h.add(r.valueToIndex(b));
388
- let g = d, f = !1;
389
- const u = r.minIndex, v = r.maxIndex;
389
+ let u = d, f = !1;
390
+ const g = r.minIndex, v = r.maxIndex;
390
391
  let _ = 0;
391
- for (; _ < Math.abs(v - u) && (g += a, !(g < u || g > v)); ) {
392
- if (!h.has(g)) {
392
+ for (; _ < Math.abs(v - g) && (u += n, !(u < g || u > v)); ) {
393
+ if (!h.has(u)) {
393
394
  f = !0;
394
395
  break;
395
396
  }
396
397
  _++;
397
398
  }
398
- return f ? r.indexToValue(g) : c;
399
+ return f ? r.indexToValue(u) : c;
399
400
  }
400
- function Te(n, e, t, a) {
401
- const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: s, max: l } = n, c = e.get(t);
402
- if (a = a > 0 ? 1 : -1, !r) {
401
+ function Pe(a, e, t, n) {
402
+ const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: l, max: s } = a, c = e.get(t);
403
+ if (n = n > 0 ? 1 : -1, !r) {
403
404
  const f = new Set(
404
405
  Array.from(e).filter(([v]) => v !== t).map(([, v]) => v)
405
406
  );
406
- let u = a > 0 ? l : s;
407
+ let g = n > 0 ? s : l;
407
408
  if (i)
408
- return u;
409
- for (; f.has(u); )
410
- if (u -= a * o, a > 0 && u > l || a < 0 && u < s) {
411
- u = c;
409
+ return g;
410
+ for (; f.has(g); )
411
+ if (g -= n * o, n > 0 && g > s || n < 0 && g < l) {
412
+ g = c;
412
413
  break;
413
414
  }
414
- return u;
415
+ return g;
415
416
  }
416
417
  if (i)
417
- return a > 0 ? r.indexToValue(r.maxIndex) : r.indexToValue(r.minIndex);
418
+ return n > 0 ? r.indexToValue(r.maxIndex) : r.indexToValue(r.minIndex);
418
419
  const d = r.valueToIndex(c);
419
420
  if (d === -1)
420
421
  return c;
421
422
  const h = new Set(
422
423
  Array.from(e).filter(([f]) => f !== t).map(([, f]) => r.valueToIndex(f))
423
424
  );
424
- let g = a > 0 ? r.maxIndex : r.minIndex;
425
- for (; h.has(g); )
426
- if (g -= a, a > 0 && g > l || a < 0 && g < s) {
427
- g = d;
425
+ let u = n > 0 ? r.maxIndex : r.minIndex;
426
+ for (; h.has(u); )
427
+ if (u -= n, n > 0 && u > s || n < 0 && u < l) {
428
+ u = d;
428
429
  break;
429
430
  }
430
- return r.indexToValue(g);
431
+ return r.indexToValue(u);
431
432
  }
432
- function Ce(n, e, t) {
433
- const { stepsProvider: a, min: i, max: r } = n, o = /* @__PURE__ */ new Map(), s = Array.from(e).sort((c, d) => Y(c[1], d[1]));
434
- if (a) {
433
+ function Te(a, e, t) {
434
+ const { stepsProvider: n, min: i, max: r } = a, o = /* @__PURE__ */ new Map(), l = Array.from(e).sort((c, d) => Y(c[1], d[1]));
435
+ if (n) {
435
436
  let c = 0;
436
437
  if (t > 0) {
437
- const d = s[s.length - 1], h = a.valueToIndex(d[1]);
438
- c = a.maxIndex - h;
438
+ const d = l[l.length - 1], h = n.valueToIndex(d[1]);
439
+ c = n.maxIndex - h;
439
440
  } else {
440
- const d = s[0], h = a.valueToIndex(d[1]);
441
- c = a.minIndex - h;
441
+ const d = l[0], h = n.valueToIndex(d[1]);
442
+ c = n.minIndex - h;
442
443
  }
443
444
  if (c === 0)
444
- for (const [d, h] of s)
445
+ for (const [d, h] of l)
445
446
  o.set(d, h);
446
- for (const [d, h] of s) {
447
- const g = a.indexToValue(a.valueToIndex(h) + c);
448
- o.set(d, g);
447
+ for (const [d, h] of l) {
448
+ const u = n.indexToValue(n.valueToIndex(h) + c);
449
+ o.set(d, u);
449
450
  }
450
451
  return o;
451
452
  }
452
- let l = 0;
453
+ let s = 0;
453
454
  if (t > 0) {
454
- const c = s[s.length - 1];
455
- l = r - c[1];
455
+ const c = l[l.length - 1];
456
+ s = r - c[1];
456
457
  } else {
457
- const c = s[0];
458
- l = i - c[1];
458
+ const c = l[0];
459
+ s = i - c[1];
459
460
  }
460
- for (const [c, d] of s)
461
- o.set(c, d + l);
461
+ for (const [c, d] of l)
462
+ o.set(c, d + s);
462
463
  return o;
463
464
  }
464
- function Y(n, e) {
465
- return n - e;
465
+ function Y(a, e) {
466
+ return a - e;
466
467
  }
467
- function Me(n, e) {
468
- return e - n;
468
+ function Ce(a, e) {
469
+ return e - a;
469
470
  }
470
- function D(n, e, t) {
471
- return Math.max(e, Math.min(t, n));
471
+ function k(a, e, t) {
472
+ return Math.max(e, Math.min(t, a));
472
473
  }
473
- const $e = te(y);
474
- class Pe extends ee {
474
+ const Se = te(y);
475
+ class Me extends ee {
475
476
  constructor() {
476
477
  super(...arguments), this._stepsProvider = null, this._popoverElement = B(), this._trackElement = B(), this.messages = se({}), this._onPointerMoveDragUpdate = (e) => {
477
478
  this._updateDrag(this._mapEventToRange(e));
478
479
  }, this._onPointerUpDragEnd = (e) => {
479
- S(e) && this._endDrag();
480
+ $(e) && this._endDrag();
480
481
  }, this._onPointerCancelDragEnd = () => {
481
482
  this._endDrag();
482
- }, this._formatLabel = (e, t, a) => {
483
+ }, this._formatLabel = (e, t, n) => {
483
484
  const i = le(this.messages._lang, t), r = this.labelFormatter;
484
485
  if (!r)
485
- return i.format(a);
486
- const o = r(a, e, (s) => i.format(s));
487
- return o ?? i.format(a);
486
+ return i.format(n);
487
+ const o = r(n, e, (l) => i.format(l));
488
+ return o ?? i.format(n);
488
489
  }, this._numberFormatOptions = {}, this._createFormatter = (e, t) => this._formatLabel.bind(this, e, t), this._minFormatter = this._createFormatter("min", this._numberFormatOptions), this._maxFormatter = this._createFormatter("max", this._numberFormatOptions), this._valueFormatter = this._createFormatter("value", this._numberFormatOptions), this._resizeObserver = new ResizeObserver(() => {
489
490
  this._layoutLabelInputs();
490
- }), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._activePart = null, this._sliderData = $e(this), this.allowValuesOverlap = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.fillPlacement = "start", this.layout = "horizontal", this.max = this._sliderData.max, this.min = this._sliderData.min, this.mirrored = !1, this.popoverLabel = "", this.popoverPlacement = "start", this.precision = this._sliderData.precision, this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.segmentsDraggingDisabled = !1, this.showRangeLabels = !1, this.valueLabelsDisplay = "hidden", this.valueLabelsPlacement = "start", this.valueLabelsEditingEnabled = !1, this.keyboardLargeStep = 10, this.values = this._sliderData.values, this.arcgisActiveValueChange = $({ cancelable: !1 }), this.arcgisChange = $({ cancelable: !1 }), this.arcgisInput = $({ cancelable: !1 }), this.arcgisRangeChange = $({ cancelable: !1 });
491
+ }), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._activePart = null, this._sliderData = Se(this), this.allowValuesOverlap = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.fillPlacement = "start", this.layout = "horizontal", this.max = this._sliderData.max, this.min = this._sliderData.min, this.mirrored = !1, this.popoverDisplay = "auto", this.popoverLabel = "", this.popoverPlacement = "start", this.precision = this._sliderData.precision, this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.segmentsDraggingDisabled = !1, this.showRangeLabels = !1, this.valueLabelsDisplay = "hidden", this.valueLabelsPlacement = "start", this.valueLabelsEditingEnabled = !1, this.keyboardLargeStep = 10, this.values = this._sliderData.values, this.arcgisActiveValueChange = S({ cancelable: !1 }), this.arcgisChange = S({ cancelable: !1 }), this.arcgisInput = S({ cancelable: !1 }), this.arcgisRangeChange = S({ cancelable: !1 });
491
492
  }
492
493
  static {
493
- this.properties = { _dragInfo: 16, _hasPopoverContent: 16, _hasContentStart: 16, _hasContentEnd: 16, _activePart: 16, _sliderData: 16, activeValue: 32, allowValuesOverlap: 5, autoDestroyDisabled: 5, disabled: 7, fullRangeMax: 11, fullRangeMin: 11, fillPlacement: 1, labelFormatter: 0, layout: 3, max: 11, min: 11, mirrored: 7, popoverLabel: 1, popoverPlacement: 3, precision: 11, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 3, segmentsDraggingDisabled: 5, showRangeLabels: 7, steps: [9, { converter: {
494
+ this.properties = { _dragInfo: 16, _hasPopoverContent: 16, _hasContentStart: 16, _hasContentEnd: 16, _activePart: 16, _sliderData: 16, activeValue: 32, allowValuesOverlap: 5, autoDestroyDisabled: 5, disabled: 7, fullRangeMax: 11, fullRangeMin: 11, fillPlacement: 1, labelFormatter: 0, layout: 3, max: 11, min: 11, mirrored: 7, popoverDisplay: 1, popoverLabel: 1, popoverPlacement: 3, precision: 11, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 3, segmentsDraggingDisabled: 5, showRangeLabels: 7, steps: [9, { converter: {
494
495
  fromAttribute(e) {
495
496
  if (e.includes(","))
496
- return e.split(",").filter((a) => a.trim() !== "").map(parseFloat).filter((a) => Number.isFinite(a));
497
+ return e.split(",").filter((n) => n.trim() !== "").map(parseFloat).filter((n) => Number.isFinite(n));
497
498
  const t = parseFloat(e);
498
499
  return Number.isFinite(t) ? t : void 0;
499
500
  }
@@ -529,8 +530,8 @@ class Pe extends ee {
529
530
  return this.disabled || this.values.length === 0 || this._invalid;
530
531
  }
531
532
  get _invalid() {
532
- const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min, a = this.fullRangeMax == null || this.fullRangeMax >= this.max;
533
- return this.min >= this.max || !e || !t || !a;
533
+ const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min, n = this.fullRangeMax == null || this.fullRangeMax >= this.max;
534
+ return this.min >= this.max || !e || !t || !n;
534
535
  }
535
536
  get resolution() {
536
537
  const e = (this._sliderData.max - this._sliderData.min) / this._trackWidthOrHeight;
@@ -547,10 +548,14 @@ class Pe extends ee {
547
548
  this._sliderData.startup();
548
549
  }
549
550
  willUpdate(e) {
550
- if ((e.has("steps") || e.has("min") || e.has("max")) && (this._stepsProvider = De(this)), e.has("messages") || e.has("min") || e.has("max") || e.has("precision") || e.has("labelFormatter")) {
551
+ if ((e.has("steps") || e.has("min") || e.has("max")) && (this._stepsProvider = ke(this)), e.has("messages") || e.has("min") || e.has("max") || e.has("precision") || e.has("labelFormatter")) {
551
552
  const t = this.max != null && this.min != null && this.max - this.min > 10 ? 2 : this.precision;
552
553
  this._numberFormatOptions = { maximumFractionDigits: t }, this._minFormatter = this._createFormatter("min", this._numberFormatOptions), this._maxFormatter = this._createFormatter("max", this._numberFormatOptions), this._valueFormatter = this._createFormatter("value", this._numberFormatOptions);
553
554
  }
555
+ if (e.has("values")) {
556
+ const t = this._resolveFillPlacement(this.values.length > 1);
557
+ t !== this.fillPlacement && (this.fillPlacement = t);
558
+ }
554
559
  }
555
560
  updated(e) {
556
561
  this._layoutLabelInputs();
@@ -576,20 +581,20 @@ class Pe extends ee {
576
581
  if (this._labelInputsUpdateComplete = t, await t, t !== this._labelInputsUpdateComplete)
577
582
  return;
578
583
  this._labelInputsUpdateComplete = null;
579
- const a = this._trackElement.value;
580
- if (!a)
584
+ const n = this._trackElement.value;
585
+ if (!n)
581
586
  return;
582
- const i = a.getBoundingClientRect();
587
+ const i = n.getBoundingClientRect();
583
588
  for (const r of this._sliderData.entries.keys()) {
584
589
  const o = this._activePart === "range" || this._activePart === r;
585
590
  if (this.valueLabelsDisplay === "always" || o) {
586
- const l = Le(this, r), c = q(this, r);
587
- if (!l || !c)
591
+ const s = Re(this, r), c = q(this, r);
592
+ if (!s || !c)
588
593
  continue;
589
- const d = l.getBoundingClientRect(), h = c.getBoundingClientRect(), g = c.getLabelBoundingClientRect(), f = d.width / 2, u = Math.round(d.left + f), v = Math.round(g.width / 2);
594
+ const d = s.getBoundingClientRect(), h = c.getBoundingClientRect(), u = c.getLabelBoundingClientRect(), f = d.width / 2, g = Math.round(d.left + f), v = Math.round(u.width / 2);
590
595
  let _ = h.width / 2;
591
- const m = i.left - f, b = i.right + f, C = u - v, M = u + v;
592
- C < m ? _ += C - m : M > b && (_ += M - b), c.style.transform = `translateX(${-Math.round(_)}px)`;
596
+ const m = i.left - f, b = i.right + f, T = g - v, C = g + v;
597
+ T < m ? _ += T - m : C > b && (_ += C - b), c.style.transform = `translateX(${-Math.round(_)}px)`;
593
598
  }
594
599
  }
595
600
  }
@@ -600,10 +605,10 @@ class Pe extends ee {
600
605
  this._setActivePart(null);
601
606
  }
602
607
  _onTrackRangePointerDown(e) {
603
- this._disabledOrInvalid || !S(e) || (e.preventDefault(), e.currentTarget.focus(), this._startDrag("range", this._mapEventToRange(e)));
608
+ this._disabledOrInvalid || !$(e) || (e.preventDefault(), e.currentTarget.focus(), this._startDrag("range", this._mapEventToRange(e)));
604
609
  }
605
610
  async _onPointerDown(e) {
606
- if (this._disabledOrInvalid || !S(e))
611
+ if (this._disabledOrInvalid || !$(e))
607
612
  return;
608
613
  const t = this.renderRoot.querySelector("arcgis-label-input[editing]");
609
614
  if (e.target === t)
@@ -612,19 +617,19 @@ class Pe extends ee {
612
617
  t.blur(), this._focusEntry(V(t));
613
618
  return;
614
619
  }
615
- if (Se(e.target) || this.values?.length > 1)
620
+ if ($e(e.target) || this.values?.length > 1)
616
621
  return;
617
- const a = this._mapEventToRange(e), [i, r] = this._sliderData.entries.entries().next().value, o = a * this._fullRange + this._fullMin - r, s = z(this._fullMin, this._fullMax, r) / 100;
618
- this._startDrag(i, s);
619
- const l = X(this._stepsProvider, this._sliderData.entries, i, o, this.allowValuesOverlap);
620
- this._setValue(i, l), this._focusEntry(i);
622
+ const n = this._mapEventToRange(e), [i, r] = this._sliderData.entries.entries().next().value, o = n * this._fullRange + this._fullMin - r, l = z(this._fullMin, this._fullMax, r) / 100;
623
+ this._startDrag(i, l);
624
+ const s = X(this._stepsProvider, this._sliderData.entries, i, o, this.allowValuesOverlap);
625
+ this._setValue(i, s), this._focusEntry(i);
621
626
  }
622
627
  _onThumbPointerDown(e) {
623
628
  const t = V(e.currentTarget);
624
- if (!S(e) || this._disabledOrInvalid || !t)
629
+ if (!$(e) || this._disabledOrInvalid || !t)
625
630
  return;
626
- const a = q(this, t);
627
- e.target === a && a?.editing || (e.stopPropagation(), e.preventDefault(), this._focusEntry(t), this._startDrag(t, this._mapEventToRange(e)));
631
+ const n = q(this, t);
632
+ e.target === n && n?.editing || (e.stopPropagation(), e.preventDefault(), this._focusEntry(t), this._startDrag(t, this._mapEventToRange(e)));
628
633
  }
629
634
  _endDrag() {
630
635
  if (this._disabledOrInvalid)
@@ -633,8 +638,8 @@ class Pe extends ee {
633
638
  let e = !1;
634
639
  if (this._dragInfo) {
635
640
  const { entries: t } = this._dragInfo;
636
- for (const [a, i] of t)
637
- if (this._sliderData.getValue(a) !== i) {
641
+ for (const [n, i] of t)
642
+ if (this._sliderData.getValue(n) !== i) {
638
643
  e = !0;
639
644
  break;
640
645
  }
@@ -644,34 +649,34 @@ class Pe extends ee {
644
649
  _startDrag(e, t) {
645
650
  if (this._disabledOrInvalid)
646
651
  return;
647
- const { min: a, max: i, values: r } = this;
648
- let o = a, s = i;
652
+ const { min: n, max: i, values: r } = this;
653
+ let o = n, l = i;
649
654
  if (this._setActivePart(e), e === "range") {
650
655
  if (this.segmentsDraggingDisabled)
651
656
  return;
652
- o = a - r[0], s = i - r[r.length - 1];
657
+ o = n - r[0], l = i - r[r.length - 1];
653
658
  }
654
659
  this._dragInfo = {
655
660
  position: t,
656
661
  entries: new Map(this._sliderData.entries.entries()),
657
662
  minDiff: o,
658
- maxDiff: s
663
+ maxDiff: l
659
664
  }, this._addDragListeners();
660
665
  }
661
666
  _updateDrag(e) {
662
667
  if (!this._dragInfo || !this._activePart)
663
668
  return;
664
- const { _activePart: t, _dragInfo: { position: a, entries: i, minDiff: r, maxDiff: o } } = this;
665
- if (a === e)
669
+ const { _activePart: t, _dragInfo: { position: n, entries: i, minDiff: r, maxDiff: o } } = this;
670
+ if (n === e)
666
671
  return;
667
- let s = (e - a) * this._fullRange;
672
+ let l = (e - n) * this._fullRange;
668
673
  if (t === "range") {
669
- s = Math.min(o, Math.max(r, s));
670
- const l = ke(this._stepsProvider, i, s);
671
- this._setValues(l);
674
+ l = Math.min(o, Math.max(r, l));
675
+ const s = De(this._stepsProvider, i, l);
676
+ this._setValues(s);
672
677
  } else {
673
- const l = X(this._stepsProvider, i, t, s, this.allowValuesOverlap);
674
- this._setValue(t, l);
678
+ const s = X(this._stepsProvider, i, t, l, this.allowValuesOverlap);
679
+ this._setValue(t, s);
675
680
  }
676
681
  }
677
682
  _focusEntry(e) {
@@ -697,30 +702,30 @@ class Pe extends ee {
697
702
  this._setActivePart(null);
698
703
  }
699
704
  _onRangeInputChange(e) {
700
- const t = e.currentTarget, a = t.value, i = t.dataset.type;
705
+ const t = e.currentTarget, n = t.value, i = t.dataset.type;
701
706
  let r = !1;
702
707
  switch (e.stopPropagation(), i) {
703
708
  case "min": {
704
- a < this.max ? (this.min = a, r = !0) : t.value = this.min;
709
+ n < this.max ? (this.min = n, r = !0) : t.value = this.min;
705
710
  break;
706
711
  }
707
712
  case "max": {
708
- a > this.min ? (this.max = a, r = !0) : t.value = this.max;
713
+ n > this.min ? (this.max = n, r = !0) : t.value = this.max;
709
714
  break;
710
715
  }
711
716
  }
712
717
  r && this.arcgisRangeChange.emit();
713
718
  }
714
719
  _onValueInputChange(e) {
715
- const t = e.currentTarget, a = V(t), i = t.value;
716
- a && (e.stopPropagation(), this._setValue(a, i), t.value = this._sliderData.getValue(a));
720
+ const t = e.currentTarget, n = V(t), i = t.value;
721
+ n && (e.stopPropagation(), this._setValue(n, i), t.value = this._sliderData.getValue(n));
717
722
  }
718
723
  _mapEventToRange(e) {
719
724
  const t = this._trackElement.value?.getBoundingClientRect();
720
725
  if (!t)
721
726
  return 0;
722
- const a = this.isHorizontal ? (e.clientX - t.left) / t.width : 1 - (e.clientY - t.top) / t.height;
723
- return this.mirrored ? 1 - a : a;
727
+ const n = this.isHorizontal ? (e.clientX - t.left) / t.width : 1 - (e.clientY - t.top) / t.height;
728
+ return this.mirrored ? 1 - n : n;
724
729
  }
725
730
  _getPositionStyleForElement(e) {
726
731
  const t = z(this._fullMin, this._fullMax, e);
@@ -729,23 +734,23 @@ class Pe extends ee {
729
734
  };
730
735
  }
731
736
  _popoverSlotChange(e) {
732
- this._hasPopoverContent = R(e);
737
+ this._hasPopoverContent = L(e);
733
738
  }
734
739
  _onContentStartSlotChange(e) {
735
- this._hasContentStart = R(e);
740
+ this._hasContentStart = L(e);
736
741
  }
737
742
  _onContentEndSlotChange(e) {
738
- this._hasContentEnd = R(e);
743
+ this._hasContentEnd = L(e);
739
744
  }
740
745
  _onThumbKeyDown(e) {
741
746
  const t = V(e.currentTarget);
742
747
  if (!t)
743
748
  return;
744
- const a = e.currentTarget.querySelector("arcgis-label-input");
745
- if (!a || a.editing)
749
+ const n = e.currentTarget.querySelector("arcgis-label-input");
750
+ if (!n || n.editing)
746
751
  return;
747
752
  if (e.key === p.confirmEdit) {
748
- a.edit();
753
+ n.edit();
749
754
  return;
750
755
  }
751
756
  const i = N(e, this.keyboardLargeStep, this.mirrored);
@@ -757,7 +762,7 @@ class Pe extends ee {
757
762
  }
758
763
  if (U(e.key)) {
759
764
  e.preventDefault();
760
- const r = Te(this._getStepsConfiguration(), this._sliderData.entries, t, this._getDirectionForHomeEndKey(e.key));
765
+ const r = Pe(this._getStepsConfiguration(), this._sliderData.entries, t, this._getDirectionForHomeEndKey(e.key));
761
766
  this._setValue(t, r);
762
767
  }
763
768
  }
@@ -767,14 +772,14 @@ class Pe extends ee {
767
772
  const t = N(e, this.keyboardLargeStep, this.mirrored);
768
773
  if (t) {
769
774
  e.preventDefault();
770
- const { entries: a } = Ie(this._getStepsConfiguration(), this._sliderData.entries, t.direction, t.count);
771
- this._setValues(a);
775
+ const { entries: n } = Ie(this._getStepsConfiguration(), this._sliderData.entries, t.direction, t.count);
776
+ this._setValues(n);
772
777
  return;
773
778
  }
774
779
  if (U(e.key)) {
775
780
  e.preventDefault();
776
- const a = Ce(this._getStepsConfiguration(), this._sliderData.entries, this._getDirectionForHomeEndKey(e.key));
777
- this._setValues(a);
781
+ const n = Te(this._getStepsConfiguration(), this._sliderData.entries, this._getDirectionForHomeEndKey(e.key));
782
+ this._setValues(n);
778
783
  }
779
784
  }
780
785
  _getStepsConfiguration() {
@@ -792,16 +797,23 @@ class Pe extends ee {
792
797
  _setActivePart(e) {
793
798
  this._activePart !== e && (this._activePart = e, this.arcgisActiveValueChange.emit());
794
799
  }
800
+ _resolveFillPlacement(e) {
801
+ const { fillPlacement: t } = this;
802
+ return e ? t === "between" || t === "not-between" || t === "none" ? t : "between" : t === "start" || t === "end" || t === "none" ? t : "start";
803
+ }
795
804
  render() {
796
- return w`<div class=${P({
805
+ return w`<div class=${M({
797
806
  content: !0,
798
807
  disabled: this._disabledOrInvalid
799
808
  })} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`;
800
809
  }
801
810
  _renderPopover() {
802
- const { _activePart: e, layout: t, popoverPlacement: a, valueLabelsPlacement: i, valueLabelsDisplay: r, popoverLabel: o } = this, s = e ? ze(e) ? e : "track-range" : "", l = this._hasPopoverContent && !!s, c = t === "horizontal" ? a === "start" ? "top" : "bottom" : a === "start" ? "left" : "right";
803
- let d = 14;
804
- return r !== "hidden" && a === i && (d += 24), w`<calcite-popover focus-trap-disabled .label=${o} .open=${l} .offsetDistance=${d} .placement=${c} .referenceElement=${s} scale=s trigger-disabled ${O(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`;
811
+ const { _activePart: e, layout: t, popoverDisplay: n, popoverLabel: i, popoverPlacement: r, valueLabelsDisplay: o, valueLabelsPlacement: l } = this;
812
+ let s = "";
813
+ this._hasPopoverContent && (n === "always" && this.values.length > 1 ? s = "track-range" : e && ze(e) ? s = e : this.values.length > 1 ? s = "track-range" : s = this._sliderData.entries.keys().next().value ?? "");
814
+ const c = this._hasPopoverContent && (n === "always" || !!e), d = t === "horizontal" ? r === "start" ? "top" : "bottom" : r === "start" ? "left" : "right";
815
+ let h = 14;
816
+ return o !== "hidden" && r === l && (h += 24), w`<calcite-popover class="popover" focus-trap-disabled .label=${i} .open=${c} .offsetDistance=${h} .placement=${d} .referenceElement=${s} scale=s trigger-disabled ${O(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`;
805
817
  }
806
818
  _renderContentStart() {
807
819
  return w`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`;
@@ -816,107 +828,118 @@ class Pe extends ee {
816
828
  return w`<div class="track" ${O(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`;
817
829
  }
818
830
  _renderTrackBackground() {
819
- const { max: e, min: t, fillPlacement: a, values: i } = this, r = i.length > 1;
820
- let o = this._fullMin, s = this._fullMax;
821
- const l = [];
822
- return this._invalid ? w`<div class="segment track-bounds" style=${L({ left: "0%", right: "0%", top: "0%", bottom: "0%" })}></div>` : (o < t && (l.push(this._renderSegment(o, t, [
831
+ const { max: e, min: t, fillPlacement: n, values: i } = this, r = i.length > 1;
832
+ let o = this._fullMin, l = this._fullMax;
833
+ const s = [];
834
+ return this._invalid ? w`<div class="segment track-bounds" style=${R({ left: "0%", right: "0%", top: "0%", bottom: "0%" })}></div>` : (o < t && (s.push(this._renderSegment(o, t, [
823
835
  this.mirrored ? "track-effective-end" : "track-effective-start",
824
- !r && a === "start" ? "track-fill" : null
825
- ])), o = t), s > e && (l.push(this._renderSegment(e, s, [
836
+ !r && n === "start" ? "track-fill" : null
837
+ ])), o = t), l > e && (s.push(this._renderSegment(e, l, [
826
838
  this.mirrored ? "track-effective-start" : "track-effective-end",
827
- !r && a === "end" ? "track-fill" : null
828
- ])), s = e), l.push(this._renderSegment(o, s, ["track-bounds"])), l);
839
+ !r && n === "end" ? "track-fill" : null
840
+ ])), l = e), s.push(this._renderSegment(o, l, ["track-bounds"])), s);
829
841
  }
830
842
  _renderFillSegment() {
831
- const { values: e, fillPlacement: t, min: a, max: i } = this;
843
+ const { values: e, min: t, max: n } = this;
832
844
  if (!e?.length || this._invalid)
833
845
  return;
834
- const r = [...e].sort((s, l) => s - l);
835
- if (r.length === 1)
836
- switch (t) {
837
- case "start":
838
- if (a < r[0])
839
- return this._renderSegment(a, r[0], ["track-range"]);
840
- break;
841
- case "end":
842
- if (i > r[0])
843
- return this._renderSegment(r[0], i, ["track-range"]);
844
- break;
845
- }
846
- const o = this.segmentsDraggingDisabled;
847
- return this._renderSegment(r[0], r[r.length - 1], ["track-range", o ? null : "interactive", this._activePart === "range" ? "active" : null], {
846
+ const i = [...e].sort((h, u) => h - u), r = i[0], o = i[i.length - 1], l = this._resolveFillPlacement(i.length > 1);
847
+ let s;
848
+ switch (l) {
849
+ case "start":
850
+ t < r && (s = this._renderSegment(t, r, ["track-range"]));
851
+ break;
852
+ case "end":
853
+ n > o && (s = this._renderSegment(o, n, ["track-range"]));
854
+ break;
855
+ case "between":
856
+ i.length > 1 && (s = this._renderSegment(r, o, ["track-range"]));
857
+ break;
858
+ case "not-between":
859
+ i.length > 1 && (s = [this._renderSegment(t, r, ["track-range"]), this._renderSegment(o, n, ["track-range"])]);
860
+ break;
861
+ }
862
+ if (!(i.length > 1))
863
+ return s;
864
+ const c = this.segmentsDraggingDisabled, d = this._renderSegment(r, o, [
865
+ "track-range-interactive",
866
+ l === "between" ? "filled" : null,
867
+ c ? null : "interactive",
868
+ this._activePart === "range" ? "active" : null
869
+ ], {
848
870
  id: "track-range",
849
- onFocus: o ? void 0 : this._onTrackFocus,
850
- onBlur: o ? void 0 : this._onTrackBlur,
851
- onPointerDown: o ? void 0 : this._onTrackRangePointerDown,
852
- onKeyDown: o ? void 0 : this._onTrackRangeKeyDown
871
+ onFocus: c ? void 0 : this._onTrackFocus,
872
+ onBlur: c ? void 0 : this._onTrackBlur,
873
+ onPointerDown: c ? void 0 : this._onTrackRangePointerDown,
874
+ onKeyDown: c ? void 0 : this._onTrackRangeKeyDown
853
875
  });
876
+ return [s, d];
854
877
  }
855
- _renderSegment(e, t, a, i) {
856
- const { _fullMin: r, _fullMax: o, mirrored: s } = this, l = [
878
+ _renderSegment(e, t, n, i) {
879
+ const { _fullMin: r, _fullMax: o, mirrored: l } = this, s = [
857
880
  z(r, o, j(e, r, o)),
858
881
  100 - z(r, o, j(t, r, o))
859
882
  ];
860
- s && l.reverse();
883
+ l && s.reverse();
861
884
  const c = this.isHorizontal ? {
862
- left: `${l[0]}%`,
863
- right: `${l[1]}%`
885
+ left: `${s[0]}%`,
886
+ right: `${s[1]}%`
864
887
  } : {
865
- top: `${l[1]}%`,
866
- bottom: `${l[0]}%`
867
- }, d = ae("segment", ...a);
868
- return w`<div id=${i?.id ?? E} class=${P(d)} style=${L(c)} .tabIndex=${i?.onPointerDown ? 0 : -1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`;
888
+ top: `${s[1]}%`,
889
+ bottom: `${s[0]}%`
890
+ }, d = ne("segment", ...n);
891
+ return w`<div id=${i?.id ?? E} class=${M(d)} style=${R(c)} .tabIndex=${i?.onPointerDown ? 0 : -1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`;
869
892
  }
870
893
  _renderThumbs() {
871
- const { _sliderData: e } = this, t = Array.from(e.entries).filter(([, a]) => a >= this._fullMin && a <= this._fullMax);
872
- return ie(t, ([a, i]) => this._renderThumb(a, i));
894
+ const { _sliderData: e } = this, t = Array.from(e.entries).filter(([, n]) => n >= this._fullMin && n <= this._fullMax);
895
+ return ie(t, ([n, i]) => this._renderThumb(n, i));
873
896
  }
874
897
  _renderThumb(e, t) {
875
- const { valueLabelsDisplay: a } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", o = this._activePart === "range" || this._activePart === e, s = a === "always" || a === "auto" && o, l = this.isHorizontal, c = l ? "horizontal" : "vertical", d = `label-${e}`, h = l ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
876
- return Z(e, w`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${P({
898
+ const { valueLabelsDisplay: n } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", o = this._activePart === "range" || this._activePart === e, l = n === "always" || n === "auto" && o, s = this.isHorizontal, c = s ? "horizontal" : "vertical", d = `label-${e}`, h = s ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
899
+ return Z(e, w`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(n ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${M({
877
900
  thumb: !0,
878
901
  active: r
879
- })} data-entry=${e ?? E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${L({
902
+ })} data-entry=${e ?? E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${R({
880
903
  ...this._getPositionStyleForElement(t),
881
904
  "z-index": this._activePart === e ? 1 : 0
882
- })} .tabIndex=${i ? -1 : 0}><span class="handle"></span><arcgis-label-input .alignment=${h} class="label" .hidden=${!s} id=${d ?? E} .labelFormatter=${this._valueFormatter} @focus=${i ? void 0 : this._onThumbFocus} @blur=${i ? void 0 : this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${O(this._makeResizeRef())}></arcgis-label-input></div>`);
905
+ })} .tabIndex=${i ? -1 : 0}><span class="handle"></span><arcgis-label-input .alignment=${h} class="label" .hidden=${!l} id=${d ?? E} .labelFormatter=${this._valueFormatter} @focus=${i ? void 0 : this._onThumbFocus} @blur=${i ? void 0 : this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${O(this._makeResizeRef())}></arcgis-label-input></div>`);
883
906
  }
884
907
  _renderRangeLabel(e) {
885
908
  let t = "center";
886
- return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), w`<arcgis-label-input .alignment=${t} class=${P(e)} data-type=${e ?? E} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`;
909
+ return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), w`<arcgis-label-input .alignment=${t} class=${M(e)} data-type=${e ?? E} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`;
887
910
  }
888
911
  }
889
- function Se(n) {
890
- return "dataset" in n && n.tagName === "ARCGIS-LABEL-INPUT" && (n.dataset.type === "min" || n.dataset.type === "max");
912
+ function $e(a) {
913
+ return "dataset" in a && a.tagName === "ARCGIS-LABEL-INPUT" && (a.dataset.type === "min" || a.dataset.type === "max");
891
914
  }
892
- function V(n) {
893
- const e = ne(n, "[data-entry]");
915
+ function V(a) {
916
+ const e = ae(a, "[data-entry]");
894
917
  return e && "dataset" in e ? e.dataset.entry : null;
895
918
  }
896
- function ze(n) {
897
- return typeof n != null && n !== "range";
919
+ function ze(a) {
920
+ return typeof a != null && a !== "range";
898
921
  }
899
- function Fe(n, e) {
900
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"]`) : null;
922
+ function Fe(a, e) {
923
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"]`) : null;
901
924
  }
902
- function Le(n, e) {
903
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`) : null;
925
+ function Re(a, e) {
926
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`) : null;
904
927
  }
905
- function q(n, e) {
906
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`) : null;
928
+ function q(a, e) {
929
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`) : null;
907
930
  }
908
- function S(n) {
909
- return n.isPrimary && n.button === 0;
931
+ function $(a) {
932
+ return a.isPrimary && a.button === 0;
910
933
  }
911
- const Re = 5;
912
- function z(n, e, t) {
913
- const a = e - n, i = (t - n) / a * 100;
914
- return Number.parseFloat(i.toFixed(Re));
934
+ const Le = 5;
935
+ function z(a, e, t) {
936
+ const n = e - a, i = (t - a) / n * 100;
937
+ return Number.parseFloat(i.toFixed(Le));
915
938
  }
916
- function j(n, e, t) {
917
- return Math.max(e, Math.min(t, n));
939
+ function j(a, e, t) {
940
+ return Math.max(e, Math.min(t, a));
918
941
  }
919
- Q("arcgis-slider", Pe);
942
+ Q("arcgis-slider", Me);
920
943
  export {
921
- Pe as ArcgisSlider
944
+ Me as ArcgisSlider
922
945
  };